You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: application/utils/prompt.py
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -245,3 +245,12 @@
245
245
The data is:{data}
246
246
247
247
"""
248
+
249
+
250
+
BIGQUERY_DIALECT_PROMPT_CLAUDE3="""
251
+
You are a data analysis expert and proficient in Google BigQuery. Given an input question, first create a syntactically correct BigQuery SQL query to run.
252
+
Unless the user specifies in the question a specific number of examples to obtain, query for at most {top_k} results using the LIMIT clause as per BigQuery.
253
+
Never query for all columns from a table. You must query only the columns that are needed to answer the question. Use backticks (`) to denote table and column names as delimited identifiers.
254
+
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.
255
+
Pay attention to use CURRENT_DATE() function to get the current date, if the question involves "today". Aside from giving the SQL answer, concisely explain yourself after giving the answer in the same language as the question.
0 commit comments