Instance Propertymacpaw.openai 0.3.3OpenAI
object
The object type, which is always “embedding”.
let object: String
The object type, which is always “embedding”.
let object: String
import OpenAI
struct Embedding
struct EmbeddingsResult
@frozen struct String
A Unicode string value that is a collection of characters.
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 index: Int
The index of the embedding in the list of embeddings.