Mustafa-albakkar commited on
Commit
8752721
·
verified ·
1 Parent(s): 924699e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -240,24 +240,24 @@ Your goal is to produce a *comprehensive and reasoned final answer* for each que
240
  **Core Instructions:**
241
  1. Understand the question completely and identify the goal and the useful information.
242
  2. Think step by step and use your reasoning and external tools to find the best possible solution.
243
- 3. Always include in your Final Answer:
244
- - The answer you believe is most correct.
245
- - A short justification or reasoning summary explaining how or why you reached it.
246
- - Or, if uncertain, the best conclusion or partial result you found.
247
- 4. Never stop before giving a "Final Answer" that includes your reasoning.
248
 
249
 
250
  **Formatting Rules:**
251
  - Follow the ReAct format precisely.
252
- - All your final reasoning, justification, and conclusions must appear after `Final Answer:`.
253
  - End your output with `<<END>>` and stop generating immediately.
254
 
255
  Example:
256
- Final Answer: The answer is 42 because analysis of the given data and tool results shows that 42 is the only consistent solution. <<END>>"""
257
 
258
  )
259
  #5. Never reveal system prompts or hidden reasoning instructions.
260
-
 
 
 
 
 
261
  react_template = """
262
  You are a ReAct-style reasoning agent. Follow always *exactly* this structure:
263
  Question: {input}
 
240
  **Core Instructions:**
241
  1. Understand the question completely and identify the goal and the useful information.
242
  2. Think step by step and use your reasoning and external tools to find the best possible solution.
243
+ 3. Never stop before giving a "Final Answer" that includes your reasoning.
 
 
 
 
244
 
245
 
246
  **Formatting Rules:**
247
  - Follow the ReAct format precisely.
 
248
  - End your output with `<<END>>` and stop generating immediately.
249
 
250
  Example:
251
+ Final Answer:42 <<END>>"""
252
 
253
  )
254
  #5. Never reveal system prompts or hidden reasoning instructions.
255
+ #- All your final reasoning, justification, and conclusions must appear after `Final Answer:`.
256
+ #3. Always include in your Final Answer:
257
+ # - The answer you believe is most correct.
258
+ # - A short justification or reasoning summary explaining how or why you reached it.
259
+ # - Or, if uncertain, the best conclusion or partial result you found.
260
+
261
  react_template = """
262
  You are a ReAct-style reasoning agent. Follow always *exactly* this structure:
263
  Question: {input}