You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Currently when trying to use a custom_query for the OpenSearchEmbeddingRetriever it errors out with default filters. Standard use allows optional filters and the documentation notes that the filters are optional with custom_query. However it looks like filters are required and will error out if {} or None is provided to OpenSearchEmbeddingRetriever.run()
Describe the bug
Currently when trying to use a
custom_query
for theOpenSearchEmbeddingRetriever
it errors out with default filters. Standard use allows optional filters and the documentation notes that the filters are optional withcustom_query
. However it looks like filters are required and will error out if{}
orNone
is provided toOpenSearchEmbeddingRetriever.run()
Bug appears to be here : https://github.com/deepset-ai/haystack-core-integrations/blob/main/integrations/opensearch/src/haystack_integrations/document_stores/opensearch/document_store.py#L499
The call of
normalize_filters
errors out here if default filters are providedProbably a better way to fix this, but I think something like this would make sense?
To Reproduce
Here's a sample piece of code I ran
Works as expected when I add in the
$filters
parameter and validfilters
.Describe your environment (please complete the following information):
The text was updated successfully, but these errors were encountered: