Skip to content

Embedding Object

Embeddings

Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.

Related guide: Embeddings

Embedding object

Represents an embedding vector returned by the embeddings endpoint.

index/integer

The index of the embedding in the list of embeddings.

embedding/array

The embedding vector, which is a list of floating-point numbers. The length of the vector depends on the model as listed in the embeddings guide.

object/string

The object type, which is always embedding.

JSON
{
  "object": "embedding",
  "embedding": [
    0.0023064255,
    -0.009327292,
    .... (1536 floats total for ada-002)
    -0.0028842222,
  ],
  "index": 0
}