embed • Rust AI Agent SDK

embed: Generate embedding for a single text. # Arguments * `text` – Text to embed # Returns Vector of floats representing the embedding

embed

Async

Method

</div>

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

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

Parameters

ParamField &str

No description available.


Related Documentation