Skip to content

fix(search): BM25 0件時のセマンティックフォールバック (#178)#181

Merged
Kewton merged 1 commit intodevelopfrom
fix/issue-178-hybrid-bm25-zero
Mar 25, 2026
Merged

fix(search): BM25 0件時のセマンティックフォールバック (#178)#181
Kewton merged 1 commit intodevelopfrom
fix/issue-178-hybrid-bm25-zero

Conversation

@Kewton
Copy link
Copy Markdown
Owner

@Kewton Kewton commented Mar 25, 2026

Closes #178
🤖 Generated with Claude Code

…rid search

When BM25 returns 0 results, RRF merge compressed semantic scores to
~0.016 (1/61), making hybrid search nearly useless for queries without
keyword matches. This adds a fallback path in try_hybrid_search() that
returns semantic results with their original cosine similarity scores
when BM25 is empty, consistent with the existing fallback in suggest.rs.

Closes #178

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Kewton Kewton merged commit 6ab5247 into develop Mar 25, 2026
3 checks passed
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