Class Embedding
- 
                    
                    - All Implemented Interfaces:
 
 public final class EmbeddingRepresents an embedding vector returned by embedding endpoint. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classEmbedding.BuilderA builder for Embedding. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final List<Float>embedding()The embedding vector, which is a list of floats. final EmbeddingValueembeddingValue()The embedding data in its original format (either float list or base64 string). final Longindex()The index of the embedding in the list of embeddings. final JsonValue_object_()The object type, which is always "embedding". final JsonField<List<Float>>_embedding()Returns the raw JSON value of embedding. final JsonField<EmbeddingValue>_embeddingValue()Returns the raw JSON value of embedding. final JsonField<Long>_index()Returns the raw JSON value of index. final Map<String, JsonValue>_additionalProperties()final Embedding.BuildertoBuilder()final Embeddingvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Embedding.Builderbuilder()Returns a mutable builder for constructing an instance of Embedding. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        embeddingfinal List<Float> embedding() The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the embedding guide. 
 - 
                                        embeddingValuefinal EmbeddingValue embeddingValue() The embedding data in its original format (either float list or base64 string). This method provides efficient access to the embedding data without unnecessary conversions. 
 - 
                                        _object_final JsonValue _object_() The object type, which is always "embedding". Expected to always return the following: JsonValue.from("embedding")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value). 
 - 
                                        _embeddingfinal JsonField<List<Float>> _embedding() Returns the raw JSON value of embedding. Unlike embedding, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _embeddingValuefinal JsonField<EmbeddingValue> _embeddingValue() Returns the raw JSON value of embedding. Unlike embeddingValue, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _indexfinal JsonField<Long> _index() Returns the raw JSON value of index. Unlike index, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _additionalPropertiesfinal Map<String, JsonValue> _additionalProperties() 
 - 
                                        toBuilderfinal Embedding.Builder toBuilder() 
 - 
                                        builderfinal static Embedding.Builder builder() Returns a mutable builder for constructing an instance of Embedding. The following fields are required: .embedding() .index()
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-