1 2 3 4 5 6 7 8
use async_trait::async_trait; use crate::error::LLMError; #[async_trait] pub trait EmbeddingProvider { async fn embed(&self, input: Vec<String>) -> Result<Vec<Vec<f32>>, LLMError>; }