Skip to content

Commit

Permalink
Fixed namespace missing in _async_fetch_metadata inside Pinecone
Browse files Browse the repository at this point in the history
  • Loading branch information
Vits-99 committed Dec 17, 2024
1 parent a322c25 commit 1486079
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

Check warning on line 657 in semantic_router/index/pinecone.py

View check run for this annotation

Codecov / codecov/patch

semantic_router/index/pinecone.py#L656-L657

Added lines #L656 - L657 were not covered by tests

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

0 comments on commit 1486079

Please sign in to comment.