LLMEmbeddingProviderAPI

Functions

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

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

open suspend fun embed(inputs: List<String>, model: LLModel): List<List<Double>>

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