Skip to content

Commit

Permalink
Added pinecone intialization
Browse files Browse the repository at this point in the history
  • Loading branch information
pallavijaini0525 committed Aug 7, 2024
1 parent fed7c89 commit 1d290c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comps/dataprep/pinecone/prepare_doc_pinecone.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

def check_index_existance(client):
print(f"[ check index existence ] checking {PINECONE_INDEX_NAME}")

pc = Pinecone(api_key=PINECONE_API_KEY)
existing_indexes = [index_info["name"] for index_info in pc.list_indexes()]
if PINECONE_INDEX_NAME not in existing_indexes:
print("[ check index existence ] index does not exist")
Expand Down

0 comments on commit 1d290c7

Please sign in to comment.