Unit 2 ·

Context and examples

Read this first. Every question after it comes from these cards.

Learn · 1/3

Few-shot: show, don't just say

Describing a style is hard. Showing it takes three lines.

Few-shot prompting means giving examples of the output you want.

One to three good examples lock in a style better than a paragraph of description.

Example

10 names for a café. Style like these: 'Monday Morning', 'Quiet Hour', 'Second Round'. Two words, slightly playful.

The whole lesson as text

Cards and key takeaways

Show what you want, don't just say it.

Key takeaways

  • 1–3 good examples beat a paragraph of description.
  • Give the relevant passages, not everything.
  • RAG: search your data first, then let the model answer from it.

Few-shot: show, don't just say

Describing a style is hard. Showing it takes three lines.

Few-shot prompting means giving examples of the output you want.

One to three good examples lock in a style better than a paragraph of description.

Example

10 names for a café. Style like these: 'Monday Morning', 'Quiet Hour', 'Second Round'. Two words, slightly playful.

Remember: 1–3 good examples beat a paragraph of description.

Relevant context, not all context

More context feels safer. Often it makes answers worse.

Relevant context helps, but noise hurts: irrelevant text distracts the model, and the context window is finite.

To answer from your own documents, feed in the relevant passages, not every file.

Remember: Give the relevant passages, not everything.

RAG in one line

How do you make a model answer from your documents?

RAG (Retrieval-Augmented Generation) searches your own data first, then feeds the results to the model.

The model works from your data instead of memory alone.

Remember: RAG: search your data first, then let the model answer from it.

Try it now

Paste this into any AI assistant (ChatGPT, Claude, Gemini, Copilot). Fill in the parts in square brackets.

Here are two product descriptions whose style I like: [paste both]. Write a description for [your product or service] in the same style and length.

What to check in the answer: Did it copy the style, not the facts? Make sure no details from the examples (price, size, names) leaked into the new text.

Want to go deeper?

This unit continues in a full course: AI Basics & Practical Use (ChatGPT, Claude, Gemini). One of its lessons is free to try: “Anatomy of a good prompt”.