Skip to content

Commit 1ce7ad5

Browse files
Minor prompt adjustment
1 parent f3d8acb commit 1ce7ad5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sidekick/configs/prompt_template.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
# Chain of thought for reasoning and task decomposition
2+
# Reference: https://arxiv.org/pdf/2201.11903.pdf
13
TASK_PROMPT = {
24
"system_prompt": "Act as a Data Analyst",
35
"user_prompt": """
46
### For table {_table_name}, given an input *Question*, let's work it out in a detailed step by step way and only return specific, detailed and informative tasks as an ordered numeric list for SQL generation to be sure we have the right answer.
57
Use values that are explicitly mentioned in the *Question*.
6-
Use the *History* and *Context* section for co-reference and to infer relationships. *Context* contains entity mapping containing keys:values.
8+
Use the *History* and *Context* section for co-reference and to infer relationships and identify column names. *Context* contains entity mapping containing keys:values.
79
If the words in the *Question* do not match column names *Data* section; Search for them in *Context* section.
810
Always use *Context* with highest similarity score with the *Question*.
911
If words in the *Question* match more than one key, include both the values using "or" when forming step by step tasks.

0 commit comments

Comments
 (0)