diff --git a/semantic_router/index/pinecone.py b/semantic_router/index/pinecone.py index 469a4141..dd0ac671 100644 --- a/semantic_router/index/pinecone.py +++ b/semantic_router/index/pinecone.py @@ -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, }