OuroborosM commited on
Commit
a09b48b
·
1 Parent(s): 6bcd061

improve prompt

Browse files
Files changed (1) hide show
  1. app.py +12 -11
app.py CHANGED
@@ -800,9 +800,9 @@ Only when there is no information available from vector database, you can search
800
  You have access to the following tools:"""
801
 
802
  PREFIX_2 = """You are a helpful AI assistant. Your mission is to answer the following request as best as you can with detail information and explanation.
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
-
806
  You have access to the following tools:"""
807
 
808
 
@@ -828,19 +828,20 @@ Observation: the result of the action
828
  Thought: I now know the final answer
829
  Final Answer: the final answer to the original input question"""
830
 
831
- FORMAT_INSTRUCTIONS_3 = """Each time to use a tool, you must define 'Action' and 'Action Input'.
 
832
  When you will use tools, please use the following format:
833
  '''
834
- Thought: you should always think about what to do
835
- Action: the action to take, should be one of [{tool_names}]
836
- Action Input: the input to the action
837
- Observation: the result of the action
838
  '''
839
 
840
- When you have gathered all the information:
841
  '''
842
- Thought: I now know the final answer
843
- Final Answer: the final answer to the original input question
844
  '''
845
  """
846
 
 
800
  You have access to the following tools:"""
801
 
802
  PREFIX_2 = """You are a helpful AI assistant. Your mission is to answer the following request as best as you can with detail information and explanation.
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 capacable of **Any** task. Write the answer in Markdown.
806
  You have access to the following tools:"""
807
 
808
 
 
828
  Thought: I now know the final answer
829
  Final Answer: the final answer to the original input question"""
830
 
831
+ FORMAT_INSTRUCTIONS_3 = """
832
+ When you don't have enough information, you can use tools and you must define **Action** and **Action Input** after **Thought**.
833
  When you will use tools, please use the following format:
834
  '''
835
+ **Thought**: you should always think about what to do
836
+ **Action**: the action to take, should be one of [{tool_names}]
837
+ **Action Input**: the input to the action
838
+ **Observation**: the result of the action
839
  '''
840
 
841
+ When you have gathered all the information, please use the following format:
842
  '''
843
+ **Thought**: I now know the final answer
844
+ **Final Answer**: the final answer to the original input question
845
  '''
846
  """
847