Skip to main content

mentedb_embedding/
lib.rs

1//! Embedding model integration for MenteDB.
2//!
3//! Provides a trait-based architecture for embedding providers with built-in
4//! caching and a hash-based provider for testing.
5
6/// LRU embedding cache with hit/miss tracking.
7pub mod cache;
8/// Deterministic hash based embedding provider for testing.
9pub mod hash_provider;
10/// HTTP based embedding provider for remote model APIs.
11pub mod http_provider;
12/// Embedding manager that wraps providers with caching.
13pub mod manager;
14/// Trait definitions for sync and async embedding providers.
15pub mod provider;
16
17pub use cache::{CacheStats, CachedEmbedding, EmbeddingCache};
18pub use hash_provider::HashEmbeddingProvider;
19pub use http_provider::{HttpEmbeddingConfig, HttpEmbeddingProvider};
20pub use manager::{EmbeddingManager, EmbeddingStats};
21pub use provider::{AsyncEmbeddingProvider, EmbeddingProvider};