Agents & harnesses6 October 2022arXiv:2210.03629
ReAct: Synergizing Reasoning and Acting in Language Models
Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, Yuan Cao. Princeton, Google
TL;DR
ReAct interleaves reasoning traces and actions so the model can plan, act, observe and update its plan.
Why builders should care
The reason-then-act loop behind almost every modern agent.
How to apply it
- 1.If you are building an agent from scratch, start with a ReAct-style loop before adding anything else.
Key results
Quoted from the abstract- We apply our approach, named ReAct, to a diverse set of language and decision making tasks and demonstrate its effectiveness over state-of-the-art baselines, as well as improved human interpretability and trustworthiness over methods without reasoning or acting components.
- On two interactive decision making benchmarks (ALFWorld and WebShop), ReAct outperforms imitation and reinforcement learning methods by an absolute success rate of 34% and 10% respectively, while being prompted with only one or two in-context examples.