π matchΒΆ
Note
ID: templates.qa.multiple_choice.with_context.with_topic.match | Type: MultipleChoiceTemplate
{
"choices_separator": "\n",
"input_format": "{context_type}:\n{context}\nQuestion:\n{question}\nChoices:\n{choices}",
"instruction": "Answer the multiple choice Question about {topic} from one of the Choices (choose from {numerals}) based on the {context_type}.",
"postprocessors": [
"processors.take_first_non_empty_line",
"processors.match_closest_option"
],
"target_choice_format": "{choice_numeral}. {choice_text}",
"target_field": "answer",
"target_prefix": "Answer:\n",
"title_fields": [
"context_type"
],
"type": "multiple_choice_template"
}
Explanation about MultipleChoiceTemplateΒΆ
Formats the input (that specifies the question), the multiple choices to select the answer from, and specifies the field with the correct answer.
References: processors.take_first_non_empty_line, processors.match_closest_option
Read more about catalog usage here.