Expand description
Concrete EmbeddingBackend implementations.
StaticHashBackend— hash-based fallback, always compiled in. Used only forEmbeddingModelType::StaticSimilarityMRLand as the last resort when bothbertandmodel2vecfeatures are disabled.BertBackend(featurebert) — Candle + HuggingFace Hub BERT transformer models (MiniLM / multilingual / TinyBERT / BGE).Model2VecBackend(featuremodel2vec, default) —model2vec-rsstatic embeddings for the Potion family (multilingual / code).
Re-exports§
pub use bert::BertBackend;pub use model2vec::Model2VecBackend;pub use static_hash::StaticHashBackend;
Modules§
- bert
- BERT backend: HuggingFace Hub model load, tokenize, forward pass, masked mean pooling, and L2 normalization.
- model2vec
- Model2Vec backend — static, multilingual embeddings via
model2vec-rs. - static_
hash - Hash-based static embedding fallback. Used by [
EmbeddingModelType::StaticSimilarityMRL].