Fact-checked Jun 13, 2026
Also called: Reasoning and Acting
ReAct is a clever technique that helps large language models (LLMs) reason and act more effectively by making them vocalize their thoughts and decide on actions.
ReAct stands for "Reasoning and Acting." It's a strategy designed to boost how well large language models can solve complex problems, especially those that require interacting with external tools or environments. Think of it as teaching an AI to "think out loud" and then decide what to do next, like a person working through a problem.
Traditionally, when you ask an LLM a question, it just spits out an answer. But for tricky tasks, like booking a flight or answering a math problem that needs a calculator, the model might get confused or make errors. ReAct addresses this by structuring the LLM's thought process into a series of explicit "thoughts" and "actions" before producing an "observation." The LLM first generates a thought, which is an internal monologue explaining its reasoning or planning. Then, based on that thought, it decides on an action, like using a search engine or running a code interpreter. The result of that action is an observation, which the LLM then uses to inform its next thought and action loop.
Here’s a simple example: Imagine you ask an ReAct-powered LLM, "What's the capital of France, and how many people live there?"
1. **Thought:** "I need to find the capital of France first, then search for its population."
2. **Action:** `search("capital of France")`
3. **Observation:** "Paris is the capital of France."
4. **Thought:** "Now I know the capital is Paris. I need to find the population of Paris."
5. **Action:** `search("population of Paris")`
6. **Observation:** "The population of Paris is approximately 2.1 million."
7. **Thought:** "I have both pieces of information. I can now answer the user's request."
8. **Action:** `finish("The capital of France is Paris, and its population is approximately 2.1 million.")`
You'd encounter ReAct mainly in advanced AI agents or systems that integrate LLMs with tools. It's especially useful for tasks that demand multi-step reasoning, external information retrieval, or interaction with APIs. A common misconception is that ReAct makes LLMs truly understand or be conscious. Instead, it's a clever way to structure their output and input, allowing them to simulate step-by-step reasoning more effectively, dramatically improving their problem-solving capabilities without fundamentally altering their underlying intelligence. It's about better use of existing capabilities, not creating new ones from scratch.
Daily Deck explains terms like ReAct as part of a free seven-card daily brief. No jargon. No fluff.
Start free