pub trait Embedder: Send + Sync {
// Required method
fn embed<'a>(
&'a self,
text: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Vec<f32>, ReactError>> + Send + 'a>>;
}Expand description
Text embedding interface: maps text to dense float vectors