Skip to main content

Module provider

Module provider 

Source
Expand description

SqliteMemoryProvider โ€” the SQLite + vector backing storage.

Implements the full cel_memory::MemoryProvider surface:

  • open loads sqlite-vec, runs migrations, holds the connection.
  • write / get / stats / purge_all plus session lifecycle.
  • Hybrid (vector + FTS + recency) retrieve, fronted by a TTL+LRU cache.
  • summarize_session / rollup_day / rollup_rule_week via an injected cel_memory::Summarizer (these return Err(NotImplemented) only when no summarizer is attached).
  • run_aging_sweep and export.
  • re_embed_all is the one method still returning Err(NotImplemented).

The provider is Send + Sync and lives behind an Arc<dyn MemoryProvider> โ€” the same surface as BasicMemoryProvider, so swapping it in is one line.

Structsยง

SqliteMemoryProvider
SQLite-backed MemoryProvider.