Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,10 +32,10 @@ embeddings = OpenAIEmbeddings(api_key=openai_api_key)
|
|
32 |
|
33 |
# Initialize Pinecone with PineconeGRPC
|
34 |
from pinecone import Pinecone
|
35 |
-
pc = Pinecone(api_key=os.environ['PINECONE_API_KEY'])
|
36 |
-
# Define index name and parameters
|
37 |
-
index_name = "italy-kg"
|
38 |
-
vectorstore = PineconeVectorStore(index_name=index_name, embedding=embeddings)
|
39 |
|
40 |
#Dynamic Pinecone Creation
|
41 |
|
|
|
32 |
|
33 |
# Initialize Pinecone with PineconeGRPC
|
34 |
from pinecone import Pinecone
|
35 |
+
# pc = Pinecone(api_key=os.environ['PINECONE_API_KEY'])
|
36 |
+
# # Define index name and parameters
|
37 |
+
# index_name = "italy-kg"
|
38 |
+
# vectorstore = PineconeVectorStore(index_name=index_name, embedding=embeddings)
|
39 |
|
40 |
#Dynamic Pinecone Creation
|
41 |
|