Represents an embedding vector returned by embedding endpoint.

interface Embedding {
    embedding: number[];
    index: number;
    object: "embedding";
}

Properties

embedding: number[]

The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the embedding guide.

index: number

The index of the embedding in the list of embeddings.

object: "embedding"

The object type, which is always "embedding".