Create README.md
Browse files
README.md
CHANGED
@@ -1,5 +1,32 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# DeepRetrieval-SQL-7B
|
2 |
+
|
3 |
+
## Prompt Template
|
4 |
+
|
5 |
+
```
|
6 |
+
<|im_start|>system
|
7 |
+
You are a helpful assistant. You first think about the reasoning process in the mind and then provides the user with the answer.<|im_end|>
|
8 |
+
<|im_start|>user
|
9 |
+
|
10 |
+
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.
|
11 |
+
Database Schema:
|
12 |
+
{database_schema}
|
13 |
+
|
14 |
+
External Knowledge: {knowledge}
|
15 |
+
Note: Using valid SQLite and understanding External Knowledge, answer the following questions for the tables provided above.
|
16 |
+
|
17 |
+
Show your work in <think> </think> tags. Your final response must be in JSON format within <answer> </answer>. For example,
|
18 |
+
<think>
|
19 |
+
[thinking process]
|
20 |
+
</think>
|
21 |
+
<answer>
|
22 |
+
{
|
23 |
+
"sql": "SELECT ... (in one line)"
|
24 |
+
}
|
25 |
+
</answer>.
|
26 |
+
|
27 |
+
Here's the user query:
|
28 |
+
{user_query}<|im_end|>
|
29 |
+
<|im_start|>assistant
|
30 |
+
Let me write the SQL query with reasoning.
|
31 |
+
<think>
|
32 |
+
```
|