Loading slide

Prompts as Programs

  1. 01Prompts as Programs
  2. 02Not a search box
  3. 03Memory card
  4. 04Show, don't just tell
  5. 05See it happen
  6. 06Learning without changing
  7. 07Reinforce your understanding
  8. 08Question: How framing shapes output
  9. 09Question: In-context learning
  10. 10Quiz: answer
  11. 11The prompt shapes the possible
  12. 12Want to go deeper?
1 / 11
BackNext

Module IX

Talking to the Model

Chapter II

Prompts as Programs

In this chapter

  • Not a search boxwhy a prompt is text to continue, not keywords to look up
  • Show, don't tellhow a few examples reshape what comes out
  • Learning without changinghow the model adapts to your prompt with its weights frozen
  • How framing shapes outputstructure, order, and what you leave out

We have the board. Now: the most direct way you write on it, the prompt, the words you actually type.

Here is the shift that makes prompting click. The words you give a model are not a request. They are an input. A request goes to a listener who works out what you meant and fills in the gaps. An input goes into a machine that continues it. And we know exactly what machine: the next-token predictor from the last module, the thing that reads what is in front of it and writes the most plausible next piece, over and over.

So your prompt is not a question handed to a clerk. It is the opening stretch of text that the model continues. Change the opening and you change what plausibly comes next. That is the whole reason phrasing matters. Not because certain words are magic spells, but because different words are genuinely different inputs, and different inputs run forward into different outputs.

This is why prompting is a real skill, and not a bag of tricks. It is just understanding how the run-up shapes the run.

Citations