Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -274,10 +274,14 @@ class BasicAgent:
|
|
274 |
Relevant information: {relevant_info}
|
275 |
|
276 |
Instructions:
|
277 |
-
1.
|
278 |
-
2. If the
|
279 |
-
3.
|
280 |
-
4.
|
|
|
|
|
|
|
|
|
281 |
"""
|
282 |
|
283 |
response = self.gemini_model.generate_content(prompt)
|
|
|
274 |
Relevant information: {relevant_info}
|
275 |
|
276 |
Instructions:
|
277 |
+
1. Read the question and think about what you need to answer it. Stick to the question.
|
278 |
+
2. If the question is not comprehensible, try reading each letter backwards, from the last character in the last word, to the first letter of the first word.
|
279 |
+
3. If the question is still not comprehensible, try seeing if it is in another language.
|
280 |
+
4. Think about whether you need to elaborate on the information. For example, if you know that John and Jane are kids of Joan, you know Joan has at least two kids. In other words, if you don't have a number that is asked of you, see if you can count to produce an answer.
|
281 |
+
5. Provide a direct answer.
|
282 |
+
6. If the information doesn't contain the answer, say so honestly
|
283 |
+
7. Do not invent anything. You can apply method to elaborate, but based on facts
|
284 |
+
8. Format your response as a direct answer.
|
285 |
"""
|
286 |
|
287 |
response = self.gemini_model.generate_content(prompt)
|