Find a course

Module 1: How AI Models Read Your PromptsLesson 1 of 1211 min

What a Prompt Really Is

Learn what a large language model does with your prompt, why it predicts text instead of looking things up, and what that means for how you ask.

Step 1 of 13Learn

Same model, two very different answers

Lena and Marcus both need a short announcement about a new office parking policy. They use the same AI assistant on the same afternoon.

Lena types: "Write an announcement about parking." She gets four cheerful paragraphs about "exciting changes," with no dates, no rules and a closing line about "building a better tomorrow together." She deletes most of it.

Marcus types: "Write a 120-word email to all 80 staff announcing that from March 3, the north lot is reserved for visitors and staff should use the garage on Elm Street. Tone: friendly and direct. Include one line on why (visitor complaints) and who to contact (facilities, ext. 214). No exclamation marks." He sends the result after changing two words.

Marcus isn't a better writer, and he didn't use a secret phrase. He simply gave the model the information it could not possibly guess: the facts, the audience, the length, the tone and the purpose.

That's what this course is about. A prompt is everything you give the model to work with. Prompt engineering is the habit of writing prompts that leave as little as possible to guesswork, then testing and refining them until the output is reliably good.

Step 2 of 13Learn

A prediction machine, not a search engine

A large language model (LLM) is trained on an enormous amount of text. During training it plays one game billions of times: given some text, predict the next small chunk of text. Over time it gets very good at this, and along the way it absorbs grammar, facts, writing styles, code patterns and a rough model of how ideas connect.

When you send a prompt, the model doesn't look your question up in a database. It reads your text and then generates a response one chunk at a time, each time choosing a likely next chunk given everything before it, including the chunks it just wrote.

This explains several things you'll notice:

  • Wording matters. Your prompt is the starting text the model continues from. A vague start leads to a generic continuation.
  • The model fills gaps with the most typical answer. If you don't say who the audience is, you get writing aimed at an average reader.
  • Fluent isn't the same as true. The model produces text that sounds right. Usually that's also correct, but not always.
  • It knows nothing about you unless you tell it: not your company, your style guide or what you tried yesterday.

Some chat tools add web search, file reading or memory on top of the model. Those features feed extra text into the prompt; the core still works by prediction.

Step 3 of 13Practice · Diagram

How a model writes its reply

The model never plans the whole answer at once. It repeats one small move until the reply is done.

Which step is where missing facts get filled with a plausible guess?

Tap the shape that answers the question, then press Check.

How a model writes its replyCycle diagram: Read all the text so far → Score every possible next token → Pick one token → Add it to the reply.One token at atimeRead all thetext so farScore everypossible nexttokenPick one tokenAdd it to thereply
Read all the text so far

Your prompt plus everything already written in the reply.

Score every possible next token

Each candidate chunk of text gets a probability.

Pick one token

Usually a likely one; how adventurous the pick is depends on settings such as temperature.

Add it to the reply

The new token becomes part of the text the model reads on the next round.

Step 4 of 13Practice · Choose one

Why did Lena get a generic announcement?

Step 5 of 13Learn

What goes into the prompt

In a chat app it looks like you're typing a single message. Behind the scenes, the model usually receives much more:

  1. A system prompt written by the app's developer, which sets general behavior ("You are a helpful assistant. Be concise.").
  2. The conversation so far: every earlier message from you and every earlier reply.
  3. Any attached material: uploaded files, pasted text, search results or retrieved documents.
  4. Your newest message.

All of this is combined into one long piece of text, and the model generates its reply from it. This has practical consequences. If an earlier message in the chat set a formal tone, later answers may stay formal even if you don't repeat it. If you pasted the wrong version of a document ten messages ago, it may still be influencing answers. And if a conversation wanders across several unrelated tasks, the model can mix them up.

A good habit: start a fresh chat for a new task, and when results start drifting in a long conversation, summarize what matters and begin again. Think of each conversation as a briefing document you're building together; clutter in the briefing becomes clutter in the answers.

Step 6 of 13Practice · Diagram

What the model actually receives

Your message is only one layer of the text the model reads before it answers.

Which layer did you not write and usually cannot see?

Tap the shape that answers the question, then press Check.

What the model actually receivesLayer diagram: System prompt, Earlier messages, Pasted or uploaded material, Your latest message, The reply being written.System promptEarlier messagesPasted or uploaded materialYour latest messageThe reply being written
System prompt

Written by the app developer: general behavior and rules.

Earlier messages

The conversation so far, as long as it fits in the context window.

Pasted or uploaded material

Documents, emails or data you add.

Your latest message

The part you actually type now.

The reply being written

It shares the same token budget as everything above.

Step 7 of 13Practice · Sort into groups

Sort each statement about language models.

Tap an item, then tap its group (or drag it there).

Step 8 of 13Note

Step 9 of 13Learn

Where models are strong, and where they slip

Knowing the typical strengths and weaknesses helps you decide what to ask for and what to check.

Usually strong: rewriting and editing text, changing tone or reading level, summarizing material you provide, brainstorming lots of options, explaining common concepts, drafting emails and outlines, translating between common languages, writing and explaining routine code, and turning messy notes into structured formats.

Often weak or risky: precise facts about niche topics, recent events after the model's training cutoff, exact quotes and citations, long arithmetic without a calculator tool, counting characters or words exactly, and anything that requires knowing your private situation. Models also tend toward sycophancy, agreeing with you when you sound confident, even when you're wrong.

The pattern is simple. Models excel at transforming and generating language, and they are least reliable at recalling exact facts without a source. So a prompt that says "Here is our policy document; summarize the refund rules for customers" plays to their strengths. A prompt that says "What is the refund policy of a small company I won't name?" invites guessing.

Good prompts often move a task from the risky column to the strong column by supplying the facts and asking the model to do the language work.

Step 10 of 13Compare

Play to strengths, check the weak spots

AspectUsually strongOften weak or risky
Working with textRewriting, summarizing material you supply, changing toneExact quotes and citations it has to recall
FactsCommon, well-documented conceptsNiche details and events after the training cutoff
NumbersExplaining a methodLong arithmetic, exact word or letter counts
Your situationAnything you describe in the promptAnything you leave out, which it will guess

Step 11 of 13Practice · Select all that apply

Which tasks play to a language model's strengths? Select all that apply.

Select all that apply.

Step 12 of 13Practice · True or false

If an AI chatbot states a fact confidently and in great detail, it is very likely to be correct.

Step 13 of 13Practice · Choose one

You need a summary of your company's new travel policy for employees. Which prompt is most likely to give an accurate result?