Golfn commited on
Commit
975bc24
·
1 Parent(s): 3420ed3

modify prompt

Browse files
Files changed (1) hide show
  1. Alfred_Agent.py +4 -7
Alfred_Agent.py CHANGED
@@ -69,23 +69,20 @@ If the current question is identical to or semantically equivalent to a referenc
69
 
70
  Otherwise, reason through the question as needed to determine the correct answer.
71
 
72
- Always end your response using this format:
73
- FINAL ANSWER: [YOUR FINAL ANSWER]
74
-
75
- Formatting rules:
76
  - If the answer is a number, do not use commas or units (unless specifically requested).
77
  - If the answer is a string, do not use articles, abbreviations, or short forms. Write digits in full unless specified otherwise.
78
  - If the answer is a comma-separated list, apply the above rules to each item and include exactly one space after each comma.
79
- - If the question matches a reference question, reply with:
80
- FINAL ANSWER: [the answer to the reference question].
81
 
82
- Do not include any explanation or extra text outside the FINAL ANSWER line.
83
  """)
84
 
85
 
86
 
87
 
88
 
 
89
  # Generate the AgentState and Agent graph
90
  from langgraph.graph import MessagesState #the same as AgentState
91
  # class AgentState(TypedDict):
 
69
 
70
  Otherwise, reason through the question as needed to determine the correct answer.
71
 
72
+ Your output must follow these formatting rules:
 
 
 
73
  - If the answer is a number, do not use commas or units (unless specifically requested).
74
  - If the answer is a string, do not use articles, abbreviations, or short forms. Write digits in full unless specified otherwise.
75
  - If the answer is a comma-separated list, apply the above rules to each item and include exactly one space after each comma.
76
+ - If the question matches a reference question, return the reference answer exactly as it appears.
 
77
 
78
+ Do not include any explanation, prefix, or extra text—output only the final answer.
79
  """)
80
 
81
 
82
 
83
 
84
 
85
+
86
  # Generate the AgentState and Agent graph
87
  from langgraph.graph import MessagesState #the same as AgentState
88
  # class AgentState(TypedDict):