Skip to content
Quantoros

What is a system prompt and how does it influence model behavior?

LLM & AILevel: FoundationCore Techniques

What is a system prompt and how does it influence model behavior?

Hints
  • Identify the stage: pretraining, adaptation, generation or evaluation.
  • Name the inputs, constraints and a case where the approach fails.

Answer

The system prompt is a privileged instruction block that frames the model's behavior for the entire conversation. It sets:

  • Role — "You are a helpful customer support agent for Acme Corp"
  • Rules — "Never discuss competitor products. Always recommend escalation for billing issues"
  • Format — "Always respond in JSON with fields: answer, confidence, sources"
  • Constraints — "Answer only based on the provided context"

System prompts are processed before user messages and carry more weight in the model's instruction-following hierarchy (though they're not technically isolated from injection).

Source and licence: JustInCache & contributors — Awesome AI Interviews · Apache-2.0

Related questions