Spaces:
Runtime error
Runtime error
Commit
·
38e525d
1
Parent(s):
65d9d5b
remove memo
Browse files
app.py
CHANGED
@@ -391,10 +391,17 @@ SUFFIX = """Begin!
|
|
391 |
Question: {input}
|
392 |
Thought:{agent_scratchpad}"""
|
393 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
394 |
prompt = ZeroShotAgent.create_prompt(
|
395 |
tools,
|
396 |
prefix=PREFIX,
|
397 |
-
suffix=
|
398 |
format_instructions=FORMAT_INSTRUCTIONS,
|
399 |
input_variables=["input", "chat_history", "agent_scratchpad"]
|
400 |
)
|
|
|
391 |
Question: {input}
|
392 |
Thought:{agent_scratchpad}"""
|
393 |
|
394 |
+
SUFFIX2 = """Begin!
|
395 |
+
|
396 |
+
{chat_history}
|
397 |
+
Question: {input}
|
398 |
+
Thought:{agent_scratchpad}"""
|
399 |
+
|
400 |
+
|
401 |
prompt = ZeroShotAgent.create_prompt(
|
402 |
tools,
|
403 |
prefix=PREFIX,
|
404 |
+
suffix=SUFFIX2,
|
405 |
format_instructions=FORMAT_INSTRUCTIONS,
|
406 |
input_variables=["input", "chat_history", "agent_scratchpad"]
|
407 |
)
|