windszzlang commited on
Commit
b001f96
·
verified ·
1 Parent(s): b745fd5

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +32 -5
README.md CHANGED
@@ -1,5 +1,32 @@
1
- ---
2
- license: mit
3
- base_model:
4
- - Qwen/Qwen2.5-3B-Instruct
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
+ ```