Skip to main content

Module sqlite_cache

Module sqlite_cache 

Source
Expand description

SQLite-based embedding cache.

Caches computed embeddings by content hash to avoid recomputation. Stored in the same memory.db file for atomicity.

Structs§

CacheStats
Cache statistics.

Functions§

clear
Clear all cached embeddings.
get_cached
Get a cached embedding for the given text.
get_or_compute
Get or compute an embedding, using the cache.
put_cached
Store an embedding in the cache.
stats
Get cache statistics.