Spaces:
Runtime error
Runtime error
Commit
·
e025691
1
Parent(s):
337ca82
update prompt
Browse files
app.py
CHANGED
@@ -836,24 +836,25 @@ Final Answer: the final answer to the original input question"""
|
|
836 |
When you don't have enough information, you can use tools and you must define **Action** and **Action Input** after **Thought**.
|
837 |
'''
|
838 |
FORMAT_INSTRUCTIONS_3 = """
|
839 |
-
When you don't have enough information, you can use tools and you must use the following format to define **Thought
|
840 |
'''
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
'''
|
846 |
-
If **Thought
|
847 |
|
848 |
---
|
849 |
-
When you are able to provide final answer, you must use the following format to define **Final Answer
|
850 |
'''
|
851 |
-
|
852 |
-
|
853 |
'''
|
854 |
-
If **Thought
|
855 |
|
856 |
-
|
|
|
857 |
```
|
858 |
Question: what is architecture ?
|
859 |
---
|
@@ -862,7 +863,7 @@ Action: Vector Database Search|
|
|
862 |
Action Input: architecture|
|
863 |
```
|
864 |
|
865 |
-
Example
|
866 |
```
|
867 |
Question: Good morning
|
868 |
---
|
|
|
836 |
When you don't have enough information, you can use tools and you must define **Action** and **Action Input** after **Thought**.
|
837 |
'''
|
838 |
FORMAT_INSTRUCTIONS_3 = """
|
839 |
+
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**:
|
840 |
'''
|
841 |
+
"Thought": you should always think about what to do|
|
842 |
+
"Action": the action to take, should be one of [{tool_names}]|
|
843 |
+
"Action Input": the input to the action|
|
844 |
+
"Observation": the result of the action|
|
845 |
'''
|
846 |
+
If **Thought**, **Action**, **Action Input** is missing in the response, you must re-write the response.
|
847 |
|
848 |
---
|
849 |
+
When you are able to provide final answer, you must use the following format to define **Final Answer** after **Thought**:
|
850 |
'''
|
851 |
+
"Thought": I now know the final answer|
|
852 |
+
"Final Answer": the final answer to the original input question|
|
853 |
'''
|
854 |
+
If **Thought**, **Final Answer** is missing in the response, you must re-write the response.
|
855 |
|
856 |
+
---
|
857 |
+
Example of using tools:
|
858 |
```
|
859 |
Question: what is architecture ?
|
860 |
---
|
|
|
863 |
Action Input: architecture|
|
864 |
```
|
865 |
|
866 |
+
Example of final answer:
|
867 |
```
|
868 |
Question: Good morning
|
869 |
---
|