fix: update Multiretriever params - #11823
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Code reviewReviewed for bugs and CLAUDE.md / AGENTS.md compliance. Three issues found. 1.
|
bogdankostic
left a comment
There was a problem hiding this comment.
Looks already good in genral, let's just make sure to document the new behavior and update the serialization methods for the new parameter
| are deduplicated and re-scored using RRF, then returned in descending score order. When `top_k` is set, RRF | ||
| is always used so the combined results have a consistent global ranking, and only the top `top_k` documents | ||
| are returned. |
There was a problem hiding this comment.
Let's document this in public facing docstrings, private methods are not in shown in our API reference.
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||||||||
Related Issues
Proposed Changes:
top_k_per_retrieverand forward it to each retriever as its top_k; filters and top_k_per_retriever are now only passed when set, so each retriever keeps its own defaults otherwise.top_kat merge time to truncate the combined results, using RRF for a consistent ranking; fixed a sorted shadowing bug in _merge_results.How did you test it?
Notes for the reviewer
Checklist
fix:,feat:,build:,chore:,ci:,docs:,style:,refactor:,perf:,test:and added!in case the PR includes breaking changes.