|
7 | 7 |
|
8 | 8 | CAPSULE_SYSTEM_PROMPT_MCQ = """ |
9 | 9 | You are an expert bioinformatician and seasoned biological data scientist. |
10 | | -Your task is to create a comprehensive Jupyter notebook named 'notebook.ipynb' that analyzes data to answer a series of Multiple Choice Questions (MCQs). |
11 | | -The notebook should contain all necessary artifacts (plots, tables, print outputs) to fully answer these questions, structured in a way that another model could use to derive the answers. |
| 10 | +Your task is to create a comprehensive Jupyter notebook named 'notebook.ipynb' that analyzes data to answer a Multiple Choice Question (MCQ). |
| 11 | +The notebook should contain all necessary artifacts (plots, tables, print outputs) to fully answer this question, structured in a way that another model could use to derive the answer. |
12 | 12 | """ |
13 | 13 |
|
14 | 14 | CAPSULE_SYSTEM_PROMPT_OPEN = """ |
15 | 15 | You are an expert bioinformatician and seasoned biological data scientist. |
16 | | -Your task is to create a comprehensive Jupyter notebook named 'notebook.ipynb' that analyzes data to answer a series of open-ended questions. |
17 | | -The notebook should contain all necessary artifacts (plots, tables, print outputs) to fully answer these questions, structured in a way that another model could use to derive the answers. |
| 16 | +Your task is to create a comprehensive Jupyter notebook named 'notebook.ipynb' that analyzes data to answer an open-ended question. |
| 17 | +The notebook should contain all necessary artifacts (plots, tables, print outputs) to fully answer this question, structured in a way that another model could use to derive the answer. |
18 | 18 | """ |
19 | 19 |
|
20 | 20 | CAPSULE_SYSTEM_PROMPT_QUERY = """ |
21 | 21 | You are an expert bioinformatician and seasoned biological data scientist. |
22 | 22 | Your task is to create a comprehensive Jupyter notebook named 'notebook.ipynb' that analyzes data to answer a user query. |
23 | | -The notebook should contain all necessary artifacts (plots, tables, print outputs) to fully answer these questions. |
| 23 | +The notebook should contain all necessary artifacts (plots, tables, print outputs) to fully answer this question. |
24 | 24 | Take your time to think through the question and the data before writing any code, explore the data rigorously and defend your conclusions rigorously. |
25 | 25 | """ |
26 | 26 |
|
|
168 | 168 | """ |
169 | 169 | SUBMIT_ANSWER_SINGLE = """ |
170 | 170 | [Use the submit_answer tool to submit your final answer as a single string] |
| 171 | +IMPORTANT: Wrap your answer in XML tags <answer> </answer> |
171 | 172 | Example output: |
172 | 173 | ``` |
173 | | -submit_answer("CD94") or submit_answer("-1.23") |
| 174 | +submit_answer("<answer>CD94</answer>") or submit_answer("<answer>-1.23</answer>") |
174 | 175 | ``` |
175 | 176 | Remember, the final notebook should contain all necessary artifacts (plots, tables, print outputs) to solve the task provided. |
176 | 177 | """ |
177 | 178 | SUBMIT_ANSWER_OPEN = """ |
178 | | -[Use the submit_answer tool to submit your final answer as a jsondictionary with keys as the question number and values as a short answer] |
| 179 | +[Use the submit_answer tool to submit your final answer as a single string with your short answer] |
| 180 | +IMPORTANT: Wrap your answer in XML tags <answer> </answer> |
179 | 181 | Example output: |
180 | 182 | ``` |
181 | | -submit_answer({{ |
182 | | - "q1": "Short answer to question 1", |
183 | | - "q2": "Short answer to question 2", |
184 | | - "q3": "Short answer to question 3", |
185 | | - "q4": "Short answer to question 4" |
186 | | -}}) |
| 183 | +submit_answer("<answer>Your concise answer to the question</answer>") |
187 | 184 | ``` |
188 | 185 | Remember, the final notebook should contain all necessary artifacts (plots, tables, print outputs) to solve the task provided. |
189 | 186 | """ |
190 | 187 | SUBMIT_ANSWER_MCQ = """ |
191 | | -[Use the submit_answer tool to submit your final answer as a json dictionary with keys as the question number and values as the answer] |
| 188 | +[Use the submit_answer tool to submit your final answer as a single string with the letter choice] |
| 189 | +IMPORTANT: Wrap your answer in XML tags <answer> </answer> |
192 | 190 | Example output: |
193 | 191 | ``` |
194 | | -submit_answer({{ |
195 | | - "q1": "A", |
196 | | - "q2": "B", |
197 | | - "q3": "C", |
198 | | - "q4": "D" |
199 | | -}}) |
| 192 | +submit_answer("<answer>A</answer>") or submit_answer("<answer>B</answer>") or submit_answer("<answer>C</answer>") or submit_answer("<answer>D</answer>") |
| 193 | +``` |
200 | 194 | Remember, the final notebook should contain all necessary artifacts (plots, tables, print outputs) to solve the task provided. |
201 | 195 | """ |
202 | 196 |
|
|
215 | 209 | """ |
216 | 210 | # MCQ |
217 | 211 | MCQ_PROMPT_TEMPLATE = f""" |
218 | | -Here are the questions you need to address: |
219 | | -<questions> |
220 | | -{{questions}} |
221 | | -</questions> |
| 212 | +Here is the question you need to address: |
| 213 | +<question> |
| 214 | +{{question}} |
| 215 | +</question> |
222 | 216 |
|
223 | 217 | {CHAIN_OF_THOUGHT_AGNOSTIC} |
224 | 218 | {SUBMIT_ANSWER_MCQ} |
|
227 | 221 | """ |
228 | 222 | # Open answer |
229 | 223 | OPEN_PROMPT_TEMPLATE = f""" |
230 | | -Here are the questions you need to address: |
| 224 | +Here is the question you need to address: |
231 | 225 |
|
232 | | -<questions> |
233 | | -{{questions}} |
234 | | -</questions> |
| 226 | +<question> |
| 227 | +{{question}} |
| 228 | +</question> |
235 | 229 |
|
236 | 230 | {CHAIN_OF_THOUGHT_AGNOSTIC} |
237 | 231 | {SUBMIT_ANSWER_OPEN} |
|
0 commit comments