From 61e458c199c1ec46c78067499be7b5969d5882de Mon Sep 17 00:00:00 2001 From: Vladimir Blagojevic Date: Wed, 11 Sep 2024 12:36:13 +0200 Subject: [PATCH] Error msg fmt --- .../document_stores/pgvector/document_store.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))