ReAct
ReAct is a language-model prompting approach that interleaves reasoning-oriented steps with actions and observations from an environment or tools. The original research studies how this interaction can support tasks requiring both information and decisions. [1][2]
What does ReAct mean in simple terms?
The model chooses an action, receives a result, and uses it to decide what to do next. This can help a question needing several searches, but errors in planning or observations can accumulate. A visible reasoning trace is not guaranteed to reveal every internal process or establish correctness.
How can ReAct be explained with an analogy?
It is an investigator alternating between planning a question, collecting evidence, and revising the next question.
Where is ReAct used?
Original research
The ReAct paper studies combined reasoning and action on question-answering and interactive tasks. Results are specific to its models, benchmarks, and setup. [1]
Several sources
A hypothetical assistant retrieves one approved document, finds a missing detail, and searches another. It checks the final claim against both sources rather than assuming more searches ensure accuracy.
Tool observations
A hypothetical workflow uses a calculation tool and checks input units and returned output. Tools can provide useful observations, but wrong inputs still produce wrong conclusions.
Bounded operation
A hypothetical team limits steps, spending, and permitted actions. It records tool calls and outcomes and stops for unresolved evidence or missing authorization.
Learning steps, limitations and developments
- Choose a task that actually needs observations from tools or an environment.
- Define permitted tools, their inputs, and authorization boundaries.
- Specify stopping rules, step limits, and failure handling.
- Test the complete loop with correct, missing, and misleading observations.
- Inspect final evidence and compare quality, latency, and cost with a simpler approach.
Limitations and direction
Additional actions can accumulate errors, and a visible trace does not reveal all internal processing. Enforce permissions and treat external content as untrusted. Framework APIs evolve; verify the current version rather than assuming historical templates are still appropriate.
Which concepts are related to ReAct?
- Related conceptPrompt VersionA related concept within the same category.
- Related conceptPrompt LibraryA related concept within the same category.
- Related conceptPersona PromptingA related concept within the same category.
Which sources explain ReAct?
- ReAct paper — https://arxiv.org/abs/2210.03629
- ReAct project site — https://react-lm.github.io/
Tell us what you think
Your feedback helps us improve the content.