Update app.py
Browse files
app.py
CHANGED
@@ -187,6 +187,7 @@ pinecone_environment = st.secrets["pinecone_environment"]
|
|
187 |
# AUTHENTICATE/INITIALIZE PINCONE SERVICE
|
188 |
from pinecone import Pinecone
|
189 |
pc = Pinecone(api_key=pinecone_api_key)
|
|
|
190 |
|
191 |
# Define the name of the Pinecone index
|
192 |
index_name = 'mimtssinkqa'
|
@@ -197,9 +198,6 @@ embeddings = OpenAIEmbeddings(openai_api_key=openai_api_key)
|
|
197 |
|
198 |
# LOAD VECTOR STORE FROM EXISTING INDEX
|
199 |
from langchain_community.vectorstores import Pinecone
|
200 |
-
|
201 |
-
import pinecone
|
202 |
-
|
203 |
vector_store = Pinecone.from_existing_index(index_name='mimtssinkqa', embedding=embeddings)
|
204 |
|
205 |
# def ask_with_memory(vector_store, query, chat_history=[]):
|
|
|
187 |
# AUTHENTICATE/INITIALIZE PINCONE SERVICE
|
188 |
from pinecone import Pinecone
|
189 |
pc = Pinecone(api_key=pinecone_api_key)
|
190 |
+
# pc = Pinecone (api_key= 'YOUR_API_KEY')
|
191 |
|
192 |
# Define the name of the Pinecone index
|
193 |
index_name = 'mimtssinkqa'
|
|
|
198 |
|
199 |
# LOAD VECTOR STORE FROM EXISTING INDEX
|
200 |
from langchain_community.vectorstores import Pinecone
|
|
|
|
|
|
|
201 |
vector_store = Pinecone.from_existing_index(index_name='mimtssinkqa', embedding=embeddings)
|
202 |
|
203 |
# def ask_with_memory(vector_store, query, chat_history=[]):
|