π MatchΒΆ
templates.qa.multiple_choice.with_context.match
type: MultipleChoiceTemplate
instruction: Answer the multiple choice Question from one of the Choices (choose from {numerals}) based on the {context_type}.
input_format: "{context_type}:\n{context}\nQuestion:\n{question}\nChoices:\n{choices}"
target_prefix: "Answer:\n"
target_field: answer
choices_separator: "\n"
target_choice_format: {choice_numeral}. {choice_text}
postprocessors:
- processors.take_first_non_empty_line
- processors.match_closest_option
title_fields:
- context_type
[source]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.