mentedb-embedding 0.5.0

Embedding model integration for MenteDB
Documentation
//! Embedding model integration for MenteDB.
//!
//! Provides a trait-based architecture for embedding providers with built-in
//! caching and a hash-based provider for testing.

/// LRU embedding cache with hit/miss tracking.
pub mod cache;
/// Local embedding provider using Candle (pure Rust ML framework).
#[cfg(feature = "local")]
pub mod candle_provider;
/// Deterministic hash based embedding provider for testing.
pub mod hash_provider;
/// HTTP based embedding provider for remote model APIs.
pub mod http_provider;
/// Embedding manager that wraps providers with caching.
pub mod manager;
/// Trait definitions for sync and async embedding providers.
pub mod provider;

pub use cache::{CacheStats, CachedEmbedding, EmbeddingCache};
#[cfg(feature = "local")]
pub use candle_provider::CandleEmbeddingProvider;
pub use hash_provider::HashEmbeddingProvider;
pub use http_provider::{HttpEmbeddingConfig, HttpEmbeddingProvider};
pub use manager::{EmbeddingManager, EmbeddingStats};
pub use provider::{AsyncEmbeddingProvider, EmbeddingProvider};