Skip to main content

Crate cel_memory_sqlite

Crate cel_memory_sqlite 

Source
Expand description

SQLite-backed MemoryProvider for Cellar.

This crate is the foundation of the Memory & Context Manager subsystem per /Users/dimitriospagkratis/.claude/plans/cellar-memory-manager.md. Phase 0 (current) delivers:

  • Schema migrations for every table in §6.2 (memory_chunks, memory_vec, memory_fts, memory_sessions, memory_summary_members, memory_access_log, memory_eviction_log).
  • sqlite-vec extension loaded into the connection at open time so the memory_vec virtual table is available.
  • Embedder trait + MockEmbedder (always available) and [FastEmbedEmbedder] (gated behind the fastembed feature) for the real bge-small-en-v1.5 model.
  • SqliteMemoryProvider that opens a DB, runs migrations, and implements MemoryProvider with real bodies for the methods the v1 daemon needs at boot time (stats, write, get, purge_all) plus Err(NotImplemented) for the rest, ready for Phase 1 to fill in.

Re-exports§

pub use embedder::Embedder;
pub use embedder::MockEmbedder;
pub use error::SqliteMemoryError;
pub use provider::SqliteMemoryProvider;

Modules§

embedder
Embedder trait + reference implementations.
error
Storage-side error type. Converted to MemoryError on the way out of the [SqliteMemoryProvider].
migrations
Embedded SQL migrations.
provider
SqliteMemoryProvider — the v1 Phase 0 backing storage.
vec_extension
Registration helper for the sqlite-vec extension.