pub trait Embedder: Send + Sync {
// Required method
fn embed<'life0, 'life1, 'async_trait>(
&'life0 self,
text: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<f32>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Turns text into an embedding vector.
The default deployment delegates this to the caller (caliban, which talks to model providers); gonzalo can also host its own embedder. This trait is the seam for both.