Upload app.py
Browse files
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 |
-
|
| 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):
|