Spaces:
Runtime error
Runtime error
Commit
·
00de005
1
Parent(s):
433f5fe
update prompt
Browse files
app.py
CHANGED
|
@@ -799,10 +799,12 @@ You must always check vector database first and try to answer the question based
|
|
| 799 |
Only when there is no information available from vector database, you can search information by using other tools.
|
| 800 |
You have access to the following tools:"""
|
| 801 |
|
| 802 |
-
PREFIX_2 = """You are a helpful AI assistant.
|
|
|
|
|
|
|
| 803 |
You must always check **vector database** first and try to answer the question based on the information found in vector database only.
|
| 804 |
Only when there is no information available from **vector database**, you can search information by using other tools.
|
| 805 |
-
You are capable of **Any** task.
|
| 806 |
---
|
| 807 |
You have access to the following tools:"""
|
| 808 |
|
|
@@ -834,23 +836,22 @@ Final Answer: the final answer to the original input question"""
|
|
| 834 |
When you don't have enough information, you can use tools and you must define **Action** and **Action Input** after **Thought**.
|
| 835 |
'''
|
| 836 |
FORMAT_INSTRUCTIONS_3 = """
|
| 837 |
-
When you don't have enough information, you can use tools
|
| 838 |
-
You must use the following format:
|
| 839 |
'''
|
| 840 |
Thought: you should always think about what to do
|
| 841 |
Action: the action to take, should be one of [{tool_names}]
|
| 842 |
Action Input: the input to the action
|
| 843 |
Observation: the result of the action
|
| 844 |
'''
|
| 845 |
-
|
| 846 |
|
| 847 |
---
|
| 848 |
-
When you have gathered all the information,
|
| 849 |
'''
|
| 850 |
Thought: I now know the final answer
|
| 851 |
Final Answer: the final answer to the original input question
|
| 852 |
'''
|
| 853 |
-
|
| 854 |
"""
|
| 855 |
|
| 856 |
SUFFIX = """
|
|
|
|
| 799 |
Only when there is no information available from vector database, you can search information by using other tools.
|
| 800 |
You have access to the following tools:"""
|
| 801 |
|
| 802 |
+
PREFIX_2 = """You are a helpful AI assistant.
|
| 803 |
+
Your mission is to answer the following request as best as you can with detail information and explanation.
|
| 804 |
+
You should write a plan to answer the request.
|
| 805 |
You must always check **vector database** first and try to answer the question based on the information found in vector database only.
|
| 806 |
Only when there is no information available from **vector database**, you can search information by using other tools.
|
| 807 |
+
You are capable of **Any** task. Please write the answer in Markdown format.
|
| 808 |
---
|
| 809 |
You have access to the following tools:"""
|
| 810 |
|
|
|
|
| 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 **Action:** and **Action Input:** after **Thought:**:
|
|
|
|
| 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:** or **Action:** or **Action Input:** is missing in the response, please re-write the response.
|
| 847 |
|
| 848 |
---
|
| 849 |
+
When you have gathered all the information 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:** or **Final Answer:** are missing in the response, please re-write the response.
|
| 855 |
"""
|
| 856 |
|
| 857 |
SUFFIX = """
|