naman1102 commited on
Commit
44b027e
·
1 Parent(s): 319e085

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -201,7 +201,7 @@ def inspect_node(state: AgentState) -> AgentState:
201
  # (3) Always show the interim answer
202
  interim = state.get("interim_answer", "")
203
  messages_for_llm.append(SystemMessage(content=f"INTERIM_ANSWER: {interim}"))
204
-
205
  # (4) Prompt GPT to produce a polished final answer
206
  prompt = (
207
  "You have the user’s question, any relevant tool results above,"
 
201
  # (3) Always show the interim answer
202
  interim = state.get("interim_answer", "")
203
  messages_for_llm.append(SystemMessage(content=f"INTERIM_ANSWER: {interim}"))
204
+ messages_for_llm.append(HumanMessage(content="Please write a polished final answer, with no explanation at all."))
205
  # (4) Prompt GPT to produce a polished final answer
206
  prompt = (
207
  "You have the user’s question, any relevant tool results above,"