Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -121,10 +121,10 @@ class BasicAgent:
|
|
121 |
|
122 |
"""Initialize the Gemini model with appropriate settings"""
|
123 |
generation_config = {
|
124 |
-
"temperature": 0.
|
125 |
-
"top_p": 0.
|
126 |
-
"top_k":
|
127 |
-
"max_output_tokens":
|
128 |
}
|
129 |
|
130 |
safety_settings = {
|
@@ -279,7 +279,7 @@ class BasicAgent:
|
|
279 |
6. If the information doesn't contain the answer, say so honestly.
|
280 |
7. Do not invent anything. You can apply method to elaborate, but based on facts. Do not provide comments. Just the raw answer.
|
281 |
8. Format your response as a direct answer. For example, if you are asked the year in which World War II began, just reply: "FINAL ANSWER: 1939".
|
282 |
-
9.
|
283 |
|
284 |
Question: {question}
|
285 |
|
|
|
121 |
|
122 |
"""Initialize the Gemini model with appropriate settings"""
|
123 |
generation_config = {
|
124 |
+
"temperature": 0.2,
|
125 |
+
"top_p": 0.8,
|
126 |
+
"top_k": 30,
|
127 |
+
"max_output_tokens": 100000,
|
128 |
}
|
129 |
|
130 |
safety_settings = {
|
|
|
279 |
6. If the information doesn't contain the answer, say so honestly.
|
280 |
7. Do not invent anything. You can apply method to elaborate, but based on facts. Do not provide comments. Just the raw answer.
|
281 |
8. Format your response as a direct answer. For example, if you are asked the year in which World War II began, just reply: "FINAL ANSWER: 1939".
|
282 |
+
9. Think thoroughly, but do not include your thoughts in your response. Only the final answer can be in your response.
|
283 |
|
284 |
Question: {question}
|
285 |
|