Repository navigation
feat: add retrieval parity foundation - #359
Merged
Merged
Conversation
added 6 commits
March 23, 2026 15:39
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.
Summary
Build the first retrieval-parity foundation layer for Cortex:
ask/answeraskandanswertorrfWhat Shipped
Retrieval routing
internal/search/strategy.godefault,temporal,entity,comparison,bridgeRetrieval channels
internal/search/rrf.gointernal/search/temporal_channel.goEvidence expansion / packing
internal/search/scene.gointernal/ask/engine.gointernal/answer/engine.goProduct defaults
cmd/cortex/main.goaskandanswernow default torrfBenchmark helpers
internal/benchscore/score.goBenchmark
Benchmark note:
docs/research/retrieval-parity-foundation-benchmark-2026-03-23.mdSame fresh LoCoMo-only DB and same public
conv-3081-question slice used inv1.4.0:rrf_default(--mode rrf --rerank off):11.90%F1,6461.61 ms,0degradedrrf_rerank_daemon(--mode rrf --rerank on):15.03%F1,9706.82 ms,0degradedComparison to prior notes:
v1.4.0baselineA:11.81%->11.90%v1.4.0reranker pathC:13.26%->15.03%15.77%: now-0.74Important diagnostic read:
1moved the most:27.46%F1 with daemon-backed rerank2remains the main ceiling blocker4is improved from the plain baseline but not a dramatic jumpValidation
go test ./internal/search ./cmd/cortexgo test ./internal/search ./internal/ask ./internal/answer ./cmd/cortexgo test ./...go vet ./...Notes
I left unrelated untracked local artifacts out of this branch:
docs/research/slm-v3-benchmark-2026-03-23.mdscripts/bench/run_slm_locomo_benchmark_2026_03_23.pyscripts/bench/__pycache__/