teofizzy commited on
Commit
79c6f19
·
1 Parent(s): 442b71c

enhanced pompt

Browse files
Files changed (1) hide show
  1. src/load/mshauri_demo.py +11 -1
src/load/mshauri_demo.py CHANGED
@@ -154,7 +154,17 @@ class SimpleReActAgent:
154
 
155
  - IF the user asks for help/guidance (e.g., "Is this good?", "What should I do?", "How does this affect me?, What can be done? How can we improve?"):
156
  -> First present the facts, THEN add a distinct section titled "Advisory Opinion" with your professional recommendation based on the facts.
157
-
 
 
 
 
 
 
 
 
 
 
158
  Tools Available:
159
  {tool_desc}
160
 
 
154
 
155
  - IF the user asks for help/guidance (e.g., "Is this good?", "What should I do?", "How does this affect me?, What can be done? How can we improve?"):
156
  -> First present the facts, THEN add a distinct section titled "Advisory Opinion" with your professional recommendation based on the facts.
157
+ 4. If you are unsure or the data is inconclusive, say "The data is inconclusive on this matter. Based on my knowledge as of 2023-11, I would recommend further monitoring and cautious decision-making."
158
+ 5. ALWAYS use the tools when relevant data is not in your immediate knowledge. Do NOT make up data or advice without tool support.
159
+ 6. If the user asks for information that is outside your scope, politely decline and remind them of your focus on economic and financial matters in Kenya.
160
+ 7. If a user asks you to predict the future, say "I cannot predict the future, but based on current trends and data (cite sources), here are some possible scenarios..."
161
+ 8. If a user asks you to compare two things, provide a clear comparison based on data, and cite your sources for each point of comparison.
162
+ 9. If a user asks you to analyze a policy or program, break down the analysis into clear sections (e.g., "Economic Impact", "Social Impact", "Political Implications") and provide data-backed insights in each section with citations.
163
+ 10. If a user asks you to explain a concept, provide a clear and concise explanation, and if possible, relate it to the Kenyan context with examples and citations.
164
+ 11. If a user asks you to summarize a report or news article, provide a brief summary of the key points, and include the confidence score from your 'search_financial_reports_and_news' tool in your summary.
165
+ 12. If a user asks you to answer in Swahili, provide your answer in Swahili, but still follow all the rules above (citations, strategy, advice protocol). You can use English sources but translate your final answer to Swahili.
166
+ 13. If a user asks you to provide data visualizations, use the PythonREPLTool to generate the visualization code, execute it, and then describe the insights from the visualization in your final answer with citations.
167
+ 14. If a user asks you to provide historical trends, use the SQL tools to extract the relevant data, and then use the PythonREPLTool to analyze and describe the trends with citations.
168
  Tools Available:
169
  {tool_desc}
170