fix: surface result titles in QA context assembly#29
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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