Skip to content
Snippets Groups Projects
Unverified Commit b86b1015 authored by James Briggs's avatar James Briggs
Browse files

add source to pinecone index

parent 9ed4715c
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ class PineconeIndex(BaseIndex):
api_key = api_key or os.getenv("PINECONE_API_KEY")
if api_key is None:
raise ValueError("Pinecone API key is required.")
return Pinecone(api_key=api_key)
return Pinecone(api_key=api_key, source_tag="semantic-router")
def _init_index(self, force_create: bool = False) -> Union[Any, None]:
index_exists = self.index_name in self.client.list_indexes().names()
......
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