Code Monkey home page Code Monkey logo

babyagi-ts's Introduction

BabyAGI-ts

This is an attempt to port @yoheinakajima's BabyAGI from Python to TypeScript and provide a friendly CLI tool that can be installed as a global NPM module. A few small adjustments have been made:

  1. The dependency on Pincone has been removed in favor of using HNSW. This allows developers to get started more easily without having to make a Pinecone account and pay for an index.
  2. Configuration has been moved from environment variables to an Inquirer.js flow.

All other functionality remains the same.

Getting started

Export your OpenAI API Key:

export OPENAI_API_KEY=<YOUR_API_KEY>

Install the babyagi NPM module globally:

npm install -g babyagi

Create a new directory for your agent to live:

mkdir travel-gpt

Move into the directory:

cd travel-gpt

Create a new agent:

babyagi run

This will begin the agent creation flow. You should see a screen like this:

Markdownify

After you finish the agent configuration your agent will start running.

Multiple Agents

If you'd like to create a new agent with a different objective, create a new folder and go through the the steps again:

mkdir research-gpt

Move into the directory:

cd research-gpt

Create a new agent:

babyagi run

Warning

This script is designed to be run continuously as part of a task management system. Running this script continuously can result in high API usage, so please use it responsibly. Additionally, the script requires the OpenAI API to be set up correctly, so make sure you have set up the API before running the script.

Credit

This project is a port of @yoheinakajima's BabyAGI. All credit goes to Yohei and everyone else who has contributed to the BabyAGI project.

babyagi-ts's People

Contributors

samheutmaker avatar

Watchers

 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.