Spaces:
Runtime error
Runtime error
Commit
·
38fd0ef
1
Parent(s):
3fd8a2e
test tt
Browse files
app.py
CHANGED
@@ -993,16 +993,21 @@ Example of final answer:\n\
|
|
993 |
```\n
|
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 |
-
{
|
1003 |
"action": "should be one of Vector Database Search, Duckduckgo Internet Search, Wikipedia Search, Code Runner, Calculator, Text To Sound API 2"
|
1004 |
"action_input": "the input to the action"
|
1005 |
-
}
|
1006 |
```
|
1007 |
Observation: the result of the action.
|
1008 |
|
@@ -1014,10 +1019,10 @@ If **Thought**, **Action** is missing in the response of using tools, you must r
|
|
1014 |
Thought: I know what to respond
|
1015 |
Action:
|
1016 |
```
|
1017 |
-
{
|
1018 |
"action": "Final Answer",
|
1019 |
"action_input": "Final response to human"
|
1020 |
-
}
|
1021 |
```
|
1022 |
|
1023 |
If **Thought**, **Action** is missing in the response of using tools, you must re-write the response.
|
|
|
993 |
```\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 \"action\": $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 |
"action": "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 |
|
|
|
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.
|