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
{{ message }}
Repository navigation
Metadata filters raise a cryptic KeyError on unknown/typo'd operators instead of FilterError #11794
When a metadata filter uses an operator that isn't supported (a typo such as gt/lt/eq/contains instead of >/</==/in, or a wrong logical operator like XOR), document_matches_filter raises a bare KeyError with no guidance, instead of the FilterError that the rest of the filter validation already uses.
This happens in haystack/utils/filters.py, which is the shared filter engine used by InMemoryDocumentStore and every external document store (Weaviate, Pinecone, OpenSearch, …), so the cryptic error surfaces across all stores.
A FilterError explaining that the operator is unsupported and listing the valid operators — consistent with how other malformed filters (missing keys, wrong value types) are already reported.
Activity