themeetjani commited on
Commit
f501a4f
1 Parent(s): 885cafc

Update pages/AI_Chatbot.py

Browse files
Files changed (1) hide show
  1. pages/AI_Chatbot.py +1 -1
pages/AI_Chatbot.py CHANGED
@@ -37,7 +37,7 @@ def lang(ques):
37
  docs = Document(page_content=context)
38
  index2 = VectorstoreIndexCreator().from_documents([docs])
39
  answer = index2.query(llm = model, question = ques)
40
- index2.vectorstore.delete_collection()
41
  return answer
42
  def qna(ques):
43
  session_state['answer']= lang(ques)
 
37
  docs = Document(page_content=context)
38
  index2 = VectorstoreIndexCreator().from_documents([docs])
39
  answer = index2.query(llm = model, question = ques)
40
+ index2.vectorstore.delete()
41
  return answer
42
  def qna(ques):
43
  session_state['answer']= lang(ques)