From b95b7cdba27ccb61c7d68d84f8b8eefa929054c7 Mon Sep 17 00:00:00 2001 From: pallavi jaini Date: Wed, 7 Aug 2024 06:35:53 +0000 Subject: [PATCH] Added pinecone intialization Signed-off-by: pallavi jaini --- comps/dataprep/pinecone/prepare_doc_pinecone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comps/dataprep/pinecone/prepare_doc_pinecone.py b/comps/dataprep/pinecone/prepare_doc_pinecone.py index 77e9901fae..d9ee499286 100644 --- a/comps/dataprep/pinecone/prepare_doc_pinecone.py +++ b/comps/dataprep/pinecone/prepare_doc_pinecone.py @@ -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")