GithubHelp home page GithubHelp logo

stefben46 / hierarchygpt Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 48 KB

Trying to make an automatic Objective completion AI Hierarchy

License: MIT License

Python 100.00%
ai babyagi openai openapi

hierarchygpt's Introduction

HierarichyGpt

Objective

making a multi purpose ai to create bigger projects to what Auto-gpt can do, with more efficiencies Feel free to make suggestiong or to push Upgrades or fixes

  • Has the ability to Create, Read, Write and Run files

How does it work?

  1. Makes a list of tasks to complete the specified objective
  2. Executes the tasks that were made using other instances of GPT 3.5
  3. Makes a list of taks to check if the objective was completed
  4. the tasks are executed
  5. Checks if the objective was completed succesfully based on the tasks results and expains it's response, if the objective was completed it stops itself
  6. if the objective wasn't completed it makes another list of tasks to try to fix what is wrong
  7. executes the list of tasks
  8. checks another time and if the objective still isn't completed it continues with trying to fix the problem

What are it's Pros?

  • doesn't cost a lot since it doesn't use many tokens (obviously depending on the task that it needs to do)
  • it's really focused on the objective and doesn't tend to stray away from it
  • it's efficient

What are it's Cons?

  • it's actions are limited for now (can't run terminal commands or access the web)
  • since it doesn't have an appropriate way of absorbing text efficiently it get's limited by the Token count with big amounts of text
  • since it spins up a new instance of an AI for every time it writes a file, it can have problems of the different AIs not knowing exactly what the other one did (we are talking with 3 or more files but depends on the request)

Example:

The objective is: "create a python program that gives the current time as output"

since it's a simple task it achieves it really easely and reliably image

How do i run it?

  1. clone the repository
  2. open the example.env file and put in your OpenAi key
  3. in the same file also decide and objective and write it in the OBJECTIVE line
  4. save it and change it's name to just .env
  5. run a Terminal instance in the same directory as the repository and write "python hgpt.py" to run it

Credits:

BabyAgi: https://github.com/yoheinakajima/babyagi i started from their code, stripped it down untill the api call and built it up like i wanted, to achieve my objective

AutoGpt: https://github.com/Significant-Gravitas/Auto-GPT i started with my poroject because if wanted an autogpt with a different structure

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.