Skip to content

rishabbahal9/ReflectionAgents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖️ Reflection agent

Description

🚀 Reflection agents are a prompting strategy used to improve the quality and success rate of agents and similar AI systems.

Reference: https://blog.langchain.dev/reflection-agents/

Reflection agent loop

Alt text

How to run the project

  1. Clone the repository
  2. Create a virtual environment using following commands.
    python3 -m venv .venv
    source .venv/bin/activate
    (Make sure you are using suitable python version, in my case python version 3.11.9)
  3. Install the dependencies using following command.
    pip install -r requirements.txt
  4. create a .env file in the root directory and populate it with the help of .env.example.
  5. Run the project using following command.
    python3 main.py
  6. Your result might take a few seconds. Output might not be in readable format in the terminal, but use langsmith to check the desired output. Alt text

About

Reflection agents implemented on LangGraph.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages