THE GENIUS PROJECT
πŸ› οΈ Lesson 4 of 6

Prompt Engineering

πŸ•’ About 30 minutes 🧩 Role Β· Context Β· Task Β· Format Β· Examples πŸŽ›οΈ Live prompt builder

You now know a chatbot is a next-token predictor steered by everything in its context window. That means your prompt IS the steering. Vague words in, vague tokens out. This lesson gives you the five-part framework professionals use, and a live builder where you feel the difference each part makes.

Why prompts change everything

Remember attention: every token in your prompt gets consulted while the model writes every token of its answer. A prompt with a clear role, audience, and format literally reshapes the probabilities of every output token. "Write about photosynthesis" and "You are a CSEC biology tutor; explain photosynthesis to a grade 10 student in 5 bullet points with one Jamaican example" travel through the same network, but they light up very different paths.

🎲 The mechanism: your prompt reloads the dice

From Lesson 1: the model picks each next token by rolling weighted dice, and the weights come from everything already in the context. Your prompt IS that "everything already there", so it re-weights the dice for every single token that follows. Feel it with two tiny prompts. After "My favourite city is", thousands of cities share the probability: Paris, Tokyo, Miami, Kingston, all plausible. But after "I grew up near Half Way Tree, so my favourite city is", the token "Kingston" rockets to near-certain, and every sentence after that will lean Jamaican too. You did not command the model; you shifted the probabilities so hard that the answer you wanted became the most likely one. That is all prompt engineering is: moving probability, on purpose.

🌌
New Word! Probability space

The set of all possible continuations the model is choosing between, each with its own likelihood. A vague prompt leaves this space huge (millions of generic answers are equally likely). Every specific detail you add shrinks it toward the answers you actually want.

The five-part framework

🎭1. Role

Who should the AI be? "You are an experienced CSEC maths tutor" summons different knowledge than "you are a stand-up comedian".

πŸ—ΊοΈ2. Context

What does it need to know? Audience, situation, constraints: "for a 15-year-old in Trinidad preparing for exams in 3 weeks".

🎯3. Task

One clear verb-first instruction: "Create a 7-day revision plan". Not "maybe help with some studying stuff?".

πŸ“‹4. Format

What should the output LOOK like? "A table with columns Day, Topic, Practice", "under 200 words", "JSON".

πŸ§ͺ5. Examples

Show one sample of what good looks like ("few-shot" prompting). The single biggest quality upgrade for tricky tasks.

πŸ”Then: iterate

The first output is a draft. "Make it shorter", "row 3 is wrong, fix it", "more local examples". Treat it as a conversation, not a slot machine.

Watch one prompt level up: bad, good, great

Here is the framework in action on one real task: getting help to prepare a presentation on Jamaican Carnival for your school's Culture Day. Same model, three prompts, three very different outputs.

Notice what each upgrade did. Role changed WHICH knowledge got surfaced. Context and task changed WHAT the answer is about. Format changed the SHAPE. The example changed the STYLE of every line. None of it was magic; all of it was probability-narrowing.

πŸŽ›οΈ The prompt builder

Build a prompt for a real scenario: getting help with a school project. Add parts one at a time and watch the prompt (and its grade) grow. Read the final version out loud; you will hear the difference.

ROLE
CONTEXT
TASK
FORMAT
EXAMPLE
Your prompt will appear here…
0/5 Β· vague
Check your understanding

Two students ask for essay help. A: "help with my essay". B: "You are an English teacher. My essay argues for renewable energy in Barbados, audience is my CSEC examiner, 500 words. Point out my 3 weakest arguments and suggest evidence for each." Why does B get dramatically better output?

It is not length, it is constraint. Every specific detail in B reshapes the probability of every output token toward useful territory. A's vague tokens leave the model guessing what "help" means. (And no, the model has no feelings about politeness, though clear beats rude every time.)
🧠 Misconception check: "there are magic words that trick the AI"

You will see posts claiming secret phrases like "take a deep breath" or "I will tip you $200" unlock hidden power. It is a tempting belief, because it feels like finding a cheat code, and sometimes those phrases do nudge results a little (they resemble contexts in the training data where answers were more careful). But that is the whole trick: they are just more context tokens shifting probabilities, exactly like every other word you type. There is no locked "smart mode" waiting for a password. A prompt with a clear role, real context, and one good example will beat any magic phrase every time, because clear context narrows the probability space far more than a superstition does. Skip the incantations; write the constraints.

When the answer is wrong or generic: the debugging routine

In Week 5 you debugged models by checking the data and the loss. Prompts get debugged the same way: methodically, not by rage-typing "no, do it BETTER". Run these steps in order:

πŸŽ“ The integrity line

Prompting an AI to teach, plan, critique, and quiz you is a superpower. Prompting it to write your SBA so you can paste it in is plagiarism, and examiners (and CXC's AI rules) are increasingly good at catching it. The framework you just learned is for the first kind. Use it to get smarter, not to outsource being you.

πŸ“Œ Lesson recap

1) The prompt is the steering wheel: every token shapes every output token via attention. 2) Build prompts from Role + Context + Task + Format + Examples. 3) Iterate: the first answer is a draft, not a verdict. 4) Use it to learn, not to cheat.

Next: the hard questions. Deepfakes, bias, and power. βš–οΈ