iAIChat commited on
Commit
eb1e08d
·
1 Parent(s): a9130a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -131,6 +131,7 @@ chain = load_qa_chain(llm=llm, chain_type="stuff", prompt=PROMPT)
131
  #chain = load_qa_chain(llm=llm, chain_type="stuff")
132
 
133
  def run_chain(user_query):
 
134
  if user_query !="" and not user_query.strip().isspace() and not user_query.isspace():
135
  print("Your query:\n"+user_query)
136
  vector_db_from_index = Pinecone.from_existing_index(index_name, hf_embeddings, namespace=namespace)
 
131
  #chain = load_qa_chain(llm=llm, chain_type="stuff")
132
 
133
  def run_chain(user_query):
134
+ pinecone.init(api_key=PINECONE_API_KEY, environment=PINECONE_ENVIRONMENT)
135
  if user_query !="" and not user_query.strip().isspace() and not user_query.isspace():
136
  print("Your query:\n"+user_query)
137
  vector_db_from_index = Pinecone.from_existing_index(index_name, hf_embeddings, namespace=namespace)