1use anyhow::Result; 2 3#[async_trait::async_trait] 4pub trait Embedder { 5 async fn embed(&self, input: &str) -> Result<Vec<f32>>; 6}