@@ -141,25 +141,22 @@ def __init__(
141
141
{
142
142
"role" : "system" ,
143
143
"content" : (
144
- "Given a question, determine whether the answer requires initial data filtering in order to compute it.\n "
145
- "Initial data filtering is a process in which the result set is reduced to only include the rows "
146
- "that meet certain criteria specified in the question.\n \n "
144
+ "Given a question, determine whether the answer requires data filtering in order to compute it.\n "
145
+ "Data filtering is a process in which the result set is filtered based on the specific features "
146
+ "stated in the question. Such a question can be easily identified by using words that refer to "
147
+ "specific feature values (rather than feature names).\n "
148
+ "Look for words indicating specific values that the answer should contain. \n \n "
147
149
"---\n \n "
148
150
"Follow the following format.\n \n "
149
151
"Question: ${{question}}\n "
150
- "Hint: ${{hint}}"
151
152
"Reasoning: Let's think step by step in order to ${{produce the decision}}. We...\n "
152
- "Decision: indicates whether the answer to the question requires initial data filtering. "
153
+ "Decision: indicates whether the answer to the question requires data filtering. "
153
154
"(Respond with True or False)\n \n "
154
155
),
155
156
},
156
157
{
157
158
"role" : "user" ,
158
- "content" : (
159
- "Question: {question}\n "
160
- "Hint: Look for words indicating data specific features.\n "
161
- "Reasoning: Let's think step by step in order to "
162
- ),
159
+ "content" : ("Question: {question}\n " "Reasoning: Let's think step by step in order to " ),
163
160
},
164
161
],
165
162
response_parser = _decision_parser ,
@@ -170,8 +167,11 @@ def __init__(
170
167
{
171
168
"role" : "system" ,
172
169
"content" : (
173
- "Given a question, determine whether the answer requires computing the aggregation in order to compute it.\n "
174
- "Aggregation is a process in which the result set is reduced to a single value.\n \n "
170
+ "Given a question, determine whether the answer requires data aggregation in order to compute it.\n "
171
+ "Data aggregation is a process in which we calculate a single values for a group of rows in the "
172
+ "result set.\n "
173
+ "Most common aggregation functions are counting, averaging, summing, but other types of aggregation "
174
+ "are possible.\n \n "
175
175
"---\n \n "
176
176
"Follow the following format.\n \n "
177
177
"Question: ${{question}}\n "
@@ -182,7 +182,7 @@ def __init__(
182
182
},
183
183
{
184
184
"role" : "user" ,
185
- "content" : ( "Question: {question}\n " "Reasoning: Let's think step by step in order to " ) ,
185
+ "content" : "Question: {question}\n " "Reasoning: Let's think step by step in order to " ,
186
186
},
187
187
],
188
188
response_parser = _decision_parser ,
0 commit comments