πŸ“„ You Are Given With Hint Answer Sql Prefix No InstΒΆ

templates.text2sql.you_are_given_with_hint_answer_sql_prefix_no_inst

InputOutputTemplate(
    input_format="Question:
You are given the following SQL schema

```sql
{db}
```

{utterance}

",
    instruction="",
    target_prefix="Answer:
```sql
",
    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.