Package com.openai.models
Class Embedding
-
- All Implemented Interfaces:
public final class Embedding
Represents an embedding vector returned by embedding endpoint.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
Embedding.Builder
public final class
Embedding.Object
-
Method Summary
Modifier and Type Method Description final List<Double>
embedding()
The embedding vector, which is a list of floats. final Long
index()
The index of the embedding in the list of embeddings. final Embedding.Object
object_()
The object type, which is always "embedding". final JsonField<List<Double>>
_embedding()
The embedding vector, which is a list of floats. final JsonField<Long>
_index()
The index of the embedding in the list of embeddings. final JsonField<Embedding.Object>
_object_()
The object type, which is always "embedding". final Map<String, JsonValue>
_additionalProperties()
final Embedding
validate()
final Embedding.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static Embedding.Builder
builder()
-
-
Method Detail
-
embedding
final List<Double> embedding()
The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the embedding guide.
-
object_
final Embedding.Object object_()
The object type, which is always "embedding".
-
_embedding
final JsonField<List<Double>> _embedding()
The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the embedding guide.
-
_object_
final JsonField<Embedding.Object> _object_()
The object type, which is always "embedding".
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Embedding.Builder toBuilder()
-
builder
final static Embedding.Builder builder()
-
-
-
-