This repository was archived by the owner on Aug 24, 2026. It is now read-only.
Commit 535725b
fix: surface result titles in QA context assembly
LoCoMo v2 q300 exposed a structural asymmetry: the session-date fix
lifted multi_hop to 0.57 (mem0) and 0.52 (grep) but bm-local stayed at
0.06. BM returns bullet-level matched chunks as hit text — precise,
but they strip the document context where the session date lives.
grep returns doc heads (date included) and mem0 stores whole documents,
so only BM lost temporal anchoring.
BM's search results DO return the title (which carries the date); the
provider now passes it through hit metadata and context assembly adds
it to the section header when it isn't already in the snippet. This
uses only what the provider returns — no special-casing.
The underlying product gap (BM chunks lack document-level context at
retrieval time) is queued as the first basic-memory Phase 2 change.
2 new tests; suite green, lint clean.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Drew Cain <groksrc@gmail.com>1 parent b60bd2b commit 535725b
2 files changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
0 commit comments