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

fix: pinecone init logic

parent 0477b866
No related branches found
No related tags found
No related merge requests found
...@@ -238,7 +238,10 @@ class PineconeIndex(BaseIndex): ...@@ -238,7 +238,10 @@ class PineconeIndex(BaseIndex):
) )
index = None index = None
if self.index is not None and self.host == "": if self.index is not None and self.host == "":
index = self.index
self.host = self.client.describe_index(self.index_name)["host"] self.host = self.client.describe_index(self.index_name)["host"]
elif self.index is not None:
index = self.index
return index return index
async def _init_async_index(self, force_create: bool = False): async def _init_async_index(self, force_create: bool = False):
......
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