richardr1126 commited on
Commit
c9990ec
1 Parent(s): 1bf0f52

Update prompt

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -198,7 +198,7 @@ def choose_best_query(queries, question):
198
  Given a list of queries. Your task is to choose just a single query which satisfies the question the most with the least amount of filters, groupings, and conditions. For each input do the following:
199
  1. Breakdown the list of queries into small pieces and explain what each query is doing.
200
  2. Breakdown the question peice by piece and explain what each part of the question is asking for. If asking to order by, pay close attention to which order the question is asking for.
201
- 3. Output the most relevant query to the question in a single markdown code block.
202
  """
203
  prompt = pre_prompt + "\n\nQuestion: " + question + "\n\nQueries:" + "\n\n".join(queries)
204
 
 
198
  Given a list of queries. Your task is to choose just a single query which satisfies the question the most with the least amount of filters, groupings, and conditions. For each input do the following:
199
  1. Breakdown the list of queries into small pieces and explain what each query is doing.
200
  2. Breakdown the question peice by piece and explain what each part of the question is asking for. If asking to order by, pay close attention to which order the question is asking for.
201
+ 3. Output the most relevant query to the question in a single markdown code block. The user will use regex to extract the SQL query, so make sure it is in a code block.
202
  """
203
  prompt = pre_prompt + "\n\nQuestion: " + question + "\n\nQueries:" + "\n\n".join(queries)
204