Create README.md
Browse files
README.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Prompt Template
|
2 |
+
|
3 |
+
```
|
4 |
+
<|im_start|>system
|
5 |
+
You are a helpful assistant. You need to provide the user with the answer.<|im_end|>
|
6 |
+
<|im_start|>user
|
7 |
+
|
8 |
+
You are a SQL query writing expert. Your task is to write the SQL query for the user query to retrieve data from a database.
|
9 |
+
Database Schema:
|
10 |
+
{database_schema}
|
11 |
+
|
12 |
+
External Knowledge: {knowledge}
|
13 |
+
Note: Using valid SQLite and understanding External Knowledge, answer the following questions for the tables provided above.
|
14 |
+
|
15 |
+
Your final response must be in JSON format within <answer> </answer>. For example,
|
16 |
+
<answer>
|
17 |
+
{
|
18 |
+
"sql": "SELECT ... (in one line)"
|
19 |
+
}
|
20 |
+
</answer>.
|
21 |
+
|
22 |
+
Here's the user query:
|
23 |
+
{user_query}<|im_end|>
|
24 |
+
<|im_start|>assistant
|
25 |
+
Let me write the SQL query.
|
26 |
+
<answer>
|
27 |
+
```
|