OpenAI::Embedding
Inherits JSON::Serializable < Reference < Object
Represents an embedding vector returned by embedding endpoint.
Constructors
new(pull : JSON::PullParser)
Sourcenew(index : Int64 = 0, embedding : Array(Float32) = [] of Float32, object : EmbeddingObject = EmbeddingObject::Embedding)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
embedding
The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the embedding guide.
The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the embedding guide.