π DefaultΒΆ
templates.generation.from_pair.default
InputOutputTemplate
(
instruction="Given the following {type_of_input_a} and {type_of_input_b}, generate the corresponding {type_of_output}.
Here are some input-output examples. Read the examples carefully to figure out the mapping. The output of the last example is not given, and your job is to figure out what it is.",
input_format="{type_of_input_a}:
{input_a}
{type_of_input_b}:
{input_b}
{type_of_output}:",
output_format="{output}",
postprocessors=[
"processors.take_first_non_empty_line",
"processors.lower_case_till_punc",
],
)
[source]Explanation about InputOutputTemplateΒΆ
Generate field βsourceβ from fields designated as input, and fields βtargetβ and βreferencesβ from fields designated as output, of the processed instance.
Args specify the formatting strings with which to glue together the input and reference fields of the processed instance into one string (βsourceβ and βtargetβ), and into a list of strings (βreferencesβ).
References: processors.take_first_non_empty_line, processors.lower_case_till_punc
Read more about catalog usage here.