Skip to main content

Module embedding_cache

Module embedding_cache 

Source
Expand description

§Semantic Embedding Cache

Cache for computed embeddings to avoid re-computation. Provides TTL-based expiry, LRU batch eviction, prefix invalidation, and hit/miss statistics.

Structs§

CachedEmbedding
A single cached embedding entry.
EmbeddingCacheConfig
Configuration for SemanticEmbeddingCache.
EmbeddingCacheStats
Aggregate statistics for the cache.
SemanticEmbeddingCache
A tick-based embedding cache with LRU batch eviction and TTL expiry.