spin_sdk::llm

Function generate_embeddings

Source
pub fn generate_embeddings(
    model: EmbeddingModel<'_>,
    text: &[String],
) -> Result<EmbeddingsResult, Error>
Expand description

Generate embeddings using the provided model and collection of text