-
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: Add filter_policy init parameter to in memory retrievers #7795
Conversation
Pull Request Test Coverage Report for Build 9364808613Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
@Amnah199 have a look but I'll also ask @silvanocerza as well - he has more background on this task |
Would be great if we go the direction we're going with other Components and use an Lines 62 to 92 in 74df8ed
And is used here in the
We could define that in the The only downside is that we'd have to wait to update the integrations after this. If it's urgent we could support for |
Sure let me do that 🙏 |
@silvanocerza why not add apply_filters to this Enum then?
|
@vblagoje let's keep it simple and not do that. Might be a bit counter intuitive that way, and it also adds some indirection. |
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.
Nice! 👍
Before we merge @silvanocerza - how do we proceed with deepset-ai/haystack-core-integrations#781 after this integration? We can't use this FilterPolicy abstraction until next minor/patch release? But that should be soon anyway...right? |
If it's not urgent let's update the PR in integration to uses the new If it's urgent I would suggest changing a bit this PR, so that the retrievers support both |
No worries, this is not urgent by any means. I'll convert the other PR to draft and update it accordingly. |
* Add filter_policy init parameter to in-memory retrievers
A companion PR for deepset-ai/haystack-core-integrations#781 adding
filter_policy
parameter with options replace and merge for in memory retrievers.Do not merge before we understand how to proceed with deepset-ai/haystack-core-integrations#781 and this PR in sync.