見出し画像

【AutoGPT】英語解説を日本語で読む【2023年4月27日|@WorldofAI】

AutoGPTの解説です。
基本的な機能からより高度な機能まで、AutoGPTについて知っておく必要があることを紹介しています。
00:00 - イントロダクション
01:37 - AutoGPTって何?
03:08 - 特徴
03:34 - 必要なソフトウェアをインストールする
04:18 - APIキー
05:28 - インストール
06:46 - コードの編集
08:12 - APIキーの入力
10:51 - デモ
12:00 - ボットに音声を追加する
公開日:2023年4月27日
※動画を再生してから読むのがオススメです。


Imagine being able to order pizza with just the conversation with an AI agent that you have.

AIエージェントとの会話だけでピザを注文できるなんて、想像してみてください。

Well, that's exactly what someone did using AutoGPT.

まあ、それこそAutoGPTを使って誰かがやったことなんですけどね。

Take a look.

見てみてください。

Hello, I am here at your service.

こんにちは、私はあなたのためにここにいます。

What would you like to do?

何をされたいのでしょうか?

I'd like to order a pizza.

ピザを注文したいです。

What type of pizza would you like to order?

注文したいピザの種類は?

11 inch pepperoni pizza, regular crust.

11インチのペパロニピザ、レギュラークラストです。

Okay, great.

なるほど、素晴らしい。

I will first search to find a good pizza place in your area.

まず、あなたの地域で美味しいピザ屋さんを探すために検索します。

I will now cause a pizza using the Twilio voice API and order you a pizza.

今度はTwilioの音声APIを使ってピザを起こし、あなたにピザを注文してみます。

Hello, I would like an 11 inch regular pepperoni pizza for pick up.

こんにちは、11インチのレギュラーペパロニピザの受け取りをお願いします。

Now isn't that amazing?

さて、すごいと思いませんか?

Well, in today's video, I'm going to be showcasing on how you can actually install your own AutoGPT agent.

さて、今日のビデオでは、実際にAutoGPTエージェントをインストールする方法を紹介したいと思います。

With it, you can do a lot of different tasks with you, as well as helping you with different tasks that you might need assistance with.

AutoGPTエージェントを使えば、様々なタスクを一緒にこなしたり、サポートが必要なタスクを手助けしたりすることができます。

In today's video, I'm going to also showcase the installation as well as give me an analysis as to what AutoGPT is and how you can actually have a voice speech recognition AI agent.

今日のビデオでは、インストール方法を紹介するとともに、AutoGPTとは何か、音声音声認識AIエージェントをどのように導入できるかを分析します。

With that thought, guys, before we actually get into the gist of the video, if you guys haven't seen my AutoGPT video where I talk more in-depth about the analysis of the actual application, definitely check this out, and I'll leave the link down in the description below.

そう考えると、実際のビデオの要点に入る前に、実際のアプリケーションの分析について詳しく説明している私の AutoGPT ビデオをまだ見ていない場合は、ぜひチェックしてください。 以下の説明にリンクを残しておきます。

And in terms of all the other links, I'll also leave them in the description below.

そして、他のリンクについても、下の説明に書いておきます。

Now if you guys haven't checked out any of my previous videos, there's a lot of value and there's a lot of content that you'll definitely benefit from.

私の以前のビデオをチェックアウトしていない場合は、多くの価値があり、間違いなく恩恵を受けるコンテンツがたくさんあります.

If you guys are subscribed, definitely subscribe, turn on the notification bell, like this video and with that thought, let's get right into it.

もし購読しているなら、ぜひ購読して、通知ベルをオンにして、このビデオに「いいね!」してください!そう思って、さっそく本題に入りましょう。

So what is AutoGPT?

さて、AutoGPTとは何でしょうか?

There has been a lot of craze over the internet about this application.

インターネット上では、このアプリケーションについて多くの熱狂がありました。

Well, what it actually is, it's an autonomous AI agent application and it's basically an experimental software application that demonstrates the capabilities of GPT-4 language model.

その正体は、自律型AIエージェントアプリケーションで、GPT-4言語モデルの能力を実証する実験的なソフトウェアアプリケーションです。

Now for the people who do not know what GPT-4 is, it's an advanced artificial intelligence system that can basically generate human like responses to a given input.

GPT-4を知らない人のために説明すると、GPT-4は先進的な人工知能システムで、与えられた入力に対して人間のような応答を生成することができます。

Now AutoGPT is designed to showcase the potential of this technology by allowing users to set goals and objectives for the system to achieve autonomously.

AutoGPTは、この技術の可能性を示すために設計されており、ユーザーはシステムが自律的に達成するための目標や目的を設定することができます。

Now this program is powered by GPT-4, which uses a form of machine learning known as language modeling.

このプログラムは、言語モデリングと呼ばれる機械学習の一種を使用するGPT-4によって駆動されます。

This means that it analyzes large amounts of text data and learns to predict the most likely words and phrases that should follow a given input.

つまり、大量のテキストデータを分析し、与えられた入力に続く最も可能性の高い単語やフレーズを予測するように学習するのです。

Now with this ability, the system is able to actually chain together thoughts in a way that leads towards achieving a desired goal that you set.

この機能を使えば、設定した目標の達成に向けて、思考を連鎖させることができるようになります。

This is something that we can see in this little demo right here.

これは、この小さなデモで確認することができます。

Now the reason why AutoGPT is unique is that it operates autonomously without any human intervention.

AutoGPTがユニークなのは、人間の介入を受けずに自律的に動作することです。

This means that it's capable of making decisions and taking actions based solely on its own internal process.

つまり、自らの内部プロセスのみに基づいて意思決定し、行動を起こすことができるのです。

As one of the first examples of GPT running fully autonomously, with that thought, guys, this is something that I've covered previously in my video where I go more in-depth.

GPTが完全に自律的に動作する最初の例の1つとして、皆さん、これは以前、私のビデオで取り上げたもので、もっと深く掘り下げたものです。

So, I highly recommend that you check it out.

ですから、ぜひご覧になってください。

And for the people who do not want to install this locally, there's actually an application and a video that I talked about, and I'll leave all those links down in the description below.

ローカルにインストールしたくないという人のために、私が話したアプリケーションとビデオもあります。

Now some of the features that I want to talk about before we actually get into the installation part that you get to access the internet, you have long-term and short-term memory management.

さて、実際にインストールする前にお話ししたいのは、インターネットにアクセスできること、長期・短期のメモリー管理ができること、などです。

GPT-4 is the conjunction that is basically run and off of for the text generation and you're able to do a lot more with some of these other features.

GPT-4は、基本的にテキスト生成のために実行される接続で、その他の機能でさらに多くのことを行うことができます。

Now in terms of what you will need to actually install your own autonomous AI agent, first things first, you're going to have to have Git installed.

さて、実際に自律型AIエージェントをインストールするために必要なものですが、まず最初に、Gitをインストールしておく必要があります。

This is to clone the repository onto your desktop.

これは、リポジトリをデスクトップにクローンするためのものです。

You can do this for any CPU or processor that you have.

これは、持っているCPUやプロセッサに関係なく行えます。

Secondly, you will need Python.

次に、Pythonが必要です。

Python is going to be the code editor, sorry, the actual code editor of your actual prompt and as well as your AI agent application.

Pythonは、実際のプロンプトやAIエージェントアプリケーションのコードエディター、すみません、実際のコードエディターになる予定です。

So this is something that you will need to actually run the application.

つまり、アプリケーションを実際に実行するために必要なものです。

And lastly, you will also need Visual Studio Code.

そして最後に、Visual Studio Codeも必要です。

This is optional.

これはオプションです。

Obviously, you can use your own code editor that is given with your actual processor.

もちろん、実際のプロセッサに付属しているコードエディタを使用することも可能です。

But in my case, Visual Studio Code is something that is quite appealing and something that is quite easy to use.

しかし、私の場合、Visual Studio Codeは非常に魅力的で、使い勝手の良いものです。

So definitely get this as it's definitely recommended by me.

ですから、ぜひ入手してください。私のおすすめです。

Now another thing that you need to also have is an API key that has a balance on it.

もうひとつ、残高のあるAPIキーも持っておく必要があります。

Now if you don't know what the pricing is like, it's quite easy to install as well as pay for.

価格については、インストールも支払いも非常に簡単です。

You don't need that much usage for this API key.

このAPIキーはそれほど多く使う必要はありません。

Max you will probably spend is around $5 for this actual experiment, so definitely get this installed as it's very cheap and I'll show you what you can actually do.

この実際の実験では、おそらく最大で5ドル程度かかると思いますので、非常に安く、実際にできることを紹介しますので、絶対にインストールしてください。

Now in terms of Pinecone, this is another API key that you will need in terms of actually hosting the memory, short-term memory as well as the long-term memory on this web server.

Pineconeに関しては、これもAPIキーで、実際にこのウェブサーバーでメモリ、短期メモリ、長期メモリをホストするために必要なものです。

So make sure you have a free API key set up from Pinecone as this is something that you can easily install and get a free access towards.

そのため、Pinecone から無料の API キーが設定されていることを確認してください。これは、簡単にインストールして無料でアクセスできるものです。

And lastly, if you want the speech recognition system installed for your AI agent, you want to make sure that you have an ElevenLabs actual application or account installed, as you will be using their free API key for their speech recognition system for your AI agent.

そして最後に、AIエージェントに音声認識システムをインストールする場合、AIエージェントに音声認識システムのための同社の無料APIキーを使用することになるので、ElevenLabsの実際のアプリケーションまたはアカウントがインストールされていることを確認したいのです。

Now this is another video that I actually talked about and if you're interested, I'll leave that link also in the description below talking a little bit more about ElevenLabs.

さて、これは私が実際に話した別のビデオです。興味があれば、そのリンクを以下の説明にも残します。ElevenLabs についてもう少し説明します。

But with that thought, let's get to the next step where we talk a little bit more about installing the actual AI agent.

それでは、次のステップで実際のAIエージェントのインストールについてもう少し詳しく説明します。

Okay, time for the installation.

さて、インストールの時間です。

So I'm going to leave this link down for the GitHub link and what you're going to be doing now is clicking on code and copying the repository link.

GitHubのリンクはこのままにしておきますので、これからすることは、コードをクリックしてリポジトリのリンクをコピーすることです。

Once you have done that, open up command prompt and from this, we're basically going to clone it onto our desktop.

そうしたら、コマンドプロンプトを開き、ここからデスクトップにクローンを作成します。

So what you will do is get clone, paste the link and click enter.

cloneを開き、リンクを貼り付け、Enterをクリックします。

Now what it will do is install the files onto your local desktop and once that is completed, you want to click into the folder of AutoGPT by typing CD AutoGPT and you want to click enter.

これで、ローカルデスクトップにファイルがインストールされます。それが完了したら、CD AutoGPTと入力してAutoGPTのフォルダをクリックし、Enterをクリックします。

Now what we're going to be doing is installing the packages of that file onto your desktop.

これから行うのは、このファイルのパッケージをデスクトップにインストールすることです。

So what you can do is go to the next step and this is where I'll show you.

次のステップに進みますので、ここでお見せします。

So with the next step, you're going to install the requirements into the actual folder and this is the command that you will be pasting.

そこで次のステップで、要件を実際のフォルダにインストールすることになりますが、これが貼り付けるコマンドになります。

I'll leave this in the description below, so it's easier for you.

これは下の説明に残しておきますので、簡単にできますね。

What you want to do is click enter, and once that is done, it will start installing the packages.

やりたいことはEnterをクリックすることで、それが完了するとパッケージのインストールが始まります。

I'll get to the next part where we will actually start using the Visual Studio Code to start unpacking the actual package.

次のパートでは、実際にVisual Studio Codeを使って、実際のパッケージの解凍を開始することになりますね。

Once it is installed, you can open up Visual Studio Code.

インストールが完了したら、Visual Studio Codeを開くことができます。

What you want to do is open up the folder by clicking this button.

やりたいことは、このボタンをクリックして、フォルダを開くことです。

Once that is done, we'll get to the next part once we have opened it up.

それが終わったら、一旦開いてから次のパートに進みます。

Once you have opened it up, you can trust the authors.

開いてしまえば、作者を信用することができます。

It's quite safe so don't worry about that and now what you want to go is to the.env.template file.

.env.templateファイルに移動してください。

What you want to do here is rename it and what you want to do is take out the template.

ここでやりたいことは、名前を変えて、テンプレートを取り出すことです。

Once you have taken that out, you can save the file.

テンプレートを取り出したら、そのファイルを保存します。

What you can now do is start inputting your API key as well as your ElevenLabs key.

これでAPIキーとElevenLabsキーの入力が開始されます。

If you're going to be using Pine Cone for your short term and long term memory storage, you can also input it over here.

Pine Coneを短期記憶と長期記憶の保存に使うのであれば、こちらも入力します。

Once that is done, I'm going to get to the next step and show you guys where to input it and from that, you can also input different plugins as well as different features.

それが終わったら、次のステップに進み、どこに入力すればいいのか、また、そこからさまざまなプラグインやさまざまな機能を入力することができます。

This is something great about this actual application.

これは、この実際のアプリケーションの素晴らしいところです。

It talks about some of the documentations that you can actually imbibe with this actual application.

このアプリケーションで実際に身につけることができるいくつかの文書について話しています。

You can actually have a web search installation.

あなたは実際にウェブ検索インストールを持つことができます。

You can also have a memory installation, which is the Pine Cone.

また、Pine Coneのようなメモリインストールも可能です。

In terms of web search, you can also incorporate Google's API system.

ウェブ検索の面では、GoogleのAPIシステムを組み込むこともできます。

So, it can search the web with Google.

つまり、Googleでウェブ検索ができるわけです。

And what you can also do is the voice TTS, which is ElevenLabs.

あと、できるのは音声TTSで、これはElevenLabsですね。

This is something that I'm going to be installing with this API key.

これは、このAPIキーでインストールすることになりますね。

An image generation is something that you can also use, so there are different use cases for this actual application.

画像生成もできるもので、この実際のアプリケーションにはさまざまなユースケースがあります。

If you want to use the full capabilities of it, you can input all of them.

その機能をフルに使いたいのであれば、全部入力すればいいと思います。

But in my case, I'm only going to be doing the memory and voice one.

でも、私の場合は、メモリと音声の方だけをやることにしています。

This is because we're not going to be incorporating a lot of different things.

というのも、いろいろなものを取り入れるつもりはないからです。

As we're going to be using this agent for small menial tasks.

このエージェントを小さな下働きに使うつもりなので。

What I did is inputted my open API key and this is what you can get from actualopenai.com and I'll leave this link down in the description below.

私が行ったのは、オープンAPIキーを入力することです。これはactualopenai.comから取得できるもので、このリンクは下の説明に残しておきます。

What I talked about before is that you want to make sure that you have credits.

前に話したのは、クレジットがあることを確認したいということです。

What you do is create your own secret key.

自分の秘密鍵を作るのです。

Once you have uploaded it in the billing section by adding your own credit card, you are going to be setting a limit as to how many tokens you will spend for this experiment or your actual menial task that you'll be running with this application.

自分のクレジットカードを追加して課金セクションにアップロードしたら、この実験やこのアプリケーションで実行する実際の雑務に使うトークンの上限を設定することになるのです。

So once you're done that, you can copy the key.

それが済んだら、キーをコピーしてください。

You can paste your open API key.

オープンAPIキーを貼り付けることができます。

Obviously, don't even try to copy mine because I'm going to be turning this off after this video, so don't even try.

もちろん、私のものをコピーしようとしてはいけません。このビデオの後でこれをオフにするつもりなので、試さないでください。

You can also input your Azure key in terms of using different LMS.

また、異なるLMSを使用するという点で、Azureのキーを入力することもできます。

You can plug and play different things.

いろいろなものをプラグアンドプレイできます。

Now, in terms of memory, I inputted my own pinecone key, and I put my environment.

さて、記憶ということで、自分の松ぼっくりキーを入力し、自分の環境を入れてみました。

This is something that you can get on your pinecone actual data space.

これは、自分のpineconeの実際のデータスペースで取得できるものです。

Once you go to the API key after you create your free account, you can copy your own key and copy the environment over here.

無料アカウントを作った後にAPIキーのところに行くと、自分のキーをコピーして、環境をこちらにコピーすることができます。

Then, paste it where the environment is, and you can paste where the API key is.

そして、環境のあるところに貼り付けて、APIキーのあるところに貼り付けることができます。

Now, in terms of the speech aspect of this, I'm not going to show you that right now.

さて、スピーチの面では、今はまだお見せできません。

I'm going to show it at the end of the video because I want to show you guys how you can actually configure it, as well as play around with your actual AI agent.

なぜなら、実際にどのように設定し、実際のAIエージェントを動かしてみるかを紹介したいからです。

Now, what you can also do is play around with the temperature, as well as the actual parameters it uses with the LLM models.

また、温度や、LLMモデルで使用する実際のパラメータを弄ることもできます。

This is something that you can actually play around with, and there are demonstrations as to how you can use it.

これは実際に遊んでみることができますし、使い方のデモもあります。

Have it installed on a Docker system, or have an image generation system that is provided.

Dockerシステムにインストールしてもらうか、提供されるイメージ生成システムを持ってください。

You can also play around with the Hugging Face audio-to-text provider; you can play around with the GitHub API key, web browsing in terms of using Google, Firefox, Chrome, or Safari.

GitHub APIキーや、Google、Firefox、Chrome、Safariを使ったウェブブラウジングで、Hugging Faceの音声テキスト化プロバイダーで遊ぶこともできます。

You can also have the TTS provider, which I'll show you shortly.

また、TTSプロバイダーを使うこともできます。

Another thing that you can do is Twitter API and your allow listed plugins that you can actually incorporate from third-party companies with the actual application.

もうひとつは、Twitter APIと、サードパーティ企業のプラグインを実際のアプリケーションに組み込むことができる許可リストです。

This is another video that I plan on releasing as this enhances the application to another level in basically providing you with solutions to complex training and solutions towards complex tasks.

このプラグインは、複雑なトレーニングや複雑なタスクに対するソリューションを提供するために、アプリケーションをさらに強化するもので、これもビデオで公開する予定です。

Now, once you have inputted all these API keys, what you want to do is click save.

さて、これらのAPIキーをすべて入力したら、保存をクリックします。

The next thing that you want to do is go into the main.py Python folder or the file.

次に行うことは、main.py Python フォルダまたはファイルに移動することです。

On the top right corner of Visual Studio Code, you want to click 'Enter'. This will start running the terminal of the actual application.

Visual Studio Codeの右上にある'Enter'をクリックします。これで、実際のアプリケーションのターミナルを実行し始めます。

Once this is ready, it will start downloading the files, and will get back to you once it is ready to run.

この準備ができたら、ファイルのダウンロードを開始し、実行する準備ができたら、あなたに連絡します。

But once that is done, you can basically get to the next section, which basically tells you, "Welcome to AutoGPT."

しかし、それが終われば、基本的に次のセクションに進むことができます。"Welcome to AutoGPT "と表示されます。

You can create an AI assistant by typing "/manual mode," or you can start by naming your actual AI.

AIアシスタントを作成するには、"/manual mode "と入力するか、実際のAIに名前を付けて始めることができます。

Now, what you can do is, in this case, they had an example of entrepreneur GPT, and you can describe the AI's role.

さて、何ができるかというと、今回は起業家GPTの例がありましたので、そのAIの役割を説明することができます。

In this case, they designed it to autonomously develop and run a business with the sole goal of increasing your net worth.

この場合は、純資産を増やすことだけを目標に、自律的にビジネスを開発・運営するように設計したそうです。

Then, you can upload up to 5 goals with your AI.

そして、AIと一緒に5つまで目標をアップロードすることができます。

In this case, you put 1, 2 by putting a comma between each of the goals, and then you click enter.

この場合、それぞれの目標の間にカンマを入れて1、2を入れ、エンターをクリックします。

Now, if you don't have a particular goal set, or like, if you don't have a particularly 5 goals, then you can even reduce it to like 3 or 2, etc.

特定の目標が設定されていない場合、または特に 5 つの目標がない場合は、それを 3 つまたは 2 つなどに減らすこともできます。

And if you have more goals, you can also input another objective afterwards.

さらに目標がある場合は、その後に別の目的を入力することもできます。

And that's basically it for actually running your own agent, guys.

以上で、実際に自分のエージェントを運営する方法は終了です。

This is quite easy.

これは非常に簡単です。

Now what I'm going to be showing you guys is how to actually install the actual aspect of an 11's lab as well as a speaker to your actual AI agent.

これから紹介するのは、実際に11の研究室の様子や、AIエージェントにスピーカーを設置する方法です。

So with that thought, let's get to the next section where we actually implement an AI system that speaks to you.

それでは、次のセクションでは、実際にあなたに話しかけるAIシステムを実装してみましょう。

So I'll leave the link down for ElevenLabs in the description below.

ということで、以下の説明でElevenLabsのリンクを伏せておきますね。

Basically, what you want to do is go to resources, and you want to go into documentation.

基本的に、やりたいことはリソースに行き、ドキュメンテーションに入りたいのです。

I believe once you are here, you can then set up your API key as well as get started with your free access.

ここで、APIキーを設定し、無料アクセスを開始することができると思います。

Obviously, this is only after you install and get your access to the actual account on ElevenLabs.

もちろん、これはインストールして、ElevenLabsの実際のアカウントにアクセスできるようになった後の話です。

So, leave this other tab open.

ですから、この他のタブは開いたままにしておいてください。

But what you want to do is click on "Profile" and then click on "Profile Settings" when you click on the icon on the top right.

右上のアイコンをクリックし、「プロフィール」をクリックし、「プロフィール設定」をクリックします。

What you want to do is copy your key.

自分のキーをコピーしてください。

Once you have done that, you want to go on to your actual.n folder that we edited before.

それができたら、先ほど編集したactual.nフォルダに移動してください。

You want to copy this over here.

これをここにコピーします。

Once you have done that, you can actually input different voice IDs to make it replicate your voice or someone else's voice.

これで、自分の声や他の人の声を再現するために、異なる音声IDを入力することができます。

What you can do is go into the voices and get voices over here.

ボイスの中に入って、ここにボイスを入れることができるのです。

You have different objectives as well as different labels as to how you can tweak around with it.

このように、さまざまな目的、さまざまなラベルを設定することで、さまざまな調整を行うことができます。

So obviously, this is something that will require you to get a lot of time to get adjusted with because there are different voices.

ですから、これは明らかに、さまざまな声があるので、調整するために多くの時間を得る必要があるものなのです。

Once you have a particular voice in hand, you can get the voice copy, that actual environment's code, and you can paste it in your voice ID section over here.

特定のボイスを手に入れたら、そのボイスコピー、つまり実際の環境のコードを入手して、こちらのボイスIDセクションに貼り付けることができるのです。

You can even have multiple different voices that will definitely output for your basic AI agent.

基本的なAIエージェントには、複数の異なる音声を出力させることも可能です。

And that's basically an example of how you can actually set up your own AI assistant guys.

これが、AIアシスタントの設定方法の一例です。

I hope you found this video quite beneficial for you guys because this is quite unique and this is an autonomous agent that will definitely be solving a lot of complex tasks in the future.

このビデオは非常にユニークで、将来的に多くの複雑なタスクを解決する自律型エージェントであるため、皆さんにとって有益なものであったかと思います。

Now, if you want me to do different types of videos and different demonstrations on how you can actually use this application with different cases, I can definitely do so.

このアプリケーションをどのように使うか、さまざまなケースを想定して、さまざまなタイプのビデオやデモを作成してほしいということであれば、ぜひそうしましょう。

I'll leave all the links down in the description below, as well as like the analysis videos of AutoGPT as well as ElevenLabs.

ElevenLabsと同様にAutoGPTの分析ビデオのように、私は下の説明ですべてのリンクを残しておきます。

So with that thought guys, thank you so much for watching.

ということで、皆さん、見てくれてありがとうございました。

Please check out my other videos, because there's a lot of content that will definitely benefit you guys.

私の他のビデオもチェックしてみてください、皆さんの役に立つコンテンツがたくさんありますから。

And if you guys haven't seen the videos that I talked about in today's video, definitely check those out.

今日のビデオで話したビデオをまだ見ていない人は、ぜひチェックしてみてください。

Subscribe, turn on the notification bell, like this video because that will really mean a lot to me guys and with that thought, I'll see you guys next time.

購読して、通知ベルをオンにして、このビデオに「いいね!」してください!それが私にとって本当に大きな意味を持つからです。

Have an amazing day, have an amazing small and I'll catch you guys later.

素晴らしい一日を、素晴らしい小さな一日を、そしてまた後で会いましょう。

Peace out fellas.

それではまた。


この記事が気に入ったらサポートをしてみませんか?