spin_sdk::llm::llm

Function generate_embeddings

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

Generate embeddings for the supplied list of text