Skip to content

embedding

Classes:

Name Description
Embedding

Embedding

Attributes:

Name Type Description
embedding List[float]

The embedding vector, which is a list of floats.

index int

The index of the embedding in the list of embeddings.

object Literal['embedding']

The object type, which is always "embedding".

embedding instance-attribute

embedding: List[float]

The embedding vector, which is a list of floats.

The length of vector depends on the model as listed in the embedding guide.

index instance-attribute

index: int

The index of the embedding in the list of embeddings.

object instance-attribute

object: Literal['embedding']

The object type, which is always "embedding".