Forward-deployed / Learning zone
LLMsa Generative AI module
Lesson 04

Prompting & in-context learning

TL;DR

A prompt is everything you send the model before it starts predicting: instructions, examples, and the actual request. How you write it changes the quality of what comes back, often dramatically, with no change to the model itself. The reason this works is in-context learning: a model can pick up a new task on the spot, just from seeing it described or demonstrated inside the current prompt, without any retraining. Show it three examples of "messy input, clean output," and it will often produce a clean output for a fourth input it has never seen — a genuinely different kind of learning than the training that shaped the model in the first place. Three habits carry most of the practical benefit: being specific instead of vague, showing examples instead of only describing the task, and asking the model to reason through steps before giving a final answer. None of this changes what the model fundamentally is. It changes what the model does with the one chance it gets on each request.

🎯 For the product leader

Why it matters — Two teams using the identical model can ship features of very different quality, because prompting is a real skill with a real, measurable effect — not a minor detail to leave entirely to whoever writes the first draft.

What it changes in your decisions — You treat prompt design as a product artifact worth testing and iterating on, the same way you'd treat a form's copy or an onboarding flow, instead of a one-time engineering task that's "done" once it compiles.

Ask yourself — "Have we actually tested a more specific version of this prompt against the current one, or are we running with the first draft that seemed to work?"

Risk if ignored — A team ships a mediocre prompt, blames the model for the resulting weak output, and never discovers that a clearer prompt or a couple of good examples would have fixed it for free.

The mental model: instructions to a new, extremely capable temp

Imagine handing a task to a new, extremely capable temporary worker who has never seen your business before and will forget everything the moment the task ends. A vague instruction — "handle this" — gets an inconsistent result. A specific instruction with a couple of worked examples gets a result close to what an experienced employee would produce. The temp isn't getting smarter between these two cases. You are giving them more to work with, inside the one chance they have.

Prompting & in-context learning

Same model, same request budget · what you hand it decides the result

The temp isn't getting smarter between these two prompts — you're giving them more to work with.

A vague prompt
"Summarize this."
↓
Model guesses length, tone, and focus
↓
Inconsistent, sometimes off-target output
A specific prompt with examples
Clear audience, length, tone + 2 worked examples
↓
Model matches the demonstrated pattern
↓
Consistent output, closer to what you want

In-context learning: teaching without training

The model you call today is frozen; nothing you say changes its underlying weights. Yet it can still "learn" a task within a single request, by picking up the pattern from what you show it. This is in-context learning, and it comes in a few common shapes. Zero-shot — you describe the task with no examples, and the model attempts it directly. Few-shot — you show two or three examples of the task done correctly, and the model follows the demonstrated pattern for the new case. Chain-of-thought — you ask the model to work through its reasoning step by step before giving a final answer, which often improves accuracy on tasks that need several logical steps, because it gives the model a chance to build toward the answer instead of guessing it in one leap. None of these retrain anything. They are all ways of using the one request you have more effectively.

Three habits that carry most of the benefit

Why this is a product skill, not just an engineering one

A prompt is closer to a piece of copy than a line of code: its wording, tone, and structure directly shape what a user experiences, and small changes can have an outsized effect. Yet prompts are often written once by whoever built the first version of a feature and never revisited, the way copy for a critical screen would be. Treating prompt quality as an ongoing product concern — tested, versioned, and improved the way you'd improve a landing page — is one of the cheapest, highest-leverage habits a team can adopt, because it costs no new infrastructure and no model change.

Failure modes

Practitioner checklist