Skip to main content

Crate mentedb_embedding

Crate mentedb_embedding 

Source
Expand description

Embedding model integration for MenteDB.

Provides a trait-based architecture for embedding providers with built-in caching and a hash-based provider for testing.

Re-exports§

pub use cache::CacheStats;
pub use cache::CachedEmbedding;
pub use cache::EmbeddingCache;
pub use hash_provider::HashEmbeddingProvider;
pub use http_provider::HttpEmbeddingConfig;
pub use http_provider::HttpEmbeddingProvider;
pub use manager::EmbeddingManager;
pub use manager::EmbeddingStats;
pub use provider::AsyncEmbeddingProvider;
pub use provider::EmbeddingProvider;

Modules§

cache
LRU cache for computed embeddings to avoid recomputation.
hash_provider
A deterministic, zero-dependency embedding provider for testing and development.
http_provider
Generic HTTP-based embedding provider for OpenAI, Cohere, Voyage, and other APIs.
manager
Embedding manager that wraps a provider with caching and statistics.
provider
Embedding provider traits for synchronous and asynchronous embedding generation.