pub trait Embedder {
// Required methods
fn model_id(&self) -> &str;
fn embed(&self, input: &[String]) -> Result<Vec<Vec<f32>>>;
}Expand description
Converts text batches into vectors from one stable model space.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl Embedder for FastEmbedder
Available on crate feature
fastembed only.