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 c985d62c4..13f40a6df 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 @@ -172,8 +172,6 @@ def _execute_sql( try: result = cursor.execute(sql_query, params) - # sql_query_str = sql_query.as_string(cursor) if not isinstance(sql_query, str) else sql_query - # print(f"SQL query: {sql_query_str} \nParameters: {params}") except Error as e: self._connection.rollback() sql_query_str = sql_query.as_string(cursor) if not isinstance(sql_query, str) else sql_query @@ -524,4 +522,4 @@ def _embedding_retrieval( records = result.fetchall() docs = self._from_pg_to_haystack_documents(records) - return docs + return docs \ No newline at end of file diff --git a/integrations/pgvector/tests/test_filters.py b/integrations/pgvector/tests/test_filters.py index a0d3068f9..8b2dc8ec9 100644 --- a/integrations/pgvector/tests/test_filters.py +++ b/integrations/pgvector/tests/test_filters.py @@ -70,8 +70,7 @@ def test_complex_filter(self, document_store, filterable_docs): ) @pytest.mark.skip(reason="NOT operator is not supported in PgvectorDocumentStore") - def test_not_operator(self, document_store, filterable_docs): - ... + def test_not_operator(self, document_store, filterable_docs): ... def test_treat_meta_field(self): assert _treat_meta_field(field="meta.number", value=9) == "(meta->>'number')::integer"