Expand description
SqliteLongTerm — LongTermMemory over a SQLite table with
linear-scan cosine recall (default) or sqlite-vec k-NN MATCH
(under feature sqlite-vec).
Embeddings are stored as BLOB (little-endian f32 array). On
recall, all rows matching the scope are loaded, the query is
embedded, cosine similarity is computed in Rust, results are sorted
and the top k returned. Acceptable for under ~10k facts; when the
sqlite-vec feature is enabled, a virtual shadow table is used for
k-NN via the MATCH operator instead.
Structs§
- Sqlite
Long Term - SQLite-backed long-term semantic memory.