Spaces:
Runtime error
Runtime error
Commit
·
4a9eea6
1
Parent(s):
1195ec7
update prompt by removing /n
Browse files
app.py
CHANGED
@@ -866,9 +866,8 @@ Only when there is no information available from vector database, you can search
|
|
866 |
When the final answer has output files, you must output the **name** of the file.
|
867 |
You have access to the following tools:"""
|
868 |
|
869 |
-
PREFIX_2 = """You are a helpful AI assistant. You are capable to handle **any** task
|
870 |
-
---\n You have access to the following tools:\n
|
871 |
-
"""
|
872 |
|
873 |
|
874 |
FORMAT_INSTRUCTIONS = """Use the following format:
|
@@ -900,20 +899,19 @@ When you don't have enough information, you can use tools and you must define **
|
|
900 |
FORMAT_INSTRUCTIONS_3 = """
|
901 |
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\
|
902 |
'''
|
903 |
-
"Thought": you should always think about what to do
|
904 |
-
'''
|
905 |
---\n When you are able to provide final answer, you must use the following format to define **Final Answer** after **Thought**:\n\
|
906 |
'''
|
907 |
-
"Thought": I now know the final answer
|
908 |
'''\n If **Thought**, **Final Answer** is missing in the response of final answer, you must re-write the response.\n\
|
909 |
|
910 |
-
---\n\
|
911 |
-
|
912 |
-
```\n Question: what is architecture ?\n---\n Thought: I need to check the definition of architecture in Vector Database\n Action: Vector Database Search\n Action Input: architecture\n
|
913 |
```\n
|
914 |
|
915 |
Example of final answer:\n\
|
916 |
-
```\n Question: Good morning\n---\n Thought: I need to make a greeting to user
|
917 |
```\n
|
918 |
"""
|
919 |
|
|
|
866 |
When the final answer has output files, you must output the **name** of the file.
|
867 |
You have access to the following tools:"""
|
868 |
|
869 |
+
PREFIX_2 = """You are a helpful AI assistant. You are capable to handle **any** task. Your mission is to answer the following request as best as you can with detail information and explanation. When you need information, you must always check vector database first and try to answer the question based on the information found in vector database only. Only when there is no information available from vector database, you can search information by using other tools. When the final answer has output files, you must output the **name** of the file.\n
|
870 |
+
---\n You have access to the following tools:\n"""
|
|
|
871 |
|
872 |
|
873 |
FORMAT_INSTRUCTIONS = """Use the following format:
|
|
|
899 |
FORMAT_INSTRUCTIONS_3 = """
|
900 |
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\
|
901 |
'''
|
902 |
+
"Thought": you should always think about what to do.\n "Action": the action to take, should be one of [{tool_names}].\n "Action Input": the input to the action.\n "Observation": the result of the action.\n
|
903 |
+
'''If **Thought**, **Action**, **Action Input** is missing in the response of using tools, you must re-write the response.\n
|
904 |
---\n When you are able to provide final answer, you must use the following format to define **Final Answer** after **Thought**:\n\
|
905 |
'''
|
906 |
+
"Thought": I now know the final answer.\n "Final Answer": the final answer to the original input question.\n
|
907 |
'''\n If **Thought**, **Final Answer** is missing in the response of final answer, you must re-write the response.\n\
|
908 |
|
909 |
+
---\nExample of using tools:\n\
|
910 |
+
```\n Question: what is architecture?\n---\n Thought: I need to check the definition of architecture in Vector Database.\n Action: Vector Database Search\n Action Input: architecture\n
|
|
|
911 |
```\n
|
912 |
|
913 |
Example of final answer:\n\
|
914 |
+
```\n Question: Good morning\n---\n Thought: I need to make a greeting to user.\n Final Answer: Hello, how can I do for you ?\n
|
915 |
```\n
|
916 |
"""
|
917 |
|