Skip to content
Notes on AIE007Act 1 — Mental Models

What AI Receives When You Send a Prompt

In reality, the prompt is only the visible "Top Slice" of a much larger input stack (System Prompt + Context).

A Prompt is commonly misunderstood as the sole input to an AI model. In reality, it is only the visible "Top Slice" of a larger input stack, best understood as a Prompt Sandwich.

Full Explanation

A Prompt is commonly misunderstood as the sole input to an AI model. In reality, it is only the visible "Top Slice" of a larger input stack, best understood as a Prompt Sandwich.

  1. Bottom Slice (System Prompt): Hidden, persistent instructions from developers (safety rules like "be polite", "don't be racist", medical disclaimers) that are injected by OpenAI, Google, or other model providers. This foundation is always there, supporting every interaction.
  2. The Filling (Context): The dynamic layer containing everything you talked about before in the chat, information you attached to the conversation (PDFs or other documents), and web search results if the model searched the web. This provides the immediate information the model uses alongside your prompt.
  3. Top Slice (User Prompt): The visible request you type—the only part you see and control.

The model does not process the prompt in isolation; it processes ("eats") the entire sandwich simultaneously. It tastes the bottom slice (safety rules), the filling (your history), adds stored information about you (name, age, preferences), and then generates the answer. If the AI refuses to answer you or answers in a weird tone, remember that it received much more than just your prompt—these partially or completely hidden instructions are shaping the taste of the answer.

---

Resources

No dedicated resources for this episode yet.

Browse the resource library →
Alexey Makarov

Alexey Makarov

AI Enablement Strategist and Educator. Leading the AI Center of Excellence at SEFE. Creator of the Unreasonable AI YouTube channel. Based in Berlin.

About Alexey →