VisualAI
Chapter 8 · Using AI Well

The Art of the Prompt

Same model, same question — wildly different answers depending on how you ask. The prompt is the steering wheel.

7 minLesson 23 of 23

Same model, same question — and yet wildly different answers, depending entirely on how you ask. The prompt isn't small talk before the real work. It is the work. It's the steering wheel.

By now you know what's happening inside: the model reads your words as tokens and predicts what should come next. So everything you put in front of it — who it should be, who it's talking to, how long to be, what shape the answer should take — bends that prediction. Change the words, and you change the path the model takes through its space of likely continuations.

Prompt Lab

Flip the dials · or grab a recipe

Quick recipes:

Audience

Format

The prompt you built

Explain what a black hole is to a curious adult, in a short paragraph.

The model's answer

A black hole is a region of space where gravity pulls so hard that not even light can escape. They form when a massive star runs out of fuel and its core collapses in on itself. The point of no return is called the event horizon — cross it and you can't come back. They aren't cosmic vacuum cleaners; from a safe distance they tug on things like any heavy object.

Nothing about the model changed — not one weight. Only the instructions did, and the answer reshaped itself completely. That's why the prompt is the single most leveraged thing you control.

One fixed question about black holes. Change the audience, format, persona, and length — and watch the same model rewrite its answer from a toddler's one-liner to a physicist's brief.
Try this

Set audience to Child, then Expert — same model, totally different vocabulary. Now keep the audience fixed and flip format between paragraph, bullets, and one line. Finally hit Explain like I'm 5 and watch every dial snap at once. Notice the model never changed — only your instructions did.

A few levers that reliably work

Prompting can feel like superstition, but a handful of techniques are dependable. Give it a role (“you are a patient teacher”) to set tone and depth. Name your audience and the format you want, so it doesn't guess. Show an example or two of the output you're after — models are superb imitators. And for anything that needs reasoning, ask it to work through it step by step — the same trick the agent loop used, just inside a single answer.

Key idea

The model has no idea what you actually want unless you tell it. It will happily fill any gap you leave with the most likely guess, which is rarely the best one. Good prompting is mostly just removing ambiguity: say the role, the audience, the format, and the constraints out loud.

That's the whole craft: not magic words, but clear specification. The prompt is the one part of the entire system you fully control — you can't retrain the weights or rewrite the architecture, but you can always change what you ask and how. Spend your effort there, and an off-the-shelf model becomes a far better tool.

The payoff

And that closes the loop on the whole journey. You started with a machine that learns rules from examples instead of being programmed. You watched numbers become neurons, neurons become networks, and words become geometry that attention reasons over. You saw how scale, fine-tuning, and human feedback raised that into ChatGPT — and where it goes wrong: overfitting, bias, and confident fiction. You met its other senses and its other ways to learn. And now you know how to wield it: mind the context window, give it a library, let it act in a loop, and steer it with a clear prompt. AI was never magic. It was always just math you can now see.

Feel like you get it?