richardr1126 commited on
Commit
1bf0f52
1 Parent(s): 55fe6af
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -197,8 +197,8 @@ def choose_best_query(queries, question):
197
  pre_prompt = """
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. Explain why each query is relevant to the question.
201
- 3. Choose the most relevant query from your explanation that aligns to the question best with the least amount of unnecessary filters or conditions. Output the best query in a single code block ``````.
202
  """
203
  prompt = pre_prompt + "\n\nQuestion: " + question + "\n\nQueries:" + "\n\n".join(queries)
204
 
 
197
  pre_prompt = """
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