

By the end of this lesson, you will be able to:
Prompting is not just typing questions — it’s instructing an AI model through structured language.
Think of it as teaching a new intern: the clearer your examples, the faster they learn your expectations.
In natural language processing (NLP), the word “shot” refers to how many examples are provided before the model performs a task.
The more “shots,” the more context ChatGPT receives to infer patterns, styles, and logic.
Let’s break it down:

When you provide examples, you’re giving the model contextual boundaries.
Think of it like giving an artist instructions:

💬 Insight:
GPT-5’s advanced “context window” allows it to process much longer and more complex prompt examples, meaning it can simulate learning behavior far beyond 3.5 or 4.
a. Zero-Shot Prompting — “The Fast Command”
Used when you trust ChatGPT’s general knowledge.
Example:
“Explain the benefits of renewable energy in under 100 words.”
✅ Best for:
⚠️ Limitations:
b. One-Shot Prompting — “The Guided Example”
Used to teach ChatGPT how you want it to respond by showing one model example.
Example:
“Explain AI in one short sentence: ‘AI helps computers learn from data.’ Now: Explain blockchain in one short sentence.”
✅ Best for:
⚠️ Tip:
c. Few-Shot Prompting — “The Training Pattern”
Used when you want to train ChatGPT to follow a very specific style, tone, or logical pattern.
Example:
Now: “Define Deep Learning.”
✅ Best for:
⚠️ Pro Tip:
To create effective few-shot prompts, follow these key principles:
Use 3–5 Clear Examples:
Separate Each Example Clearly:
Use markers like ### or line breaks between examples. This helps the model distinguish each case.
Example:
Question: What is AI?
Answer: AI is the science of creating intelligent machines.
Question: What is ML?
Answer: ML is a subset of AI that learns from data.
End with a Clear Instruction:
After your examples, give a direct cue such as:
“Follow the same pattern and answer the next question.”
Test and Refine:
Try different combinations and compare results between ChatGPT-3.5, 4, and 5. Adjust examples until the model consistently produces the tone and structure you want.
Let’s test how results differ across prompt types.
Task: Explain “Quantum Computing” to a 10-year-old.
🟦 Zero-Shot Result (GPT-3.5):
“Quantum computing uses tiny particles to process information faster.”
🟩 One-Shot Result (GPT-4):
Example: “AI is like a brain for computers.”
Output: “Quantum computing is like magic math that helps computers think faster.”
🟨 Few-Shot Result (GPT-5):
Example 1: “Electricity powers our gadgets.”
Example 2: “AI helps computers think.”
Output: “Quantum computing helps computers solve puzzles too hard for normal ones.”
🧠 Analysis: The few-shot version captures the style and tone you intended (child-friendly and explanatory), proving the power of example-driven prompts.
They can learn additional concepts with the videos below:
Lesson Quiz 3.1
Please complete this quiz to check your understanding of the lesson. You must score at least 70% to pass this lesson quiz. This quiz counts toward your final certification progress.
Answer the quiz using the Google Form below.
Mastering zero-shot, one-shot, and few-shot prompting gives you complete control over how ChatGPT thinks, speaks, and reasons.
It’s the difference between asking for an answer and teaching the model how to answer like you would.
As you advance through this module, you’ll learn how to combine these prompting methods with system messages, style tuning, and API workflows to create powerful, customized AI assistants that behave exactly the way you envision.
© 2025 Invastor. All Rights Reserved
User Comments