Lattice
Skip to content

System prompt

The instruction block that frames a conversation, separate from the user's messages.

By Entry last reviewedmethod

What it implies

Two things about it are easy to get wrong. It is usually where you put behaviour instructions that belong in a validation function, where they will be followed unreliably. And if it is stable, splitting it out and reusing it verbatim enables prefix caching, which is often the single largest cost win available.

Related terms

Rules of thumb

  • A definition is only useful next to the decision it changes. Read the linked layer to see where this term bites.
  • If a vendor's definition differs from this one, ask what it measures. Marketing definitions rarely name a number.
  • Every optimisation spends latency, memory or quality somewhere. Find out which before you turn it on.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.