Language agent research paper using verbal reinforcement learning
Top 17.3% on sourcepulse
Reflexion provides a framework for language agents that learn from their mistakes through verbal reinforcement learning, enhancing performance on complex reasoning and decision-making tasks. It is targeted at AI researchers and developers building advanced language agents.
How It Works
Reflexion agents augment standard language models with a mechanism for self-reflection and memory. After an initial attempt, the agent generates a "reflection" on its errors, which is then incorporated as context for subsequent attempts. This iterative process allows the agent to learn from past failures and improve its strategy over time, mimicking human learning.
Quick Start & Requirements
pip install -r requirements.txt
(within hotpotqa_runs
or alfworld_runs
directories).OPENAI_API_KEY
environment variable../run_reflexion.sh
after configuring run_reflexion.sh
../hotpotqa_runs/notebooks/
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
Rerunning experiments may be infeasible for individual developers due to GPT-4 access limitations and significant API costs. The project focuses on specific benchmarks and may require adaptation for other tasks.
6 months ago
Inactive