Skip to content

Commit

Permalink
Handle empty retrieved Pinecone index values (#17242)
Browse files Browse the repository at this point in the history
  • Loading branch information
Georgehe4 authored Dec 11, 2024
1 parent 4500005 commit b876e73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,10 @@ def delete(self, ref_doc_id: str, **delete_kwargs: Any) -> None:
prefix=ref_doc_id, namespace=self.namespace
)
ids_to_delete = list(id_gen)
self._pinecone_index.delete(
ids=ids_to_delete, namespace=self.namespace, **delete_kwargs
)
if ids_to_delete:
self._pinecone_index.delete(
ids=ids_to_delete, namespace=self.namespace, **delete_kwargs
)

def delete_nodes(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exclude = ["**/BUILD"]
license = "MIT"
name = "llama-index-vector-stores-pinecone"
readme = "README.md"
version = "0.4.1"
version = "0.4.2"

[tool.poetry.dependencies]
python = ">=3.9,<3.13"
Expand Down

0 comments on commit b876e73

Please sign in to comment.