reflexion-draft  by noahshinn

Autonomous agent with dynamic memory and self-reflection (research paper)

Created 2 years ago
388 stars

Top 73.9% on SourcePulse

GitHubView on GitHub
Project Summary

This repository provides the original implementation of Reflexion, an autonomous agent designed to enhance existing decision-guiding approaches like ReAct with dynamic memory and self-reflection capabilities. It's targeted at researchers and developers looking to improve agent robustness and performance through iterative self-correction.

How It Works

Reflexion operates as a meta-algorithm, augmenting other agent frameworks. It introduces a self-reflection mechanism where the agent analyzes its past actions and outcomes, identifies errors or inefficiencies, and updates its internal state or prompts to improve future performance. This iterative process allows the agent to learn from mistakes and adapt its strategy dynamically.

Quick Start & Requirements

  • Install: pip install -r requirements.txt
  • Prerequisites: Python 3.8+, OpenAI API key.
  • Demo: Original blog post

Highlighted Details

  • Enhances existing LLM agents with dynamic memory and self-reflection.
  • Aims to improve robustness and performance through iterative self-correction.
  • Presented as a complementary technique, not a replacement for other agent frameworks.

Maintenance & Community

Licensing & Compatibility

  • License: Not explicitly stated in the provided README snippet.
  • Compatibility: Designed to augment other agent approaches; commercial use depends on the underlying agent's license and OpenAI API terms.

Limitations & Caveats

This repository is explicitly marked as an "outdated" implementation of Reflexion, with the main development occurring in a separate repository. Users should refer to the primary repository for the latest features and bug fixes.

Health Check
Last Commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
0 stars in the last 30 days

Explore Similar Projects

Starred by Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research) and Will Brown Will Brown(Research Lead at Prime Intellect).

agent-lightning by microsoft

6.0%
2k
Train any AI agent with rollouts and feedback
Created 3 months ago
Updated 2 days ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Shyamal Anadkat Shyamal Anadkat(Research Scientist at OpenAI), and
1 more.

reflexion by noahshinn

0.3%
3k
Language agent research paper using verbal reinforcement learning
Created 2 years ago
Updated 8 months ago
Feedback? Help us improve.