-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a utility to generate table aliases, and modified the prompt_co…
…t accordingly
- Loading branch information
Showing
2 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<|start_header_id|>user<|end_header_id|> | ||
|
||
Generate a SQL query to answer this question: `{user_question}` | ||
{instructions}{glossary} | ||
{instructions} | ||
DDL statements: | ||
{table_metadata_string} | ||
|
||
{cot_instructions}Generate a valid SQL query that answers the question `{user_question}`, and only references the tables and columns in the DDL statements.<|eot_id|><|start_header_id|>assistant<|end_header_id|> | ||
{table_metadata_string}<|eot_id|><|start_header_id|>assistant<|end_header_id|> | ||
|
||
The following SQL query best answers the question `{user_question}` | ||
```sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters