EmbeddingsResponse

data class EmbeddingsResponse(val data: List<Embedding>, val model: String, val usage: EmbeddingsUsage)

The API response from the EmbeddingsRequest.

Constructors

Link copied to clipboard
constructor(data: List<Embedding>, model: String, usage: EmbeddingsUsage)

Functions

Link copied to clipboard
operator fun get(index: Int): Embedding

Returns the data at the given index.

Properties

Link copied to clipboard

The embeddings data

Link copied to clipboard

The exact model used to generate the embeddings

Link copied to clipboard

How many tokens were used by the API request