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:
We can isolate the user prompt:
We can compare this with default instructions for other question types:
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:
We can display it with any other fields:
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:
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:
