Skip to content
Snippets Groups Projects
Unverified Commit 5d59a8ba authored by James Briggs's avatar James Briggs Committed by GitHub
Browse files

Merge pull request #270 from aurelio-labs/james/add-namespace-to-get-all

fix: add namespace to get all for pinecone
parents a4404fa1 80bcc4a3
No related branches found
No related tags found
No related merge requests found
...@@ -188,6 +188,8 @@ class PineconeIndex(BaseIndex): ...@@ -188,6 +188,8 @@ class PineconeIndex(BaseIndex):
# Construct the request URL for listing vectors. Adjust parameters as needed. # Construct the request URL for listing vectors. Adjust parameters as needed.
list_url = f"https://{self.host}/vectors/list{prefix_str}" list_url = f"https://{self.host}/vectors/list{prefix_str}"
params: Dict = {} params: Dict = {}
if self.namespace:
params["namespace"] = self.namespace
headers = {"Api-Key": os.environ["PINECONE_API_KEY"]} headers = {"Api-Key": os.environ["PINECONE_API_KEY"]}
metadata = [] 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