We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa90109 commit 212be8cCopy full SHA for 212be8c
1 file changed
integrations/pinecone/src/haystack_integrations/document_stores/pinecone/document_store.py
@@ -98,7 +98,11 @@ def _initialize_index(self) -> None:
98
f"Connecting to existing index {self.index_name}. `dimension`, `spec`, and `metric` will be ignored."
99
)
100
101
- self._index = client.Index(name=self.index_name)
+ # client.Index returns _Index | GrpcIndex, but using the correct type would require bumping up the pinecone
102
+ # minimum supported version
103
+ self._index = client.Index(name=self.index_name) # type: ignore[assignment]
104
+
105
+ assert self._index is not None
106
107
actual_dimension = self._index.describe_index_stats().get("dimension")
108
if actual_dimension and actual_dimension != self.dimension:
0 commit comments