Spaces:
Runtime error
Runtime error
Commit
·
606185f
1
Parent(s):
5e19412
update prompt
Browse files
app.py
CHANGED
@@ -839,38 +839,38 @@ When you don't have enough information, you can use tools and you must define **
|
|
839 |
'''
|
840 |
FORMAT_INSTRUCTIONS_3 = """
|
841 |
When you don't have enough information, you can use tools and you must use the following format to define **Thought**, **Action** and **Action Input**:\n\
|
842 |
-
'''
|
843 |
-
"Thought": you should always think about what to do\n
|
844 |
-
"Action": the action to take, should be one of [{tool_names}]\n
|
845 |
-
"Action Input": the input to the action\n
|
846 |
-
"Observation": the result of the action\n
|
847 |
'''\n\
|
848 |
If **Thought**, **Action**, **Action Input** is missing in the response, you must re-write the response.\n\
|
849 |
|
850 |
---\n\
|
851 |
When you are able to provide final answer, you must use the following format to define **Final Answer** after **Thought**:\n\
|
852 |
-
'''
|
853 |
-
"Thought": I now know the final answer\n
|
854 |
-
"Final Answer": the final answer to the original input question\n
|
855 |
'''\n\
|
856 |
If **Thought**, **Final Answer** is missing in the response, you must re-write the response.\n\
|
857 |
|
858 |
---\n\
|
859 |
Example of using tools:\n\
|
860 |
```\n\
|
861 |
-
Question: what is architecture ?\n
|
862 |
-
---\n
|
863 |
-
Thought: I need to check the definition of architecture in Vector Database\n
|
864 |
-
Action: Vector Database Search\n
|
865 |
-
Action Input: architecture\n
|
866 |
```\n\
|
867 |
|
868 |
Example of final answer:\n\
|
869 |
-
```\n
|
870 |
-
Question: Good morning\n
|
871 |
-
---\n
|
872 |
-
Thought: I need to make a greeting to user\n
|
873 |
-
Final Answer: Hello, how can I do for you ?\n
|
874 |
```\n\
|
875 |
"""
|
876 |
|
|
|
839 |
'''
|
840 |
FORMAT_INSTRUCTIONS_3 = """
|
841 |
When you don't have enough information, you can use tools and you must use the following format to define **Thought**, **Action** and **Action Input**:\n\
|
842 |
+
'''
|
843 |
+
"Thought": you should always think about what to do\n
|
844 |
+
"Action": the action to take, should be one of [{tool_names}]\n
|
845 |
+
"Action Input": the input to the action\n
|
846 |
+
"Observation": the result of the action\n
|
847 |
'''\n\
|
848 |
If **Thought**, **Action**, **Action Input** is missing in the response, you must re-write the response.\n\
|
849 |
|
850 |
---\n\
|
851 |
When you are able to provide final answer, you must use the following format to define **Final Answer** after **Thought**:\n\
|
852 |
+
'''
|
853 |
+
"Thought": I now know the final answer\n
|
854 |
+
"Final Answer": the final answer to the original input question\n
|
855 |
'''\n\
|
856 |
If **Thought**, **Final Answer** is missing in the response, you must re-write the response.\n\
|
857 |
|
858 |
---\n\
|
859 |
Example of using tools:\n\
|
860 |
```\n\
|
861 |
+
Question: what is architecture ?\n
|
862 |
+
---\n
|
863 |
+
Thought: I need to check the definition of architecture in Vector Database\n
|
864 |
+
Action: Vector Database Search\n
|
865 |
+
Action Input: architecture\n
|
866 |
```\n\
|
867 |
|
868 |
Example of final answer:\n\
|
869 |
+
```\n
|
870 |
+
Question: Good morning\n
|
871 |
+
---\n
|
872 |
+
Thought: I need to make a greeting to user\n
|
873 |
+
Final Answer: Hello, how can I do for you ?\n
|
874 |
```\n\
|
875 |
"""
|
876 |
|