Initializermacpaw.openai 0.3.2OpenAI
init(from:)
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
s6OpenAI16EmbeddingsResultV9EmbeddingV4fromAEs7Decoder_p_tKcfc
What are these?1NLLH
import OpenAI
struct Embedding
struct EmbeddingsResult
protocol Decoder
A type that can decode values from a native format into in-memory representations.
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 index: Int
The index of the embedding in the list of embeddings.
let object: String
The object type, which is always “embedding”.