Skip to content

fix: surface result titles in QA context assembly#29

Merged
groksrc merged 1 commit into
mainfrom
fix/hit-title-in-context
Jun 13, 2026
Merged

fix: surface result titles in QA context assembly#29
groksrc merged 1 commit into
mainfrom
fix/hit-title-in-context

Conversation

@groksrc

@groksrc groksrc commented Jun 12, 2026

Copy link
Copy Markdown
Member

The finding (LoCoMo v2 q300)

The session-date fix lifted multi_hop to 0.57 (mem0) and 0.52 (grep) — but bm-local stayed at 0.06. Structural asymmetry: 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); mem0 stores whole docs. Only BM lost temporal anchoring.

Fix

BM's search results already return the title (which now carries the session date). The provider passes it through hit metadata; context assembly adds it to the section header when not already present in the snippet. Provider-neutral — assembly uses whatever any provider returns.

The underlying product gap (BM chunks lack document-level context) is queued as the first basic-memory Phase 2 change.

2 new tests; suite green (105), lint clean.

🤖 Generated with Claude Code

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>
@groksrc groksrc merged commit cb3c565 into main Jun 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant