Skip to content

Commit

Permalink
Merge pull request #490 from aurelio-labs/vittorio/fix-namespace-aget…
Browse files Browse the repository at this point in the history
…-routes

fix: Fixed namespace missing in _async_fetch_metadata inside Pinecone
  • Loading branch information
Vits-99 authored Dec 17, 2024
2 parents a322c25 + 6320f6d commit 26cb074
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions semantic_router/index/pinecone.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,9 @@ async def _async_fetch_metadata(self, vector_id: str) -> dict:
"ids": [vector_id],
}

if self.namespace:
params["namespace"] = [self.namespace]

headers = {
"Api-Key": self.api_key,
}
Expand Down

0 comments on commit 26cb074

Please sign in to comment.