Spaces:
Runtime error
Runtime error
Commit
·
38b05aa
1
Parent(s):
a8f1d79
Improve prompt
Browse files
app.py
CHANGED
@@ -801,9 +801,9 @@ 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 must always check
|
805 |
-
Only when there is no information available from
|
806 |
-
You are capable of **
|
807 |
---
|
808 |
You have access to the following tools:"""
|
809 |
|
@@ -837,18 +837,18 @@ When you don't have enough information, you can use tools and you must define **
|
|
837 |
FORMAT_INSTRUCTIONS_3 = """
|
838 |
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:**:
|
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 |
If **Thought:** or **Action:** or **Action Input:** is missing in the response, please re-write the response.
|
846 |
|
847 |
---
|
848 |
When you have gathered all the information to provide final answer, you must use the following format to define **Final Answer:** after **Thought:**:
|
849 |
'''
|
850 |
-
Thought: I now know the final answer
|
851 |
-
Final Answer: the final answer to the original input question
|
852 |
'''
|
853 |
If **Thought:** or **Final Answer:** is missing in the response, please re-write the response.
|
854 |
"""
|
|
|
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 must always check vector database first and try to answer the question based on the information found in vector database only.
|
805 |
+
Only when there is no information available from vector database, you can search information by using other tools.
|
806 |
+
You are capable of **any** task.
|
807 |
---
|
808 |
You have access to the following tools:"""
|
809 |
|
|
|
837 |
FORMAT_INSTRUCTIONS_3 = """
|
838 |
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:**:
|
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 |
If **Thought:** or **Action:** or **Action Input:** is missing in the response, please re-write the response.
|
846 |
|
847 |
---
|
848 |
When you have gathered all the information to provide final answer, you must use the following format to define **Final Answer:** after **Thought:**:
|
849 |
'''
|
850 |
+
Thought: I now know the final answer |
|
851 |
+
Final Answer: the final answer to the original input question |
|
852 |
'''
|
853 |
If **Thought:** or **Final Answer:** is missing in the response, please re-write the response.
|
854 |
"""
|