Skip to main content

Module embeddings

Module embeddings 

Source
Expand description

Local Embeddings Engine for semantic understanding.

The public LocalEmbeddingEngine wraps any EmbeddingBackend with adaptive batching, concurrency control, and timeouts. Backends live under backends — currently BertBackend (Candle + HuggingFace Hub) and StaticHashBackend (hash-based fallback). Swapping in model2vec-rs for the minishlab/potion-multilingual-128M migration becomes a new backend impl plus one branch in engine::LocalEmbeddingEngine::new.

Re-exports§

pub use backend::EmbeddingBackend;
pub use config::EmbeddingConfig;
pub use config::EmbeddingModelType;
pub use engine::LocalEmbeddingEngine;

Modules§

backend
Pluggable embedding backend trait.
backends
Concrete EmbeddingBackend implementations.
config
Embedding-engine configuration and supported model types.
engine
LocalEmbeddingEngine — the public entry point.