Transcripts
1. Introduction - What You'll Learn: Understanding how
the body works, it's based on how you can actually engineer
the best prompts. So in this course, I'm
gonna show you exactly how to supercharge your prompts by learning the
frameworks you need to know to create the
best prompts possible. This course is about chat
GBT prompt engineering. So I'll take you by
your hand and show you exactly how to use one of the most important
frameworks so that you can really create the best
prompts possible. My name is Paulette is shown. I'm a programmer as well as an AI expert for almost a year now I've been
studying IGBT or been studying prompt engineering
in this course, I'm gonna show you
exactly how to craft the best prompts
for chatter beauty. Okay, let's go ahead
and get started.
2. Lesson 1 What Is Prompt Engineering: The basics of everything when it comes to a tragic beauty is to understand how to write
the best prompts. So that's the reason why we
need to talk about prompting. So what is a prompt? So I prompt is indeed a set of instructions that you
pass to charge a beauty. So essentially think of
it as something that you feed to try DBT so that it can
get results that you want. Now it is very important again, to understand how
prompting works, the engineering of prompting. That way you get the results
that are useful to you. The results that will help
you do what you want to do. That is the most
basic building block when it comes to AI, specifically speaking, when
it comes to charge EBT. So really understanding
how to construct and how to think about
constructing or crafting this prompt is gonna be the difference
between you getting the best out of your
DBT versus you're getting the worst
out-of-state IGBT. So that is the idea
of this whole course. Optimal way to ask good
questions to charge a beauty. That is, what prompting
in this case really is
3. Lesson 2 - Prompt Components & Prompt Engineering: So we understand
what a prompt is. But now it's time
for us to understand what does a prompt
actually contain? A prompt should
contain a few things. The first thing that should
contain is an instruction. That way you are telling charged UP t what
needs to be done, what task you wanted to do. And also, a prompt may contain, in this case, a
question you can say, what is the time in Singapore, okay, also can contain context. And that context is very
important because contest it contexts is the more information
that you'd give to it, the better results you'll get. So tragic, but he has some
percent which contexts are you giving it so that it gives you the result
that we want? And we'll talk about that. And also they may contain
inputs as well as examples. Okay, So we understand what a prompt is now
understanding what, in this case, what a
prompt may contain. Now, this is very important
because it say here, instruction is a given. And then we'll have a
question that could be a question that we are
prompting contexts. It's very important as
we will see an inputs, examples and so many things. So a prompt may
contain these items, are these components as
well as many others, but these are the most, I would say the most basic,
most important ones. Now let's talk about
prompt engineering. Prompt engineering, what is it? What does that all mean? Well, what I'm talking
about promptly engineering, we're talking about
a way in which we can extract or we can have tried TBT to give us the most optimal
result as possible. So essentially is the
science per se of learning how to craft the
best optimal prompts to instruct the model, in this case, IGBT, to perform a certain task. Now, this is very important. I want you to understand the correlation here we're
talking about prompt. Prompt is just a question in instruction that would
give to charge a beauty. Now, the study of, in this case, the breaking down of the, how can we create, how can we craft
the best questions, the best prompt, so that charge, if we take an actual give
the results that we want, is what we call
prompt engineering. Because we are engineering, we're looking really deep
how the mechanism works. And that is exactly what we're gonna be
doing in this class, which is I will show
you exactly how can we prompt
engineer our prompts. That way we get the
optimal results or the app more instructions that we can give to judge
the beauty, the model. Therefore, we can get the
best results possible
4. Lesson 3 Prompt Breakdown: Okay, so now let's talk
about prompt break down. So we're going to look at the
elements in this case of, so we can construct an optimal prompt because we're talking about
prompt engineering. Now, we have to
think in terms of, because we're talking
about engineering rarely we have to
break things down. So really understand
Because remember, if we don't understand
how prompts work, how to construct
an optimal prompt, then we will just run into a
lot of issues is going to be very hard for us to get
the optimal results, the optimal responses
from Chad to be t. So let's look at this. An optimal prompt will
include a few things. Now, this is not an
exhaustive list, but these are some
of the frameworks that come with a
really good prompt. The first one is in structured,
we're talking about it. So instruction in this case, we are making sure
that charging PTA understands or giving tragic
beauty a specific task, in this case, instruction to do something that is
very, very important. There are specific direct task. Could be list X or
tell me how to do Y, or compile a list of x, right? So there are direct
instruction to do something. We talk about contexts to
create an optimal prompt, we have to have a context. So what is the context
that we're contexts is when we give a child liberty more information about
whatever it is that are we trying to ask
tachypnea about? In this case here,
this will give, this will help give the
model more to work with. For instance, instead of saying, what are the best dogs
in America, right? That is very general. You could be given a
little more contexts. Say, what are the best
golden retriever dogs in the state of Maine or in
the state of Washington. Alright, so we gave it a little bit more
context and you can go overboard by giving more
context, more information. So that change to be t, The model is able to infer more about what you
want to get back. And also, an optimal prompt includes what we
call input data. So what this is, for instance, in the input could be
an input of any sort, or in this case could
also be a question. We want a response
for output indicator. So I'll put indicator is
the format of the output. We can say, for instance, a list ten best cities
living in the United States. And you can see when I say list, that is part of indicating
how the output needs to be, I want it in four on my list, or I could say, create
a chart, right? Format this list into a chart
or something like that. So that is the output
indicator we're talking about. Okay, we're going to
see examples of this. One thing to keep in
mind is that even though I've shown you
an optimal prompt, would include these
components here. That doesn't mean that
all the prompts you will ever write must
have all of this. Some of the prompts
that you may write may just have them be instruction
and add contexts. And they don't have an
output indicator or they may not have input
data or vice versa. Don't get hung up on every
prompt that I've ever right, will have this three or
four in this case elements. So what we'll do next is
we're going to give you, I'm going to give you
an example, right? And then we're going
to break down. So you can see the
elements of a prompt. I'll see you next.
5. Lesson 4 Elements of a Prompt : Earlier what we did
is we broke down what a prompt would include. Ok. And now what we're
gonna do is I'm going to show you the elements of a prompt, a
well-structured prompt. This is the prompt that we have. Tell me what sentiment
the text evokes, neutral, negative, or positive. The text in this case will be, I think it's going
to rain today. Now let's break it
down so you can see there the first
thing we have, this tell me what sentiment
the texts evokes, neutral, negative or positive. This is what we call the instruction because we were
saying talents, chat too, buddy, hey, in general, do this task for me. Then we have at the bottom
here the text which says, I think it's going to rain. What this is is what we call, in this case an input data. We are actually adding
some data to our input. We're saying, I think
it's going to rain. That is what needs
to be evaluated. And the next thing what we
have here is sentiment. The sentiment, It's
the output indicator. So we're saying in this
case, well, what happened? We want you to tell me
what is the sentiment. So you evaluate this instruction
with this input data. The sentiment, which will
be the output indicator, what we want, well, we want the output of a
sentiment doesn't make sense. So if you look at this,
something is missing. We don't have contexts from
what we saw earlier as one of the elements that may be included in a good prompt. This validates again
what I said earlier, that all of those
elements that I said, they may be included, sometimes they will
not be included in. That is totally fine,
as you see here. This is a very good valid
prompt that tragedy, but he will actually be happy
and give you a good result. So just to give you an idea, this would give you actually a neutral sentiment because it, nor is it negative or positive. Looking at this is very
simple, but that's the idea. I wanted to break it down so that you really
understand the mechanics. Because now talking
about the engineering, we're not just
talking about, right? These do this now. This is the engineering, the framework I'm
going to give you that way in any circumstances
that doesn't matter if you want to ask to LGBT about very simple things
or if you want to ask it very complex things like, Such as creating a big resume
or writing a massive book. It doesn't matter. These
are the basic concepts, the building block concept that you need to understand
when it comes to really go in and look at the engineering
of a good prompt. So that is my goal, is that you will
understand what's happening when you see a prompt. So you understand the pieces
I need to go together. That way you're able to create
awesome OK, mall prompt. Alright, so now that we have real good grasp on
what, in this case, what a good prompt is and understand what
prompt engineering is. Elements of a prompt. It is time for us to look at frameworks for
prompt engineering. So I'm going to go
through a few frameworks and with examples on what are we gonna go to try to put t, I'm going to write those so we can actually
see the differences. So we go from there. But this is the base that
I want you if you need, if you need to re-watch these
previous videos, right? So you will understand, because I think that is
what's going to take you from here to here when it comes to your chat
DBT and you're prompting capabilities. Okay,
I'll see you next.
6. Lesson 5 FrameworksFor Prompt Engineering - Intro: Alright, so we're moving forward and now
we're going to talk about frameworks for
prompt engineering. So we're going to divide
this course now we're gonna go deep down
and understand these frameworks that
will really get you understanding about prompt
Engineering at a deeper level. So you can use that knowledge to really supercharge
your abilities to talk or to prompt LGBT and get the best
optimal results. So what is that we're
gonna be looking at? What frameworks want
to be looking at. Now, disclaimer here, there
are a lot of them framework. So obviously I'm not going
to go over all of them, but I figured out I picked
a few that I think will be helpful in your journey of understanding how
to prompt the best. In this case, the best
prompt, which activity. So the first thing we're
going to be looking at is clarifying objectives. We're going to look at
the iterative refinement. I'm going to look at
reverse engineering, question and answer prompt technique and
discuss frameworks. We're going to look
at instruction base, framework,
conversational context, narrowing down, role-play,
feedback loop, emotion driven. That's very interesting one, I'm going to look at
hypothesis testing, comparative, assumptive, and
perspective switching. Okay? That's, these are the ones
that we're going to look at. And if I add one or two,
that could happen as well, but these are the main ones
that we're going to go over. So you really have the grass. Okay. Let's go ahead
and get started.
7. Lesson 6 Clarifying Objective Framework: First framework we're
going to look at is the clarifying objective. So the idea of clarifying objectives is exactly
as it sounds. We want to make sure
that our prompt is clear and has very
direct objectives of what is it we want to ask. A good example would be
something like this. If I paste this, we're compiling a comprehensive, yet easy to understand
guide about World War II for
high-school students. This is very direct. It has an objective, so it would tell the
instructions are away. We are compiling a
comprehensive who telling this is the objective which
were clearly defining. We are compiling comprehensive, yet easy-to-understand
guide about World War II. For high-school students will go ahead and say
enter like such. You can see that
because we gave which IGBT very narrow objective,
which is in this case, to give us a guide about World War Two for
high school students. As you can see, we have
everything that we want. We have introduction, welcome to our comprehensive guide and the table of contents and talks about the background
treaty over say, a rise of fascism, German Japanese imperialism,
and the road to war in Asia. Outbreak of war, three
major events and battles. This is a very good example
of using, in this case, as you see here, a clarifying
objective framework. So again, you go back, you can see what
is the objective. The objective here is
to provide a detailed, a very detailed, yet understandable guide
of World War II. For high-school students,
it's important to really, as an exercise to
start with looking at all those elements
that we've talked about. So there is instruction here. The instruction is
to give us a very easy to understand
guide about what, about World War II? For high-school students. Very specific. But again, the main part
of the prompt here, we're compiling
and comprehensive. So we adding more
objectivity for this prompt. So what I want you to do before
we go to the next lesson is to find ways where we
can use this framework, which is the clarifying
objective framework. The idea is that you have a very defined objective,
which is in this case, to create or to give
us a comprehensive, easy to understand guide about World War II for
high-school students. Okay, so go ahead and give it
a try. Think of something. You can do something in prompt
IGBT using this framework
8. Lesson 7 Iterative Refinement: The second frame we're
going to talk about is what we call the
iterative refinement of. The iterative refinement
framework allows us to kind of go through a
conversation with tragic beauty. What I mean by that
is that we can refine a prompt until we get
the results that we want. It's almost like you're
negotiating with it. In fact, negotiation with
the AI or the model, one of the framework as well. But I think iterative refinement falls between or within
the negotiation framework. So what that means
is as follows. Imagine that I can say
something like this. Imagine I started by saying, Tell me about World
War Two, like this. Okay? When I hit Enter,
what's going to happen is it's actually pretty, of course it will
attempt to tell me everything that it knows
about World War II. Now, that makes sense
because as you can see here, it gives us a summary
of what happens, when that happened, and
how long it happened for. And all the things
that lead to that, the causes that
started world War II, as well as major events and
battles in everything else. It may not be what
we are looking for. This is the chance
that we may have, because as you can see also, the prompt is very generic. That's why we get a
very generic overview of the results that we get from writing or having this prompt Tell
me about World War II. So very vague. And so the idea now is if you want something
more specific, we can ask it through the
iterative refinement. So we iterating through
giving the different prompts, trying to refine to get to the prompt that
we actually want, which will get us where we
want to see essentially. So another way to make
this even better, I could say something
like this in detail, in a detail manner
and structure. Please summarize all you know about World
War II like this. And there we go. So now you can see we have even bullet points. And because nobody was able
to refine a little bit, our rather we were able to refine Our prompt
and contributor was able to give us
a little bit more succinct to the point results, which is exactly what you want. And if you look at here, it says World War II was
a global conflict, right? And starts putting together the causes in bullet
point format. And also uses the
outbreak of the war and major events in battles
as well as Holocaust, Nazi atrocities and all of what happened with what
happened in the world War II. Alright? And we can keep
moving in our refinement. We could probably say
something like this. Say please make sure that all the details are
summarized further. As if I were to be
preparing to give a, an elevator pitch about what world to
something like this. Maybe not the best
way of putting, but you can see we can continue refining everything
and look at this. Right? Then you went ahead and
summarize everything, condensed everything
into this war. Well to the dates tells us was a global conflict with
significant consequences. And even talks about the
Treaty of Versailles, rise of fascism, Germany, Japanese expansion
and all of that. And even touches on the Pearl, Pearl Harbor and major battles
like Stalingrad at Midway. And all of this
information touches on decolonisation as
well and so forth. Alright, so you can see we
went from a very vague prompt, which gave us very
vague general response. And we came down to something that is a
little bit simpler. We keep iterating through, going through different ways to ask the same
thing to refine it. So we can get to the point where the iterative refinement
framework actually works to where we get
exactly what we want. So it's all about refining, going through this process
until you find the correct or the right prompt that will
give you, what do you want? Go ahead and practice
this, right. Find any concept that you
want to learn about and go vague first and then start refining until you
get to the meat, until you are able to craft, engineer a very succinct, a very refined prompt
that gets you, that gives you the right
responses out of JWT. I'll see you next.
9. Lesson 8 Reverse Engineer: Okay, So next we're
going to talk about one of my favorite which is the reverse
engineering framework. So the idea of reverse
engineering is to do backward. So essentially is looking
at a prompt and start thinking backward to get to
the result that we want. So a good example
would be if I were to say something like this, please summarize the main
causes of World War II, the key events during the war
and its global aftermath. Now you can see that when
we look at this prompt, is that the prompt has been
constructed to guide catchy between this case towards
a desired result, which is in this case the key events during the war
and its global aftermath. Okay, So these are the things
that we need to cover. We asked me in chat
if T to cover when giving back the results.
So this is the book. So that's the beauty
of reverse engineering because as you can see here, we thinking backwards from
the desired response, Let's see what this
is going to do. So I'm gonna go ahead and click. Now you can see each
IGBT went ahead and put together the causes because that's one of the keys
that we asked to consider. The key events demand causes first and then the key
events during the war, and then it's global aftermath. You see here we have the
causes harsh treaty over say, rise of fascism, German
Japanese expansion policies. And then we'll have the
key events during the war, German invasion, all of that. And then the global aftermath, Holocaust and total
mobilization of the home front, Allied victories
and all of that. And at the end of course we have this very more succinct
summary of everything. World War Two had a lasting
impact on the world, shaping political, social,
and economic structures. Its consequences serve as a reminder of the
importance of peace, understanding the pursuit
of a better future. And there you go. So you have the reverse
engineering framework that's very powerful. You can see that the prompt
is being constructed or was constructed to guide you
towards a desired response. So we took Teddy beauty with handheld it to give us exactly
what we want in this case, reversing, reverse
engineering everything. Again, go ahead and
think of a situation or think of a prompt that
you can ask her deputy, or you can use this framework
and you will see the power and nuances of this
awesome from work. And I hope this is
going to be helpful. Keep practicing. That's the most important thing. Alright, I'll see you next.
10. Lesson 9 Question Answer Framework: Next we're gonna look
at another framework called question answer, which is essentially
as the name imply, you just go direct and ask a
question to try to beauty. For instance, you could
say something like this. What countries
initiated World War to put exclamation mark and say, Enter and see what tragedy is going to say
because we prompting directly with a question and
hopefully we get a response. And from there we can
reverse engineer. It, can go back and
make it more objective. We can do all sorts of things. But that is the idea.
Okay, let's see. Sometimes IGBT just want to go. So let's see what's
going to happen here. Let's give it another
try just to make sure. Okay, there we go. So because we give it a
very straight question, so we are using this gets
question answer framework. So what countries
initiated World War II? Alright? So the country's initiated
World War II were primarily Germany,
Italy, and Japan. Okay, it gives us an overview of each countries involvement
in initiating this war. There we go. So this
is very simple. Just go ahead and ask a
question and you get an answer. You can ask another question. And here we can continue using this question answer framework and say which of
these countries, what are the most vocal
about World War two? Just to see. So it goes ahead and talks about exactly answering the
question that we asked. And it tells us
exactly the countries, but as well as the leaders
who were very vocal about it. Alright, so there we go. Very, very simple example. Just think of question answered. So you ask it directly and
then you get an answer. Remember the idea here we
are learning how to craft, how to engineer the
best optimal prompt. So I'm showing you
these frameworks. That means you can use
them as you go through, as you think about
what you want to ask such attribute t,
that is the idea. So in this case here we're
using question answer. Again. Also use the iterative
refinement that we saw earlier as much as you want to get two different
answers, different results. So that is idea. Go ahead and test this out,
and I'll see you next.
11. Lesson 10 Instruction-Based: Next we're going to talk about instruction based framework. Now as the name imply, this means what do
we need to do with instruction based framework
is we give such beauty, explicit instructions about what we want the outcome to be. So a good example would be, I just see here I'm saying in detailed and a
structured manner. Please summarize how World War to change the way we live today. And you can see here,
we are talented. You butene, no pun intended. I'm using the same word, detailed, but it works right? In detail and structured manner. I want you to summarize
how World War to change the way we live today. And if I hit Enter, Let's see what the
results will be. There you have it. You
can see tragedy is spitting out in detail. What do we ask it to do? Let's take a look. Okay, so World War
II brought about significant changes
that continues to shape the way we live today. And here's a detailed summary
of transformative effects. World War II,
global power shift. Number one,
technological advances and scientific progress, human rights and
international law, economic and social
transformation, it technology-driven
and so forth. This is a very
detailed approach, instruction based
because we instructed a directly and what
we want to do. Now some of these frameworks
do overlap with each other, but I just want to show you
the whole picture so you understand what's happening
as you construct prompts. So as an exercise,
I would like you to use the same approach, this instruction
based framework, and see if you can come up with even more detailed instructions. This is a very simple example. I'm going to say in detail
and instructional manner. Please summarize to try and
figure out other ways you can give more details
to your prompt. And once you do that, I
would like you to share that prompt and those prompted
with us in the comments. Alright, very good, salty. Next
12. Lesson 11 Conversational Context Framework: Alright, so now because the wage IGBT actually
works in general, this next framework is
almost like a no brainer. It's almost like it's
already built in. The next homework we're
going to talk about is the conversational context. Now what this is,
is it allows us to continue almost like
a thread chat thread, contextually continuing
to talk about the same thing and asking
about the same subject. So essentially is a
conversation we can have. You can say, okay, you told me this, this
is good response. But now, how about this, about the same contexts
that we're talking about? In this case, we're talking
about World War II. We can do something
like this, right? I can, well, because earlier we asked it in detailed
structural manner. Please summarize how
horrible to change the way we live today. Now, it's more of a
follow up question. And I say in how did it
impact the African continent? Include the most relevant
events triggered by World War II in the
African continent. Alright, so let's go ahead
and see what will happen. Because see now I have the
next leg or the next step. And that I've prompt
because I want to continue this
conversation contexts. It says here, World War II had significant impacts
on the African continent, shaping its political,
social, economic landscape. And here are some of
the relevant events are triggered by war in
Africa, north Africa. So it divides it
in all directions. So going North Africa, East Africa, West Africa, north Africa and sub-Saharan
African liberation movements and postwar
politics, political changes. Alright, there you go. So this is conversational, which means you can continue
asking more questions, but remember that you
keep the same context. Then we'll talk about contexts. We're talking about
what chatter be teed knows about what are
you talking about. So you notice here
I said How did it, I didn't say directly
World War II knew exactly inferred by the, it might infer that
we're talking about. Warble to the context is still there because that's
what we've been talking about on this chat. Alright, there we go. Try to figure out
ways in which you can continue this same
conversation or whatever conversation
is starting on charity, beauty,
and practice. Don't forget to share with me in the comments, the results, and of course, the prompts that you're crafting, because
that's very exciting. Alright, that's it for now. And I'll see you next.
13. Lesson 12 Conversational Context Framework: So narrowing down is the next framework we'll talk about as the name
imply narrowing down what it means is
that we want to start broad with a broad concept
that we want to ask. And then we narrow down
again back to sort of a conversational context to exactly what are the main points that we want, the detailed. So a good example would be, let's say, if I asked you IGBT, something like
this, tell me about climate change as
we've seen before. This is the best example, one of the examples of
abroad, the prompt. Let's see what's going
to happen if I just go ahead and hit Enter. Now try DBT. Climate change refers to
long-term shifts and alright, alterations in global original
weather patterns that goes through all of the technical
jargons and everything, the causes of climate
change and all stocks about impacts
of climate change, the rising temperatures and changing
precipitation patterns, ecosystem disruption,
and all of that. There's also mitigation
and adaptation. Alright, so that's
pretty good in all talks about
international cooperation, understanding climate change and taking collective action. Alright? So narrowing down because we've went very broad and it gave
us a very broad definition, very broad explanation of
what climate change is. Now we can write something
like this as a prompt, okay? Because now we want to
narrow down what are some major causes of climate change from
that broad definition. Tell us, what is this
now we're saying, okay, good, that's great, but what are now
some major causes of x in this case
of climate change? Let's go ahead and run this. Okay, So it says here,
climate change is primarily caused by human activities
that release greenhouse gases. Ghg is into atmosphere. Here are some major causes, so it lists all of the major
causes as you see vertical. So that's the deal. We can even continue
narrowing down. Remember this is part of
a conversation as well. Always think in terms of
you are conversing with tragic b t to get the
results you're looking for. Alright? So the refinement, again,
same thing, really, refinement of these prompts as we engineer them,
these problems. You have to also understand
that you tweak things along until you find or you get exactly what
you're looking for. So that is the
engineering part of it. There is no one
formula that fits all. It's just it's just
trying to figure out, trying to find, trying to
refine our prompt engineering, our prompt crafting or
prompts to where we get to the meat of the issue or of whatever we're looking to
get out of such beauty. Okay? Alright, I'll see you next.
14. Lesson 13 Narrowing Down: Now we're going
to talk about one of my favorites frameworks, which is role-play framework. Now the role-play framework, you can use it to really get to the meat
of whatever it is that you're trying to learn
or get allocated between. The idea is very
simple, is that you use a role to explain
or do something. Explain X concept as if I were two years old
or three or five. White depends. So the example is very simple. I'm going to, I'm going
to show you an example. So here is a role-play example. So it says here, imagine I
am a fifth grade student. Can you explain to me
what photosynthesis is? Right? Let's see what happens. So the idea, as you see here, is that I'm using a role-play. Say, Hey, imagine that I'm a student who is a
fifth grader student. That's very important.
So that is the role I want IGBT to play. And then once you
understand that, it's got that part, I can you explain to me as a fifth grade student how
photosynthesis works? This is very powerful
because it shows you the power of tragic
beauty and how it really understands our commands are prompt to get
exactly what we want. Let's go ahead and see. Okay, there we go. So now it spits out everything
that it knows about, chat about, in this case, photosynthesis to
a fifth grader. And says, Of course, I'll
be happy to explain for our citizens to you as
a fifth grade student. Photosynthesis is a process that plants use to make
their own food. Very, very simple to understand. Oh, okay, that's exactly,
That makes sense. Just like we humans need
to eat food to get energy. Plants also need energy
to grow and survive. But unlike as plants can't go to grocery store to buy
their food, instead, they make their own food using special process called
photosynthesis. That's very cool. That's really, really
great. I like this analogy. It's really great because
it's for a fifth grader. Now we could do the same thing. I can say. Imagine, I am this
case grad student. Let's see what's
going to happen now. Because now instead of fifth grader now I'm
a graduate student. Let's see how it will explain. Okay, there we go. So you will expect that the explanation is going
to be a little bit more complex because we are a grad student or we
asked her liberty to act, or in this case, to imagine
that we are a grad student, certainly as a graduate student, let's dive into more
detailed explanation of photosynthesis. Photosynthesis is a vital
process that occurs in plants, algae, some bacteria. It is the primary way in which these organisms convert
light energy from the sun into chemical energy
in the form of organic molecules we see
in the previous prompt, we did not even talk about organic molecules
because molecules, It's an advanced topic. A kid, a fifth grader wouldn't probably know
what a molecule is. So now we're going to
dip down a specific path because we ask it to
play a different role. So there we go. Now I
can even go further. This is just fun. Just playing here. Instead of I am,
I'm going to say, imagine I am a genius. Imagine I am Einstein. Imagine I'm Einstein. Can you explain to me
what photosynthesis is? Let's see what's
going to happen. There we go. So it went to a genius level because
Einstein was a genius. Certainly photosynthesis is
remarkable process problem. And then photosynthesis takes place in a specialized
organelles. Organelles. So we're going really deep
into the world of botany, botanic, I think it's botany,
botany called chloroplasts. Very, very deep, okay, primarily found in
cells of plants leaves. Within the chloroplasts,
there are pigments such as chlorophyll that absorb
light energy from the sun. So now we're explaining
to we using, so now we've changed roles. So say you imagine I
am Einstein switch IGBT knows who Einstein was. Very smart person. So instead of explaining it
as a fifth grader or even as a grad student who
went to step up to X1 because Einstein
want to say, what a smart. So it assumed that Einstein had a good grasp, of
course, if science. So it went ahead and went
a little bit deeper in the explaining what
photosynthesis is. Pretty cool. We're actually in learning
really good stuff. I actually remember learning this stuff when I
was going to school. Alright, very good.
End there you have it. Understanding, role-play. It's vital to prompting
or to creating, or in this case, to
prompt engineering. Because it allows you to tap into the very core of how
tried laboratory works. Because now you're
giving tragic beauty, a role to play and see
what it comes up with. You can use this in
many different cases, and you will see the
results are incredible. Again, you can use the
previous frameworks to refine, find a conduit, to have the conversation
contexts and so forth. But it is just amazing. It's one of those frameworks
that I use all the time. And if you know how to
use this very simple, if can refine,
continue refining, and finding other angles, you will see that
you are unstoppable and you will get really good
results with tractability. So this is part of engineering, part of breaking things
apart and finding frameworks that we can use to get the
results that we want. Okay, Thank you so much and
I'll see you next video.
15. Lesson 14 Feedback Loop: Next, we're going to talk
about feedback loop framework. So what this means
essentially is if we have a prompt and then
we type the prompt, hit Enter, we're going to have an output from that prompt. So the output of our first
prompt is going to be the input for our second prompt, creating this feedback loop. Let me show you real quick. Imagine that we have a question
or a prompt like this. I'm going to ask her to
be T to tell us a story, should say, tell me, but okay, tragic, pretty smart enough
to know that we made a mistake and it fills
in the blanks for us. It's telling me a story
because that's what I, that's exactly what I asked. Once upon a time
in a small village nestled the edge
of a lush forest, there lived curious
girl named Maya, my head it insatiable
appetite for adventure and heart
full of wonder. So now what do we can
do is we understand, of course it's about Maya
and we can ask a question, a follow-up question for
say, a feedback loop. Now what we can have
this multi-term conversation as they call it, how many sisters had Maya? How many sister Maya has
something like this. I'm sorry, but I
don't have access to personal financial planning
vehicles unless it was being shared.
Okay. That's fine. They just tells us it's tragic, which doesn't have the context of the information
that we asked. We can say, for instance, that means the output
of our first prompt was not a correct input
for our second brand, in this case, for
our feedback loop. So it's okay, well
we can do now we can say something like this. What kingdom was Maya? From? There we go. And now it's telling us the Maya civilization was not associated with
specific kingdom, but rather refers to a missile. Mesoamerican civilization
that existed in the region that
encompasses present day. Now, the idea here is that what happened is that
we still have that problem because charity beauty
is assuming Maya as the Mayan civilization
in that are Maya here. And also just noticed that I
made a mistake on my prompt. Let's go back to this
prompt here, right? See if we get the same issue. How many days or how
many sisters Maya have? We still have the
same thing here. Now, this is a good
thing because it tells us that its context, context is very important, of course, with juice IGBT, and especially when we talk about feedback loop framework. So in this case here,
what do we can ask? We need only to be
able to ask things that are related to
this story, right? There is telling
me a story that we asked earlier and
tried to produce, spit out this very nice story. So again, goes back
to understanding that context is everything. Because if you ask tragedy something
contextually speaking, it will look at what
you've tapped, typed, or the story, or whatever
it is that it will spit out earlier and
we'll base off of that. So in this case, That's why
we have in this problem. That's why I tell
you, but it's not really get into context of what we're asking
because in this case, our feedback loop is not
going to be completed. I'm going to be able to occur or happen
because the context. So let's find something else. Let's go back to our story. Okay, so it talks about
the Guardian tree. So we can ask
something like this. Who was the garden? The Guardian. Who was
the guardian tree? And how old was he or she? Alright, let's see. Okay, there we go. Now, in the context of the
story previous fair, The Guardian tree is
a fictional character that represents a wise, ancient being
inhabiting the forest. The Guardian tree possesses
magical qualities and holds knowledge
of the forest and its creatures. There we go. So we took, of course,
tried to be too, went ahead and understood
that we asking that the contexts in
this case has to be the story that it wrote for
us because we can ask it to. And then we, now, we have now able to complete or rather to have this
feedback loop, right? Because we asked about the Guardian tree some
deeper information. So we got the, in this case, the garden tree is
an output from our, from our story, which came
from our first prompt. And the garden tree
as the output now is an input on our second prompt
here doesn't make sense. So this is what we
call feedback loop. So we can do this with anything that you
asked her beauty. But remember, as we saw
here, context is everything. So try to be these real good
at finding the context. But if it cannot infer
the output as you saw from the resource or in this
case from the response. It will just not know what to say because it doesn't
have that information. So feedback loop, think
of it as output from a, has to be the input for B. Output from the first
response has to be the input for the
second question, or in this case, second prompt. Alright, great, Thank you
and I'll see you next.
16. Lesson 15 Emotion Driven: Alright, so we're making really
good progress here and I hope you're enjoying
this lessons. And what are we going to
do next is we're going to talk about the emotion
driven framework. As the name implies. We are going to pack
emotion into a prompt. That way we can get a little
bit more out of IGBT. The idea is that we're
going to be crafting prompts as you can see, as you will see in
a little bit here, we're going to craft
prompts that evoke or inquire about specific
emotional responses. Here, here's an example. Igbt. Can you create a
heartwarming story about a dog who helps a young boy
regain his self-confidence. Now, look at this. It says heartwarming story. Write, it evokes a sense of, it evokes emotions
about a dog who helps young boy regain
his self confidence. And so tragic, but you will
have to keep that in mind. If I may say that
this story has to be heartwarming and emotion
of heartwarming. Lets go ahead and get
her to take a look. There we go Once upon a
time, writing this story. So it's finished
writing the story. And let's see, once upon a time, a small town nestled
with shimmering lake. There lived a young
boy named Max. Max was a kind-hearted child, but he had lost his
self-confidence after difficult
experience at school, feeling alone and discouraged. He spent most of his days
secluded in his room. Okay. So of course the story goes on. And as you know, this kind of stories, they have to end with a teaching and moral
of the story per se. Okay, we're good. And of course at the end,
Mark Maxwell have confidence. There we go. So this story is heart-warming as you
see if you read more because the idea is that
Max was a wonderful kid, but then something happened
to Max, made him secluded. I didn't have to read
the whole story to see that that's how it will go, where Max for something's
going to happen to him. Again, we'll make him feel that he can be
confident again. Okay, so that is
heart-warming, right? Because if you read the story, it makes you feel, Oh,
so that's the idea. And it's all about
direction again, as we talk about crafting
the best prompts possible, engineering the best problem, the best prompt, the
best prompts possible, is that we're crafting something that will always give us
what we're looking for. And that is very important
because it's all about the language, right? If you ask the right questions, you get the right
answers quicker per se. Now, you use this, you can say heartwarming or sad, or lively or whatever, whatever adjectives that will
evokes a sense of emotion. You can use those when you craft your prompt and you will
see amazing results. Okay, so what I
need you to do now is practice this as always, that should go
without me saying, go ahead and practice this. And remember, I'm
using a very trivial, in a way examples, but this can be used
in any situation. It doesn't matter if
you're writing a story, if you're running a blog, if you're writing something, you can use all these
frameworks together to really crafted the best
of the best prompts. Alright, go ahead and practice
and I'll see you next.
17. Lesson 16 Hypothesis Testing: In this lesson, we're
going to talk about hypothesis testing framework. Now this is actually one of my favorites because
what it does is we're going to
structure our prompt. So that will give
it an hypothesis. And then we're going
to let tragedy beauty because she understands
more than we can possibly understand why
electric GBT to explore and to confirm or deny that
hypothesis that we gave to it. Here's an example. Given the, given the hypothesis that regular physical exercise
improves mental health, can you provide
arguments that support or contradict this?
This is real good. Now we're saying, so
given the hypothesis, we're pretending
that we don't know if this is true or false. So we are giving an hypothesis that exercise
improves mental health. We ask him to GBT to give us
an argument in this case to support or contradict
this hypothesis. Let's go and see. Alright, so it's writing now
supporting arguments, release of endorphins,
stress reduction, increased brain function,
social interaction. And we have contradicting arguments here,
individual variations, underlying conditions,
motivation and compliance and other
interventions. So there we go. So we've used this hypothesis
testing framework, as you see here. Of course, we can use
other frameworks we've learned to even dig deeper with this hypothesis testing
framework three Tesla now. So I hope you're seeing
the connectivity of all of this engineering of work that we're
doing of crafting the best optimal
prompts for tragedy
18. Lesson 17 Comparative: So next we're going to talk
about comparative framework. So what are we doing here is we're letting charge of beauty. We're giving it a
prompt or something. And we're going to let,
try to beauty to use its own power to compare or contrast also those two
things or something. Okay, so here's an example I'm
going to show you real quick. So can you compare and contrast classical music and rock music
in terms of their history, musical structure,
and cultural impact. You can see we are comparing what classical music
and rock music. But we corner even further
by saying in terms of y, in terms of their history, musical structure,
and cultural impact. Alright, so let's
see what China, but he has to say, there we go. So it went ahead
and put together a list for each of the
structure that we added. We want to compare those
two in terms of history, musical structure
and cultural impact. So it divided
everything for history. It's classical music is originating in the
Western tradition and spans broad period of the medieval era to
the present day. Talks about Mozart, Beethoven,
Bach, and Szarkowski, alright, and rock music
and talks about all of these artists that
started, well. Pretty much brought
this to prominence, rock music and prominence
in the '60s and '70s. And because we asked
her to be due to also look in terms of
the musical structure. Classical music is
characterized by its complex composition
and formal structures. Okay, So not as
symphony concertos and foods are few gears. And rock music and cultural
impact and all that. And of course at the end, we have that beautiful summary that always comes with
tragedy butene. Now, one thing to keep in
mind here is that when you construct your prompts, is that we could have said
Clinton compare and contrast classical music and rock music. We're going to stop there. But as you should know by now, that is a little
bit more generic. We want to focus narrow things down so we can get the
best arbitrage of butane. Like this is part of
constructing an engineering. Your best prompts. So we said, well, in what turns, in terms
of their history, musical structure,
and cultural impact, There's an airplane going above my house now, I apologize. Alright, so it's important to always think of narrowing
down because it is about narrowing and down where that we can get what
we are really seeking, looking for in terms of
results from each activity. So always keep that in mind. Alright, great. I'll see you next.
19. Lesson 18 Assumptive Framework: Okay, so we're making
really good progress here. I hope you're enjoying
this lesson's this course. And if so, please
don't forget to leave a review that will
really make me happy. So next up we're
going to talk about assumptive framework. What this means is that we're
going to craft a prompt. They tend to be prompt
with some assumptions. Now, we don't judge these assumptions
being true or false. Now we're just going to
give some assumptions. Then we're going to
let check GBT to use those assumptions
and build upon that. Here's an example, assuming we have established
a colony on Mars. Oh, that'd be nice. How would daily life on Mars be
different from life on Earth? That's a great assumption. So what he's saying
here, he says, assuming there's one
assumption that we live in a colony on Mars with established
ourselves on Mars. Please try to predict how would daily life on Mars be
different from life on earth? So we'll give it an
assumption and we ask what we want
from cyclobutane. Alright, let's see. Okay, there we go. So it's now done. And we have something
here, okay? Gravity and physical effects. So it broke down into a list and the bullet points
of to present all of the, some of these ways where life on Earth and
Mars may differ. So first of all, gravity
and physical effects. It's talks about
reduced gravity. Reduced gravity on Mars. Adaptation challenges,
atmospheric, atmospheric conditions
being different, environmental
factors, and so on. As you can see, the
assumptive framework is really easy to use and really gives tragic beauty and more a bigger playground
to play with, to really get the information
that we're looking for. And of course, you
can always go in and refine, keep refining. That should be the thing
you always think about. You can always refine
your prompts until you get to where you want to be. This is the assumptive
framework and the idea is that you give some assumptions
to try to put to you. And you ask a question based
on that assumption and then check liberty will build off
of that and go from there. Okay, I'll see you next.
20. Lesson 19 Perspective Switching: We're going to talk about perspective
switching framework. Now this is another one of my favorite because whenever you have some sort of perspective
or some sort of an angle, those are elements for prompting or creating or
crafting in this case. And one of the best
prompts that we will ever do the
engineering of it. So they did rule is very simple, is that we are asked to IGBT to give us a different
perspective right there, hence the name
perspective switching. So we're really asking Has
your beauty to give us a different perspective on
whatever we're trying to ask. Here's a good example. Explain the concept of blockchain technology as you would to a computer scientist. And then as you would
to a 10-year-old. Now you can see when
you look at this, this prompt requests the AI
to explain this same concept, which in this case is
computer science or rather a blockchain technology to two perspectives, right? So the first part of the
prompt is asking to explain this concept of blockchain
to a computer scientist. And the second
part is to explain the same concept
to a 10-year-old. Let's go ahead and take a look. We have the explanation
to a computer scientist. And of course it's gonna be a little bit technical,
decentralization, cryptography, consensus
mechanism, imitability, smart contracts and so forth. And then do a 10-year-old, of course it goes
head uses a lot of more analogies to understand. Honestly speaking, I always
like the 10-year-old, right? Because it's just it's it's a day to day language
and it's always nice, of course there's part, there's place for both. But whenever you
want to understand something first I go
for a 10-year-old. Alright, there we have it. So using perspective,
switching from work, as you see here,
it's a very powerful because now you have
this comparison. If you want, for instance, you are teaching a class, so you want to explain
something to your grandma. You can always use this
framework for white. So use perspective of a ten year old versus the
perspective of a 45-year old. Scientists and
non-scientists, a biologist, a computer scientist, or
a physicist and so forth. So it's really fine actually
you can actually IGBT to explain certain diseases
as a Dr. in contracts, as a biologist or as a PA physician,
physician assistants. And so many things, right? Go ahead and play around with
this concept and remember to always go back to the previous frameworks
I've shown you here. And you can match, right? Get parts of this framework and the other one
and put it together. One thing to keep in mind as well is that
you don't have to add all of these
different frameworks in one single prompt, right? It's sometimes
virtually impossible. The idea is that
whenever you want to prompt champ GBT
something, first of all, the first most
important thing is to remember that you have to give very clear
specific direction. That is number one. Otherwise we just
get, as you saw, a very generic response. And from there you
start going down the list of the frameworks we've used in many,
many other frameworks. But the idea is that you
always refining your all's constructing your always
engineering these prompts. Point where you can get the V prompt that will get you
the results that we want. And always keep that in mind. It's a refinement process. You're constantly refining
different contexts, adding different perspective
switching or roles play, role-plays, whatever
it is that you need to get exactly
what you want. Okay, so what I want you to do is to create at
least two prompts. You, you can choose whichever
topic you wanted to target. And then once you have
those two prompts, try to use this perspective switching framework and
see how that would work. Share that with us in the
comments and let me know. Okay. Thank you. And then
we'll see you next time.
21. Final Thoughts: We went through a lot of
different frameworks. We can use it to craft and to engineer our
pumps. Which activity? So the idea is to use
all that we've learned to refine your
tragic tip prompts, to engineer, to craft
the best tragedy. But he promised you can
possibly do if you master these prompts or whether if
you master these frameworks, you will see that the
results you get which IGBT or we'll keep going better. Now, the thing is, all
of these take practice, so don't watch this
lesson just once. Just keep watching
these lessons. And most importantly, keep
practicing with intention. And you will see the difference in the results we're getting, which had to be t.
That's the whole idea. To supercharge your prompts. You have to learn about
prompt engineering, which is exactly what I
showed you in this course. So thank you so
much for your time. If you like these lessons, if you like these videos, if you'd like these lectures, don't forget to leave a comment. Don't forget to review this
course and let me know. What do you think
of this course? It would really mean a
lot to me if you do that. So, thank you so much. And happy prompting or rather
happy prompt engineering. Alright, I'll see you next time.