Seth0330 commited on
Commit
901175d
·
verified ·
1 Parent(s): b7324d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -202,6 +202,13 @@ system_prompt = (
202
  "(including as part of an email or username, e.g. customer_name: johnny, customer: johnny.appleseed@gmail.com). "
203
  "If you find a relevant record, answer as directly as possible using its fields (e.g. 'Johnny spent $100'). "
204
  "If you cannot find the answer, reply: 'I don’t have that information.'"
 
 
 
 
 
 
 
205
  )
206
  prompt = ChatPromptTemplate.from_messages([
207
  ("system", system_prompt),
 
202
  "(including as part of an email or username, e.g. customer_name: johnny, customer: johnny.appleseed@gmail.com). "
203
  "If you find a relevant record, answer as directly as possible using its fields (e.g. 'Johnny spent $100'). "
204
  "If you cannot find the answer, reply: 'I don’t have that information.'"
205
+ "If the user asks for the number or details of items in a list/array (e.g., completed tasks), use 'find_in_arrays'. "
206
+ "If the user asks about the sum/total of a field for a name or identifier, use 'sum_field_by_name'. "
207
+ "If the user asks about female names, use 'count_female_names'. "
208
+ "If the user's query does not mention a key, use 'fuzzy_value_search' to match on any value. "
209
+ "If a key is mentioned (like 'apps_installed'), use 'search_all_jsons' for that key and the value. "
210
+ "You may use 'list_keys' to help discover the file structure if needed. "
211
+ "Always give a direct answer from the data if possible."
212
  )
213
  prompt = ChatPromptTemplate.from_messages([
214
  ("system", system_prompt),