Embeddings

interface Embeddings

Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.

Inheritors

Functions

Link copied to clipboard
open suspend fun createEmbeddings(request: EmbeddingCreateRequest, requestOptions: RequestOptions? = null): EmbeddingResult

Create embeddings from text or token IDs and retain vector encoding metadata.

Link copied to clipboard
abstract suspend fun embeddings(request: EmbeddingRequest, requestOptions: RequestOptions? = null): EmbeddingResponse

Creates an embedding vector representing the input text.