Home > Technology peripherals > AI > Self-aware AI: AutoGPT

Self-aware AI: AutoGPT

WBOY
Release: 2023-05-25 10:28:20
forward
2003 people have browsed it

1. Introduction

ChatGPT has become very popular nowadays. As a leader in natural language processing models, the advantage of ChatGPT is that it can generate smooth and coherent conversations, while also being able to understand the context and act according to the context. answer. It can be quickly customized for different application scenarios. For example, in customer service, education, entertainment and other fields, ChatGPT can be used as an intelligent assistant to provide users with convenient services and entertainment experience.

From GPT-3 to GPT-4, we can see that ChatGPT has made significant progress in continuous optimization training in terms of advanced reasoning, input settings, fine-tuning behavior and understanding longer contextual information. Progress.

But for this interactive GPT model, we would rather see it be like the artificial intelligence in the movie, with self-awareness and the ability to learn and evolve on its own. There is no need for frequent guidance and interaction. We only need to simply propose a goal, and AI can autonomously complete all execution planning and logical processing, continue to conduct self-demonstration and optimization, and finally complete the goal we proposed.

So today it is here, it is the evolved version of ChatGPT: AutoGPT.

2. What is AutoGPT?

AutoGPT is an experimental open source application that leverages OpenAI’s GPT-4 language model to create fully autonomous and customizable AI agents. It was released on March 30, 2023 by Toran Bruce Richards.

Game developer Toran founded a game company called Significant Gravitas.

In just over a month, AutoGPT's Git project has received more than 1.2 million stars. As one of the first examples of GPT-4 running completely autonomously, AutoGPT has broken through AI the limit of possibility.

Self-aware AI: AutoGPT

AutoGPT is unique compared to other AI tools in that it runs independently, meaning you no longer need to manipulate the model to suit your needs needs. Instead, you just write down your goals and the AI ​​does the rest for you. As a result, AutoGPT fundamentally changes the way AI interacts with humans, where humans no longer need to take an active role, while still maintaining the same or better quality of results than other AI applications like ChatGPT.

3. How does AutoGPT work?

AutoGPT works based on an autonomous AI mechanism, where the AI ​​system creates different AI agents to meet specific tasks, including:

  • Task creation agents: When you enter a target on AutoGPT , the first AI agent to interact with the task creation agent. Based on your goals, it will create a list of tasks and steps to achieve them and send it to the priority agent.
  • Task Priority Agent: After receiving a list of tasks, the Priority AI agent ensures that the order is correct and logical before sending it to the execution agent.
  • Task Execution Agent: After completing the prioritization, the execution agent will complete the tasks one by one. This involves leveraging GPT-4, the internet, and other resources to obtain results.

Self-aware AI: AutoGPT

The above agents communicate with each other. So when the execution agent completes all tasks and the results are not satisfactory, it can communicate with the task creation agent to create a new task list. Iterative loops between the three agents until all user-defined goals are completed.

The AI ​​agent's actions are also displayed on the user interface, dividing them into four groups: Thought, Reasoning, Planning, and Judgment.

  • THOUGHTS: The AI ​​agent shares its thoughts about the target.
  • REASONING: How AI agent reasoning develops and realizes its ideas.
  • Plan (PLAN): Through analysis, the AI ​​agent enumerates the plan for the tasks to be completed.
  • Judgement (CRITICISM): The AI ​​judges itself, correcting errors and overcoming any limiting issues.

By sharing this calculation process, AutoGPT can conduct trial and error demonstrations and perform targeted optimization processing to overcome all problems encountered without any user intervention.

4. Comparison between AutoGPT and ChatGPT?

Although the underlying LLM model is the same, there are still many differences between AutoGPT and ChatGPT.

4.1 Real-time Insights

The latest GPT-4 model used by ChatGPT is trained on the same data as GPT-3.5, which is only available until September 2021. You cannot use ChatGPT to get real-time data information , because you cannot access websites and online platforms to obtain information and extract information.

In contrast, AutoGPT can access the Internet. Not only can it surf the Internet, but it can also verify whether the source is legitimate. Additionally, AutoGPT can access any platform to perform tasks. For example, if you ask the AI ​​to research prospects for selling a product and send an outreach email, it will draft and send the email directly using your Gmail account.

4.2 Memory Management

The context window is very important for the language model to give accurate answers. But in LLM like GPT-4, the window has a limit of 4000 to 8000 tokens. Therefore, if the requirements exceed the limits, the model may not follow all instructions correctly, or it may veer off tangent and provide unreliable output.

In contrast, AutoGPT is good at short-term and long-term memory management. By using databases, local Cache, and Redis for memory management, a large amount of contextual information or previous experience can be stored, allowing the AI ​​model to make better decisions.

4.3 Image generation

AutoGPT is able to generate images because it can use a variety of image generation engines, using DALL-E by default. If you want to enable image generation for your AI agent, you need to access DALL-E's API. Despite being a multi-modal input method, this feature is not currently available in ChatGPT-4.

3.4 Text-to-speech

You can enable text-to-speech on AutoGPT by typing python -m autogpt --speak at the command line. But you must enter the command every time you interact with AutoGPT. You can also add different sounds to your speech by connecting AutoGPT to the versatile AI voice software Eleven Labs.

5. Limitations of AutoGPT

There is no doubt that autonomy adds a new dimension to AI systems. At the same time, we cannot ignore the limitations and risks of AutoGPT. Listed below are some key limitations you must be aware of.

5.1 High Cost

While its features are amazing, AutoGPT’s practicality may disappoint you. Since AutoGPT uses the expensive GPT-4 model, the cost of completing each task can be high, even for small tasks. This is mainly because AutoGPT uses GPT-4 multiple times during the steps of a specific task.

5.2 Often stuck in a loop

The most common problem that users face when using AutoGPT is that it gets stuck in a loop. If this continues for more than a few minutes, it may mean you have to restart the process. This happens because AutoGPT relies on GPT-4 to correctly define and decompose tasks. Therefore, there will be a trial and error problem if the underlying LLM returns insufficient results for AutoGPT to take any action.

5.3 Data Security

Since AutoGPT is fully authorized, it can run autonomously and access your system and the Internet, such as using your twitter account, logging in to github, using search engines, etc., so you data may be leaked. AutoGPT does not have a security agent, so you must be careful when using AutoGPT, you cannot allow the model to continue running without giving the correct instructions and security guidelines.

5. How to install AutoGPT?

Unlike other AI tools, AutoGPT does not have a simple registration process to access its platform and features. Before you start using AutoGPT, you must download various software to meet the requirements. The following are detailed step requirements:

Step 1: Download the necessary software

First you need to have a Git account, and you need to install Python3.1.0 or higher. In addition, you must also Be able to skillfully use common shell commands or have Docker containers for project startup and configuration.

Step 2: Set up your OpenAI API key

If you don’t have one yet, please create an OpenAI account (of course, if you want to create an account in China, it is not a simple matter. You can refer to other articles on the Internet to apply for an account). After opening your OpenAI account, open USER - API keys and go to the API keys tab. You will see an option to create a key. Click on it and copy the key.

Self-aware AI: AutoGPT

Step 3: Clone the latest version of AutoGPT

(1)clone project

Open the command line Tools use the command git clone https://github.com/Torantulino/Auto-GPT.git to clone the project locally

Self-aware AI: AutoGPT

(2) Execute the installation

After entering the directory through the command cd Auto-GPT && ls -al, you can see that there are many files, one of which is requirements.txt. In this file you will see the modules required to run AutoGPT.

Self-aware AI: AutoGPT

To install these modules, you can use the command pip install -r requirements.txt to download and install.

Self-aware AI: AutoGPT

(3) Modify the configuration

Pass the command vim .env.template your-openai-api-key), the configuration is completed Then execute mv .env.template .env to make the configuration take effect

Self-aware AI: AutoGPT

Other related configurations can be made as needed by referring to the table

(4) Start using

After completing the above configuration, you have completed the basic configuration of AutoGPT. At this time, you can start your AutoGPT journey by commanding python -m autogpt!

Self-aware AI: AutoGPT

As you can see from the picture above, AutoGPT requires you to give the AI ​​a name [Name] and a role positioning [Role]. At the same time, you can Set goals [Goals] for it (up to 5 goals, if you only have one goal, just press Enter).

After you set and complete the goal, AutoGPT will think independently and analyze your goal [THOUGHTS]. After the thinking is completed, it will begin to understand and reason about how to accomplish the goal [REASONING], and then begin to independently break it down into specific Plan [PLAN], and finally a judgment [CRITICISM] will be proposed to ensure that the AI ​​agent corrects errors and makes correct decisions.

After completing the above behavior planning, AutoGPT will prompt the instructions and actions it will take [NEXT ACTION], which contains the specific executed commands [COMMAND] and parameters [ARGUMENTS]. The user can modify the actions at this time. Risk commands are identified to avoid unexpected risks such as data leakage. Here, you can use y or n to authorize or deny AutoGPT's subsequent command actions.

Self-aware AI: AutoGPT

AutoGPT will cycle through the above steps multiple times. Since AutoGPT can store context and historical experience, it will be updated each time based on the feedback results. Think deeply, formulate a better plan, and finally list the plans he wants to implement. Repeatedly try and supplement until you achieve your expected goals.

AutoGPT will go through the above steps and perform multiple cycles. Since AutoGPT can store context and historical experience, it will think more deeply each time based on the feedback results, formulate a better plan, and finally list its requirements. Execute the plan, try it again and add to it, until you reach your desired goal.

(5) Docker usage

Of course, you can also use docker to run:

<code>// 最简单的方式就是通过docker-composedocker-compose build auto-gptdocker-compose run --rm auto-gpt// 使用docker命令构建docker build -t auto-gpt .docker run -it --env-file=.env -v $PWD:/app auto-gpt</code>
Copy after login

You can pass additional parameters, for example, running mode --gpt3only and -- continuous mode:

<code>// docker-composedocker-compose run --rm auto-gpt --gpt3only --continuous// docker docker run -it --env-file=.env -v $PWD:/app --rm auto-gpt --gpt3only --continuous</code>
Copy after login

6. Summary

Compared with traditional text generation technology, we found that the evolution of AutoGPT’s capabilities is astounding. It can automatically disassemble it into It needs to perform tasks and continuously optimize, improve and summarize them based on existing experience and decisions during the execution process. At the same time, AutoGPT has many ways to obtain information. It can be downloaded and downloaded through search engine searches, github, web tools and other channels. Extract the required information and use plug-in capabilities such as local caching, voice conversion, image generation, etc. to finally accomplish the goals you set. This form of self-awareness, self-iteration and updating is very close to the artificial intelligence like Moss in the movie "The Wandering Earth"!

The final question is, is this article automatically generated by AutoGPT?

##LLM PROVIDER

OPENAI_API_KEY can be configured, whether to use AZURE

LLM MODEL SETTINGS

You can configure the token limit provided by openAI to avoid excessive call cost waste. The default is 4000-8000

LLM MODELS

LLM underlying language model, you can choose GPT-4 or gpt-3.5-turbo by default

MEMORY

Memory management, you can configure local, redis, PINECONE, MILVUS, etc.

IMAGE GENERATION PROVIDER

Image generation, you can configure the image size and image generation engine: dalle, HUGGINGFACE, STABLE DIFFUSION WEBUI

AUDIO TO TEXT PROVIDER

Voice to text, you can configure HUGGINGFACE

##GIT Provider for repository actions

github configuration, used to access and manage github by configuring the github api key

WEB BROWSING

Search engine management, you can configure different browsers: firefox, chrome, safari, search engine: google, etc. Authorized open api is used to access the Internet to obtain information and manage access depth

TTS PROVIDER

Can use MAC OS, STREAMELEMENTS and ELEVENLABS for text-to-speech configuration

TWITTER API

Twitter account management, manage and configure your Twitter account, configure token to access the corresponding api

AUTO-GPT - GENERAL SETTINGS

Some of AutoGPT Default configuration, such as storage directory, switches, user agent, AI settings, etc.

The above is the detailed content of Self-aware AI: AutoGPT. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:51cto.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template