Skip to content

perf(search): how search all merges its sources, 20 variants and the shipped gain - #483

Merged
leemour merged 1 commit into
mainfrom
perf/search-merge-sources
Dec 3, 2026
Merged

leemour merged 1 commit into
mainfrom
perf/search-merge-sources

Conversation

@leemour

@leemour leemour commented Dec 3, 2026

Copy link
Copy Markdown
Member

Results page for cli-core #3672: performance/search/merge-sources/README.md with its scripts.

  • One replay dumped each query's per-source lists; 20 merges were scored offline. The simulator matched the CLI's own page for every query, before and after.
  • Shipped: each source's best hit stays first; a hit that holds every query word gains 0.05 over its cosine. 1x top 5 / chore(deps): Bump @leemour/cli-core from 0.17.0 to 0.17.1 in the shared group across 1 directory #1 / recall@5: 422/259/0.457 → 435/273/0.479; 10x 270/190/0.389 → 273/196/0.395; dev questions unchanged; no question lost under the gate.
  • Rejected: cosine alone, head strength limits, rank fusion, per-source calibration, a rank prior, and the any-word retry (loses questions under every merge).
  • Not fixed: 10x u01. Its cause is not length: it loses to other short messages.
  • Synthetic stores only; held-out set not opened.

🤖 Generated with Claude Code

…shipped gain

Replays every agent query of the 31 benchmark questions and the 16 dev
questions at 1x and 10x, dumps the per-source lists once, and scores 20
merges offline; the simulator matched the CLI's page for every query.
The shipped variant (cli-core #3672) keeps each source's best hit first
and gives a hit that holds every query word 0.05 over its cosine: key at
#1 1x 259 -> 273, 10x 190 -> 196, no question lost. The any-word retry
lost questions under every merge; 10x u01 is not fixed and its cause is
not message length.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit b8bafc7 into main Dec 3, 2026
1 check passed
@leemour
leemour deleted the perf/search-merge-sources branch December 3, 2026 20:03
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