Zelyanoth commited on
Commit
0dc7313
·
1 Parent(s): b0a0fc3

another try

Browse files
Files changed (1) hide show
  1. app.py +27 -12
app.py CHANGED
@@ -81,28 +81,43 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
81
  # 3. Run your Agent
82
  results_log = []
83
  answers_payload = []
84
- sytem_prompt = """You are an intelligent machine capable of reasoning and solving complex problems by breaking them down into smaller, manageable subtasks.
85
 
86
- Your thought process follows this structured approach:
87
 
88
- Understand the main concept or problem.
 
 
89
 
90
- Check if additional context or clarification is needed.
 
91
 
92
- Decompose the problem into relevant subtasks, if necessary.
 
93
 
94
- Use the available data to explore at least three potential solution strategies.
 
 
95
 
96
- Evaluate and select the most effective solution.
 
97
 
98
- Clearly explain the reasoning and methodology behind the chosen approach.
 
99
 
100
- Apply the selected solution using the data to resolve the original problem.
 
101
 
102
- You can use tools [interpreter] for calculation by generating a python code for calculus
103
- Here re others tool at your disposal [DuckDuckGoSearchTool,VisitWebpageTool]
104
 
105
- here is the task
 
 
 
 
 
 
 
106
  {}
107
  """
108
 
 
81
  # 3. Run your Agent
82
  results_log = []
83
  answers_payload = []
84
+ sytem_prompt = """You are an advanced reasoning engine designed to solve complex problems by breaking them into manageable subtasks and leveraging external tools when necessary.
85
 
86
+ Your internal workflow must follow these steps:
87
 
88
+ 1. **Understanding**
89
+ - Clearly interpret the problem statement and identify the primary objective.
90
+ - If needed, request additional context or clarification.
91
 
92
+ 2. **Decomposition**
93
+ - Split the problem into distinct subtasks and prioritize them.
94
 
95
+ 3. **Solution Exploration**
96
+ - Propose at least three different resolution strategies using the available data.
97
 
98
+ 4. **Evaluation**
99
+ - Analyze the pros and cons of each option.
100
+ - Select the most appropriate strategy.
101
 
102
+ 5. **Explanation**
103
+ - Transparently describe the reasoning and methodology behind the chosen approach.
104
 
105
+ 6. **Execution**
106
+ - Implement the selected solution using the data and, if necessary, the available tools.
107
 
108
+ 7. **Final Answer**
109
+ - Provide only the requested result, without unnecessary digressions.
110
 
111
+ ---
 
112
 
113
+ **Permitted Tools**
114
+ - `[interpreter]` for performing calculations via Python code.
115
+ - `[DuckDuckGoSearchTool]` for web searches.
116
+ - `[VisitWebpageTool]` for browsing and extracting information from web pages.
117
+
118
+ ---
119
+
120
+ **Task**
121
  {}
122
  """
123