見出し画像

【AutoGPT】英語解説を日本語で読む【2023年4月25日|@Santrel Media】

AutoGPTの解説です。
公開日:2023年4月25日
※動画を再生してから、インタビューを読むのがオススメです。


So, ChatGPT is no longer the most exciting thing in AI.

そう、ChatGPTはもはやAIで最もエキサイティングなものではなくなったのです。

Instead, everyone's freaking out about this new software called AutoGPT, which can essentially automate way more than ChatGPT was able to.

その代わりに、ChatGPTができた以上のことを自動化できるAutoGPTという新しいソフトウェアについて、みんなが騒いでいます。

This could make you a virtual assistant.

これによって、あなたはバーチャルアシスタントになれるかもしれません。

This could be a wedding planner.

ウェディングプランナーにもなれる。

This could be a nutritionist.

栄養士にもなれる。

This could be a lot of different things and automate substantially larger tasks than ChatGPT was able to.

ChatGPTが実現したよりも、はるかに大きなタスクを自動化することができます。

Now, how is it able to do this?

では、なぜこのようなことができるのでしょうか?

Well, we're gonna talk about that throughout this video, and this is a full tutorial showing you how to set it up and how to actually use that, and I promise I will not be skipping any steps at all.

まあ、このビデオを通してそれについて話し合いますし、これはそれを設定し、実際に使う方法を示す完全なチュートリアルです。そして、私は全くステップをスキップしないことを約束します。

So, even an absolute beginner who knows nothing about coding can follow along, type in the letters I type, and get to the exact same place.

だから、コーディングについて何も知らない全くの初心者でも、私が入力した文字を入力して、全く同じ場所にたどり着くことができます。

That way, you can run your own version of AutoGPT very easily on your own computer, and I can prove that right here.

そうすれば、自分のコンピュータで簡単にAutoGPTの自分バージョンを動かすことができます。

This laptop right here, I have not done this, has nothing on there, says no coding tools.

このノートパソコン、私はやったことがないのですが、何も入っておらず、コーディングツールもないと言っています。

This has no Python.

Pythonもありません。

This has nothing like that.

Pythonもありません。

So we will actually be setting this up from scratch.

ですから、実際にゼロからセットアップすることになります。

So we're not skipping any steps.

だから、手順を省略することはありません。

Now, like I said, AutoGPT is really, really impressive.

さて、AutoGPTは実に素晴らしいものです。

But why is it different from ChatGPT?

しかし、なぜChatGPTと違うのでしょうか?

Well, ChatGPT is great.

ChatGPTは素晴らしいです。

Obviously, a large language model, you're able to ask it questions to run commands, and it can give you kind of one response at a time.

大規模な言語モデルで、質問してコマンドを実行させ、一度に1つの応答を返すことができます。

Sometimes those can be complex responses, but nonetheless, one thing at a time.

時には複雑な応答もありますが、それでも一度に1つの回答を得ることができます。

And in addition to that, you don't really have access to the internet with that, whereas AutoGPT is able to aggregate many different what's called APIs.

さらに、AutoGPTがAPIと呼ばれるさまざまな機能を備えているのに対し、AutoGPTではインターネットにアクセスすることができない。

Essentially, it can work with different plugins, so you can have a Google API, so it's able to search the internet.

基本的には、さまざまなプラグインと連携することができるので、Google APIを使えば、インターネットを検索することができます。

You can have a ChatGPT API so you're able to use ChatGPT.

ChatGPTのAPIがあれば、ChatGPTを使うことができます。

You have a lot of different things in there.

このように、さまざまなことができます。

It can give you images, it can output its audio.

画像も出せますし、音声も出力できます。

That's actually like a simulated voice.

これは擬似音声のようなものです。

It could be your simulated voice.

あなたの声をシミュレートすることもできます。

Really endless options here.

本当に無限の選択肢があります。

And really the big difference is, rather than just asking for one command at a time, you can give it up to five different goals, and then it'll iterate on itself.

そして、大きな違いは、一度に1つのコマンドを要求するのではなく、最大5つまでの異なるゴールを与えることができ、その結果、それ自体が反復することです。

It'll run a command, it'll come up with an output, it'll give you a reason for that output, and then it'll come up with what its next command is going to be.

コマンドを実行し、出力を出して、その理由を説明し、次のコマンドを考える。

It can iterate on that over and over until it's able to get you the results.

それを何度も繰り返して、結果を得ることができるのです。

So, for example, if you say, "I want to plan a wedding," it could first say, "You know what is the normal stuff for planning a wedding?"

例えば、「結婚式の計画を立てたい」と言ったら、まず「結婚式の計画を立てるために必要なものは何だと思う?

And you can have a list of what, okay, this is the results, these are what I think I need to do in order to plan a wedding.

そして、これが結果だ、結婚式を計画するために必要なことはこれだ、とリストアップすることができるのです。

Then the next step, it'll say, "Alright, now let's find local venues," and it can go and find local venues, and then it can look up the reviews of the venues, and then it can find the best-reviewed venue.

次のステップでは、「さあ、現地の会場を探しましょう」と言って、現地の会場を探し出し、その会場のレビューを調べ、最も評価の高い会場を見つけ出すことができます。

Then it could go after that and say, "Alright, let's find some catering."

そして、「よし、ケータリングを探そう」と、その先に進むこともできます。

So it can iterate and continue a longer process that otherwise you would need a person to either work with just Google or ChatGPT to kind of work on this themselves.

そうでなければ、GoogleやChatGPTを使って自分で作業する必要があるような、長いプロセスを繰り返し、継続することができるのです。

So I hope that kind of explained it.

このような説明ができたと思います。

I think a lot of examples throughout this video will be very helpful.

このビデオでは、たくさんの事例が紹介されているので、とても参考になると思います。

But let's get over to my laptop and start off actually setting up AutoGPT.

では、私のノートパソコンでAutoGPTのセットアップを始めましょう。

Like I said, it's very simple, very straightforward.

先ほども言ったように、とてもシンプルでわかりやすい内容になっています。

You just have to follow along and do what I do.

皆さんは、私がすることに従って、実行するだけです。

Now, before we get into the first step, I want to point out that I will have links down below.

さて、最初のステップに入る前に、下にリンクを貼っておくことを指摘しておきます。

Not affiliate links, just regular links because it's free to use.

アフィリエイトリンクではなく、無料で使えるので普通のリンクです。

This will be a link to the Github, which is the repository of where the source code is actually stored.

これはGithubへのリンクになりますが、これは実際にソースコードが保存されているリポジトリです。

So we will be downloading that.

ですから、私たちはそれをダウンロードすることになります。

I'll go through that link in a second.

このリンクは後で紹介します。

I also have a link down there to install Python, which we will need.

また、Pythonをインストールするためのリンクもあります。

I use Anaconda.

私はAnacondaを使っています。

That's how I've always operated with Python, and we will have a link to Visual Code if you want to use that.

また、Visual Codeを使いたい場合は、Visual Codeへのリンクも用意しています。

That's not absolutely necessary, but it does make it so much easier to view things like markdown and different types of files that we will have in the repository.

絶対に必要というわけではありませんが、マークダウンやさまざまな種類のファイルをリポジトリで見るのがとても簡単になります。

And then the fourth thing down there is a link to our free newsletter.

そして4つ目は、無料のニュースレターへのリンクです。

So we are launching a brand new newsletter because AI is moving so quickly.

AIは急速に進歩しているので、新しいニュースレターを発行することにしました。

So just when you thought you got a hold on ChatGPT, AutoGPT came out, and there's going to be more iterations and more changes and more improvement in this field.

ChatGPTが一段落したと思ったら、今度はAutoGPTが登場し、この分野ではさらなる反復と変更、改良が繰り返されるでしょう。

And so if you don't end up keeping up with this space, you're going to fall behind, and eventually, somebody else is going to make the equivalent of AutoGPT to replace your job.

そして、もしあなたがこの分野についていけなければ、あなたは遅れをとることになり、最終的には誰かがあなたの仕事の代わりにAutoGPTに相当するものを作ることになるでしょう。

And so really, in our opinion, the best way to prevent this, the best way to keep up-to-date on everything, is to know what's going on in AI so that you're on the leading edge.

ですから、私たちの考えでは、これを防ぐ最善の方法、すべてを最新に保つ最善の方法は、AIで何が起こっているかを知ることで、自分が最先端にいるようにすることです。

So you're not the one getting replaced.

そうすれば、自分が取って代わられることはありません。

You're the one innovating and the most valuable person at your company.

あなたは革新的な存在であり、会社で最も価値のある人物なのです。

Step number one is to copy and paste the link in the description.

ステップ1では、説明文にあるリンクをコピーして貼り付けます。

It goes to github.com, and this just has the latest release.

github.comにアクセスし、最新のリリースを見ることができます。

So it's going to change when you actually go to this.

実際にアクセスしてみると変わりますよ。

So right now, the latest is V 0.2.2, and this does, of course, change as they iterate, depending on when you're watching this video.

今現在、最新はV 0.2.2ですが、もちろん、このビデオを見るタイミングによって、繰り返しながら変化していきます。

Don't worry.

ご安心ください。

If it's a later version, I will cover everything that might change in this video, as well as how to see what the changes are.

もしそれ以降のバージョンであっても、このビデオで変更される可能性のあるものはすべてカバーしますし、どのように変更点を確認するかも説明します。

And if anything changes, how to actually utilize that, so that'll bring us to Github.

そして、もし何か変更があった場合、それを実際に利用する方法について説明します。

If you already have done any coding, you definitely know what this is.

すでにコーディングをしたことがある人なら、これが何なのかは間違いなく知っているはずです。

It's a very, very common place for any coders to save their source code so other people can read it.

これは、コーダーが自分のソースコードを保存して、他の人が読めるようにするための、とてもとても一般的な場所です。

They can fork it, make different versions of it.

フォークしたり、別のバージョンを作ったりすることができます。

It's super popular and really a powerful tool in the space.

とても人気があり、この分野では本当に強力なツールです。

Going down here, you can see that AutoGPT version 0.2.2.

AutoGPTのバージョン0.2.2を見てください。

They have a couple of things that they changed from the last version.

前回のバージョンからいくつか変更されています。

And down near the bottom, we should see "Download Source Code Zip."

そして、下の方に「Download Source Code Zip」と表示されているはずです。

Right now, by the way, I'm using a Mac.

ところで、今、私はMacを使っています。

This will change almost nothing in this tutorial.

このチュートリアルでは、ほとんど何も変わりません。

I'll point out the things that it does change if you're using Windows.

Windowsを使っている場合は、変更になる点を指摘します。

Essentially, what I'm saying is you can still follow along, and it's going to be essentially identical.

基本的には、このチュートリアルに沿って進めていけば、本質的に同じことができるということです。

So I just made a new folder called AutoGPT, and I want to make sure that I'm downloading this zip file to AutoGPT.

AutoGPTという新しいフォルダを作り、このZIPファイルをAutoGPTにダウンロードすることを確認します。

It downloaded to my downloads folder, so I'm just going to copy and paste it over to this folder, and we do want to make sure it is extracted because that's a zipped file.

ダウンロードフォルダにダウンロードされたので、それをコピーしてこのフォルダに貼り付けます。

So once we're extracted on Mac, you just double-click that.

Macでは、解凍されたら、それをダブルクリックします。

On Windows, you'll click on it, and at the top, you'll see a little menu that says "Extract All."

Windowsの場合は、それをクリックして、上部に「すべて展開」という小さなメニューが表示されます。

Just click on that, and you'll have it all extracted, and you should have all these files here now.

これをクリックすると、すべてのファイルが解凍され、ここにすべてのファイルがあるはずです。

That's the first step we want to do.

これが最初のステップです。

The second step is to download Python.

2つ目のステップはPythonをダウンロードすることです。

So if we just go to anaconda.com, that'll bring you to this right here, and we can download.

anaconda.comにアクセスすると、このページにたどり着き、ダウンロードすることができます。

So right now, it knows that I'm on Mac, so I can download for Mac.

今、私はMacを使っているので、Mac用のダウンロードができます。

I'm going to click on that.

それをクリックします。

Once again, that will download to my downloads folder, and this is going to give us access to Python, which is incredibly powerful.

これでPythonにアクセスできるようになります。

It's free to use and is really going to be essential in what we're doing in this video.

Pythonは非常に強力で、無料で使用でき、このビデオで行う作業には欠かせないものです。

So you'll see this package is downloading when it's done, I'm just going to click on that.

このパッケージのダウンロードが完了したら、それをクリックします。

It's going to run me through the installation.

すると、インストールが始まります。

So we're going to say continue.

続けてくださいということです。

I'm just gonna keep continuing and agreeing.

このまま続行し、同意していきます。

I've already read all this stuff before and then when you're done, you can click on close.

私はすでにこの内容をすべて読んだことがありますし、終わったら閉じるをクリックします。

We're just going to move that to trash.

それをゴミ箱に移動させるだけです。

So what we want to do is download Visual Studio code.

では、Visual Studioのコードをダウンロードしましょう。

Then this is the next thing so we can go to code.visualstudio.com.

次に、code.visualstudio.comにアクセスします。

And right here we can have download Mac universal.

そしてここで、Macユニバーサルをダウンロードすることができます。

That's what we want, depending on if you're on Windows it'll just say Windows obviously and you'll have that version, but it should be essentially the same.

Windowsの場合は、Windowsと表示され、そのバージョンが表示されますが、基本的には同じです。

So this is going to download.

だから、これはダウンロードするつもりです。

I'm going to click on it so that when it's done downloading it'll open that and we can install it.

ダウンロードが完了したら、それをクリックして、インストールできるようにします。

So we're going to click on it and open it and that'll bring us to this page right here.

クリックして開くと、このページが表示されます。

So there we go.

これで完了です。

We have Visual Studio code now.

Visual Studioのコードができました。

We're going to add this to our path so it's easy to access later on, just kind of saves us some steps.

これをパスに追加しておけば、後で簡単にアクセスできますし、手順も少なくて済みます。

So hitting command shift P on Mac that'll bring up this, we can type in shell and you'll see shell command install code command in path.

Macの場合、command shift Pを押すと、この画面が表示されます。shellと入力すると、shell command install code command in pathと表示されます。

That's exactly what we want to do.

これこそ、私たちがやりたいことです。

I'm just going to say okay.

よし、これだ。

I'm going to type in my password for my laptop and now it is successfully installed so we can actually close out of this.

ラップトップのパスワードを入力すると、正常にインストールされるので、実際にこの作業を終了することができます。

All right.

さて、これで終了です。

So here we are now, we're ready to actually get started.

これで、実際に始める準備が整いました。

If you're on a Mac, you can hit the magnifying glass or command space and type in terminal.

Macをお使いの方は、虫眼鏡かコマンドスペースでターミナルと入力してください。

We're going to open terminal.

ターミナルを開くことができます。

If you're on Windows, you can simply do this with PowerShell and before anybody gets mad at me, I'm going to switch over to dark mode.

Windowsの場合は、PowerShellを使えば簡単にできます。

I had in light mode because other tutorials were just like easier to see but anyway, here we go.

他のチュートリアルが見やすかったので、ライトモードにしていたのですが、とにかく、さあ、始めましょう。

So we're in dark mode.

では、ダークモードです。

I'll make this a little bit bigger as well.

この画像も少し大きくしておきます。

The first thing we're going to do is set up our anaconda or our python environments.

まず最初に、anacondaまたはpythonの環境をセットアップします。

We're going to type in conda create dash n auto dash GPT python equals 3.8.

conda create dash n auto dash GPT python equals 3.8と入力します。

You can use other versions depending on when you're watching this video, but we're going to do 3.8 right now.

このビデオを見る時期によって他のバージョンを使うこともできますが、今は3.8を使うことにします。

I'm going to hit enter and it wants to know if we're going to proceed.

Enterを押すと、このまま進むかどうか確認されます。

So letter Y and then enter means yes, so it's going to proceed.

Yを入力し、Enterを押すと、「はい」という意味になるので、次に進みます。

Now, a couple of little housekeeping items we want to navigate into the folder that we have.

さて、ちょっとした家事ですが、フォルダに移動したいと思います。

So this folder right here AutoGPT, I'm going to on Mac you just, you know, right click down here.

このAutoGPTというフォルダを、Macの場合は右クリックしてください。

And you can say copy the path name.

そしてパス名をコピーします。

On Windows, it'll be on the top so you can just click on the bar that has all the path name listed.

Windowsの場合は、一番上に表示されるので、すべてのパス名がリストされているバーをクリックします。

Copy that and then down here we can say CD space and then paste that and that'll bring you into that.

それをコピーして、この下にある「CDスペース」をクリックし、それをペーストすると、その中に入ることができます。

Now if you're not familiar with terminal or PowerShell, essentially what you can do, CD is going to navigate around different folders.

ターミナルやPowerShellに慣れていない方は、基本的に、CDがさまざまなフォルダーを移動することができるようになっています。

So if you want to go back a folder, you can say CD space.dot and that'll bring you back to the previous folder.

フォルダを戻したい場合は、CD space.dotと言えば、前のフォルダに戻ることができます。

And if you don't know what's in that folder, you can say LS that'll list out what is in that folder.

また、そのフォルダに何が入っているかわからない場合は、LSと言えば、そのフォルダに何が入っているかをリストアップしてくれます。

So we're going to list it out.

では、リストアップしてみましょう。

I only have one thing in this folder.

このフォルダには1つだけ入っています。

You can see right there.

そこにあるのがわかるでしょう。

And so, if you want to go into that, you can say CD, and then we can type in "auto-dash," and you can hit tab to autocomplete that.

その中に入りたい場合は、CDと言い、「オートダッシュ」と入力し、タブを押してオートコンプリートを行います。

Once you have some of it typed and hit enter, that's how we're going to end up in that folder.

ある程度入力してエンターキーを押すと、そのフォルダの中に入っていくことになります。

So, this is exactly where we want to be.

つまり、ここがまさに私たちが望む場所なのです。

Now that we're in the right folder, if we type LS, you'll see these are all the files.

LSと入力すると、これがすべてのファイルであることがわかります。

This is exactly what we want.

これはまさに私たちが望んでいたものです。

Now we can say "code space .," and that'll open up Visual Studio Code, as you can see right here.

ここで「code space ...」と入力すると、Visual Studio Codeが開かれます。

So, I'm going to trust my own parent folder here, and you can see on the left, these are all the files.

ここで、自分の親フォルダを信頼することにします。左側にあるのが、すべてのファイルです。

Now, the reason I told you to download Visual Studio Code is that we have files in here, for example, Markdown, which is really hard to read when you just look at it like this.

さて、Visual Studio Codeをダウンロードするように言ったのは、この中にファイルがあるからです。例えば、Markdownは、このように見るだけでは本当に読みにくいです。

But if you right-click on it, you can go and say "preview," "open preview," and open it up in this really nice looking format with pictures.

しかし、右クリックで「プレビュー」「プレビューを開く」を選択すると、画像付きのとても見栄えのするフォーマットで開くことができます。

And it just looks like it's so much easier to read something like this.

このような形で読むと、とても読みやすいと思います。

Now, this is the readme file, which is going to essentially be our guide to use AutoGPT.

これがReadmeファイルで、AutoGPTの使い方を説明するものです。

So, the reason I wanted to show you this, I mean, first of all, we're going to follow along in this video.

このファイルをお見せしたのは、まず、このビデオにそって進めていくからです。

But just in case anything changes, this is where you would go to actually find that.

しかし、万が一、何か変更があった場合に備えて、ここで実際に確認することができます。

So, I'm trying to make this video as future-proof as possible so that future iterations of this, if anything subtle changes, you will still be able to use this.

このビデオは、将来、何か微妙な変更があった場合でも使えるように、できるだけ将来性のあるものにしようと思っています。

But I'm confident that for the most part, everything we're doing in this video will be exactly correct no matter when you're doing that.

しかし、このビデオでやっていることは、ほとんどの場合、いつやっても正確に正しいという自信があります。

So, right now, we're at this stage right here, so we want to, we already downloaded that.

さて、今はこの段階なので、もうダウンロードしました。

We want to install the requirements.

要件をインストールしたいと思います。

So, there's a file over here called requirements, down here, "requirements."

この中にrequirementsというファイルがあり、この下にある "requirements "というファイルです。

And we want to install all of the necessary packages that we'll need for this AutoGPT.

このAutoGPTに必要なパッケージをすべてインストールしたいのです。

So, I'm just going to copy this, and we're going to go back to our terminal right here, our command terminal.

これをコピーして、ターミナルに戻り、コマンドターミナルに貼り付けます。

And we can paste it down there.

そして、それを貼り付けることができます。

This will be "pip install -r requirements.txt," hit enter, and it's going to install a bunch of little things down there.

pip install -r requirements.txt "と入力してEnterキーを押すと、いろいろなものがインストールされます。

Alright, so while that's installing, going back to the readme.

インストールが完了したら、Readmeに戻りましょう。

The next thing we want to do is configure AutoGPT.

次にやりたいことは、AutoGPTの設定です。

Now, luckily, there's really not much we have to do here.

幸いなことに、ここでやらなければならないことはあまりありません。

We just have to add in our personal API key, and I'll show you exactly how to do that.

個人用のAPIキーを追加するだけで、その方法はこれから説明します。

And change one other thing.

そしてもうひとつ、変更することがあります。

If you're using a Mac, there are other APIs we can enable, and you can mess around with this later.

Macを使っている場合、他のAPIを有効にすることができます。これは後でいじればいいのです。

But just getting it set up for the absolute basics, let's start off with adding your open API keys.

でも、基本的なことをセットアップするだけで、まずはオープンAPIキーの追加から始めましょう。

So, what we want to do is go back to terminal, and we can type in "cp .env.template .env."

ターミナルに戻って、"cp .env.template .env." と入力します。

So, essentially what we're doing is we're making a copy of ".env.template" and just making it ".env."

つまり、「.env.template」をコピーして、「.env.template」とするわけです。

So, I'm going to hit enter, and that should do that.

というわけで、Enterを押して、これで完了です。

Over here, we can go back to Visual Studio Code and see that we now have a file called ".env," and everything is green, which means it's commented out.

Visual Studio Codeに戻ると、「.env」というファイルができていることがわかります。

Which means it's not going to be run as code. But if there's anything that you do want to run as code, so if we go down here, we just search for Mac somewhere down here, there we go.

つまり、コードとして実行されないということです。しかし、コードとして実行したいものがあれば、ここを下にスクロールして、Macを検索してみましょう。

So because we're using Mac right here, the thing that is single commented, I'm just going to delete that little hash, and now we are using Mac.

ここではMacを使用しているので、シングルコメントになっているこの小さなハッシュを削除して、Macを使用するようにします。

And it's set to false, I'm going to change that to true so we're going to set that to true.

そして、これはfalseに設定されていますが、これをtrueに変更しようと思います。

Now, the only other thing on here that I'm going to change initially like I said there's other things we can add.

さて、ここでの唯一の変更点は、最初に言ったように、他にも追加できるものがあります。

We can add an API for image output or voice output or different things like that.

画像出力や音声出力など、さまざまなAPIを追加することができます。

But the only thing that you actually need to add to run this is your own API key, which you can see right here.

しかし、実際にこれを実行するために追加する必要があるのは、ここに表示されている自分のAPIキーだけです。

So I'm going to delete that right now and we're going to go over to chat.gpt or OpenAI's website rather and we're going to get our API key, our secret key that is personal for us that we can use right here.

だから、今すぐそれを削除して、chat.gptまたはむしろOpenAIのウェブサイトに行って、ここで使える私たち専用のAPIキー、シークレットキーを取得しましょう。

So what I'm going to do is from my browser go to platform.openai.com/slash account/slash API dash keys.

ブラウザからplatform.openai.com/slash account/slash API dash keysにアクセスします。

Again, I have a link in the description so you can follow along there when I hit enter, and from here I'm just going to have to sign in.

説明文にリンクがあるので、Enterを押したらそのリンクをたどって、ここからサインインします。

So you should already have a ChatGPT account.

ですから、すでにChatGPTのアカウントを持っているはずです。

If you don't, you can sign up right now, and I highly recommend you watch my full video about ChatGPT.

そして、ChatGPTに関する私の完全なビデオをご覧になることを強くお勧めします。

In it, I go through the 10 different major commands and modifiers that you can use to really optimize your effectiveness on ChatGPT to become better in life, at work, whatever you're doing, whatever you're using it for.

その中で、ChatGPTで効果を最大限に引き出し、人生や仕事、何をしていても、何に使っていても向上させるために、10の異なる主要なコマンドと修飾子を使いこなす方法を説明しています。

I highly recommend that video.

このビデオを強くお勧めします。

Right now, it has 1.4 million views and a lot of people are really finding it helpful.

今、140万回再生されており、多くの人が本当に役に立っています。

But regardless, assuming you already watched that video, the next thing is to log in.

しかし、そのビデオをすでに見たとして、次にすることは、ログインすることです。

So that should take you to a page that looks just like this.

そうすると、このようなページが表示されるはずです。

You probably won't have these two right here.

この2つは、おそらくここにはないでしょう。

I actually don't even need those, so we're going to revoke that key and we're just going to click on create new secret key.

この鍵を失効させ、新しい秘密鍵を作成するをクリックします。

I'm going to do this in this video, I'm going to delete it so you guys don't use my credits here.

このビデオでは、私のクレジットを使わないように削除するつもりです。

But if we click create new secret key, we can call this whatever he wants, I'm going to call it AutoGPT.

しかし、新しい秘密鍵の作成をクリックすると、これを好きなように呼ぶことができます。私はAutoGPTと呼ぶことにします。

I can copy that secret key, we're going to say done, and then going back to Visual Studio Code, we have Visual Studio Code right here, I can paste it right in there.

そして、Visual Studio Codeに戻り、Visual Studio Codeがここにあるので、そこに貼り付けることができます。

Now you could add this with quotes on either side, I don't believe you need to because they didn't originally, I did last time, this time I'm going to not do that.

さて、このように左右に引用符を付けてもいいのですが、元々そうではなかったので、必要ないと思います。

And it should work either way that's just a string of text there.

どちらにしても、ただの文字列として機能するはずです。

So then when you're done with this we can save it, so we're going to hit control or command S, control S depending on what you're using.

この作業が終わったら、保存することができます。

And of course I do also want to save this workspace, so we're going to go to file, save workspace as.

もちろん、このワークスペースも保存したいので、「ファイル」→「ワークスペースを別名で保存」と進みます。

And we're going to call it that looks fine to me and it's in this folder so we're going to say save.

このフォルダにあるので、「保存」をクリックします。

And now there is one more thing we have to do on OpenAI's website and we have to add a billing method.

そして、OpenAIのウェブサイトでもう1つ、課金方法を追加しなければなりません。

So you just go down to billing and it'll prompt you to add a payment method.

請求書作成に進むと、支払い方法を追加するように促されます。

Otherwise, you'll just click on payment methods, you can add a new one there.

そうでない場合は、支払い方法をクリックし、そこで新しいものを追加することができます。

But essentially, it's not free to use, but don't worry it's not like you're not paying anywhere near dollars.

しかし、基本的に、無料で使えるわけではありませんが、ドルに近い金額を支払うわけではありませんから、ご安心ください。

If we go to billing history, for me it was like a couple cents or was it usage?

課金履歴を見ると、私の場合、2、3セントだったかな、使用量だったかな?

So if I go to usage limits, I was messing around with this yesterday.

で、使用量制限に行くと、昨日これをいじってたんです。

I spent 15 cents on this after a couple dozen commands on this account in particular, so like I said, it's really not going to cost you basically anything at all.

このアカウントで数十回コマンドを実行した後、15セント使いました。つまり、言ったように、基本的にはまったくコストがかかりません。

But I highly recommend still go to usage limits and add your own limit on there.

でも、使用量制限にアクセスして、自分なりの制限を加えることを強くお勧めします。

Hard limits are going to be like, do not spend more than this amount.

ハードリミットは、この金額以上は使わないでください、というようなものです。

Just in case you send it on full autonomous mode and it iterates like a million times, you don't want to end up spending more than you expected.

万が一、完全な自律走行モードにして、100万回くらい反復させたときに、予想以上の出費にならないようにするためです。

And the soft limit's going to email you when you get to that limit just so you have an idea of where you are.

ソフトリミットは、上限を超えたらメールで知らせてくれるので、現在地を把握することができます。

So you don't accidentally terminate like some big, you know, loop that you don't want to terminate.

そのため、大きなループのように誤って終了してしまうことがありません。

So that's nice to have the soft limit as well, but right now like I said, I'm only 15 cents in, so it's going to take a while to get anywhere near those limits.

でも、今言ったように、私はまだ15セントしか使っていないので、その限界に近づくにはしばらく時間がかかりそうです。

Alright, so now let's go back to terminal, and we want to activate that environment we made a while ago.

さて、それではターミナルに戻り、先ほど作った環境を有効にしたいと思います。

Remember, we did the Conda activate, so I'm just going to type in Conda activate AutoGPT.

Condaのアクティベーションを行ったので、Conda activate AutoGPTと入力する。

So I'm going to hit enter, that'll activate that, and now in the beginning instead of saying base, it'll say AutoGPT.

Enterを押すと、この環境がアクティブになります。

So we're in this new environment, and now there's one last thing we need to do before we can start using AutoGPT.

これで新しい環境になったわけですが、AutoGPTを使い始める前に、最後にやるべきことが1つあります。

And this is agree to the licenses, so in order to do that, you simply need to type Pseudo space X code build space dash license and hit enter, and it's going to ask for your password.

これはライセンスに同意することです。そのためには、単に Pseudo space X code build space -license と入力してEnterキーを押すだけで、パスワードが求められます。

That is the password for your computer, so I'm just going to type that in.

これはあなたのコンピュータのパスワードなので、それを入力します。

And now it's going to ask us to press the return key to view the license agreement.

そして、returnキーを押して使用許諾契約書を表示するよう求められます。

And we're going to keep pressing this until press space bar until we get to the bottom so you can read through all this.

スペースバーを押すまで、このキーを押し続け、一番下まで読み進めると、このようになります。

This is the license agreement for what you're doing, and at the end, you can type in agree.

これは、あなたがやっていることの使用許諾契約書であり、最後にagreeと入力できます。

Type in agree, and we'll be ready to go, so now we're able to run AutoGPT, so we're ready to go.

agreeを入力すると、準備が整うので、これでAutoGPTを実行することができるようになりました。

Now, if you go back to the read me, it tells you to run to say.slash run.SH space start.

さて、read meに戻ると、say.slash run.SH space startまで実行するように指示されています。

You probably don't actually want to do that.

おそらく、実際にはそんなことはしたくないでしょう。

Instead, you could just type in like forget the word start, and just run it like this, and it should be running chat, or it should be running AutoGPT.

その代わり、startという単語を忘れて、このように実行すれば、チャットが実行され、あるいはAutoGPTが実行されるはずです。

You have your API.

これでAPIは完成です。

If everything goes according to plan, this will be running, and it will prompt you in just a minute to ask a couple fundamental questions like what is the name and what are the goals of your AutoGPT.

すべてが計画通りに進めば、これが実行され、AutoGPTの名前と目標は何かという基本的な質問をするように求められるはずです。

All right, and there we go.

よし、これでOKだ。

Once you see this color text, you'll know that you are ready to go.

この色のテキストが表示されたら、準備が整ったということです。

We're using AutoGPT now, and so it wants to know first of all what the name is.

今、AutoGPTを使用しているので、まず名前を知りたがっています。

I'm just going to call this one mic bot.

ここでは、これをマイクボットと呼ぶことにします。

But again, you can use this for many different things.

しかし、繰り返しますが、これをいろいろなことに利用することができます。

You can search other examples of people that used it to make like an assistant to plan a wedding, to do things like that.

結婚式を計画するアシスタントのような使い方をした人の例も検索できます。

So let's do this.

では、こうしてみましょう。

I'm going to create a new document.

新しいドキュメントを作成します。

We're going to say file save as.

ファイル名を付けて保存とします。

So I'm just going to save this, call it diet, and we want this to be plain text.TXT.

保存形式は「diet」、保存形式は「plain text.TXT」とします。

Let's save it, and we're going to say okay.

保存して、OKを出します。

Now we have just a regular document called "Diet", it's a plain text file.

これで「ダイエット」という普通の文書ができあがり、プレーンテキストファイルとなりました。

So in AutoGPT, we can say the AI name, "This is going to be Mike, Mike's nutritionist, Mike's diet or nutritionist."

AutoGPTでは、AIの名前を「これはマイク、マイクの栄養士、マイクのダイエットまたは栄養士になる」と言うことができます。

Now it's going to ask us to define it, so that describes the role.

今度はそれを定義するよう求められるので、役割を説明することになります。

We're going to say, "Create a meal plan for this week."

ここでは、"今週の食事プランを作成する "とします。

And so I'm just going to say, "Let's create a 70 meal plan.

それで、「70食分の食事計画を作りましょう」と言います。

We want to write the recipes for each one.

それぞれのレシピを書きたいと思います。

And at the end, we want to just save it to the file and then stop."

そして最後には、ファイルに保存してやめるだけにしておきたい。"

And if we only have three goals instead of five, you just hit enter again and it'll start running.

また、目標が5つではなく3つしかない場合は、もう一度エンターキーを押すだけで実行が開始されます。

This is using local memory, by the way.

ちなみに、これはローカルメモリーを使用しています。

You could pay and use Pinecone or some of the other ones to not need local memory, but obviously for something like this, local memory is just fine.

お金を払ってPineconeなどを使えばローカルメモリは不要ですが、このようなものにはローカルメモリがちょうどいいのです。

Now, the way this works is it'll run through one prompt at a time.

さて、この仕組みは、一度に1つのプロンプトを実行します。

So it'll tell you that first of all, this is what it thinks it's supposed to do.

つまり、まず最初に、これが自分のやるべきことだと考えていることを教えてくれるのです。

To start looking up healthy meal plans for the week, the reasoning, it's going to tell you why it's doing this.

1週間分の健康的な食事プランを調べ始めること、その理由、なぜそうするのかを教えてくれます。

The criticism, maybe what it doesn't want to do, and then it'll tell you what it's going to do next.

批判、もしかしたらやりたくないこと、そして次に何をするのかを教えてくれるでしょう。

And we could just say "why" for "yes" to mean to go ahead and do it, and "n" is going to be "no" meaning don't do it.

そして、"yes "は先にやってしまえという意味で、"n "はやるなという意味の "no "である。

It's going to exit the program, or you can add your own feedback in there as well.

プログラムを終了させますが、そこに自分のフィードバックを加えることもできます。

I'm just going to say "why" and let it run.

私は「why」とだけ言って、実行させることにしました。

And right now, you can see right there, Google returns.

そして今、右側にGoogleが表示されているのがわかります。

So it's actually searching on Google right now to find some results from the internet.

つまり、今まさにGoogleで検索して、インターネット上の結果を探しているのです。

So the first thing it wants to know is what dietary restrictions or preferences they have.

まず最初に知りたいのは、食事制限や嗜好についてです。

So I'm going to say, "I have no dietary restrictions.

そこで、「食事制限はありません。

I love Mexican and Asian food as well as American food.

アメリカ料理だけでなく、メキシコ料理やアジア料理も大好きです。

I have plenty of vegetables."

野菜もたくさん食べます。"

Okay, so there we go.

なるほど、それでいいんだ。

Just give it some feedback, that's what it was asking.

フィードバックしてくださいということです。

So it said like before proceeding needs to know any dietary restrictions or what it wants for the meal plan or what I want for the meal plan.

食事制限の有無や、食事プランの希望、私の希望などを聞いてくれるような内容になっています。

It's going to ask me about each meal as we go along.

食事の内容については、その都度、私に尋ねてきます。

And so, "Yes, stir fry sounds good.

それで、「はい、炒め物がよさそうですね。

I love some stir fry.

私は炒め物が大好きなんです。

For Tuesday, how about making some tacos?

火曜日は、タコスはどうですか?

We can use ground turkey."

七面鳥のひき肉が使えるよ。"

Let's say, "Let's use shredded chicken."

例えば、"細切れの鶏肉を使おう "としましょう。

So you can say like, "Yeah, I like tacos, but let's change that.

それで、「うん、タコスは好きだけど、変えてみようか」みたいな感じでいいんです。

I don't actually want ground turkey.

実は七面鳥のひき肉はいらないんだ。

Let's do something else."

他のものにしよう」とも言えます。

So you don't always have to say "why" or "end" for "yes" or "no" on these things.

このように、「イエス」「ノー」に対して「なぜ」「終わり」と言う必要はありません。

You can give some other feedback.

他のフィードバックを与えることができるのです。

And it'll kind of iterate and keep making your diet plan around that.

そして、そのフィードバックをもとに、ダイエット計画を立て続けるのです。

So let's see, "Great, we can use shredded chicken.

例えば、「素晴らしい、鶏の細切りを使うことができます。

Yeah, no problem."

うん、問題ない。"

So now we're going to go into the next thing.

では、次の作業に入りましょう。

Press "Y," and it's going to kind of keep iterating on this, and it should hopefully make my diet by the end.

Y "を押すと、これを繰り返し、最終的にはダイエットに成功するはずです。

Now, if you get tired of pressing "Y" every time or giving it feedback like this, there are also fully autonomous ways to do this.

毎回 "Y "を押したり、このようなフィードバックを与えるのが面倒になった場合は、完全に自律的に行う方法もあるんです。

So if you go into the README, let me just open it up real quick while it's running.

READMEを開くと、実行中のREADMEが表示されるので、さっそく開いてみましょう。

You can go to down near the bottom, just look for like the little skull emoji because they tell you it's dangerous.

下の方にある小さなドクロの絵文字を探せば、危険であることがわかります。

But I'm still interested in doing it, and there we go, continuous mode.

でも、やっぱりやってみたいですよね。

So right here you can actually run a continuous mode.

ここで、実際に連続モードを実行することができます。

Here it'll iterate continuously until you press control C. So obviously like this said, it could get stuck in loops, it could do things that you don't want it to do.

コントロールCを押すまで連続的に繰り返します。

So definitely be careful with this, but again, you don't always have to press Y if you set up continuous mode.

しかし、連続モードを設定した場合、常にYを押す必要はありません。

I'm not recommending you do that, but I might end up doing that just because it's interesting.

推奨するわけではありませんが、面白いのでついやってしまうかもしれません。

I don't know.

どうなんだろう。

And by the way, in case you ever get stuck in a loop on here or if it's running something and it's stuck, it is not you have some kind of error, and it doesn't actually stop.

ところで、万が一、ループにはまったとき、あるいは何かを実行しているときにはまったとき、何らかのエラーが発生したわけではなく、実際に止まるわけではありません。

You can terminate any of these by saying control C. This is on Mac, if you're on Windows I don't think it's controlling its alt, but it's a control C and it's going to quit.

これはMacの場合ですが、Windowsの場合はaltを制御していないと思いますが、コントロールCで終了させることができます。

We can hit any key, and we're back to where we were.

どのキーを押しても、元の場所に戻ることができます。

And if you want to run it again, you just go press the up key to the most recent command, which was.slash run.SH, hit enter, and it's going to run it again.

また実行したい場合は、↑キーを押して直近のコマンド、つまり.slash run.SHを実行し、Enterキーを押すだけで、また実行されるようになっています。

And we'll be able to start off again with a brand new AutoGPT.

そうすれば、また新しいAutoGPTでスタートすることができます。

All you have to do down here, it's going to ask if you want to continue, you just press the letter N, and you'll go from scratch.

ここで、続けるかどうか聞いてくるので、Nの字を押せば、最初からやり直せます。

So now it found a diet and it's going to write that to the document.

これでダイエット法が見つかり、それを文書に書き込むことができました。

Sometimes it takes a minute to think, it's a little bit slower if a lot of people are on it.

たくさんの人が使っている場合は、1分ほど時間がかかることもあります。

You can go and check the uptime and you can check basically the status of OpenAI's ChatGPT.

OpenAIのChatGPTは、稼働時間を確認することができますし、基本的に状況を確認することができます。

There's a nice website for that as well.

そのための素敵なウェブサイトもあります。

If it's ever not working, maybe that would be a reason.

もし動いていないことがあれば、それが原因かもしれません。

Otherwise, if you ever have any bugs in this, if anything ever doesn't work, you should be getting, like I said, you could hit control C that will terminate this if it gets stuck on thinking for too long.

それ以外の場合、これにバグがあったり、何かがうまく動かないことがあれば、言ったように、Ctrl+Cを押してこれを終了させることができます(考え込んで長時間動かなくなった場合など)。

And you could debug it using ChatGPT.

そして、ChatGPTを使ってデバッグすることができます。

It's one of the greatest tools out there, especially if you don't know what you're doing.

これは素晴らしいツールの一つで、特に自分が何をやっているのか分からない場合は、このツールを使います。

You just copy the error code onto ChatGPT.

エラーコードをChatGPTにコピーするだけです。

Tell it what you're trying to do, ask why it's not working, and it can walk you through things surprisingly well in plain English.

何をしようとしているのか、なぜうまくいかないのかを伝えると、驚くほどわかりやすく教えてくれます。

I found this works tremendously well on many different programs out there that you find on GitHub that maybe have a bug or you know something's not right with them.

この方法は、GitHubで見つけたバグがあったり、何かおかしいと思うようなプログラムに対して、非常に効果的だと思います。

So I'm editing the video right now, and I realized I used a really simple example here.

今ビデオを編集しているところなんですが、本当に簡単な例を使っていることに気づきました。

So you might be wondering how this is even different from regular ChatGPT.

普通のChatGPTとどう違うのか、不思議に思うかもしれませんね。

Like I could ask ChatGPT to make me a diet plan, and it could do something pretty similar to this.

例えば、ChatGPTにダイエットプランを作ってもらうと、これと似たようなことができるんです。

So really the benefit of AutoGPT is that it connects and integrates with different APIs, different things as well.

AutoGPTの利点は、様々なAPIと接続し、統合することです。

So you could add into this, use my voice, like you can use a plug-in and use my voice to speak it to me.

プラグインを使えば、私の声を使って、私の声で話してくれます。

You could translate videos, you could output images.

動画を翻訳したり、画像を出力したり。

There's a lot of different things you can connect with this.

このように、さまざまなものを接続することができます。

So that's really where the power of AutoGPT is.

AutoGPTのパワーはそこにあります。

And so as you start to like this is a great first example, and I recommend you do this just so you get AutoGPT running and start getting used to it and mess around little.

これは最初の例ですが、AutoGPTを動かして慣れてきたら、少し弄ってみることをお勧めします。

You know, some little commands like this, but eventually what you want to do is start using those integrations so you can really get this to the next level.

このようにちょっとしたコマンドを実行しますが、最終的には統合機能を使い始め、次のレベルへと進化させることができます。

In addition, this can also do things like write to text files.

さらに、これはテキストファイルに書き込むこともできます。

Do you know, it can do a lot more than what AutoGPT and ChatGPT cannot do.

AutoGPTやChatGPTができないことよりも、もっと多くのことができるんです。

So ChatGPT is purely on the internet; it's stuck there like what you're doing on that interface.

ChatGPTは純粋にインターネット上にあり、あなたがそのインターフェイス上で行っていることと同じように、そこに張り付いているのです。

You're just gonna get text output.

テキストを出力するだけです。

Whereas this, like I said, can change files, can do things on your computer, can output different files as well.

一方、ChatGPTは、ファイルを変更したり、コンピュータ上で何かをしたり、さまざまなファイルを出力したりすることができるんだ。

Whether they're audio files that are recordings of a like an AI simulated version of your voice or images, there's a lot more you can do with this.

AIがシミュレートしたあなたの声を録音したオーディオファイルや、画像など、これを使ってできることはまだまだたくさんあります。

This is really only the beginning.

これは本当に始まりに過ぎません。

But I mean, I just wanted to clarify that in case you're watching this video and wondering how this was even different from ChatGPT.

でも、このビデオを見て、ChatGPTとどう違うんだろうと思っている人のために、はっきりさせておきたいと思ったんです。

And of course, it's able to access the internet while also accessing ChatGPT.

もちろん、ChatGPTにアクセスしながらインターネットにアクセスすることも可能です。

So it's kind of a nice bridge between ChatGPT and the internet, so you can find more relevant and more recent information.

ChatGPTとインターネットをつなぐ架け橋として、より適切で最新の情報を見つけることができるのです。

So that is my tutorial on how to use AutoGPT.

これがAutoGPTの使い方のチュートリアルです。

It's really just a tip of the iceberg here.

これは氷山の一角に過ぎません。

This is a massive software and you can do a lot of automations.

これは巨大なソフトウェアで、多くの自動化を行うことができます。

So I highly encourage you start messing around with that and please leave a comment down below on this video.

そして、このビデオの下にコメントを残してください。

And let me know what you would use AutoGPT for.

そして、あなたがAutoGPTをどのように使うか教えてください。

I really, I'm always interested.

本当に、いつも興味があります。

Are you using it for a personal assistant?

パーソナルアシスタントのために使っていますか?

Are you using it to emulate your voice and you know open images and do different things?

あなたの声をエミュレートして、画像を開いたり、いろいろなことをしたりするのに使うのでしょうか?

There's really endless options that you could do.

本当に無限の可能性があります。

So I would love to hear what your thoughts are on the best uses for AutoGPT.

AutoGPTの最適な使い方について、皆さんのご意見をお聞かせいただければと思います。

And once again, if you guys want to keep up with the latest here anything that changes with AutoGPT, we will be covering in that newsletter, which is linked down below.

また、AutoGPTの最新情報を知りたい方は、下のリンクからニュースレターでお知らせします。

If you enjoyed the video, consider liking and subscribing.

このビデオを楽しんでいただけたなら、「いいね!」と「購読」をご検討ください。

I'm Mike O'Brien.

私はマイク・オブライエンです。

Thanks for watching and we'll see you in the next one.

次回もお楽しみに。

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