Commit
·
1bf0f52
1
Parent(s):
55fe6af
New test
Browse files
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.
|
201 |
-
3.
|
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 |
|