Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

docs(benchmarks): publish the zero-LLM LongMemEval-S baseline

AkitaOnRails63414140d982
diff --git a/README.md b/README.md
index 249219df..8fbd3f20 100644
--- a/README.md
+++ b/README.md
@@ -344,6 +344,7 @@ diagram, crate breakdown, schema notes, and invariants.
- [`docs/security.md`](docs/security.md) - the full security model.
- [`docs/research-2026-landscape.md`](docs/research-2026-landscape.md) - how the field looks and where we sit in it.
- [`docs/ROADMAP-2.0.md`](docs/ROADMAP-2.0.md) - the plan for the 2.0 release, one item at a time.
+- [`docs/benchmarks/`](docs/benchmarks/README.md) - published retrieval-quality numbers with provenance, reproducible from the in-repo harness.
- [`docs/ROADMAP-2.0.md`](docs/ROADMAP-2.0.md) - the 2.0 plan.
## Influences and prior art
diff --git a/docs/benchmarks/README.md b/docs/benchmarks/README.md
new file mode 100644
index 00000000..5473ea33
--- /dev/null
+++ b/docs/benchmarks/README.md
@@ -0,0 +1,36 @@
+# Benchmarks
+
+Published retrieval-quality numbers for ai-memory, with full provenance
+(commit, dataset sha256, hardware, mode). Every number here was produced
+by the in-repo harness — see `evals/README.md` for how to reproduce:
+
+```bash
+cargo build --release -p ai-memory-cli
+cargo run --release -p ai-memory-eval -- retrieval --fetch
+```
+
+## Baselines
+
+| date | dataset | mode | overall hit@5 | file |
+|---|---|---|---|---|
+| 2026-09-01 | LongMemEval-S (v1) | zero-llm (FTS only) | 0.617 | [longmemeval-s-2026-09-01.md](longmemeval-s-2026-09-01.md) |
+
+## Reading the numbers
+
+- **mode: zero-llm** is the deterministic floor: no consolidation LLM, no
+ embedder, no reranker — pure FTS5 + entity/graph fusion over
+ hook-captured observations. It is the configuration every install has
+ with no API key at all. Embedding-assisted modes are expected to score
+ higher and will be published alongside when the local-embedding work
+ lands (roadmap item 5).
+- **Comparability.** Published numbers from other systems on this dataset
+ (agentmemory 0.967 R@5, doobidoo/mcp-memory-service 0.804 R@5) are
+ embedding-based retrieval over raw chat logs. Our `hit@5` is the
+ comparable statistic, but our pipeline additionally pays for
+ production-shaped capture: excerpts are bounded at the 2 KB privacy
+ boundary, so evidence deep inside one long turn is genuinely out of
+ reach of the index. That cost is real and deliberate — the benchmark
+ measures the shipped system, not an idealised retriever.
+- **Regression gate.** Roadmap items 2-6 re-run this benchmark; a change
+ that lowers a slice materially is a regression to fix, not a note to
+ publish.
diff --git a/docs/benchmarks/longmemeval-s-2026-09-01.md b/docs/benchmarks/longmemeval-s-2026-09-01.md
new file mode 100644
index 00000000..dcaa7f82
--- /dev/null
+++ b/docs/benchmarks/longmemeval-s-2026-09-01.md
@@ -0,0 +1,19 @@
+# LongMemEval-S retrieval — 2026-09-01T15:29:14.188132847Z
+
+- commit: `496e419ff60ece21e1c7dfc76a960c92043e75c8`
+- dataset: `longmemeval_s` (sha256 `08d8dad4be43ee20…`)
+- mode: zero-llm
+- hardware: AMD Ryzen 9 7950X3D 16-Core Processor (32 threads)
+- questions scored: 470 (30 abstention questions excluded)
+
+| slice | n | hit@1 | hit@3 | hit@5 | hit@10 | recall@1 | recall@3 | recall@5 | recall@10 |
+|---|---|---|---|---|---|---|---|---|---|
+| knowledge-update | 72 | 0.528 | 0.653 | 0.708 | 0.806 | 0.264 | 0.451 | 0.493 | 0.604 |
+| multi-session | 121 | 0.388 | 0.504 | 0.570 | 0.669 | 0.168 | 0.290 | 0.333 | 0.448 |
+| overall | 470 | 0.449 | 0.566 | 0.617 | 0.713 | 0.297 | 0.430 | 0.472 | 0.570 |
+| single-session-assistant | 56 | 0.696 | 0.750 | 0.804 | 0.875 | 0.696 | 0.750 | 0.804 | 0.875 |
+| single-session-preference | 30 | 0.367 | 0.567 | 0.600 | 0.733 | 0.367 | 0.567 | 0.600 | 0.733 |
+| single-session-user | 64 | 0.406 | 0.453 | 0.484 | 0.547 | 0.406 | 0.453 | 0.484 | 0.547 |
+| temporal-reasoning | 127 | 0.394 | 0.551 | 0.598 | 0.709 | 0.190 | 0.364 | 0.410 | 0.507 |
+
+Notes: hit@k = any evidence session in top k (the "Recall@k" most systems publish); recall@k = fraction of evidence sessions found. Session attribution: `sessions/<id>.md` pages and raw observation hits; unattributable pages never score. Capture is production-shaped: excerpts bounded at the 2 KB privacy boundary.