Coder Social home page Coder Social logo

teenage-agi's Introduction

Teenage-AGI

Objective

Inspired by several Auto-GPT-related Projects (predominantly BabyAGI) and the Paper "Generative Agents: Interactive Simulacra of Human Behavior", this Python project uses OpenAI and Pinecone to Give memory to an AI agent and also allows it to "think" before making an action (outputting text). Also, just by shutting down the AI, it doesn't forget its memories since it lives on Pinecone and its memory_counter saves the index that it's on.

Updates

April 12: Added "read" and "think" commands. Add "read: " or "think: " in front of a query to feed it information using read (any length works) or insert a memory into an agent.

Sections

How it Works

Here is what happens every time the AI is queried by the user:

  1. AI vectorizes the query and stores it in a Pinecone Vector Database
  2. AI looks inside its memory and finds memories and past queries that are relevant to the current query
  3. AI thinks about what action to take
  4. AI stores the thought from Step 3
  5. Based on the thought from Step 3 and relevant memories from Step 2, AI generates an output
  6. AI stores the current query and its answer in its Pinecone vector database memory

How to Use

  1. Clone the repository via git clone https://github.com/seanpixel/Teenage-AGI.git and cd into the cloned repository.
  2. Install required packages by doing: pip install -r requirements.txt
  3. Create a .env file from the template cp .env.template .env
  4. open .env and set your OpenAI and Pinecone API info.
  5. Run python main.py and talk to the AI in the terminal

Running in a docker container

You can run the system isolated in a container using docker-compose:

docker-compose run teenage-agi

Experiments

Currently, using GPT-4, I found that it can remember its name and other characteristics. It also carries on the conversation quite well without a context window (although I might add it soon). I will update this section as I keep playing with it.

More about the Project & Me

After reading the Simulcra paper, I made this project in my college dorm. I realized that most of the "language" that I generate is inside my head, so I thought maybe it would make sense if AGI does as well. I'm a founder currently running a startup called DSNR and also a first-year at USC. Contact me on twitter about anything would love to chat.

Credits

Thank you to @yoheinakajima and the team behind "Generative Agents: Interactive Simulacra of Human Behavior" for the idea!

teenage-agi's People

Contributors

seanpixel avatar mikekelly avatar malikmalna avatar mitchell360 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.