yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

Prompting basics | Introducing Khanmigo | Khanmigo for students | Khan Academy


5m read
·Nov 10, 2024

In this video, we're going to see that you can have very different experiences with the same AI, and a lot of that is depending on how we prompt the AI. So before we even start doing some prompting ourselves or even understanding what that means, let's just play around a little bit.

So I'm here on my account on Chat GPT, and I'm using GPT-4 as my model. The underlying model, remember, Chat GPT is the application; it can use different models. I could use GPT-3, 3.5, or GPT-4. In this case, these are from OpenAI.

Let's say that I want help understanding some concept in science. So let's say, uh, I want to understand how—let's say—how photosynthesis works! I really want to understand.

So over here, Chat GPT, using GPT-4, it's essentially creating a bit of an article. This is very similar to what I would see if I were to go to Wikipedia or if I were to just do a web search. It's actually giving a very lengthy article, whether I’m in the mood of reading this or not.

Photosynthesis is a fascinating process that allows plants, algae, and some bacteria... It talks about the absorption of light. This is a pretty involved article, but once again, not that different than what I would find if I went to Wikipedia or the internet.

Now, as a comparison, let's go to Kigo and do the same thing. I'm using the "Tutor Me in Math and Science" activity, and conmigo—this version of Kigo—is still using the same underlying model; it is using GPT-4, at least at the time of me making this video.

But let me ask the same question: I want to understand how photosynthesis works! Ah, photosynthesis! The magic trick plants use to turn sunlight into food! Let's dive in. First, can you tell me what you already know about photosynthesis?

So now you're thinking, wait, this is the exact same underlying model, but it's doing something very different here. Here, it's really acting like a tutor, and instead of just giving me a big verbal dump of an article, it is actually asking me a question.

Well, I could keep going into it. Well, I know that it's how plants convert sunlight into food. Great start! Now let's dig a bit deeper. Photosynthesis involves two main stages; can you name them? Interesting!

So it's really trying to quiz me, making sure that I'm understanding this. I could obviously spend hours talking about photosynthesis with Kigo, but that's not the point of this video. The point of this video is, why is Kigo behaving so differently than that interaction we saw with Chat GPT, even though it's using the same underlying model?

The answer is prompting. There are other things that work with Kigo, but for the most part, the KH Academy team has created prompts that encourage, direct, or steer—actually, the right word is "steering"—a model to act as a Socratic tutor, not to give big verbal dumps like you saw, but to ask questions, make sure the students understand, and then dig a little bit deeper.

Now, you might wonder, what does a prompt like that look like? Well, I could do that here on Chat GPT. Although it takes a little bit more work, I could say something like, "You are a Socratic tutor; I am your student. Try..." Well, let's just start with that as a simple prompt.

I will ask you questions, and I'm going to copy and paste this. There are more efficient ways of doing this, but just so that you... I’ll copy it for now so we can use it later and see. Let's see what it does.

I'm ready to help you explore and understand any questions you have. What's on your mind today? It's already doing something very different than what we saw in that previous example when I just asked how photosynthesis works.

So I say I want to know how photosynthesis works! All right, great topic! Let's start by exploring the basics of photosynthesis together.

So it's still not doing what Kigo did; it's still, you know, giving me maybe a little bit more verbiage or more text than I might like. So let's start over here. Let's start another thread, and this time, I copy and pasted, "You are a Socratic tutor; I am your student. I will ask you questions. Keep your responses as short as possible," and let's just do that for now.

So that was essentially my prompt.
Understood, please go ahead with your question: How does photosynthesis work?

Let's see how it's responding now.

So photosynthesis converts light energy into chemical energy; plants use sunlight. So it is doing what I asked it to do; it's giving a shorter response. Would you like more detail? But it's still just kind of giving me the answer.

So I want it to be more Socratic. Let's do this: "You're a Socratic tutor. I am your student. I will ask you questions; keep your responses as short as possible, and try to ask me questions on my understanding rather than just giving me answers."

And see what it does now. So, how does photosynthesis work?

Photosynthesis is a process plants use to make their own food. Can you tell me where it primarily takes place in the plant?

So you can see it's getting closer to what we just saw with conmigo by giving it that prompt. That prompt that we saw at the beginning every time it goes back and forth with the AI, the AI sees this at the beginning of our conversation stream, and that essentially primes the AI to behave in that way.

You could do prompts to do some pretty fun things. So let's say you... Actually, let me just—I should have copied and pasted. Actually, I think I can go back here. Let me copy and paste what I just had, and let me create a new thread, a new conversation.

"Speak in the tone of Dr. Seuss." Let's see what happens.

Oh, a question you have, my dear friend indeed! A curious mind is a wonderful seed. Now ask away, don’t delay; let's proceed! What's on your mind? What knowledge do you need?

I kind of like this one: How does photosynthesis work?

In a leafy green world where the sunlight's a treat, plants take in the light—oh so right and so neat! But how do they do it, you ask? Isn’t that sweet? Can you guess what they need besides light from the sun to make sugar and food and have all of their fun?

So there you go; that's prompting! By giving it clear instructions of what you want, especially when you begin, and later, we'll talk about how you can save this so you don't have to write this every time, or there's ways to do it depending on what app you need.

But this is how you can steer an AI—a large language model—to behave in the way that is useful to you.

More Articles

View All
Khan Academy Talent Search 2016
Hi, this is Sal Khan, founder of the KH Academy, and I just wanted to announce our second annual Talent Search. As you may know, KH Academy, we’re a non-profit with the mission of a free, world-class education for anyone, anywhere. Part of that is creatin…
What If You Just Keep Digging?
If you’ve ever thought, “What if I just dug a really, really deep hole?”, that’s what the USSR did right here! That hole is deeper than the deepest part of the ocean. It’s deeper than Mount Everest is tall. They started digging it in the 1970s as part of …
Mean Tweets with Neil deGrasse Tyson - Movies Edition | StarTalk
And now for another edition of Neil deGrasse Tyson reads mean tweets. Josh from school, that’s his Twitter handle: “Josh from school, Neil Tyson is such a dweeb. Nobody watches science fiction movies for the science.” I wouldn’t say nobody watches the s…
Cameras Reveal the Secret Lives of a Mountain Lion Family | Short Film Showcase
Mountain lion, puma, cougar— all names for an animal that has long been misunderstood, feared, hunted, and eliminated from most of its range. The cougar is often believed to be solitary and even heartless, but recently, deep in the Wyoming Wind River Rang…
Atomic Habits: Small Changes, Big Results
11 seconds. It doesn’t seem like a lot of time, does it? In fact, you’ve already been watching this video for about 11 seconds. If you are running and I ask you to run 11 seconds faster per mile, could you do it? Probably, because 11 seconds isn’t that mu…
Understanding equivalent ratios
We’re told that Burger Barn makes dipping sauce by mixing two spoonfuls of honey with one half spoonful of mustard. Sandwich Town makes dipping sauce by mixing four spoonfuls of honey with one spoonful of mustard. Which dipping sauce has a stronger mustar…