Skip to content

Commit

Permalink
Error msg fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vblagoje committed Sep 11, 2024
1 parent c2797c7 commit 61e458c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def filter_documents(self, filters: Optional[Dict[str, Any]] = None) -> List[Doc
msg = "Filters must be a dictionary"
raise TypeError(msg)
if "operator" not in filters and "conditions" not in filters:
msg = "Legacy filters support has been removed. Please see documentation for new filter syntax."
msg = "Invalid filter syntax. See https://docs.haystack.deepset.ai/docs/metadata-filtering for details."
raise ValueError(msg)

sql_filter = SQL("SELECT * FROM {table_name}").format(table_name=Identifier(self.table_name))
Expand Down

0 comments on commit 61e458c

Please sign in to comment.