Skip to content

perf: keyword-first hybrid fusion, lighter query-side embedding - #49

Merged
shtse8 merged 4 commits into
mainfrom
perf/hybrid-fusion
Oct 2, 2026
Merged

shtse8 merged 4 commits into
mainfrom
perf/hybrid-fusion

Conversation

@shtse8

@shtse8 shtse8 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Hybrid search is no longer worse than keyword search: on package files, weighted reciprocal rank fusion (90% keyword, 10% embedding) replaces the min-max score mix, which let the embedding outvote exact API-name matches. The score mix is kept when upstream docs are indexed (fetched 96/105). Benchmark, package files: hybrid 60 to 64 of 105, against keyword-only 59; held-out 8/18, which ties keyword-only, so the gain on unseen questions is not proven yet. A query reads only its own tokens' rows from the model file: median peak RSS 48 MB to 18 MB, latency 42 ms to 18 ms. CI fails if hybrid scores below keyword-only. Opus review: GO.

@shtse8 shtse8 added the owner:sylphx-oss Sylphx OSS lane label Oct 2, 2026
@shtse8
shtse8 added this pull request to the merge queue Oct 2, 2026
Merged via the queue into main with commit 96c7328 Oct 2, 2026
8 checks passed
@shtse8
shtse8 deleted the perf/hybrid-fusion branch October 2, 2026 13:41
@shtse8 shtse8 mentioned this pull request Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

owner:sylphx-oss Sylphx OSS lane

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant