Expand description
Embedding cache for avoiding redundant computations.
This module provides a simple LRU cache for embeddings based on content hashes.
Re-exportsยง
use ragfs_core::EmbedError;๐use ragfs_core::Embedder;๐use ragfs_core::EmbeddingConfig;๐use ragfs_core::EmbeddingOutput;๐use ragfs_core::Modality;๐use std::collections::HashMap;๐use std::sync::Arc;๐use tokio::sync::RwLock;๐use tracing::debug;๐
Structsยง
- Cache
Entry ๐ - A cached embedding entry.
- Cache
Stats - Cache statistics.
- Embedding
Cache - Embedding cache with LRU eviction.
Constantsยง
- DEFAULT_
CACHE_ ๐SIZE - Maximum number of entries in the cache.