Skip to content
mentoor

How a chat reaches the model

For both

Roles, system prompts and chat templates turn a conversation into one token stream that a stateless model reads fresh every turn

See where you stand

110 questions across four stages: Understand, Apply, Solve and Judge.

Try 5 questions

Practice items, not counted towards your mastery. No account needed.

Check yourself · 1 of 5

What does a chat template do before the model sees a conversation?

Choose one answer

Check yourself · 2 of 5

Why does a brand new chat not know what you discussed yesterday?

Choose one answer

Check yourself · 3 of 5

Why can the same model act very differently in two apps?

Choose one answer

Check yourself · 4 of 5

What is indirect prompt injection?

Choose one answer

Check yourself · 5 of 5

Which role holds a web search result that the model asked an app to fetch?

Choose one answer

Topics

  1. Roles and chat templates3 min read · System, user, assistant and tool messages are joined with special tokens into one sequence the model reads
  2. Models remember nothing between calls3 min read · Every turn resends the whole history; memory features and projects work by re-inserting saved text
  3. System prompts and instruction priority3 min read · Hidden app system prompts and the instruction hierarchy explain why one model behaves differently in two apps
  4. Pasted text the model may obey3 min read · Web pages, emails and tool results are just more tokens, so instructions hidden in them can be followed

Start here

110 questions · last verified 2026-12