Skip to content
brainctl

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 typenHit@1Hit@5MRRRecall@5
single-session-user700.9291.0000.9471.000
single-session-assistant561.0001.0001.0001.000
single-session-preference300.3670.8330.6000.833
multi-session1330.8870.9930.9290.855
Overall2890.8650.9790.9130.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.

CategorynHit@1Hit@5MRRRecall@5
single-hop8410.4070.6500.5120.634
multi-hop2820.2270.4650.3390.252
temporal3210.4640.6600.5520.636
open-domain920.1520.3700.2460.257
adversarial4460.3920.6500.5020.641
Overall1,9820.3750.6130.4790.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.

SuiteMeasureResultnSource
Dedupexact and surface duplicates suppressed1.0012 pairsmemory_dedup.json
near misses wrongly merged0.0012 pairs
paraphrases suppressed0.008 pairs
Temporallatest value at rank 1 (with --supersedes)1.0015memory_temporal.json
stale value in top 50.0015
AbstentionAUROC0.99630memory_abstention.json
precision · recall of refusals1.00 · 0.6930
answerable queries wrongly refused014
SearchP@1 · MRR · nDCG@5 · Recall@50.80 · 0.867 · 0.861 · 0.8520search_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.