-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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: Adds all_terms_must_match parameter to BM25Retriever at runtime #3627
feat: Adds all_terms_must_match parameter to BM25Retriever at runtime #3627
Conversation
Signed-off-by: Unai Garay <unaigaraymaestre@gmail.com>
…/github.com/ugm2/haystack into feat/add_all_terms_must_match_bm25_retrieve
@ugm2 Thanks for opening the PR. I will get back to you on this in a day :) |
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.
Comments addressed, but mypy keeps failing. Also, I've merged haystack's main branch into mine
I am looking into it! :) |
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.
HI! Just some changes to align with our tone of voice guidelines :)
Co-authored-by: Agnieszka Marzec <97166305+agnieszka-m@users.noreply.github.com>
Co-authored-by: Agnieszka Marzec <97166305+agnieszka-m@users.noreply.github.com>
Co-authored-by: Agnieszka Marzec <97166305+agnieszka-m@users.noreply.github.com>
Co-authored-by: Agnieszka Marzec <97166305+agnieszka-m@users.noreply.github.com>
Co-authored-by: Agnieszka Marzec <97166305+agnieszka-m@users.noreply.github.com>
Co-authored-by: Agnieszka Marzec <97166305+agnieszka-m@users.noreply.github.com>
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.
Kudos @ugm2 !
LGTM!
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.
LGTM!
Related Issues
all_terms_must_match
inBM25Retriever
should be able to be passed at runtime too #3613Proposed Changes:
Adds
all_terms_must_match
as a runtime parameter to BM25Retriever. This allows the user to switch between partial or full matching of words without having to recreate the Node or the Pipeline.How did you test it?
I added a unit test where I test passing the parameter to both the init and the run functions.
Checklist