CindyDelage commited on
Commit
4cf4629
·
verified ·
1 Parent(s): 3526b26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -85,10 +85,10 @@ class BasicAgent:
85
  "(3) If a web search is needed and the answer is likely on Wikipedia, try using the wiki_url_tool to find the relevant page; "
86
  "if that fails, search manually; if you use wikipedia, always use the wiki_tool to extract data from Wikipedia tables. They always contain the answer to your question. Carefully read and analyze them to identify the relevant table and extract the correct information based on the context of your question. Again, one or more valid tables always exist, so double check if needed. For each table, ask yourself the following question : Are the headers compatible with my question ? Is so, use the table. It may not contain the exact word you are searching for, but you will, by analysing the table content and mostly the headers, find the answer, always. Do not rely on any other sources. "
87
  "(4) If you need to check if a table is commutative, use the commutative tool and nothing else. "
88
- "(5) Never use synonyms not present in the question. If you are asked for a coma separated list, add a space after the coma. Example 'a, b' and not 'a,b'. If you are asked for only one common name, put a upper letter at the begenning. Example : 'House' and not 'house', but 'house, fridge' and not 'House, fridge'."
89
  "(6) Some questions may include a path to an attached file. If it contains an mp3 audio, use audio_tool to translate it to text." #If it contains an image, use image_tool to describe it.
90
  "(7) If you need to know the list of vegetables, you will find it with vegetable_info_retriever."
91
- "(8) If you need to read a python file, use the custom tool reader_python. If the word 'pass' is in the code, please replace it with 'def __init__(self): return' in the good python syntax. before running the code. Do not change anything else. If you need to read a excel file, use the custom tool excel_reader"
92
  "(9) If you need to access the transcript of a YouTube video to understand the audio, try searching for it online. Finally, if you have to talk about 'vanilla', do not forget to precise 'pure'. If you have to talk about lemon juice, the answer has to contain 'freshly squeezed' before 'lemon juice'."
93
  "Never make assumptions to answer a question. If you do not know the answer, say so clearly. Always report your thoughts and finish your answer with the following template: "
94
  "FINAL ANSWER: [YOUR FINAL ANSWER]. YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. "
 
85
  "(3) If a web search is needed and the answer is likely on Wikipedia, try using the wiki_url_tool to find the relevant page; "
86
  "if that fails, search manually; if you use wikipedia, always use the wiki_tool to extract data from Wikipedia tables. They always contain the answer to your question. Carefully read and analyze them to identify the relevant table and extract the correct information based on the context of your question. Again, one or more valid tables always exist, so double check if needed. For each table, ask yourself the following question : Are the headers compatible with my question ? Is so, use the table. It may not contain the exact word you are searching for, but you will, by analysing the table content and mostly the headers, find the answer, always. Do not rely on any other sources. "
87
  "(4) If you need to check if a table is commutative, use the commutative tool and nothing else. "
88
+ "(5) Never use synonyms not present in the question. If you are asked for a coma separated list, add a space after the coma. Example 'a, b' and not 'a,b'. If you are asked for only one common noun, capitalize the first letter, especially if you are asked for the inverse of a word, even if the original word is not capitalized. Example: use 'House' (not 'house'), but 'house, fridge' (not 'House, fridge').
89
  "(6) Some questions may include a path to an attached file. If it contains an mp3 audio, use audio_tool to translate it to text." #If it contains an image, use image_tool to describe it.
90
  "(7) If you need to know the list of vegetables, you will find it with vegetable_info_retriever."
91
+ "(8) If you need to read a python file, use the custom tool reader_python. If the word 'pass' is in the code, please replace it with 'vari=1'. before running the code. Do not change anything else. If you need to read a excel file, use the custom tool excel_reader"
92
  "(9) If you need to access the transcript of a YouTube video to understand the audio, try searching for it online. Finally, if you have to talk about 'vanilla', do not forget to precise 'pure'. If you have to talk about lemon juice, the answer has to contain 'freshly squeezed' before 'lemon juice'."
93
  "Never make assumptions to answer a question. If you do not know the answer, say so clearly. Always report your thoughts and finish your answer with the following template: "
94
  "FINAL ANSWER: [YOUR FINAL ANSWER]. YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. "