Module 4 · What the model can see

Why there is no boundary between instructions and data

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 8 of 9 in this chapter

This chapter’s goalBudget a context window across system prompt, history, retrieved material and output; predict where in a long prompt information is most likely to be missed; and explain why prompt injection is a structural property of the input format rather than a bug awaiting a patch.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

The structural fact

A system prompt, a user message, a retrieved document and a tool result all arrive as one sequence of integers. The role markers between them are learned conventions, not enforced boundaries. The model has no channel through which it receives instructions and a separate channel through which it receives content to think about.

Compare a database. A parameterised SQL query keeps the query and the data structurally apart, so a value can never become part of the command. That separation is what makes the injection problem solvable there.

No equivalent exists here. The model is a function over one undifferentiated sequence. That is why the analogous attack is not a bug that a patch will fix.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the AI, Actually Explained exam.

Stuck on something?Ask Anjali, your AI tutor

How to cite: Addaly (2026) ‘Why there is no boundary between instructions and data’, in How a Language Model Actually Works. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/how-llms-work/the-system-prompt-is-just-tokens (Accessed: 29 November 2026).