Thanh Vinh Vo commited on
Commit
1754e8d
·
1 Parent(s): 14c20f8
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -322,19 +322,19 @@ class BasicAgent:
322
  Answer the following question (question_id is {question_id}):):
323
  "{question}" {file}
324
  Follow below rules when possible:
325
- - Please take the question literally! Do not add any additional information or assumptions.
326
- - Please answer as concisely as possible.
327
- - If the question asks for a number, please return a numerical answer without unit (unless unit is specifically asked for). For example: 3 instead of three, 0 instead of None, 3 instead of $3.
328
- - If the question asks for a number with specific decimal places, please format the number into string with the same decimal places. For example: 3.00 instead of 3.
329
- - To get table data from Wikipedia or any HTML page content, please follow the following steps:
330
  - 1. Identify the section you want to extract.
331
  - 2.Use `pandas.read_html` to extract the table data from that section.
332
- - If the question asks for a list, please make sure that the elements are separated by a comma(`,`) and a space(` `). For example: `1, 2, 3` instead of `1,2,3`.
333
- - If the question asks for name without abbreviations, please ALWAYS ask `multimodal_agent` for the FULL name of final answer to ensure NO abbreviation is included in Final Answer. For example: `United States` instead of `US`.
334
- Just give up and return a guess answer if the request requires you to do any of the following:
335
- - Download Youtube videos.
336
- - Convert Youtube videos to audio.
337
- - Solve chess puzzle from an image.
338
  """
339
  if "food" in question.lower() or "drink" in question.lower():
340
  prompt = f"""
 
322
  Answer the following question (question_id is {question_id}):):
323
  "{question}" {file}
324
  Follow below rules when possible:
325
+ - Please take the question literally! Do not add any additional information or assumptions.
326
+ - Please answer as concisely as possible.
327
+ - If the question asks for a number, please return a numerical answer without unit (unless unit is specifically asked for). For example: 3 instead of three, 0 instead of None, 3 instead of $3.
328
+ - If the question asks for a number with specific decimal places, please format the number into string with the same decimal places. For example: 3.00 instead of 3.
329
+ - To get table data from Wikipedia or any HTML page content, please follow the following steps:
330
  - 1. Identify the section you want to extract.
331
  - 2.Use `pandas.read_html` to extract the table data from that section.
332
+ - If the question asks for a list, please make sure that the elements are separated by a comma(`,`) and a space(` `). For example: `1, 2, 3` instead of `1,2,3`.
333
+ - If the question asks for name without abbreviations, please ALWAYS ask `multimodal_agent` for the FULL name of final answer to ensure NO abbreviation is included in Final Answer. For example: `United States` instead of `US`.
334
+ - Just give up and return a guess answer if the request requires you to do any of the following:
335
+ - Watch Youtube videos.
336
+ - Convert Youtube videos to audio.
337
+ - Solve chess puzzle from an image.
338
  """
339
  if "food" in question.lower() or "drink" in question.lower():
340
  prompt = f"""