πŸ“„ 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.