fix: apply score_threshold filtering after fusion queries in local mode#1137
fix: apply score_threshold filtering after fusion queries in local mode#1137cbcoutinho wants to merge 2 commits into
Conversation
The local/memory client was not applying score_threshold filtering after RRF and DBSF fusion operations. This caused query_points with prefetch and fusion queries to return results below the specified score_threshold. This fix adds score_threshold filtering after fusion results are computed, matching the behavior of the remote Qdrant server. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
✅ Deploy Preview for poetic-froyo-8baba7 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
📝 WalkthroughWalkthroughAdds post-fusion score threshold filtering in qdrant_client/local/local_collection.py: after fusion (RRF/DBSF) produces fused scored points, if Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related issues
Possibly related PRs
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hey @cbcoutinho Thanks for pointing this out and contributing a fix! P.S. Base branch for new pull requests should be |
Summary
score_thresholdnot being applied after RRF and DBSF fusion operations in local/memory modeTest plan
test_fusion_rrf_score_threshold- verifies RRF fusion respects score_thresholdtest_fusion_dbsf_score_threshold- verifies DBSF fusion respects score_thresholdFixes:
This PR was generated with the help of AI, and reviewed by a Human