Package-level declarations
Types
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
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
Creates an EmbeddingsRequest using the EmbeddingsRequest.Builder using Kotlin DSL.