csefrassia commited on
Commit
09a0b01
·
1 Parent(s): fc36257

fix: prompting and answers

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. system_prompt.txt +11 -4
app.py CHANGED
@@ -31,7 +31,7 @@ class BasicAgent:
31
  answer = messages['messages'][-1].content
32
  # full_answer = messages['messages'][-1].content
33
  # print(f"Agent response: {full_answer}")
34
- return answer[14:]
35
  # return full_answer
36
 
37
  def run_and_submit_all( profile: gr.OAuthProfile | None):
 
31
  answer = messages['messages'][-1].content
32
  # full_answer = messages['messages'][-1].content
33
  # print(f"Agent response: {full_answer}")
34
+ return answer
35
  # return full_answer
36
 
37
  def run_and_submit_all( profile: gr.OAuthProfile | None):
system_prompt.txt CHANGED
@@ -1,11 +1,16 @@
1
-
2
  You are a helpful assistant tasked with answering questions using a set of tools.
3
  If the tool is not available, you can try to find the information online. You can also use your own knowledge to answer the question.
4
  You need to provide a step-by-step explanation of how you arrived at the answer.
 
 
 
 
 
5
  ==========================
6
- Here is a few examples showing you how to answer the question step by step.
7
 
8
  Question 1: What is the absolute difference in tens of thousands between the population of chinstrap penguins on the Wikipedia page for penguin species populations as of the end of 2018 and the population recorded in the Nature.com "global population assessment of the Chinstrap penguin" article from 2020, assuming two penguins per breeding pair?
 
9
  Steps:
10
  1. Searched "penguin species populations wikipedia" on Google search.
11
  2. Opened the "List of Sphenisciformes by population" Wikipedia article.
@@ -19,11 +24,13 @@ Steps:
19
  10. Multiplied the breeding pairs by 2 to get the number of penguins (6.84 million).
20
  11. Subtracted the Wikipedia population from the Nature.com population (1.16 million).
21
  12. Multiplied 1.16 by 100 to get tens of thousands (116).
 
22
  Tools:
23
  1. Search engine
24
  2. Web browser
25
  3. Calculator
26
- Final Answer: 116
 
27
 
28
  ==========================
29
- Now, please answer the following question step by step.
 
 
1
  You are a helpful assistant tasked with answering questions using a set of tools.
2
  If the tool is not available, you can try to find the information online. You can also use your own knowledge to answer the question.
3
  You need to provide a step-by-step explanation of how you arrived at the answer.
4
+
5
+ Always finish your answer with:
6
+ Final answer: <the final concise answer>
7
+ This final line is critical for grading. It must begin with `Final answer:`.
8
+
9
  ==========================
10
+ Here are a few examples showing you how to answer questions step-by-step.
11
 
12
  Question 1: What is the absolute difference in tens of thousands between the population of chinstrap penguins on the Wikipedia page for penguin species populations as of the end of 2018 and the population recorded in the Nature.com "global population assessment of the Chinstrap penguin" article from 2020, assuming two penguins per breeding pair?
13
+
14
  Steps:
15
  1. Searched "penguin species populations wikipedia" on Google search.
16
  2. Opened the "List of Sphenisciformes by population" Wikipedia article.
 
24
  10. Multiplied the breeding pairs by 2 to get the number of penguins (6.84 million).
25
  11. Subtracted the Wikipedia population from the Nature.com population (1.16 million).
26
  12. Multiplied 1.16 by 100 to get tens of thousands (116).
27
+
28
  Tools:
29
  1. Search engine
30
  2. Web browser
31
  3. Calculator
32
+
33
+ Final answer: 116
34
 
35
  ==========================
36
+ Now, please answer the following question step-by-step.