Skip to main content

embedding

Rust AI Agent SDK Embedding Module for PraisonAI Rust SDK Provides text embedding capabilities with support for multiple providers.

Example

use praisonai::{EmbeddingAgent, EmbeddingConfig};

let agent = EmbeddingAgent::new()
.model("text-embedding-3-small")
.build()?;

let embedding = agent.embed("Hello world").await?;
println!("Dimension: {}", embedding.len());

Import

use praisonai::embedding::*;

Classes

Functions