Replies: 1 comment 2 replies
-
Hey @denlogv! If I understood your problem correctly, it might just have been fixed with release 1.20. Check out the release notes: https://github.com/deepset-ai/haystack/releases/tag/v1.20.0 Under New Features you should see an entry for the latest changes to how we handle Therefore if you define the correct Let us know if that solves your problem |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
the REST API provided by Haystack has its own syntax for defining metadata filters. It is okay for simple filtering, but sometimes seems to fall short in mirroring the actual filtering abilities of the DocumentStore in use.
Example:
We use the OpenSearchDocumentStore and want a way to define a wildcard query, for example, to filter filenames that contain "invoice" in them. That's how it would look in OpenSearch:
{ "wildcard" : { "content" : { "value" : "*invoice*" } } }
Is there a way to define such a query using Haystack without defining a new operator for wildcard? And if not, what is the recommended way to surpass the Haystack filtering syntax and just send an OpenSearch filter? Currently it looks like one of the options would be to subclass the Retriever and override its
retrieve
method to acceptcustom_query
as a parameter (because now it looks like thecustom_query
template is created during initialization and cannot be dynamically changed).Beta Was this translation helpful? Give feedback.
All reactions