Skip to content
Preptima
mediumConceptDesignMidSeniorStaff

What belongs in the system prompt, and what belongs in the user turn?

4 min readUpdated 2026-08-15

Answer

Short answer

The system prompt holds what is identical on every request - role, policy, output contract, tool schemas, examples. Anything varying by user or request, retrieved documents included, belongs in the turns below, to keep the cached prefix stable and untrusted text away from system authority.

Was this answer helpful?

Likely follow-ups

  • Your tenant-specific policy differs per customer. Where does it go, and what does that cost you?
  • How do you version a system prompt so a rollback is possible mid-incident?
  • A retrieved document contains the sentence "ignore your previous instructions". What in your design stops that from working?
  • Two features share most of a system prompt. Do you factor out the common part, and what breaks if you do?

Related questions

Masterclass guide