見出し画像

【日常で役立つChatGPTプロンプト5選】英語解説を日本語で読む【2024年6月21日|@The AI Advantage】

多くの人が知らないChatGPTのテクニックを紹介します。最初のプロンプトは、GPT-4oの大きな弱点である「幻覚」を排除するためのものです。このプロンプトは、ソースドキュメントからの正確な引用に基づいて質問に答え、ドキュメントに回答が含まれていない場合は「情報が不十分」と伝えるものです。次に紹介するのはSWOT分析のプロンプトです。これは、特定の状況に合わせて変数を置き換えることで、GPT-4oの広範な知識を活用して競合分析やリスク評価を行うものです。さらに、AI Advantageのプロンプトジェネレーターも紹介します。これは、特定の職業や役割にカスタマイズされた30のアクショナブルプロンプトを生成する強力なツールです。次に、長いグループチャットやコメントの要約を行うプロンプトを紹介します。これは、GPT-4oの要約能力を活用し、重要な情報を抽出するのに役立ちます。最後に、データベースの欠損データを補完するプロンプトを紹介します。ChatGPTにアップロードすることで、欠損フィールドを手動で埋める手間を省くことができます。これらのテクニックを使って、ChatGPTを最大限に活用し、日常のタスクを効率的に進めることができます。
公開日:2024年6月21日
※動画を再生してから読むのがオススメです。


It's time to look at a few more ChatGPT techniques that most people don't know and let me tell you one thing.

私たちが知らない人が多いChatGPTのテクニックをもう少し見てみる時が来ました。そして一つお伝えしたいことがあります。

All of these are techniques that I actually use regularly.

これらすべては、実際に定期的に使用しているテクニックです。

Maybe not on a daily basis, but all of these have been battle tested and stood the test of time.

毎日ではないかもしれませんが、これらすべてが実戦を経て時間の試練に耐えたものです。

With that being said, let's get into the practical part of showing you various prompts that most people don't even know exist.

と言うことで、実用的な部分に入って、ほとんどの人が存在すら知らないさまざまなプロンプトをお見せします。

Starting off with the first one, this prompt is there to eliminate one of the biggest weaknesses of LLMs like GPT-4o, hallucinations.

最初のものから始めましょう。このプロンプトは、GPT-4oのような大規模言語モデルの最大の弱点、幻覚を排除するためにあります。

The way this prompt does it is by sticking to exact citations from the source document.

このプロンプトがそれを行う方法は、ソースドキュメントからの正確な引用に固執することです。

That's possible.

それは可能です。

Matter of fact, it's so powerful that even OpenAI considered this to be worthy of the prompt engineering guide.

実際のところ、それは非常に強力であり、OpenAIさえもこれをプロンプトエンジニアリングガイドに値すると考えていました。

Most people don't even know this.

ほとんどの人はこれさえ知りません。

They have a prompt engineering guide with various prompts and recommendations.

彼らはさまざまなプロンプトや推奨事項を含むプロンプトエンジニアリングガイドを持っています。

These are focused by developers, but nevertheless, you can use a prompt like this in any scenario where sticking to the source material is important and you don't want it just hallucinating and coming up with new things.

これらは開発者によって重点が置かれていますが、それでも、ソース資料に忠実であり、新しいものを思いついてしまうのを避けたい場面では、このようなプロンプトを使用することができます。

This is the prompt I'm talking about.

これが私が話しているプロンプトです。

Let's have a brief look at it.

それを簡単に見てみましょう。

As you can see here at the bottom, you provided with a document and a question that you ask.

ここで下部に示されているように、文書と質問が提供されています。

These are your two inputs.

これらがあなたの2つの入力です。

What the prompt does is it answers the question using only the provided document.

プロンプトが行うことは、提供された文書のみを使用して質問に答えることです。

It exactly cites all the passages of the document it has used.

使用した文書のすべての箇所を正確に引用します。

There's further clarification that if the document does not contain the answer to the question, then GPT-4o will tell you that there's insufficient information.

質問の答えが文書に含まれていない場合、GPT-4oは情報が不十分であると伝えます。

This is something that does not happen by default.

これはデフォルトでは起こらないことです。

Many people do not understand this.

多くの人がこれを理解していません。

By default, GPT-4o, and most other Large Language Models, but especially GPT-4o is set up to be a helpful assistant at all costs.

デフォルトでは、GPT-4o、およびほとんどの他の大規模言語モデル、特にGPT-4oは、あらゆるコストで役立つアシスタントとして設定されています。

Other words to express this is that if GPT-4o doesn't have the context or the necessary information or skills to perform a task, it will never tell you.

これを表現する他の言葉としては、もしGPT-4oがタスクを実行するために必要な文脈や情報、スキルを持っていない場合、決してあなたに伝えることはありません。

It will just do its best and give you some result.

その代わりに、最善を尽くし、いくつかの結果を提供します。

Often this manifests as hallucinations because this assistant really wants to help you.

このアシスタントは本当にあなたを助けたいと思っているため、しばしば幻覚として現れます。

It's there to get your tasks done.

それはあなたのタスクを完了するためにそこにいます。

This prompt gets around that by telling you that it is okay to have insufficient information and to letting you, the user, know.

このプロンプトは、情報が不十分であっても大丈夫だと伝え、ユーザーであるあなたに知らせることができます。

Let's use this to practice.

これを練習に使ってみましょう。

I'm going to use it on the abstract of this paper that I thoroughly enjoy and have read multiple times at this point.

私は、この論文の要約を使います。この論文は私が非常に楽しんで何度も読んでいるものです。

You might familiarize this little simulation where multiple agents live their lives and interact with each other.

複数のエージェントが生活を送り、お互いに交流する小さなシミュレーションに慣れているかもしれません。

That's a different topic though.

しかし、それは別の話題です。

All I'll do is copy the abstract into insert document here.

私がすることは、抜粋をここに挿入するだけです。

I'll replace this variable with the abstract.

この変数を抜粋で置き換えます。

I'm aware I copied some other stuff here, like the authors or the dates.

著者や日付など、他の情報をコピーしたことに気づいています。

That's fine.

問題ありません。

I'm just looking for a quote from the abstract here.

ここでは抜粋から引用を探しているだけです。

Perfect.

完璧です。

I need a question.

質問が必要です。

I'll just ask something like, does this paper simulate real world scenarios for the use of LLMs?

例えば、この論文は大規模言語モデルの使用のための実世界のシナリオをシミュレートしていますか?

That's it.

それだけです。

Once you customize these two things, you can just hit enter and see what you get.

これら2つのことをカスタマイズしたら、Enterキーを押して結果を確認できます。

As you see, it works.

ご覧の通り、それは機能しています。

It provides you one piece of information and then the citation and another piece of information, and then the citation again.

それはあなたに1つの情報を提供し、その後引用と別の情報を提供し、そして再び引用します。

But what happens if I copy this entire paper into here and I go into ChatGPT, I say edit and I replace everything inside of the triple quotation marks with the full text.

しかし、もし私がこの論文全体をここにコピーして、ChatGPTに入り、編集と言って三重引用符の中のすべてをフルテキストで置き換えたらどうなるでしょうか。

Maybe I change my question to something that will not be present in there.

おそらく私はそこに存在しない何かに質問を変えるでしょう。

I'm going to ask something random like our dogs or cats better.

私は犬と猫、どちらが好きかなどランダムな質問をします。

Here's an important thing to be aware of.

ここで注意しておくべき重要なことがあります。

As the text that I copied into here was extremely long, it starts giving me random answers.

ここにコピーしたテキストが非常に長かったため、ランダムな回答が始まります。

What's going on here?

ここで何が起こっているのでしょうか?

Business plan, self-funded trucking company.

ビジネスプラン、自己資金で運営するトラック会社。

That's not what the paper is about.

それは論文の内容ではありません。

That's not what I prompted.

それは私が促したこととは違います。

If I copy this full prompt, okay, look, that takes a lot of scrolling, right?

この完全なプロンプトをコピーすると、はい、たくさんのスクロールが必要ですよね?

I head on over to the OpenAI tokenizer and I paste it in here.

OpenAIのトークナイザーに移動して、ここに貼り付けます。

I will see this around 30,000 tokens.

約30,000トークンが表示されます。

We're getting too close to the token limit here.

トークンの制限にあまり近づきすぎています。

It's starting to lose the information provided within the beginning.

最初に提供された情報が失われ始めています。

It doesn't even know what the instructions are properly.

それは指示が正しく理解されていないことさえあります。

The token limit in ChatGPT right now is around 32,000 tokens.

現在のChatGPTのトークン制限は約32,000トークンです。

Here's an interesting fact that is played this previously, but now they sort of removed it.

以前に再生されていた興味深い事実がありますが、今は削除されたようです。

I couldn't find it on their official pages anymore.

もう彼らの公式ページで見つけることができませんでした。

But as you can see, even getting close to the 32,000, it starts losing parts of your message.

しかし、32,000に近づくと、メッセージの一部が失われ始めることがわかります。

Make sure there's a healthy distance between the 32,000 and what you're putting in.

32,000と入力するものの間に健康な距離があることを確認してください。

Otherwise you'll get nonsensical answers as it will start forgetting what you wrote here right in the beginning.

そうでないと、最初からここに書いたことを忘れ始め、答えがナンセンスになります。

What I did here is I just skipped the abstract.

ここで私がしたことは、要約をスキップしただけです。

I went from introduction all the way to the end.

私は導入から最後まで進みました。

I double-checked this with the tokenizer, pasted it in here 28,000.

トークナイザーで再度確認し、ここに貼り付けました。28,000です。

That's a bit better.

少しはマシですね。

If I go ahead and edit this prompt and just replace the document part, send it yet again.

このプロンプトを編集して、文書部分を置き換えて再度送信します。

Let's see if this answers our questions, if dogs or cats are better, I suppose.

犬と猫、どちらが良いかについての質問に答えるかどうか、確認してみましょう。

It tells us what we want to see here, insufficient information.

ここで見たい情報が不十分であることを教えてくれます。

There's no info about that in the document.

その文書にはその情報がありません。

It's not afraid to tell you if you use this prompt in the beginning.

このプロンプトを最初に使用すると、それを伝えることを恐れません。

Quite powerful, isn't it?

かなり強力ですね。

Let's move on to the next one.

次のものに進みましょう。

This one is arguably a bit more basic, but it's just a staple in my repertoire of prompts that I like to use.

これはおそらく少し基本的ですが、私がよく使うプロンプトのレパートリーの中で基本的なものです。

SWOT analysis are such a powerful capability of LLMs, especially GPT-4o with its extensive world knowledge.

SWOT分析は、特にGPT-4oの広範な世界知識を持つ大規模言語モデルの強力な機能です。

As you can see, there's a few variables in here.

ご覧の通り、ここにはいくつかの変数があります。

We will have to replace every single variable in this prompt to make it fit your situation.

このプロンプトのすべての変数をあなたの状況に合わせるために置き換える必要があります。

By the way, all the prompts can be found in the description below.

ちなみに、すべてのプロンプトは下記の説明にあります。

You can just copy paste them from there.

そこからコピーして貼り付けすることができます。

I'll just make this fit my context.

私はこれを私の文脈に合わせて調整します。

I'll say an AI learning community.

AI学習コミュニティと言います。

I'll actually remove this considering market size block here, no problem.

市場規模の制約を考慮して、実際にはこれを削除します。問題ありません。

Analyzing competitor landscape.

競合他社の状況を分析します。

It's great to have in the base prompt, but also in my situation, I won't be using this here.

基本的なプロンプトに含まれているのは素晴らしいですが、私の状況ではこれを使用しないでしょう。

All that's left is the risk factors and opportunities.

残っているのはリスク要因と機会だけです。

I could actually leave this as is.

実際、これをそのままにしておくことができます。

It will come up with the risk factors and opportunities here for me.

ここでは私のためにリスク要因と機会が出てきます。

I could specify them, but I don't have to.

それらを具体的に指定することもできますが、しなくても構いません。

That's the beauty of writing variables in the way that we do here at the AI Advantage.

それが、AI Advantageで私たちが行う変数の書き方の美しいところです。

All the materials that you will find, all the prompt templates, all the workflows, GPTS.

見つけることができるすべての資料、すべてのプロンプトテンプレート、すべてのワークフロー、GPTS。

I always use this format for variables with square brackets and a word in the middle that can actually be used by itself.

私は常に、角かっこ内に変数を配置し、その中に実際に単独で使用できる単語を入れる形式を使用しています。

As mentioned, I could just leave it as is and it will create a SWAT analysis for me.

前述のように、そのままにしておくと、SWAT分析が自動的に作成されます。

A pretty simple prompt and then this one would work universally.

非常にシンプルなプロンプトで、これは普遍的に機能します。

I just wanted to bring it to your attention because it's a powerful tool for anyone who's a bit forward thinking and who's trying to do things that haven't been done before.

これは、これまでにないことをしようとしている、少し先を見据えた人々にとって強力なツールであるため、あなたの注意を引きたかっただけです。

The slight little touch in the end with risk factors and opportunities is just fantastic because you get the SWAT and you get the biggest potential downsides and upsides available to you from ChatGPT's point of view.

最後のリスク要因と機会に関するわずかな触れは素晴らしいです。なぜなら、ChatGPTの視点からあなたに利用可能な最大の潜在的なデメリットとメリットを提供してくれるからです。

Simple yet effective.

シンプルでありながら効果的です。

Let's move on to the next one.

次のものに進みましょう。

Next prompt is something we talked about before, but I realized that new people come in and they need to be re-informed.

次のプロンプトは以前に話したことですが、新しい人が入ってきて再度情報を提供する必要があると気づきました。

I'll keep this brief.

簡潔に説明します。

This is the AI Advantage prompt generator that we built and this thing is so powerful.

これは私たちが作成したAI Advantageプロンプトジェネレーターです。このものは非常に強力です。

I just need to show you again.

もう一度お見せしたいと思います。

This one is not in the description because it didn't fit.

これは説明には含まれていませんが、収まりきらなかったためです。

It's too long.

長すぎます。

It's too complicated a prompt.

複雑すぎるプロンプトです。

Where do you find it?

それはどこで見つけますか?

This is the free Notion template you get when signing up to the Advantage newsletter.

これは、Advantageニュースレターにサインアップすると無料で入手できるNotionのテンプレートです。

You get it on day one right away.

最初の日にすぐに入手できます。

All you need to do is scroll down here, go to this prompt generator tab and you're going to get 10 prompt generators for varying jobs.

やることは、ここをスクロールして、このプロンプトジェネレータータブに移動し、さまざまな仕事用の10のプロンプトジェネレーターを入手することです。

We're going to take the prompt hacker here and using this is really simple.

ここでプロンプトハッカーを取り上げ、これを使用するのは本当に簡単です。

I'll just copy to clipboard and then I'll paste it in here.

私はただクリップボードにコピーして、それからここに貼り付けます。

Please don't get overwhelmed by this massive prompt.

この大きなプロンプトに圧倒されないでください。

All you need to do is copy paste and what it will do for you is generate 30 actionable prompts that work within GPT-4o today for you right away, including variables and titles so you can easily identify the ones that are relevant to you.

あなたがする必要があることは、コピーして貼り付けるだけで、すぐにGPT-4oで機能する30の実行可能なプロンプトを生成します。変数やタイトルも含まれているので、あなたに関連するものを簡単に特定できます。

This is customized for a growth hacker.

これは成長ハッカー向けにカスタマイズされています。

The way this customization happens is here at the bottom in these custom instructions.

このカスタマイズが行われる方法は、これらのカスタム指示の下にあります。

If you want to customize this for another job, all you need to do is change this bottom part.

もしあなたが別の仕事に合わせてこれをカスタマイズしたい場合、必要なのはこの下の部分を変更するだけです。

Most significantly, you want to change the profession or the role here in the beginning where it states it's a growth hacker and then maybe in second place, it would be the goals building block here.

最も重要なのは、成長ハッカーと記載されている冒頭の職業や役割を変更したいということです。そしておそらく2番目に、ここで目標の構築ブロックを変更したいと思うでしょう。

If you customize those, this prompt generator will create 30 actionable prompts that you can use with ChatGPT today.

これらをカスタマイズすると、このプロンプトジェネレーターは今日ChatGPTで使用できる30の実行可能なプロンプトを作成します。

This is really amazing and whenever I tackle a new area, I customize the prompt generator to account for that new task.

これは本当に素晴らしいことで、新しい分野に取り組むときはいつも、その新しいタスクに対応するためにプロンプトジェネレーターをカスタマイズします。

I can easily explore what is possible with AI today within LLMs like this.

私はこのような大規模言語モデル内で今日AIで可能なことを簡単に探ることができます。

You find that on the first page of the freebie that you get by signing up to the newsletter and there you go.

ニュースレターにサインアップすることで入手できる無料の特典の最初のページにそれが見つかります。

This is just a really quick win to get people off the ground when they're starting with ChatGPT.

これは、ChatGPTを始める際に人々をスタートさせるための本当に簡単な勝利です。

There you have it.

それがあります。

I'm giving it out for free.

私はそれを無料で提供しています。

On to the next one.

次に進みましょう。

Let me tell you, this one is actually a personal favorite.

実は、これは私の個人的なお気に入りです。

Have you ever been in this situation where you open up a group chat or a Discord channel or a WhatsApp group and there's just this notification with 150 new messages and you're like, there's no way I'm going to catch up on all that.

グループチャットやDiscordチャンネル、WhatsAppグループを開くと、150件の新着メッセージが通知されていて、全てを追いつくことは不可能だと思うことがありますか。

I don't have the time for this, but maybe you need to.

私にはこのための時間がありませんが、おそらくあなたには必要かもしれません。

Maybe there's vacation planning going on now before summer or it's work related and important for you to be up to date.

夏前の休暇計画が進行中であるか、仕事に関連して最新情報を把握することが重要な場合もあります。

GPT-4o for the rescue in this case with this little prompt.

この場合、この小さなプロンプトでGPT-4oが救助に駆けつけます。

Can you take a look at these messages and tell me what was discussed while I was away from the conversation messages colon and here you insert the entire conversation.

これらのメッセージを見て、私が会話から離れている間に何が話されたか教えていただけますか。ここに会話全体を挿入してください。

I'm actually going to demo this on something that is not a direct message conversation.

実際には、ダイレクトメッセージの会話ではないものをデモします。

It's a comments for it's just to show you that you can use this on all sorts of things.

これは、あらゆる種類のものに使用できることを示すためだけのコメントです。

You can use this on forum posts, comments.

フォーラム投稿やコメントにも使用できます。

It just works really well.

とてもうまく機能します。

You guys might be familiar with this.

皆さんはこれに慣れているかもしれません。

We had this public challenge where people had to find GPT-4o use cases and sell wanted with his book listing GPT.

私たちは、人々がGPT-4oの使用例を見つけ、GPTの書籍リストを使って売りたいと考えていた公開チャレンジを行いました。

I'm just going to expand this entire comment section and then I'm going to copy everything in here.

私はこのコメントセクション全体を拡大してから、すべてをここにコピーするつもりです。

Mind you, this does not copy the images if there's any present and I can insert it and there you go.

注意してください、これは画像をコピーするものではなく、もし画像があれば挿入することができます。

A quick little summary as to the various points that have been discussed.

議論されたさまざまなポイントについての簡単な要約。

At this point, I should say the summary capabilities of GPT-4o and other Large Language Models have been heavily criticized recently.

この時点で、GPT-4oや他の大規模言語モデルの要約能力は最近、厳しく批判されていると言わざるを得ません。

If you put something like an entire paper in, it's not great at extracting all the relevant information, but something like a DM conversation that isn't as deep as a paper where specific words don't break the entire flow.

全文を入力すると、すべての関連情報を抽出するのは得意ではありませんが、論文ほど深くないDM会話のようなものでは、特定の単語が全体の流れを壊さない限り、それなりに機能します。

This is where LLM summaries are really good actually.

これが大規模言語モデルの要約が実際にとても優れている点です。

They become even better if you specify a goal in here.

ここで目標を明確にすれば、さらに良くなります。

I could even tell it the specific thing I'm looking for.

具体的に求めているものを伝えることさえできます。

It's going to customize the answer to fit that.

それに合わせて回答をカスタマイズする予定です。

Plus, if you're analyzing a group chat or you're planning a vacation, you can always follow up with questions like, is there any action I need to take right now to participate in this vacation?

また、グループチャットを分析したり、バケーションを計画している場合は、いつでも次のような質問を追加できます。今すぐこのバケーションに参加するために取る必要のある行動はありますか?

Simple follow up prompt and it will go through all the messages and give you exactly the info that you're looking for.

シンプルなフォローアッププロンプトで、すべてのメッセージを通過して、求めている情報を正確に提供します。

In this example, it gives me all the conversations based around GPT building, which is the thing I personally care about the most when I look at a comment section like this.

この例では、GPTビルディングを中心にしたすべての会話を表示してくれます。これは、私がこのようなコメントセクションを見るときに最も気になることです。

Just quick side note, some of these prompts actually come from our weekly newsletter and we compiled a database of every single prompt that we featured in our weekly newsletter over the last 18 months.

ちなみに、これらのプロンプトのいくつかは、実際には私たちの週刊ニュースレターから来ており、過去18ヶ月間に週刊ニュースレターで紹介したすべてのプロンプトのデータベースを編集しました。

It's a database where you can copy paste every single one of these.

これは、これらすべてをコピー&ペーストできるデータベースです。

We included titles so you can easily identify the ones that might be useful to you.

タイトルも含まれているので、あなたにとって役立つかもしれないものを簡単に特定できます。

Plus, we even included the section from our newsletter so you can get a little bit of extra info on when and how to use this.

さらに、ニュースレターからのセクションも含まれており、これをいつ、どのように使用するかについて少し追加情報を得ることができます。

The way to get this is by signing up to our completely free newsletter and I included this in our onboarding sequence that we reworked from the ground up recently.

これを手に入れる方法は、完全に無料のニュースレターにサインアップすることです。最近、私たちが一から再構築したオンボーディングシーケンスにこれを含めました。

What the onboarding sequence now does for you is that five days after signing up, you get various AI workflows or resources like this for free into your inbox.

現在のオンボーディングシーケンスがあなたに提供するものは、サインアップしてから5日後に、このようなさまざまなAIワークフローやリソースを無料で受け取ることができます。

It's my best attempt at helping people get up to speed with valuable resources like this.

これは、このような貴重なリソースを活用するための最善の試みです。

Sign up to the newsletter if you're interested in this full database.

この完全なデータベースに興味がある場合は、ニュースレターにサインアップしてください。

Obviously, there's other great resources in there too, but by I think day three, you should be receiving this in your inbox for free.

もちろん、他にも素晴らしいリソースがありますが、3日目までには無料でメールで受け取れるはずです。

By the way, in the database, there's a prompt that actually does the same thing as I just showed you, but for emails.

ちなみに、データベースには、私がさっきお見せしたのと同じことを行うプロンプトがありますが、メール用です。

We customized it a little bit to be more actionable, more work-related.

私たちは、より実行可能で、仕事に関連するように少しカスタマイズしました。

If you're interested in that, you'll find that in here.

もしそれに興味があるなら、それはここにあります。

It's a little bit of tease, but also that can be fun sometimes.

少しはからかいですが、時には楽しいこともあります。

But again, all the prompts we're discussing today are in the video's description, which is one that I actually use all the time.

ただし、今日話しているすべてのプロンプトは、実際に私がいつも使用しているもので、動画の説明にあります。

This is one of those hidden capabilities in ChatGPT that to some people, it's just blatantly obvious.

これはChatGPTの隠れた機能の1つであり、一部の人にとっては明らかになっています。

Fair enough, if you're one of those people, then great, you might be using this.

もしあなたがそのような人の1人なら、素晴らしいですね、あなたもこれを使っているかもしれません。

But most people do not realize that ChatGPT is incredibly good at recognizing patterns, then reproducing them.

しかし、多くの人々はChatGPTがパターンを非常によく認識し、それを再現することができることに気づいていません。

When you apply that to the context of an Excel sheet or a database, it means that it's extremely good at filling in the blanks.

それをExcelシートやデータベースのコンテキストに適用すると、空欄を埋めるのが非常に得意であることを意味します。

Meaning, if you have any table that misses a certain column or there's certain data missing and you need to fill it in manually, no need.

つまり、特定の列が欠落しているテーブルがあるか、特定のデータが欠落していて手動で補完する必要がある場合でも、必要ありません。

Upload it into ChatGPT.

ChatGPTにアップロードしてください。

Use this prompt.

このプロンプトを使用してください。

Here's a database of you need to tell it what kind of content it is.

必要な場合は、データベースがあります。どのようなコンテンツかを伝える必要があります。

Some of them are missing a field.

いくつかのフィールドが欠けています。

Please take a deep breath, think step by step and then fill in the missing fields for me.

深呼吸をして、一歩ずつ考えて、それから私のために欠けているフィールドを埋めてください。

This little prompting trick here is called Chain of Thought.

この小さな促すトリックは「Chain of Thought」と呼ばれています。

It lets it approach the problem step by step rather than trying to fill in all the fields at the same time and getting confused by that sometimes.

これにより、問題に段階的にアプローチすることができ、すべてのフィールドを同時に埋めようとして混乱することがなくなります。

In this particular case, it's really helpful to have this little block in here.

この特定の場合には、ここにこの小さなブロックがあると本当に役立ちます。

Let's test this, shall we?

これをテストしてみましょうね?

I'll just go on Kaggle and grab a random data set here.

私はKaggleに行って、ここでランダムなデータセットを取得します。

Maybe best-selling music artists will work, for example.

例えば、売れ筋の音楽アーティストがうまくいくかもしれません。

Quick Google login later, download, and here we are.

Googleでログインして、ダウンロードして、ここにいます。

This is a complete data set with 120 lines.

これは120行の完全なデータセットです。

But what if I just go in here and delete some of these countries, right?

でも、もし私がここに入って、これらの国々のいくつかを削除したらどうなるでしょうか?

Celine Dion in Canada, Queen from the UK with Aerosmith, Wayne from the US.

カナダのセリーヌ・ディオン、イギリスのクイーン、アメリカのエアロスミス、ウェイン。

I'll just delete these.

これらを削除するだけです。

Maybe, and this is where it starts getting tricky, I'll even delete some of these release years.

おそらく、ここから難しくなってくるのですが、これらのリリース年のいくつかも削除するかもしれません。

Elton John 1970, Ed Sheeran, Chris Brown, and Jay Z. Okay, so now we're missing some data.

エルトン・ジョン1970年、エド・シーラン、クリス・ブラウン、そしてジェイ・Z。さて、今、いくつかのデータが欠けています。

I'm going to save a second version of this, head on over to ChatGPT, upload it like so, and then let's not forget to specify what kind of content we're looking at, although it could probably infer that from the file name because it's well named, which is the best practice.

これの第2バージョンを保存し、ChatGPTに移動して、このようにアップロードし、そして何の種類のコンテンツを見ているのかを指定するのを忘れないでください。ファイル名からそれを推測できるかもしれませんが、それはよく名前が付けられているので、それが最善の方法です。

But just to keep this clean, we'll fill this out and hit enter.

しかし、これをきれいに保つために、これを記入してエンターキーを押します。

Let's see if it can handle this.

これを処理できるか見てみましょう。

Let's compare it to the original data set.

元のデータセットと比較してみましょう。

It's going to be using the Code Interpreter here.

ここではコードインタプリターを使用する予定です。

But again, it's also going to be using the world knowledge of ChatGPT-4o to fill in the blanks.

しかし、再度、ChatGPT-4oの世界知識を使って空欄を埋める予定です。

As you can see here, it's thinking step by step.

ここで見ているように、段階的に考えています。

It's not trying to fill in all the blanks.

すべての空欄を埋めようとしているわけではありません。

It's starting with, okay, what country is Queen from?

最初に、では、クイーンはどこの国の出身ですか?

It's a British band, so the country should be UK.

それはイギリスのバンドなので、国はUKであるべきです。

What about Elton John?

エルトン・ジョンはどうですか?

First released 1970, just as we saw in the last data set.

最初にリリースされたのは1970年で、ちょうど前回のデータセットで見たとおりです。

If I look into this table in this new data analysis interactive table, I will see that hey, it actually missed a few.

この新しいデータ分析インタラクティブテーブルでこの表を見ると、実際にいくつか抜けていることがわかります。

Aerosmith is missing, Celine Dion.

エアロスミスとセリーヌ・ディオンが抜けています。

It might not always be fully automated.

常に完全に自動化されているわけではありません。

It does take a little bit of human interaction to get this right.

これを正しく行うには、少しの人間の関与が必要です。

But by simply following up with something like fill in the remaining fields, there you go, it's on the case.

ただし、残りのフィールドを入力するなど、簡単にフォローアップすることで、問題は解決します。

In a second here, we should have a new table that can download.

ここではすぐに、ダウンロードできる新しいテーブルができるはずです。

We can do a final double check, which I would always recommend.

最終的な二重チェックを行うことができますが、常にお勧めします。

There's just a certain amount of randomness and hallucination, but that's a feature, not a bug.

ただし、それは機能であり、バグではありませんが、ある程度のランダム性と幻覚があります。

It's where you get the creativity from, but then you do have to do some double checking.

そこから創造性が生まれるのですが、その後にはいくつかの二重チェックを行う必要があります。

I'll just open all of these side by side.

これらをすべて並べて開きます。

This is the original file.

これが元のファイルです。

This is the one where we deleted some data and this is the resulting one.

これはデータを削除したもので、これがその結果です。

If you look at Mariah Carey here, United States, United States, Celine Dion, Canada, Canada, Chris Brown and Jay-Z release here 2005 and 1996, 2005 and 1996.

ここでマライア・キャリーを見てみると、アメリカ、アメリカ、セリーヌ・ディオン、カナダ、カナダ、クリス・ブラウンとジェイ・Zが2005年と1996年にここでリリースされています。

As you can see from our spot check here, this looks to be flawless.

こちらの現地調査からもお分かりの通り、これは完璧なようです。

Always proceed with caution.

常に注意して進んでください。

If it's absolutely mission critical that every single piece of info here is 100% correct, then you should probably double check every single piece of info.

もし、ここにある情報のすべてが100%正確であることが絶対にミッションクリティカルであるならば、おそらくすべての情報を再確認すべきです。

Nevertheless a massive time saver and many use cases, a quick spot check like this, where you just check five data points.

それでも、大きな時間の節約と多くのユースケースがあり、こうした素早いスポットチェックでは、たった5つのデータポイントをチェックするだけです。

If all of them line up, you're probably good to go.

もしそれらがすべて整列しているなら、おそらくうまくいくでしょう。

Those are the prompts I have for today.

それが今日のプロンプトです。

But wait a second, there is one more thing.

でもちょっと待ってください、もう一つあります。

One thing that takes a little more time than we have in this video to discuss and to show you how to use properly.

このビデオでは時間が足りないほど、適切に使用方法を説明し、示すのに少し時間がかかるものがあります。

I lovingly called it Sam, the prompt creator, and it's a custom GPT that we've been developing for months.

私はそれを愛情を込めてサム、プロンプト作成者と呼んでいます。それは数ヶ月間開発してきたカスタムGPTです。

What it does is it builds prompts for you, really complex and specific prompts, or it turns prompts that you already have into this more advanced version of the prompt.

この機能は、あなたのためにプロンプトを作成します。非常に複雑で具体的なプロンプトを作成するか、すでに持っているプロンプトをより高度なバージョンに変換します。

What's the advantage of that?

その利点は何ですか?

Mainly if you're going to be handing them off, running them many times, or if you're going to be including them in an automation.

主に、それらを引き渡したり、何度も実行したり、自動化に含める予定がある場合には特に。

That's where you really want to flesh out all the context.

そこで、すべての文脈を詳細に説明したいところです。

This GPT does it automatically for you.

このGPTは、それを自動的に行います。

I created a separate video talking about that and other situations in which you might not be needing prompt engineering at all.

その他の状況でも、迅速なエンジニアリングが必要ない場合について別のビデオを作成しました。

Where following your intuition is the right call.

直感に従うことが正しい判断である場合もあります。

If you're interested in learning about that, check out this video.

もしそれに興味があるなら、この動画をチェックしてみてください。

Other than that, I hope this was helpful.

それ以外にも、お役に立てれば幸いです。

Have a great day.

素晴らしい一日をお過ごしください。


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