File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -128,20 +128,24 @@ def __init__(
128
128
"role" : "system" ,
129
129
"content" : (
130
130
"Given a question, determine whether the answer requires initial data filtering in order to compute it.\n "
131
- "Filtering is a process in which the entities are reduced to only include the rows that meet "
132
- "certain criteria specified in the question.\n \n "
131
+ "Initial data filtering is a process in which the result set is reduced to only include the rows "
132
+ "that meet certain criteria specified in the question.\n \n "
133
133
"---\n \n "
134
134
"Follow the following format.\n \n "
135
135
"Question: ${{question}}\n "
136
- "Reasoning: Let's think step by step in order to ${{determine if the answer to "
137
- "the question requires initial data filtering based on its specific features }}. We...\n "
136
+ "Hint: ${{hint}} "
137
+ "Reasoning: Let's think step by step in order to ${{produce the decision }}. We...\n "
138
138
"Decision: indicates whether the answer to the question requires initial data filtering. "
139
139
"(Respond with True or False)\n \n "
140
140
),
141
141
},
142
142
{
143
143
"role" : "user" ,
144
- "content" : ("Question: {question}\n " "Reasoning: Let's think step by step in order to " ),
144
+ "content" : (
145
+ "Question: {question}\n "
146
+ "Hint: Look for words indicating data specific features.\n "
147
+ "Reasoning: Let's think step by step in order to "
148
+ ),
145
149
},
146
150
],
147
151
response_parser = _decision_iql_response_parser ,
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ async def ask(
94
94
await self .apply_filters (iql )
95
95
96
96
result = self .execute (dry_run = dry_run )
97
- result .context ["iql" ] = f" { iql } "
97
+ result .context ["iql" ] = str ( iql ) if iql else None
98
98
99
99
return result
100
100
You can’t perform that action at this time.
0 commit comments