Skip to content

Boost title matches in hybrid search#669

Open
fa1k3 wants to merge 1 commit into
tobi:mainfrom
fa1k3:fix/title-match-boost
Open

Boost title matches in hybrid search#669
fa1k3 wants to merge 1 commit into
tobi:mainfrom
fa1k3:fix/title-match-boost

Conversation

@fa1k3
Copy link
Copy Markdown

@fa1k3 fa1k3 commented May 20, 2026

Summary

  • add a capped title-match boost for hybrid and structured search candidate ordering
  • keep final scores bounded while exposing the applied title boost in --explain
  • add regression tests for ordering, explain consistency, exact term matching, and common technical separators

Why

Title matches are strong evidence for lookup-style queries. The boost is applied to candidate ordering before final scoring, so it can recover relevant title hits without changing the final score equation or producing scores above 1.0.

Tests

  • bun test test/store.helpers.unit.test.ts test/store.test.ts --timeout 60000 --preload ./src/test-preload.ts
  • npm run test:node -- test/store.helpers.unit.test.ts test/store.test.ts
  • bun run build
  • npm run test:types

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