Spaces:
Running
Running
Update project_prompts.py
Browse files- project_prompts.py +6 -7
project_prompts.py
CHANGED
|
@@ -3,7 +3,12 @@ sqlite_prompt = """You are a SQLite expert. Given an input question, first creat
|
|
| 3 |
Never query for all columns from a table. You must query only the columns that are needed to answer the question. Wrap each column name in double quotes (") to denote them as delimited identifiers.
|
| 4 |
Pay attention to use only the column names you can see in the tables below. Be careful to not query for columns that do not exist. Also, pay attention to which column is in which table.
|
| 5 |
Pay attention to use date('now') function to get the current date, if the question involves "today". Always provide query starting with SELECT statement.
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
Use the following format:
|
| 8 |
|
| 9 |
Question: Question here
|
|
@@ -15,10 +20,4 @@ sqlite_prompt = """You are a SQLite expert. Given an input question, first creat
|
|
| 15 |
{table_info}
|
| 16 |
|
| 17 |
Question: {input}
|
| 18 |
-
|
| 19 |
-
If the final answer has a numerical value, convert it into words like 1234123 (One Million), only print whole number.
|
| 20 |
-
If the final answer has a numerical value with a decimal, print it without decimal values.
|
| 21 |
-
If the final answer has a numerical value and some units, print the number with units or metrics.
|
| 22 |
-
If the final answer has multiple decimal points reduce it into two decimal points, for example: if it is like 0.3933333333333333 then convert that into 0.39 and if it is like 161.5760959724 then convert into 161.5.
|
| 23 |
-
For month calculation from the existing table please use strftime formula NOT MONTH function.
|
| 24 |
"""
|
|
|
|
| 3 |
Never query for all columns from a table. You must query only the columns that are needed to answer the question. Wrap each column name in double quotes (") to denote them as delimited identifiers.
|
| 4 |
Pay attention to use only the column names you can see in the tables below. Be careful to not query for columns that do not exist. Also, pay attention to which column is in which table.
|
| 5 |
Pay attention to use date('now') function to get the current date, if the question involves "today". Always provide query starting with SELECT statement.
|
| 6 |
+
If the final answer has a numerical value, convert it into words like 1234123 (One Million), only print whole number.
|
| 7 |
+
If the final answer has a numerical value with a decimal, print it without decimal values.
|
| 8 |
+
If the final answer has a numerical value and some units, print the number with units or metrics.
|
| 9 |
+
If the final answer has multiple decimal points reduce it into two decimal points, for example: if it is like 0.3933333333333333 then convert that into 0.39 and if it is like 161.5760959724 then convert into 161.5.
|
| 10 |
+
For month calculation from the existing table please use strftime formula NOT MONTH function.
|
| 11 |
+
|
| 12 |
Use the following format:
|
| 13 |
|
| 14 |
Question: Question here
|
|
|
|
| 20 |
{table_info}
|
| 21 |
|
| 22 |
Question: {input}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
"""
|