179 questions
No questions match those filters.
What is the ReAct pattern, and why is it the foundation of most modern AI agents?
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansReAct — reasoning plus acting — interleaves three things in a loop: a Thought, where the model reasons about what it needs next; an Action, where it calls a tool; and an Observation, where it reads the tool’s actual result. The loop repeats until the model decides it has enough to give a final answer.
The reason this became the default pattern for agents rather than a historical curiosity is what it prevents. Without it, a model asked “what’s Tokyo’s population, and is it bigger than New York’s” would just generate numbers from training data — plausible, possibly stale, unverifiable. With ReAct, it searches for each number, reads the actual result, and only then compares them. Every factual claim traces back to something the model actually observed during the run, not something it recalled.
It also makes agents self-correcting almost for free: if an Observation comes back as an error or an unexpected shape, the next Thought can react to that directly — try a different query, use a different tool, or back off — rather than the whole run silently failing. That’s why nearly every agent framework, whatever else it adds on top, implements some version of this loop underneath.