diff --git a/integrations/pinecone/src/pinecone_haystack/document_store.py b/integrations/pinecone/src/pinecone_haystack/document_store.py index af295e0c0..e9a063f18 100644 --- a/integrations/pinecone/src/pinecone_haystack/document_store.py +++ b/integrations/pinecone/src/pinecone_haystack/document_store.py @@ -158,6 +158,8 @@ def filter_documents(self, filters: Optional[Dict[str, Any]] = None) -> List[Doc if not filters: # in this case, we try to return all documents but Pinecone has some limits documents = self._embedding_retrieval(query_embedding=self._dummy_vector, top_k=TOP_K_LIMIT) + for doc in documents: + doc.score = None total_docs_number = self.count_documents() if total_docs_number > TOP_K_LIMIT: