Skip to content
Snippets Groups Projects
Unverified Commit 80bcc4a3 authored by James Briggs's avatar James Briggs
Browse files

fix: add namespace to get all for pinecone

parent a4404fa1
No related branches found
No related tags found
No related merge requests found
......@@ -188,6 +188,8 @@ class PineconeIndex(BaseIndex):
# Construct the request URL for listing vectors. Adjust parameters as needed.
list_url = f"https://{self.host}/vectors/list{prefix_str}"
params: Dict = {}
if self.namespace:
params["namespace"] = self.namespace
headers = {"Api-Key": os.environ["PINECONE_API_KEY"]}
metadata = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment