LLMEmbeddingProvider

Extension of the LLMClient interface which includes functionality for generating text embeddings in addition to executing prompts and streaming outputs.

Functions

Link copied to clipboard
abstract suspend fun embed(text: String, model: LLModel): List<Double>

Embeds the given text using into a vector of double-precision numbers.