Libroru commited on
Commit
2435eec
1 Parent(s): 602be93

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -144,8 +144,9 @@ def setup_ai():
144
 
145
  # Create a chat engine from the index
146
  chat_engine = index.as_chat_engine(
 
147
  system_prompt=system_prompt,
148
- context_str=context_str
149
  )
150
 
151
  def response(message, history):
 
144
 
145
  # Create a chat engine from the index
146
  chat_engine = index.as_chat_engine(
147
+ chat_mode="context",
148
  system_prompt=system_prompt,
149
+ context_template=context_str
150
  )
151
 
152
  def response(message, history):