-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Weights and score normalization for JoinDocuments
node with reciprocal rank fusion
#5704
Conversation
Pull Request Test Coverage Report for Build 6341046291
💛 - Coveralls |
Hey, @robpasternak... Thanks for this contribution! 💙 |
Will do, and I'll let you know when it's done. Thanks @anakin87! |
Please also use standard syntax when linking issues @robpasternak . Because when you use "addresses issue #xyz" it does not automatically link PR and issue, if you use "fixes #xyz" it does 🎉 |
Hey, @robpasternak... Do you think you can add the release note and a unit test or two? if you can't, we'll do it when possible... |
@anakin87 Sorry, this slipped off the docket. I'll get that done tomorrow. |
Thanks, @robpasternak! Please make sure to merge the v1.x branch. |
* cast to PromptModelInvocationLayer * fix pylint pointless-exception-statement * use two variables to avoid re-assignment * black * use mocked tokenizer in unit test
f801d7c
to
fe07486
Compare
@robpasternak I took the liberty of rebasing your branch. Apart from one failed test, it seems to be in good shape... |
@anakin87 Great, thanks! I'll sort the failed tests out. |
@anakin87 Fixed the tests and the checks all passed! Not sure of the procedure here, should I go ahead and merge? |
I will give it one last look and then merge it... Thanks! (Sorry for not supporting you more but these last few days have been crazy) 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good!
Thanks, and no worries whatsoever! |
Related Issues
JoinDocuments
node with reciprocal rank fusion (PR ready) #5551 by adding weighting and score normalization for reciprocal rank fusion inJoinDocuments
node.Proposed Changes:
How did you test it?
Notes for the reviewer
len(results)
in the formula(weight * len(results)) / (K + rank)
). This has no impact on the rankings or post-normalization scores. But it's useful if we decide to make normalization optional, since in this case the raw scores with equal (or unspecified) weights will be identical to the current raw scores.Checklist
fix:
,feat:
,build:
,chore:
,ci:
,docs:
,style:
,refactor:
,perf:
,test:
.