Skip to main content

embed

Function embed 

Source
pub fn embed(text: &str) -> Result<Vec<f32>>
Expand description

Computes a 768-dim embedding vector for text, mean-pooled and normalized (fastembed’s default behavior for this model, replicating the sentence-transformers reference implementation).