GithubHelp home page GithubHelp logo

autolang-babyagixlangchain-'s Introduction

Autolang

Another take on BabyAGI, focused on workflows that complete. Powered by langchain.

Here's a simple demo: https://twitter.com/pictobit/status/1645504308874563584

Running

  • (Optional): Customize the tools provided in __main__.py
  • Install dependencies and run
pip install -r requirements.txt
python -m autolang

Or run with docker:

./run_docker.sh

Architecture

Planner

Runs once at the start, it thinks of a strategy to solve the problem, and produces a task list.

Executor

A custom langchain agent, which implements ReAct to solve a single task in the plan. It can be provided any tools in the langchain format.

Learner

Here's the interesting part. The system holds an information context string, which starts empty. After each step, the learner merges the result with the current context, as a sort of medium-term memory

Reviewer

Assesses the current task list, based on the current completed tasks and generated info context, and reprioritizes the pending tasks accordingly

Next steps

Right now, the main limitation is the limited info context. As a next step, I'm planning on adding a "long term memory agent", that extracts information from the context, replacing it with a key. The executor agent will be provided a tool to retrieve these saved snippets if required.

autolang-babyagixlangchain-'s People

Contributors

alvarosevilla95 avatar

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.