Instance Propertymacpaw.openai 0.3.2OpenAI
index
The index of the embedding in the list of embeddings.
let index: Int
The index of the embedding in the list of embeddings.
let index: Int
import OpenAI
struct Embedding
struct EmbeddingsResult
@frozen struct Int
A signed integer value type.
init(from decoder: any Decoder) throws
let embedding: [Double]
The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the embedding guide. https://platform.openai.com/docs/guides/embeddings
let object: String
The object type, which is always “embedding”.