Search the courses, subjects, tracks, games and features, or jump straight to a page.
Learn it your way
A short class with Sarah and her students. The other ways are under More.
Sign up free to listen. Transcripts are free to read.
Today, we’ll explore the concept of a 'prompt.' A prompt is simply what you give to a language model to get a response. Can anyone give me a simple example of a prompt?
Like asking, 'What’s the weather today?'
Exactly! That’s a great example of a prompt. It directs the model to provide a specific answer. So, what three main components can we think about when creating a prompt?
Instructions, context, and the goal?
Yes! Remember, prompts consist of instructions—what you want the model to do, context, which provides background, and a clear goal for the response.
Is there a way to remember those components?
Good question! You can use the acronym 'ICG' to remember Instructions, Context, and Goal.
To recap: A prompt is your communication with a model, and breaking it down into these three components will help you craft better prompts.
Let’s discuss the core components of a prompt more thoroughly. Who can tell me what the instruction component does?
It tells the model what to do!
Very good! Now, what about context? Why is that important?
Context helps the model understand the background of the request.
Exactly, context provides necessary information. Can someone explain input data?
That's the actual text or question we want the model to process.
Correct! And what role does output format play?
It specifies how we want the response to look, like in bullet points.
Well done! Remember, if you clearly define all components, you'll create effective prompts much easier.
Now let's talk about how small changes in our prompts can affect the model’s behavior. Can anyone think of an example?
If I say, 'Summarize the article briefly' versus 'Summarize in one line,' that would change how detailed the summary is.
Exactly! Precision in instructions can lead to vastly different outcomes. What else do you think might affect the AI’s response?
The tone we set can change how formal or casual the answer is.
Yes! Setting the tone is another critical aspect. Remember, clarity leads to better results. Let's summarize today’s key points.
Remember: a well-crafted prompt begins with clarity in your instructions, context to guide behavior, and a clear goal to achieve.
To make a prompt that's right and tight, give instructions, context — then you will delight!
Imagine you're a chef. You have a recipe (the prompt) that includes the instructions (how to cook), context (what ingredients to use), and desired dish (goal) to make a delicious meal.
I.C.G = Instructions, Context, Goal to remember the key elements of a prompt.
Use 'P.I.C.T.' to remember Prompt = Instruction + Context + Target
Term
What is a prompt?
Click to flip
Term
What are the three main components of a prompt?
Click to flip
Term
What does context provide?
Click to flip
Term
What is an instruction?
Click to flip
Term
What is output format?
Click to flip
The input given to a language model to generate a response.
A directive on what the model should do.
Background information that helps inform the response.
The specific content, question, or details to be processed by the model.
The required structure or format in which the response should be produced.
The desired quality of the response, e.g. casual, formal, persuasive.
A prompt is the input given to a language model to generate specific responses.
In essence, a prompt serves as a set of instructions paired with context and a goal to interact efficiently with a language model, guiding it in tasks such as answering questions or summarizing information.
A prompt is essentially the input that we provide to a language model to elicit a response. It defines how users communicate with the model, whether it’s by posing a question, requesting a task, or simulating a scenario. A well-crafted prompt consists of three major components: instructions, the context needed for clarity, and the goal the user intends to achieve.
Prompts break down into core elements, which include:
Understanding the anatomy of a prompt is crucial since even slight modifications can significantly affect AI behavior and response quality.