Skip to main content

Embedder

Trait Embedder 

Source
pub trait Embedder {
    // Required method
    fn embed(&self, texts: &[&str]) -> Result<Vec<Vec<f32>>>;
}

Required Methods§

Source

fn embed(&self, texts: &[&str]) -> Result<Vec<Vec<f32>>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§