keerthanaBasavaraj's picture
Initial setup for nlp to sql with prem-1B-SQL model
f78a3ab
raw
history blame contribute delete
717 Bytes
Instructions = """
### Task
Generate a SQL query to answer [QUESTION]{question}[/QUESTION]
### Database Schema
The user query should run on the database whose schema is represented by using create queries in a json file with Keys as the table name and value as the create query :
{schema}
### Metadata for Schema
The detailed table and column description should be considered while referring to schema to understand the link between tables. The json file has an array of tables with each table name having a prompt to be considered while generating the query and detailed description of each data column.
{Metadata}
### Further context
- All are entities i.e. city, county, districts all form entities...
...
"""