Function spin_sdk::llm::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