Skip to main content

embed_batch

AsyncMethod
This is a method of the EmbeddingAgent class in the embedding module.
Generate embeddings for multiple texts. # Arguments * texts - Slice of texts to embed # Returns EmbeddingResult containing all embeddings

Signature

async def embed_batch(&self, texts: &[&str]) -> Result<EmbeddingResult>

Parameters

texts
&
required
No description available.

Returns

Returns
Result<EmbeddingResult>
The result of the operation.