Spaces:
Runtime error
Runtime error
Commit
·
1b2ae99
1
Parent(s):
818d7ad
Adjust prompt
Browse files
app.py
CHANGED
|
@@ -72,7 +72,7 @@ async def on_message(message: str, message_id: str):
|
|
| 72 |
|
| 73 |
final_choices_msg = await chain.llm(
|
| 74 |
"""
|
| 75 |
-
You are a search engine for restaurants.
|
| 76 |
Output the restaurant IDs for the best matches to the following query:
|
| 77 |
|
| 78 |
----
|
|
@@ -91,9 +91,10 @@ async def on_message(message: str, message_id: str):
|
|
| 91 |
============
|
| 92 |
|
| 93 |
|
| 94 |
-
Output your final answer as a TOML blob
|
| 95 |
Each restaurant should have a key for its ID, with a
|
| 96 |
-
boolean value, where true means the restaurant is a good fit
|
|
|
|
| 97 |
|
| 98 |
For example:
|
| 99 |
|
|
@@ -114,8 +115,7 @@ async def on_message(message: str, message_id: str):
|
|
| 114 |
============
|
| 115 |
|
| 116 |
|
| 117 |
-
Make include IDs of ALL restaurants, but only mark true for ones that fit the query.
|
| 118 |
-
|
| 119 |
""",
|
| 120 |
query=query_msg.content,
|
| 121 |
restaurants=restaurants
|
|
|
|
| 72 |
|
| 73 |
final_choices_msg = await chain.llm(
|
| 74 |
"""
|
| 75 |
+
You are a search engine for restaurants.
|
| 76 |
Output the restaurant IDs for the best matches to the following query:
|
| 77 |
|
| 78 |
----
|
|
|
|
| 91 |
============
|
| 92 |
|
| 93 |
|
| 94 |
+
Output your final answer as a TOML blob.
|
| 95 |
Each restaurant should have a key for its ID, with a
|
| 96 |
+
boolean value, where true means the restaurant is a good fit
|
| 97 |
+
for all parts of the query.
|
| 98 |
|
| 99 |
For example:
|
| 100 |
|
|
|
|
| 115 |
============
|
| 116 |
|
| 117 |
|
| 118 |
+
Make include IDs of ALL restaurants, but only mark true for ones that fit the query.
|
|
|
|
| 119 |
""",
|
| 120 |
query=query_msg.content,
|
| 121 |
restaurants=restaurants
|