diff --git a/integrations/pgvector/src/haystack_integrations/document_stores/pgvector/document_store.py b/integrations/pgvector/src/haystack_integrations/document_stores/pgvector/document_store.py index 50dd87a25..a02c46200 100644 --- a/integrations/pgvector/src/haystack_integrations/document_stores/pgvector/document_store.py +++ b/integrations/pgvector/src/haystack_integrations/document_stores/pgvector/document_store.py @@ -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))