Package-level declarations

Types

Link copied to clipboard
@Serializable
class Embedding(val embedding: List<Double>, val index: Int)

An embedding result. documentation

Link copied to clipboard
@Serializable
class EmbeddingRequest(val model: ModelId, val input: List<String>, val dimensions: Int? = null, val user: String? = null)

Create an embedding request.

Link copied to clipboard

Builder of EmbeddingRequest instances.

Link copied to clipboard
@Serializable
class EmbeddingResponse(val embeddings: List<Embedding>, val usage: Usage)

Create embeddings response.

Functions

Link copied to clipboard

Create an embedding request.