Expand description
Embedding support for vector search.
Provides the Embedder trait for pluggable text embedding models and a
concrete [LocalEmbedder] (behind the embeddings feature) that uses
fastembed with the BGE-Small-EN v1.5 model
(384 dimensions, ~45 MB on disk).
Also provides cosine_similarity for comparing embedding vectors.
Traits§
- Embedder
- Trait for text embedding models.
Functions§
- cosine_
similarity - Compute cosine similarity between two vectors.