OuroborosM commited on
Commit
0bb65ea
·
1 Parent(s): 62af4e7

update prompt

Browse files
Files changed (1) hide show
  1. app.py +14 -21
app.py CHANGED
@@ -994,37 +994,30 @@ Example of final answer:\n\
994
  """
995
 
996
  FORMAT_INSTRUCTIONS_STRUC = """
997
-
998
- Use a json blob to specify a tool by providing an action key (tool name) and an action_input key (tool input).\n\nValid \"action\" values: \"Final Answer\" or Vector Database Search, Duckduckgo Internet Search, Wikipedia Search, Code Runner, Calculator, Text To Sound API 2\n
999
- Provide only ONE action per $JSON_BLOB, as shown:\n\n```\n{\n \"action1\": $TOOL_NAME,\n \"action_input\": $INPUT\n}\n```
1000
-
1001
-
1002
  When it is necessary to use tools and you must use the following format to output "Thought", "Action" (json blob):\n
1003
-
1004
  Thought: you should always think about what to do and consider previous and subsequent steps
1005
- Action:
1006
  ```
1007
- {
1008
- "action2": "should be one of Vector Database Search, Duckduckgo Internet Search, Wikipedia Search, Code Runner, Calculator, Text To Sound API 2"
1009
- "action_input": "the input to the action"
1010
- }
1011
  ```
1012
  Observation: the result of the action.
1013
-
1014
-
 
 
1015
  If **Thought**, **Action** is missing in the response of using tools, you must re-write the response.
1016
-
1017
  ---\n When you are able to provide final answer, you must use the following format to output "Thought", "Action" (json blob):
1018
-
1019
  Thought: I know what to respond
1020
- Action:
1021
  ```
1022
- {
1023
- "action": "Final Answer",
1024
- "action_input": "Final response to human"
1025
- }
1026
  ```
1027
-
 
 
 
1028
  If **Thought**, **Action** is missing in the response of using tools, you must re-write the response.
1029
 
1030
  """
 
994
  """
995
 
996
  FORMAT_INSTRUCTIONS_STRUC = """
 
 
 
 
 
997
  When it is necessary to use tools and you must use the following format to output "Thought", "Action" (json blob):\n
998
+ '''
999
  Thought: you should always think about what to do and consider previous and subsequent steps
1000
+ Action:
1001
  ```
1002
+ $JSON_BLOB
 
 
 
1003
  ```
1004
  Observation: the result of the action.
1005
+ '''
1006
+ $JSON_BLOB with the value of the following 2 keys:
1007
+ "action": **Valid value** must be one of [{tool_names}]
1008
+ "action_input": The input for the action
1009
  If **Thought**, **Action** is missing in the response of using tools, you must re-write the response.
 
1010
  ---\n When you are able to provide final answer, you must use the following format to output "Thought", "Action" (json blob):
1011
+ '''
1012
  Thought: I know what to respond
1013
+ Action:
1014
  ```
1015
+ $JSON_BLOB
 
 
 
1016
  ```
1017
+ $JSON_BLOB with value of the following 2 keys:
1018
+ "action": "Final Answer"
1019
+ "action_input": Final response to human
1020
+ '''
1021
  If **Thought**, **Action** is missing in the response of using tools, you must re-write the response.
1022
 
1023
  """