2.9 · retrieval only · committed baselines
Benchmarks
What brainctl scores on its own baselines, how each number is produced, and what the numbers do not show.
Method
- Every figure comes from a JSON file committed under tests/bench/baselines and reproduces with
python3 -m tests.bench.run. - Retrieval only. There is no answer model and no LLM judge, so these measure whether the right evidence comes back, not whether an agent answers correctly.
- Default settings, and a fresh database for every conversation or question.
- CI fails any change that drops P@1, P@5, Recall@5, MRR or nDCG@5 by more than 2% against these files.
LongMemEval
LongMemEval_S places one to three evidence sessions among about 50 sessions of unrelated history. Each session is stored as one memory; a hit is a gold session in the top k. The run covers the 289 questions whose evidence is a session holding the answer. Temporal-reasoning, knowledge-update and abstention questions are left out.
| Question type | n | Hit@1 | Hit@5 | MRR | Recall@5 |
|---|---|---|---|---|---|
| single-session-user | 70 | 0.929 | 1.000 | 0.947 | 1.000 |
| single-session-assistant | 56 | 1.000 | 1.000 | 1.000 | 1.000 |
| single-session-preference | 30 | 0.367 | 0.833 | 0.600 | 0.833 |
| multi-session | 133 | 0.887 | 0.993 | 0.929 | 0.855 |
| Overall | 289 | 0.865 | 0.979 | 0.913 | 0.916 |
Source: longmemeval.json. Preference questions are the weak spot: the right session is often in the top 5 but rarely first.
LoCoMo
LoCoMo asks about 10 long conversations. The evidence is a single short turn among roughly 590, questions often paraphrase it, and multi-hop questions need several turns at once, so it is much harder for keyword retrieval than LongMemEval.
| Category | n | Hit@1 | Hit@5 | MRR | Recall@5 |
|---|---|---|---|---|---|
| single-hop | 841 | 0.407 | 0.650 | 0.512 | 0.634 |
| multi-hop | 282 | 0.227 | 0.465 | 0.339 | 0.252 |
| temporal | 321 | 0.464 | 0.660 | 0.552 | 0.636 |
| open-domain | 92 | 0.152 | 0.370 | 0.246 | 0.257 |
| adversarial | 446 | 0.392 | 0.650 | 0.502 | 0.641 |
| Overall | 1,982 | 0.375 | 0.613 | 0.479 | 0.564 |
Source: locomo.json. Rows use the LoCoMo paper's category names. The baseline file labels single-hop as open-domain, multi-hop as single-hop and open-domain as multi-hop.
Memory quality
Small fixtures for what a memory store does besides retrieval: skipping duplicate writes, keeping only the current value of a fact, and refusing when nothing relevant is stored. They run keyword-only, exactly as in CI.
| Suite | Measure | Result | n | Source |
|---|---|---|---|---|
| Dedup | exact and surface duplicates suppressed | 1.00 | 12 pairs | memory_dedup.json |
| near misses wrongly merged | 0.00 | 12 pairs | ||
| paraphrases suppressed | 0.00 | 8 pairs | ||
| Temporal | latest value at rank 1 (with --supersedes) | 1.00 | 15 | memory_temporal.json |
| stale value in top 5 | 0.00 | 15 | ||
| Abstention | AUROC | 0.996 | 30 | memory_abstention.json |
| precision · recall of refusals | 1.00 · 0.69 | 30 | ||
| answerable queries wrongly refused | 0 | 14 | ||
| Search | P@1 · MRR · nDCG@5 · Recall@5 | 0.80 · 0.867 · 0.861 · 0.85 | 20 | search_quality.json |
What these numbers don't show
- End-to-end question answering. Nothing here generates or grades an answer, so a good retrieval score is necessary for a correct answer but not proof of one.
- Whether the vector leg was active. The LongMemEval and LoCoMo files do not record it, so read those as hybrid-or-keyword, not as a known configuration.
- Paraphrase dedup. Without embeddings, two differently worded notes of the same fact are both kept.
- Abstention is tuned on its own fixtures. On held-out halves AUROC is 1.00 and 0.98, recall 0.75 and 0.63, precision 1.00 on both; those are the fairer figures.
- Other systems. Most published memory benchmarks report LLM-judged answer accuracy, which is a different measurement, so we don't place our retrieval numbers beside them.
The full write-up is in the whitepaper.