Skip to content

Commit

Permalink
Documentation: update ReAct
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed Aug 6, 2024
1 parent a78f739 commit 6c8a8bc
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions docs/use-chat-react.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ReAct
# ReAct: question answering with Reasoning and Actions

## What is ReAct?

Expand All @@ -7,10 +7,10 @@ that combines reasoning with actions to provide informed answers.

Within Big-AGI, users can invoke ReAct to ask complex questions that require multiple steps to answer.

| Aspect | Activation | Information Sources | Reasoning Visibility | When to Use |
|--------|-----------------------------------|------------------------------------------------------|------------------------------------|--------------------------------------------------|
| Chat | Just type the question | **Pre-trained knowledge only** | Only shows final response | Quick answers, general knowledge queries |
| ReAct | Type "/react" before the question | **Web loads, Web searches, Wikipedia, calculations** | Shows step-by-step thought process | Complex, multi-step, or research-based questions |
| Mode | Activation | Information Sources | Reasoning Visibility | When to Use |
|-------|-----------------------------------|------------------------------------------------------|------------------------------------|--------------------------------------------------|
| Chat | Just type and send | **Pre-trained knowledge only** | Only shows final response | Quick answers, general knowledge queries |
| ReAct | Type "/react" before the question | **Web loads, Web searches, Wikipedia, calculations** | Shows step-by-step thought process | Complex, multi-step, or research-based questions |

Example of ReAct in action, taking a question about current events, googling results, opening a page, and summarizing the information:

Expand All @@ -24,7 +24,7 @@ The following tools are implemented in Big-AGI:
- **calculate**: performs mathematical calculations by executing typescript code
- warning: (!) unsafe and dangerous, do not use for untrusted code/LLMs

## How to Use ReAct
## How to Use ReAct in Big-AGI

1. **Invoking ReAct**: Type "/react" followed by your question in the chat.
2. **What to Expect**:
Expand All @@ -34,11 +34,10 @@ The following tools are implemented in Big-AGI:

3. **Available Actions**: Web searches, Wikipedia lookups, calculations, and optionally web browsing.

## User Considerations
## Good to know:

- **ReAct operates in isolation** from the main chat history.
- It **will take longer than standard responses** due to multiple steps.
- Web searches and browsing may have privacy implications, and require **tool configuration** in the UI.
- Errors or limitations in accessing external resources may affect results.
- ReAct does not use the [Tool or Function Calling](https://platform.openai.com/docs/guides/function-calling) feature of AI models, rather uses the old school approach of parsing and executing actions.

0 comments on commit 6c8a8bc

Please sign in to comment.