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) 😄 |
|
Thanks, and no worries whatsoever! |
Related Issues
JoinDocumentsnode with reciprocal rank fusion (PR ready) #5551 by adding weighting and score normalization for reciprocal rank fusion inJoinDocumentsnode.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:.