見出し画像

【プロンプトエンジニアリング】:①講義内容の復習編

こんにちは、Choimirai Schoolのサンミンです。

0  はじめに

いくつかの事例を挙げながらPrompt Engineeringに関する話を複数のnoteにわけて紹介する予定です。ご興味のある方は他のnoteも合わせて参考にしてください。

まずは、オンライン講義で学んだ内容を人工知能と一緒に復習するとき使えるプロンプトです。

1  利用するモデル

会話形式で行うプロンプトでは、GPT-3の「text-davinci-002」を利用しています。

2  復習するオンライン講義

今回のnoteでは下記2つのオンライン講義を例として復習を行います。

■The Science of Well-Being

■Learning How to Learn

3  The Science of Well-Beingの復習

AIとThe Science of Well-Beingで学んだ内容を復習する様子は下記のスレッドを参考にしてください。

まずは、コースについて聞いて、これから話すトピックを①AIが知っているかを確認し、②何について話すかをAIと共有します。

Human: Do you know the science of well being from Yale university?
AI: Yes, I do.
Human: Who is teaching the course?
AI: The course is taught by Professor Laurie Santos.
Human: What are some key takeaways from the lecture?
AI: Some key takeaways from the lecture include the importance of managing one's thoughts and emotions, investing time in things that make us happy, and staying physically active.
Human: What did professor Santos say about managing one's emotions?
AI: Professor Santos said that it is important to be aware of our emotions and manage them in a healthy way.
Human: Did she give some examples of how we could manage them in a healthy way?
AI: Yes, she did. Some examples include talking to a friend about how we're feeling, journaling, and practicing meditation.

text-davinci-002は2021年6月までの情報であればほぼ何でも知っていると理解していいと思います。

講義で紹介した研究についても詳細情報を引き出すことができます。

Human: I remember she also mentioned research about talking to people in a public space such as train riding. Would you please help me refresh my memory?
AI: Yes, I can. Professor Santos mentioned research that suggests talking to people in a public space, such as on a train, can help improve our mood and reduce stress levels.
Human: But, most people don't talk to strangers. Why is that?
AI: There can be many reasons why people don't talk to strangers. Some people may feel shy or uncomfortable, while others may not want to intrude on someone else's personal space.

人工知能とは講義内容に関する質疑応答だけでなくクイズを作ってもらうこともできます。

Human: Can you test me with multiple choice questions for the topics covered in the lecture?
AI:
1. How can people increase their happiness?
a. By practicing gratitude
b. By winning
C. By comparing themselves to others

2. What is "a calling"?
a. A term used to describe a career that is personally meaningful and fulfilling
b. A way to measure happiness
c. A method of managing emotions

3. What is personal space?
a. The space around us that we consider to be our own
b. The space between us and others
C. The amount of space we need to feel comfortable

4  Learning How to Learnの復習

The Science of Well-Beingと同様、まずはどんなトピックについて話すかを人工知能と共有するのが重要です。

そのあとは、Key Takeawaysを引き出してどんな内容を学んだのかを思い出す。

Human: What are some key takeaways from the course?
AI: Some key takeaways from "Learning How to Learn" include learning how to effectively manage your time, how to break down complex tasks into smaller and more manageable pieces, and how to create an effective learning environment for yourself.

学習法において「chunking」は、情報を記憶可能な単位にまとめて覚える手法。chunkingを思い出せなかった場合は、こんなプロンプトも使えます。

Human: Professor Barbara used a term to describe those smaller and more manageable pieces. What was the term she used?
AI: The term Dr. Barbara used was "chunking."

そして、講義で学んだ内容について疑問があるときはこんなプロンプトも考えられる。

Human: It seems to me the diffuse mode is counterintuitive. If we want to remember what we learned, we should deliberately utilize the focused mode instead. What is the role of the diffuse mode in the context of learning?
AI: The diffuse mode is important for learning because it allows our minds to process information in a more relaxed state. This can be helpful in solidifying information that we have learned in the focused mode and allowing us to see the big picture.

工夫次第では講義内容を日常の中でどう活かすか?を確認するのも簡単です。

Human: Let's say l have one hour to study. How much time should I allocate to the focused and diffuse mode?
AI: The amount of time you should spend in the focused and diffuse mode depends on the task at hand. If you are trying to learn a new skill, you may want to spend more time in the focused mode so that you can practice and master the skill. If you are trying to review information for an upcoming test, you may want to spend more time in the diffuse mode so that you can passively absorb the information.

5  まとめ

人工知能と一緒に講義内容を復習するときも「プロンプトエンジニアリング」はとても重要な役割を担います。こうして人工知能と一緒に復習するメリットは、

①講義内容を思い起こす(Active Recall)

②情報を知識に変える

③長期記憶に定着しやすくなる

といった循環を意図的に回すことができることです。

すると、時間の経過とともに努力の結果も複利で上達するようになります。


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