Giter Site home page Giter Site logo

hs991023 / aagpt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hyintell/aagpt

0.0 0.0 0.0 577 KB

AAGPT is another experimental open-source application showcasing the capabilities of large language models, such as GPT-3.5 and GPT-4.

License: MIT License

Python 100.00%

aagpt's Introduction

AAGPT

Auto-Agent-GPT (a.k.a AAGPT) is another experimental open-source application showcasing the capabilities of large language models.

Language: [English] [δΈ­ζ–‡]

Features

  • Memory support
    • GPT as memory
    • Vector database as memory (requires a PINECONE API key)
  • Lifespan limit for an agent (may save money)

Installation

To install AAGPT, follow these steps:

  1. Clone the AAGPT repository from GitHub and navigate to the downloaded folder.

    git clone [email protected]:hyintell/AAGPT.git
    cd AAGPT
    
  2. Use the following command in your terminal with pip:

    pip install -r requirements.txt

Quickplay

Just two steps, you can start using AAGPT's natural language processing abilities with your OpenAI API key.

  1. Open the setup/game.yaml file and enter your OpenAI API key in the openai_api_key field.

  2. Navigate to the AAGPT folder and run the following command:

      python aagpt.py 

Setup

After installing AAGPT, you will need to set up related APIs to use the application. You can do this by following these steps:

  1. Navigate to the setup folder in the AAGPT directory:
    cd setup
  2. In the setup folder, there are two game settings, game.yaml which using the Chatgpt as momery store and game2.yaml which using the Pinecone as momery store. You can choose one of them to set up the API.
  3. In the game.yaml file, you will use GPT as memory store, so please fill in the following information:
  • openai_api_key: Your OpenAI API key. If you don't have one, you can create a free account and get an API key from the OpenAI website.
  • openai_model: The OpenAI ChatGPT model to use. Choose from "gpt-3.5-turbo", "gpt4", or "text-davinci-003".
  • env_openai_api_key: OpenAI ChatGPT Key for env, you can keep same as the common.
  • agent_openai_api_key: OpenAI ChatGPT Key for agents, you can keep same as the common.
  • goal: The main objective of the AI agent.
  • init_task: The initial tasks to be appended to the task list.
  • agent_life: The life-time of the agents, in default, we set it to 256.

Note: Optionally, you can use game2.yaml which using Pinecone as memory store. In addition to the above settings, you will need to fill in the following information:

  • agent_pinecone_api_key: The form will be a list [Your Pinecone API , Your Pinecone Region], the first is pinecone API, and second will be the region of your index, you can get it from the Pinecone website.
  • agent_pinecone_index: The index name of the Pinecone index to use. In default, we use aagpt_agent_index.

Usage

After setting the correct APIs, you can test AAGPT by executing the aagpt.py file in your terminal:

python aagpt.py 

Once AAGPT is running, you can start interacting with it by typing in prompts and observing its responses.

If you want to change the setup or memory setting, you can use the following command:

python aagpt.py --world_root setup/game2.yaml

Todo

  • UI
  • More memory support
  • Multi-agent support
  • More LLMs support

Acknowledgement

We are deeply grateful for the contributions made by open-source projects: Auto-GPT and BabyAGI.

aagpt's People

Contributors

mengf1 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.