Giter Club home page Giter Club logo

reflexion-draft's Introduction

Original Reflexion Implementation

This is outdated: the main repository is located at https://github.com/noahshinn/reflexion

Code for the approach first proposed in Reflexion: an autonomous agent with dynamic memory and self-reflection

Note

Reflexion is not a replacement for ReAct or any other decision-guiding approach! It is a simple retry technique that can be used enhance other approaches.

Check out the original blog post here.

Check out an interesting type-inference implementation OpenTau that uses a variation of Reflexion to play a 2-player game with type-checker.

If you have any questions, please contact [email protected]

Cite

@article{shinn2023reflexion,
  title={Reflexion: an autonomous agent with dynamic memory and self-reflection},
  author={Shinn, Noah and Labash, Beck and Gopinath, Ashwin},
  journal={arXiv preprint arXiv:2303.11366},
  year={2023}
}

reflexion-draft's People

Contributors

noahshinn avatar noahshinn024 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

reflexion-draft's Issues

Few shot or fine tune?

You said

To replicate results from the ReAct study (Yao et al., 2023), we prompted the agent with six few-shot examples of successful trajectories.

Does this mean you are doing prompt engineering, using example shown in 4.3 Reflexion Enables More Intuitive Search Queries?

Put these prompt before user input, and just get result?

But I think this is not the case, because AFAIK, to get this kind of result, you have to use prompt like https://github.com/hwchase17/langchain/blob/b7ebb8fe3009dd791b562968524718e20bfb4df8/langchain/agents/conversational/prompt.py#L14-L27 it usually need to include you Must use this format

test environment is very complicated

thanks a lot for your great work. i am interested in this test very much.
i have issues that need your help:

i have tried this test but failed again and again.
there are so many environment issues, such as : python version, textworld version, alfworld version, etc...

is it possible that you provide a step by step guide that let me make it work.

several issues that i met:

  1. infos = textworld.EnvInfos(won=True, admissible_commands=True, expert_type=expert_type, expert_plan=expert_plan, extras=["gamefile"])
    returns error: expert type is not there. it seems that the alfworld and text world version are not compatible. then i removed these two parameters to walk around...

my version is as below, not sure is it is correct:
textworld 1.5.3
alfworld 0.2.2

  1. cann't find "domain: '$ALFWORLD_DATA/logic/alfred.pddl'"
    on my pc, the file is at: "/Users/xyz/Library/Python/3.7/lib/python/site-packages/alfworld/data/alfred.pddl"
    i hardcoded the file to walk around the issue. but it seems that the installation of alfred is not correct on my side...

  2. cannot find : challenge_few_shot_examples.txt
    i replaced it with : reflexion_few_shot_examples.txt

  3. other issues that i do not mentioned by details here...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.