/** * Represents an embedding vector returned by embedding endpoint. * */ export type Embedding = { /** * The index of the embedding in the list of embeddings. */ index: number; /** * The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the [embedding guide](/docs/guides/embeddings). * */ embedding: Array; /** * The object type, which is always "embedding". */ object: string; };