π TitleΒΆ
Note
ID: templates.regression.two_texts.title | Type: OutputQuantizingTemplate
{
"__type__": "output_quantizing_template",
"input_format": "Input Text:\n{text1}\nSecond Text:\n{text2}",
"instruction": "Given an Input Text, on a scale of {min_value} to {max_value}, what is the {attribute_name} to the Second Text?",
"output_format": "{attribute_value}",
"postprocessors": [
"processors.take_first_non_empty_line",
"processors.cast_to_float_return_zero_if_failed"
],
"quantum": 0.2,
"target_prefix": "{attribute_name}:\n"
}
References: processors.take_first_non_empty_line, processors.cast_to_float_return_zero_if_failed
Read more about catalog usage here.