ReAct Prompting
Category: Generative AI / LLM
A prompting framework that interleaves reasoning traces and actions, allowing the language model to think about what to do and then execute actions in an environment.
Full Explanation
ReAct (Reasoning + Acting) is a prompting paradigm that combines chain-of-thought reasoning with action execution in an interleaved manner. The model alternates between generating reasoning traces (thoughts about what to do) and taking actions (such as searching the web, querying a database, or calling an API), then observing the results to inform the next reasoning step. This thought-action-observation loop enables the model to dynamically gather information and adapt its approach. ReAct significantly outperforms both pure reasoning (CoT) and pure acting approaches on tasks requiring external knowledge or interaction with tools. It has become a foundational pattern for building AI agents that interact with their environment. The framework naturally handles multi-step problems where the model needs to plan, execute, and adjust based on feedback.
Related Terms
More in Generative AI / LLM
Explore More
- AI Tools Library — Discover AI tools related to ReAct Prompting
- AI Education — Courses to learn about Generative AI / LLM
- AI News — Latest news and updates