Skip to content

The embedding object

Represents an embedding returned by the Embeddings API.


embedding array
The embedding vector, which is a list of floats. The length of the vector depends on the model.


index integer
The index of the embedding in the list of embeddings returned by the API.


object string
The object type, which is always embedding.


OBJECT The embedding object
bash
{
  "object": "embedding",
  "embedding": [0.0023064255, -0.009327292],
  "index": 0
}

那年我双手插兜, 让bug稳如老狗