π You Are Given No System With HintΒΆ
templates.text2sql.you_are_given_no_system_with_hint
InputOutputTemplate(
input_format="You are given the following SQL schema
```sql
{db}
```
given this hint:
{hint}
{utterance}
",
instruction="",
target_prefix="",
output_format="{query}",
postprocessors=[
"processors.text2sql.get_sql",
],
)
[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.text2sql.get_sql
Read more about catalog usage here.