EmbeddingsResultOutput 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.

model

The model ID used to generate this result.

usage

Usage counts for tokens input using the embeddings API.

Property Details

data

Embedding values for the prompts submitted in the request.

data: EmbeddingItemOutput[]

Property Value

model

The model ID used to generate this result.

model: string

Property Value

string

usage

Usage counts for tokens input using the embeddings API.

usage: EmbeddingsUsageOutput

Property Value