Embeddings interface

Representation of the response data from an embeddings request. Embeddings measure the relatedness of text strings and are commonly used for search, clustering, recommendations, and other similar scenarios.

Properties

data

Embedding values for the prompts submitted in the request.

usage

Usage counts for tokens input using the embeddings API.

Property Details

data

Embedding values for the prompts submitted in the request.

data: EmbeddingItem[]

Property Value

usage

Usage counts for tokens input using the embeddings API.

usage: EmbeddingsUsage

Property Value