Package-level declarations

Types

Link copied to clipboard
data class Embedding(val embedding: List<Any>, val index: Int)

Represents 1 embedding as a vector of floats or strings.

Link copied to clipboard

Holds the options sent to the embeddings endpoint. The generated embeddings can be used in Machine Learning models.

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

The API response from the EmbeddingsRequest.

Link copied to clipboard
data class EmbeddingsUsage(val promptTokens: Int, val totalTokens: Int)

Holds the number of tokens used by the API request. Exact pricing can vary based on the model used.

Link copied to clipboard

Determines how the embeddings are encoded.

Functions

Link copied to clipboard