What's up everyone,
Since I have seen a lot of people asking the same questions around here with answers that are either pretty straightforward or already out there I figured it would make this post to guide people in the right direction.
FIRST OFF:
Before people go well "Who the hell are you?", I work at a company on the data science team as a machine learning engineer. we deploy models for clients to make autonomous decisions in their processes. I work daily with Python and its machine learning libraries and pretty much create models daily/weekly. Does that mean I am an expert on autoGPT? Hell no! But I have a general feeling a lot of people are lost and/or confused because explanations out here are either half-assed or just filled with overcomplications with language that is even more complicated. So look at me more as a translator in these cases!
So let's dive in!
I intend to keep updating this post as time goes on ( if people see value in it). If you have questions be sure to reach out here always happy to help!
For the beginners: If you are hopeless and can't look at AutoGPT anymore because you are so frustrated because you can't get it to work. I would say no worries AutoGPT isn't the only way to get access to a GPT model that has access to the internet. Have a look at the newly released Bing search/chat engine. While it's not automated (and not as fun) to work with. It is stated by Microsoft that it operates on GPT4 plus it has access to the internet. So if you want research done on a certain topic head over there and get that started you might be surprised how much use you actually get out of it.
To get Bing going follow these steps:
Open a web browser on your PC or laptop.
Go to Bing.com.
Here, click the Join the Waitlist button to sign up for the Bing Chat waitlist. Bing join waitlist
Sign in with your Microsoft Account and you are done!
There should be no wait time anymore meaning you will get an instant email from Bing to setup your account and get chatting straight away!
First things first: "Can I use AutoGPT if I have no programming/python experience?"
Short Answer: YES, The tools are out there to make you understand what you are working with the question is just how proactive are you in finding them? What I mean by that is that there is so much information out there to help you understand Python that getting AutoGPT going isn't all that hard.
Longer Answer: So yes you can but the more knowledge you have the better you will be able to achieve what you are trying to achieve. Luckily Python is one of the easier coding languages to learn! Coding comes down to some basic understanding of fundamentals and a specific way of thinking. I won't go too much into details like OOP programming but just know there is a lot out there and practice makes perfect. The stuff I wrote down below is something that I scribbled down fast off the top of my head to give you insight into the basics to get you going and off the ground. I urge you to do some googling if you really want to be able to understand programming at its core ( hell people go to uni for this for a good couple of years so don't think my little post is going to give you god-tier skills)
Step 1: Installing Python Visit the official Python website (https://www.python.org/downloads/) to download and install the latest version of Python.
Step 2: Running Python You can use any text editor to write your Python code, but for beginners, we recommend using the built-in Integrated Development Environment (IDE) called IDLE, which comes with Python.
Step 3: Variables and Data Types Variables are used to store data. In Python, you don't need to declare the type of a variable explicitly. Here are some examples:
#Integer
age = 25
#Float
height = 5.8
#String
name = "John Doe"
#Boolean
is_student = True
Step 4: Conditionals Python uses 'if', 'elif', and 'else' statements for conditional execution of code. Let's see an example:
age = 18
if age >= 18:
print("You are an adult.")
else:
print("You are a minor.")
Step 5: Loops Python has two types of loops: 'for' and 'while'. Here's how to use them:
# For loop for i in range(5):
print(i)
# While loop count = 0 while count < 5:
print(count)
count += 1
Step 6: Functions Functions are reusable pieces of code. You define a function using the 'def' keyword:
def greet(name):
print(f"Hello, {name}!")
# Calling the function
greet("Alice")
one final tip in Python LOOK AT THE INDENTATION/TABS Python is a language that needs you to indent certain parts of code to know what belongs where!
That's it! You've now learned the fundamentals of Python programming
I can write more here later like GIT and some basic machine learning but no need to overwhelm anybody drop a comment if you feel like you would prefer me to add this.
"AutoGPT keeps doing nothing/getting stuck, oh well I guess it's not working well and we have to wait for GPT4"
Wrong, Very very wrong
People seem to think AutoGPT Does not work very well with 3.5. This is not true. While yes it will AutoGPTs performance will improve with GPT4 it is absolutely not this godsend fix that people seem to think it is. to give people scope GPT3 has 175 Billion parameters. It IS capable of doing some of the things people in here are trying to achieve. a lot of it just comes down to communication and effort
Learn how to communicate better with AutoGPT by following these steps:
Prepare the file system for Auto-GPT by showing it the file operations module.
Create a text file named specs.txt in the auto_gpt_workspace directory. This file will contain the design specifications and requirements for your project.
Use ChatGPT to help you create the content for the specs.txt file. Provide your ideas, features, and requirements for the project, then ask ChatGPT for advice on any potential problems, missing features, and specific technical details.
Save the output from ChatGPT in specs.txt. Organize the content in a way that makes sense for your project, such as ordering by critical path analysis.
Create another text file named advice.txt in the auto_gpt_workspace directory. This file will be used to provide additional guidance, advice, or updates to Auto-GPT during the project execution.
Set the goals for Auto-GPT as follows:
Read c:\path\Auto-GPT\auto_gpt_workspace\specs.txt and follow its design specifications.
Read c:\path\Auto-GPT\auto_gpt_workspace\advice.txt and obey it every 5 minutes or more.
Provide a progress report with the percentage completed and time to completion every 10 minutes. Use speech if it is available.
Create no agents or scripts to monitor the files mentioned in your goals.
Shutdown.
Start Auto-GPT with the set goals and let it work on your project.
While Auto-GPT is working, if you need to provide any additional guidance or advice, update the advice.txt file. Auto-GPT will read the file periodically and follow the new instructions.
If you see Auto-GPT working with a new technology it might not be familiar with, ask ChatGPT for a technical summary and add it to the advice.txt file.
Optionally, you can ask ChatGPT for condensed technical advice on specific technologies, like Unity, and add this information to the advice.txt file to improve Auto-GPT's performance.
If needed, request ChatGPT to create a design document in a specific format, such as markdown, and add it to your specs.txt file. This can help you keep your project requirements organized and easy to follow.
credit goes to stunspot for working out this methodology For more context on this approach check out his post here: WINNING SAUCE!
So think of it like this GPT3.5 in combo with AutoGPT is like learning to ride a bike, once you have managed to do that. you can move to learn to ride the Car (GPT4)
The most important to address here is that people are experiencing errors/bugs because of user error, meaning that when something goes wrong there are 2 options :
Option 1 :
- you are experiencing this error/loop/hallucinating/lack of use because you set something up wrong or are using AutoGPT wrong. So you are capable of making changes to either your settings file/prompts or other options to improve the issue. (yes also without intense programming skills)
Option 2:
- you actually experience a bug. Keep in mind AutoGPT is not even a couple of weeks old. Right now the developers are calling it 'an experiment' and having dug through the code here and there sometimes it is held together by ducktape which at this stage is more than normal. So what I am saying here bugs are normal! Almost expected at this point! how do you know if you are experiencing an actual bug? look through the GitHub issues right here: Issues we are lucky enough to have a tight community going and since there are so many of us chances are you are not alone in your issue. Just read through it and find someone who has the same experience as you.
"I have bought ChatGPT Plus for $20 a month how do get access to the API?"
Simply put ChatGPT Plus does not give you access to the GPT4 API modelA lot of people including me have Plus access but no API access
while the models on ChatGPT and the API are the same thing OpenAi is currently beta Testing the API access since an API ( application programmable interface) serves as a way for programs to directly communicate to a service meaning it is a lot easier to pretty much abuse the API that plus the fact that the use of GPT4 apparently is pretty costly to run is making OpenAi slow down the access. So to the only thing to know is be patient and generate some info for your AutoGPT model with you ChatGPT 4 model to help it out also take note
Out of the box the env variable in AutoGPT is setup like this## SMART_LLM_MODEL - Smart language model (Default: gpt-4)## FAST_LLM_MODEL - Fast language model (Default: gpt-3.5-turbo)
when you don't have access to The GPT4 api you have to change SMART_LLM_MODEL like this
SMART_LLM_MODEL = gpt-3.5-turbo
Otherwise you will run into the error GPT4 model not found.
Want to check if you have GPT4 access ?
run this script in your python editor
import openai
# Replace this with your API key
API_KEY = "xxxxxxx"
# Set up the OpenAI API client
openai.api_key = API_KEY
def get_models():
try:
models = openai.Model.list()
available_models = [model.id for model in models["data"]]
print("Models available to you:")
for model in available_models:
print(f"- {model}")
required_models = [
"gpt-4",
"gpt-4-0314",
"gpt-4-32k",
"gpt-4-32k-0314"
]
missing_models = [model for model in required_models if model not in available_models]
if missing_models:
print("\nYou are missing access to the following models:")
for model in missing_models:
print(f"- {model}")
else:
print("\nYou have access to all required models.")
except Exception as e:
print(f"Error: {e}")
print("Unable to retrieve model information.")
if __name__ == "__main__":
get_models()
"Are there any Security Vulnerabilities while using Auto-GPT?"
Don't think of me as a rude person but
YES don't be DUMB
If I would tell you hey there is this experimental algorithm out there that is open source (everybody can suggest changes) it will have access to not only the workspace folder but also be able to execute local commands at will and login to your account and access other API's and the internet. Would you not be concerned? I know I would. Hell, I get worried if someone asks me to use my phone for something.
if you are not worried, well .... go watch Transcendence return to this post give it an upvote and rethink your life cause you might be a little naive.
but on a serious note, yes there are severe security risks here so if you are looking for a way to avoid these risks, consider these tips:
Tip 1
Run AutoGPT on a virtual machine :How to Create and Use Virtual Machines
Tip 2
Stay away from changing these settings in the env templateEXECUTE_LOCAL_COMMANDS=FalseRESTRICT_TO_WORKSPACE=True
- Local commands set to True will allow AutoGPT to run commands in the terminal basically giving it access to pretty much everything- Restrict to a workspace set to False will allow AutoGPT to work outside of the folder it is hosted in
"**Easiest installation method?"**Installations are always hard they just are, if you feel like you really can't wrap your head around install AutoGPT locally (maybe rethink if you should play around with ai in the first place but that is my personal opinion) check out one of the many web-based AutoGPTs copy's below
- Cognosys.ai
- https://godmode.space/
EDIT: this thought just came up in my head but some of these hosted services above ask you for your OpenAi API while I haven't seen reports of any fraud or misuse I would suggest being careful giving out your API keys to random websites.
if you really want to install AutoGPT anyway first read a basic guide on Python and GIT ( look above or look here Python tutorial
install python Download Python | Python.org
install editor Visual Studio Code - Mac, Linux, Windows
get an OpenAI API key by signing up and adding card info Overview - OpenAI API
install docker Get Docker
Mac:Click the Launchpad icon in the Dock, type Terminal in the search field, then click Terminal.
Windows: Click inside the search box from the taskbar and type “terminal” or “Windows terminal.”
run "git clone -b stable https://github.com/Significant-Gravitas/Auto-GPT.git" ( meaning copy and paste what is in between quotes in the terminal and press enter)
run "cd Auto-GPT" ( once again meaning copy and paste what is in between quotes in the terminal and press enter)
Install required dependencies: "pip install -r requirements.txt" ( once again meaning copy and paste what is in between quotes in the terminal and press enter)
Configure Auto-GPT:a. Find the .env.template file in the /Auto-GPT folder. Reveal hidden files if needed.b. Copy the .env.template file and rename the copy to .env.c. Open .env in a text editor, add your API keys, and save the changes.
Done and ready to run!
A final note, I might come off a bit preachy (if that is even a word) here and offend some people but I would say educate yourself on what you are doing. I see a lot of people trying to build a business with The GPT algorithms which is great but they then lack the knowledge of what GPT actually does/how it works. GPT/LLMs are not 'robots' nor are they a Black box algorithm. Boiled down they are math equations which is why in this post I refer to them as algorithms cause that is what they are. Nothing more nothing less. They are tools to improve workflows and are a step closer to AGI. So please If you are building something with GPT or starting a business that depends on it like I have seen some people do with the help of prompts etc know what is going on in the backend since you don't want to be dependable on what you don't understand.
If you are an "AI enthusiast but I am not a programmer" that is okay but if you really are an AI enthusiast and you can't gather enough effort to read through some documentation, question how passionate you are.
Alright once again reach out if you feel like it/have questions/suggestions
Cheers, -Tempus