Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update prompt.md #81

Merged
merged 2 commits into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions prompts/prompt.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
### Task
Generate a SQL query to answer the following question:
`{user_question}`
{instructions}{glossary}
Generate a SQL query to answer [QUESTION]{user_question}[/QUESTION]

### Instructions
- If you cannot answer the question with the available database schema, return 'I do not know'

### Database Schema
The query will run on a database with the following schema:
{table_metadata_string}
{k_shot_prompt}

### Answer
Given the database schema, here is the SQL query that answers `{user_question}`:
```
Given the database schema, here is the SQL query that [QUESTION]{user_question}[/QUESTION]
[SQL]
Loading