klieo-memory-sqlite
SQLite-backed implementations of klieo-core's memory traits.
Part of the klieo Rust agent framework.
Features
ShortTermMemory,LongTermMemory, andEpisodicMemoryon SQLite- Optional
fastembedfeature for local embedding +sqlite-vecfor vector recall - Zero external services required — ideal for local-first deployments
Cargo features
| Feature | Default | Purpose |
|---|---|---|
fastembed |
off | Pulls the fastembed ONNX runtime so MemorySqlite::open_with_embedder can take a real local embedder instead of DummyEmbedder. |
sqlite-vec |
off | Loads the sqlite-vec extension for fast k-NN recall on the long-term store. |
test-utils |
off | Re-exports FakeEmbedder from klieo-embed-common for downstream test harnesses. |
Quickstart
[]
= "3"
use MemorySqlite;
# async
MemorySqlite::open(path) bakes in DummyEmbedder (zero-vector,
FIFO recall) — paste-and-run with no extra dependency. The returned
MemorySqlite exposes short_term, long_term, episodic as
Arc<dyn …> ready to drop into [klieo_core::AgentContext] or into
klieo::App via the .sqlite() shortcut.
Advanced wiring — custom embedder
use ;
use Arc;
# async
Enable real vector recall:
[]
= { = "3", = ["fastembed", "sqlite-vec"] }
Status
3.x — stable. SemVer minor bumps are additive; majors only on
trait-shape changes. See docs/SEMVER.md.
License
MIT — see LICENSE.