shoom013 commited on
Commit
f9183b0
1 Parent(s): 8dc627d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -99,8 +99,8 @@ def upload_file(filepath):
99
  documents = SimpleDirectoryReader(filepath).load_data()
100
  index = VectorStoreIndex.from_documents(documents)
101
  #query_engine = index.as_query_engine()
102
- #condense_question
103
- chat_engine = index.as_chat_engine(chat_mode="condense_plus_context", verbose=True)
104
  return filepath
105
 
106
  def resetChat():
 
99
  documents = SimpleDirectoryReader(filepath).load_data()
100
  index = VectorStoreIndex.from_documents(documents)
101
  #query_engine = index.as_query_engine()
102
+ #condense_question condense_plus_context
103
+ chat_engine = index.as_chat_engine(chat_mode="best", verbose=True)
104
  return filepath
105
 
106
  def resetChat():