Skip to main content

embed

AsyncMethod
This is a method of the EmbeddingAgent class in the embedding module.
Generate embedding for a single text. # Arguments * text - Text to embed # Returns Vector of floats representing the embedding

Signature

async def embed(&self, text: &str) -> Result<Vec<f32>>

Parameters

text
&str
required
No description available.

Returns

Returns
Result<Vec<f32>>
The result of the operation.