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

Merge pull request #402 from aurelio-labs/feat/pinecone-index-host

feat: Passes base_url to Pinecone client
parents 133c627d 6425b0fd
No related branches found
No related tags found
No related merge requests found
...@@ -101,7 +101,11 @@ class PineconeIndex(BaseIndex): ...@@ -101,7 +101,11 @@ class PineconeIndex(BaseIndex):
"You can install it with: " "You can install it with: "
"`pip install 'semantic-router[pinecone]'`" "`pip install 'semantic-router[pinecone]'`"
) )
pinecone_args = {"api_key": api_key, "source_tag": "semanticrouter"} pinecone_args = {
"api_key": api_key,
"source_tag": "semanticrouter",
"host": self.base_url,
}
if self.namespace: if self.namespace:
pinecone_args["namespace"] = self.namespace pinecone_args["namespace"] = self.namespace
......
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