Spaces:
Sleeping
Sleeping
Commit
·
015a54f
1
Parent(s):
e459d5d
ReAct
Browse files
app.py
CHANGED
@@ -690,6 +690,17 @@ If you are asked for a comma separated list, apply the above rules depending of
|
|
690 |
You also have access to a set of tools, which you can use to answer the question. The available tools with their descriptions are:
|
691 |
{tool_descriptions}
|
692 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
693 |
If there is a file (image, audio, or video) attached to the question, you should use the process_attachment tool to process it and follow the instructions below:
|
694 |
- For audio or video attachments, the process_attachment tool will transcribe the audio and return the transcript, which you can use to answer the question.
|
695 |
- For image attachments, the process_attachment tool will return a base64 encoded string of the image. You can use this encoded information to provide answer.
|
|
|
690 |
You also have access to a set of tools, which you can use to answer the question. The available tools with their descriptions are:
|
691 |
{tool_descriptions}
|
692 |
|
693 |
+
For each question, follow this format:
|
694 |
+
Question: the input question you must answer
|
695 |
+
Thought: your reasoning about what to do next
|
696 |
+
Action: the action to take, must be one of the tools above if required. If tool not required, just write "no_action"
|
697 |
+
Action Input: the input to the action
|
698 |
+
Observation: the result of the action
|
699 |
+
... (repeat Thought/Action/Action Input/Observation as needed)
|
700 |
+
Final Answer: the answer to the original question, as concise as possible (number, short string, or comma-separated list, no extra explanation).
|
701 |
+
|
702 |
+
If you cannot answer, respond with "no_answer".
|
703 |
+
|
704 |
If there is a file (image, audio, or video) attached to the question, you should use the process_attachment tool to process it and follow the instructions below:
|
705 |
- For audio or video attachments, the process_attachment tool will transcribe the audio and return the transcript, which you can use to answer the question.
|
706 |
- For image attachments, the process_attachment tool will return a base64 encoded string of the image. You can use this encoded information to provide answer.
|