Default question instructions
Each EDSL question type includes default instructions to the model about how to answer the question. We can view these instructions by inspecting the user prompt for a question that has been created (the other type of promptβsysten promptβis for agent instructions). For example, here we see that the default instruction for multiple choice questions is: βOnly 1 option may be selected. Respond only with a string corresponding to one of the options. After the answer, you can put a comment explaining why you chose that option on the next line.β This text is automatically appended to the question text:| user_prompt | system_prompt | interview_index | question_name | scenario_index | agent_index | model | estimated_cost | cache_keys | |
|---|---|---|---|---|---|---|---|---|---|
| 0 | What is the most common primary color? Red Yellow Blue Only 1 option may be selected. Respond only with a string corresponding to one of the options. After the answer, you can put a comment explaining why you chose that option on the next line. | nan | 0 | primary_color | 0 | 0 | gpt-4o | 0.000678 | [β20e75009c72f3e88c490c58bf13d6a72β] |
| user_prompt | |
|---|---|
| 0 | What is the most common primary color? Red Yellow Blue Only 1 option may be selected. Respond only with a string corresponding to one of the options. After the answer, you can put a comment explaining why you chose that option on the next line. |
| user_prompt | |
|---|---|
| 0 | Which colors are βprimaryβ? Red Orange Yellow Green Blue Purple Please respond only with a comma-separated list of the options that apply, with square brackets. E.g., [βGoodβ, βBadβ, βUglyβ] After the answer, you can put a comment explaining your choice on the next line. |
| user_prompt | |
|---|---|
| 0 | Rank the primary colors in terms of popularity. The options are 0: Red 1: Yellow 2: Blue You have to include 3 options in your answer. Please respond only with a comma-separated list of the code of the raked options, with square brackets. E.g., [0, 1, 3] After the answer, you can put a comment explaining your choice on the next line. |
| user_prompt | |
|---|---|
| 0 | Most people know what the primary colors are. 1 : This statement is completely inaccurate 2 : 3 : 4 : 5 : This statement is completely accurate. Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., β1β or β5β by itself. After the answer, you can put a comment explaining why you chose that option on the next line. |
Formatting answers & comments
We can see that each default instruction includes directions on (1) formatting the answer and (2) providing a comment about the answer. When a question is administered, the contents of the comment that is returned are automatically stored in a separate field of the results. We can see this when we run a question and inspect the columns of the results that have been created. Here we run the multiple choice question created above:comment field:
| 0 | |
|---|---|
| 0 | agent.agent_index |
| 1 | agent.agent_instruction |
| 2 | agent.agent_name |
| 3 | answer.primary_color |
| 4 | cache_keys.primary_color_cache_key |
| 5 | cache_used.primary_color_cache_used |
| 6 | comment.primary_color_comment |
| 7 | generated_tokens.primary_color_generated_tokens |
| 8 | iteration.iteration |
| 9 | model.frequency_penalty |
| 10 | model.inference_service |
| 11 | model.logprobs |
| 12 | model.max_tokens |
| 13 | model.model |
| 14 | model.model_index |
| 15 | model.presence_penalty |
| 16 | model.temperature |
| 17 | model.top_logprobs |
| 18 | model.top_p |
| 19 | prompt.primary_color_system_prompt |
| 20 | prompt.primary_color_user_prompt |
| 21 | question_options.primary_color_question_options |
| 22 | question_text.primary_color_question_text |
| 23 | question_type.primary_color_question_type |
| 24 | raw_model_response.primary_color_cost |
| 25 | raw_model_response.primary_color_input_price_per_million_tokens |
| 26 | raw_model_response.primary_color_input_tokens |
| 27 | raw_model_response.primary_color_one_usd_buys |
| 28 | raw_model_response.primary_color_output_price_per_million_tokens |
| 29 | raw_model_response.primary_color_output_tokens |
| 30 | raw_model_response.primary_color_raw_model_response |
| 31 | reasoning_summary.primary_color_reasoning_summary |
| 32 | scenario.scenario_index |
| model.model | answer.primary_color | comment.primary_color_comment | |
|---|---|---|---|
| 0 | gpt-4o | Red | Red is often considered the most common primary color due to its prominence in nature, its use in art and design, and its psychological impact. |
Turning off comments
If desired, we can omit the instruction to provide a comment by passing a parameterinclude_comment=False to the question constructor. This may be desired if comments are not necessary or to save tokens. Here we inspect how the question prompt has been modified and verify that the comment field in the results is blank:
| user_prompt | |
|---|---|
| 0 | What is the most common primary color? Red Yellow Blue Only 1 option may be selected. Respond only with a string corresponding to one of the options. |
| model.model | answer.primary_color | comment.primary_color_comment | |
|---|---|---|---|
| 0 | gpt-4o | Red | nan |
Modifying comments
We can also modify the default instruction if we want to use the comment field in a different way. This can be done by passing an optional parameteranswering_instruction to the question constructor. For example, here we pass an instruction that preserves the directions about the format of the answer to a multiple choice question (βRespond only with a string corresponding to one of the options.β) but replace the comments part of the instruction with a new instruction for the model to instead note itβs second choice answer. We include the original question in the survey as well for ease of comparison:
| user_prompt | |
|---|---|
| 0 | What is the most common primary color? Red Yellow Blue Only 1 option may be selected. Respond only with a string corresponding to one of the options. After the answer, you can put a comment explaining why you chose that option on the next line. |
| 1 | What is the most common primary color? Red Yellow Blue Only 1 option may be selected. Respond only with a string corresponding to one of the options. After the answer, please provide your second choice on the next line. |
| model.model | answer.primary_color_v1 | comment.primary_color_v1_comment | answer.primary_color_v2 | comment.primary_color_v2_comment | |
|---|---|---|---|---|---|
| 0 | gpt-4o | Red | Red is often considered the most common primary color due to its prominence in nature, its use in art and design, and its psychological impact. | Red | Yellow |
