π With HintΒΆ
templates.schema_linking.with_hint
InputOutputTemplate(
instruction="Select the most relevant SQL columns to the given text. You are also given a hint.",
input_format="Text: {utterance}
Hint: {hint}
Columns:{schema}",
output_format="{linked_schema}",
postprocessors=[
"processors.to_list_by_comma_space",
],
)
[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.to_list_by_comma_space
Read more about catalog usage here.