Skip to content

fix: preserve strong BM25-only matches - #143

Open
GautamSharma99 wants to merge 1 commit into
Autoloops:mainfrom
GautamSharma99:fix/preserve-bm25-only-matches
Open

fix: preserve strong BM25-only matches#143
GautamSharma99 wants to merge 1 commit into
Autoloops:mainfrom
GautamSharma99:fix/preserve-bm25-only-matches

Conversation

@GautamSharma99

Copy link
Copy Markdown
Contributor

Summary

Fixes strong BM25-only matches being removed during post-graph filtering.

BM25 already contributed to the combined ranking score, but the final signal gate only checked semantic, graph, and coherence
scores. Exact matches for identifiers, filenames, and uncommon terms could therefore disappear when semantic similarity was low.

Changes

  • Include bm25_score in the post-graph threshold.
  • Add regression coverage for a result with:
    • BM25 score 1.0
    • Semantic score 0
    • No graph neighbors

Testing

npm test
npm run typecheck

Both pass.

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