briankchan commited on
Commit
1b2ae99
·
1 Parent(s): 818d7ad

Adjust prompt

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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. If a query says "Please rephrase your question", output "Please rephrase your query.".
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 or if a query says "Please rephrase your question", output "Please rephrase your query.".
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. If all the IDs are false, output "Please rephrase your question"
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