avatarJim Clyde Monge

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

2313

Abstract

unt. Under the API keys tab, copy the value and the environment and save them somewhere.</p><figure id="07db"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*7-_dT-ruYiAbwKNd4ZHNTg.png"><figcaption>Image by <a href="undefined">Jim Clyde Monge</a></figcaption></figure><p id="b87f">Okay, now that all the dependencies are set. Let’s start setting up Auto-GPT.</p><h1 id="68a2">How to Setup Auto-GPT</h1><h2 id="50ca">Step 1: Clone the Auto-GPT repository</h2><p id="a3fc">Open Git Bash and execute the command below to clone the project.</p><div id="bd3d"><pre>git <span class="hljs-built_in">clone</span> https://github.com/Torantulino/Auto-GPT.git</pre></div><figure id="b227"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*zuob6wF_xqUUX3SkmeQK-w.png"><figcaption>Image by <a href="undefined">Jim Clyde Monge</a></figcaption></figure><h2 id="cba4">Step 2: Download the dependencies</h2><p id="7b62">Navigate to the Auto-GPT project folder.</p><div id="b02c"><pre><span class="hljs-meta prompt_">$ </span><span class="language-bash"><span class="hljs-built_in">cd</span> <span class="hljs-string">'Auto-GPT'</span></span></pre></div><p id="30d8">Then install the dependencies.</p><div id="a484"><pre>pip install -r requirements.txt</pre></div><figure id="c8e0"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*1DeMJpwJ0xOCKYEX206UBw.png"><figcaption>Image by <a href="undefined">Jim Clyde Monge</a></figcaption></figure><p id="5521">Next, Rename <code>.env.template</code> to <code>.env</code> and fill in your <code>OPENAI_API_KEY</code> and the <code>PINECONE_API_KEY</code> and <code>PINECONE_ENV</code></p><figure id="7d38"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*V9u4W3YdLmKtdET_yGpFUQ.png"><figcaption>Image by <a href="undefined">Jim Clyde Monge</a></figcaption></figure><h2 id="ccce">Step 3: Test run</h2><p id="7f39">Open a terminal and run the <code>main.py</code> Python script. You should see this screen after executing the command below:</p><div id="8076"><pre>python scripts/main.py</pre></div><p id="266a">Note: If you do not have access to the GPT-4 API, add <code>— gpt3only</code> at the end of the command.</p><figure id="2077"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*pLFxVpHIX5sgws2hV5H9

Options

mA.png"><figcaption>Image by <a href="undefined">Jim Clyde Monge</a></figcaption></figure><p id="62d9">Now let’s call it "AI-writer,” because I will ask it to write an article. I also added a little description of what its role is.</p><blockquote id="e975"><p>An AI designed to collect data from the internet and write a unique, coherent, and up-to-date article about a specific topic.</p></blockquote><p id="a0b0">Next, we need to specify the steps for what we want to achieve. Here are the three goals of our AI writer as an example:</p><ul><li><b>Goal 1: </b>Search the internet for the news about the release of ChatGPT Plugins</li><li><b>Goal 2: </b>Create a 600-word article on why it is revolutionary with an introduction, body, and a conclusion</li><li><b>Goal 3: </b>Summarize the article into 300 word</li></ul><figure id="403d"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*kVWF3aN84nP2mR0r-RunsA.png"><figcaption>Image by <a href="undefined">Jim Clyde Monge</a></figcaption></figure><p id="f24f">Press the enter key, and this is the response:</p><p id="1e86">Note: Without enabling “continuous mode," you might need to authorize the AI to continue generating responses manually.</p><p id="b1d7">After a few iterations, you should get both the 500-word article and the 300-word summary.</p><figure id="2764"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*nC_Y4rV9XlHkTM4yVI3Y4g.png"><figcaption>Image by <a href="undefined">Jim Clyde Monge</a></figcaption></figure><h2 id="3d2c">Final Thoughts</h2><p id="a324">In conclusion, Auto-GPT is a huge step forward in the field of autonomous AI. It not only makes complicated tasks easier, but it also lets people use the power of AI with little input.</p><p id="6d28">This new trend of “auto-prompting” is interesting. It allows GPT-4 to generate prompts that lead to new prompts, and so on.</p><p id="4715"><i>Stay updated with the latest news and updates in the creative AI space — follow the <a href="https://medium.com/generative-ai">Generative AI</a> publication.</i></p><p id="4a75"><i>Please support my work on Medium and get unlimited access by becoming a member using my referral link <a href="https://jimclydemonge.medium.com/membership"><b>here</b></a></i><b>. </b><i>Have a nice day!</i></p></article></body>

How To Setup Auto-GPT: The Autonomous GPT-4 AI

Image by Jim Clyde Monge

The dizzying pace of AI development has rapidly accelerated our approach toward artificial general intelligence (or AGI) with the release of an open-source Python application called Auto-GPT.

What is Auto-GPT?

Auto-GPT is an experimental open-source application that is an early instance of a fully autonomous GPT-4 implementation.

Think of it as an assistant that makes decisions on its own to achieve a goal instead of you specifying what to do next.

Auto-GPT is equipped with these features:

  • 🌐 Can access the internet for information gathering
  • 💾 Can store information
  • 🧠 Can spawn GPT-4 instances for text generation
  • 🔗 Can access popular websites and platforms
  • 🗃️ Summarization with GPT-3.5

In this article, I’m going to show you a step-by-step guide on how to install and run Auto-GPT on your local machine.

What you need

  1. Git install (You can use GitHub for desktop also)
  2. Python 3.7 or later
  3. OpenAI API key
  4. PineCone API key

How to get the OpenAI and PineCone API key

  1. Create an OpenAI account here.
  2. Go to your Accounts page and under the API keys tab, click on “Create a new secret key”.
Image by Jim Clyde Monge

Note: Keep a copy of this key because you can’t retrieve it from the web interface.

Next, go to PineCone and create an account. Under the API keys tab, copy the value and the environment and save them somewhere.

Image by Jim Clyde Monge

Okay, now that all the dependencies are set. Let’s start setting up Auto-GPT.

How to Setup Auto-GPT

Step 1: Clone the Auto-GPT repository

Open Git Bash and execute the command below to clone the project.

git clone https://github.com/Torantulino/Auto-GPT.git
Image by Jim Clyde Monge

Step 2: Download the dependencies

Navigate to the Auto-GPT project folder.

$ cd 'Auto-GPT'

Then install the dependencies.

pip install -r requirements.txt
Image by Jim Clyde Monge

Next, Rename .env.template to .env and fill in your OPENAI_API_KEY and the PINECONE_API_KEY and PINECONE_ENV

Image by Jim Clyde Monge

Step 3: Test run

Open a terminal and run the main.py Python script. You should see this screen after executing the command below:

python scripts/main.py

Note: If you do not have access to the GPT-4 API, add — gpt3only at the end of the command.

Image by Jim Clyde Monge

Now let’s call it "AI-writer,” because I will ask it to write an article. I also added a little description of what its role is.

An AI designed to collect data from the internet and write a unique, coherent, and up-to-date article about a specific topic.

Next, we need to specify the steps for what we want to achieve. Here are the three goals of our AI writer as an example:

  • Goal 1: Search the internet for the news about the release of ChatGPT Plugins
  • Goal 2: Create a 600-word article on why it is revolutionary with an introduction, body, and a conclusion
  • Goal 3: Summarize the article into 300 word
Image by Jim Clyde Monge

Press the enter key, and this is the response:

Note: Without enabling “continuous mode," you might need to authorize the AI to continue generating responses manually.

After a few iterations, you should get both the 500-word article and the 300-word summary.

Image by Jim Clyde Monge

Final Thoughts

In conclusion, Auto-GPT is a huge step forward in the field of autonomous AI. It not only makes complicated tasks easier, but it also lets people use the power of AI with little input.

This new trend of “auto-prompting” is interesting. It allows GPT-4 to generate prompts that lead to new prompts, and so on.

Stay updated with the latest news and updates in the creative AI space — follow the Generative AI publication.

Please support my work on Medium and get unlimited access by becoming a member using my referral link here. Have a nice day!

Artificial Intelligence
Machine Learning
Technology
Large Language Models
Recommended from ReadMedium