Glossary/System Prompt

What is a System Prompt?

A system prompt is the set of instructions a developer prepends to every conversation with a language model to define its role, scope, available tools, and behavioral constraints. It is the operator's primary lever for shaping a deployment without retraining the model: change the system prompt, change what the assistant does.

What goes in a system prompt

A typical production system prompt contains:

For chat models, the system prompt occupies a special "system" role at the start of the conversation. For completion-style models, it's prefixed text. Either way, the model sees it as part of the context and is trained to attend to it more strongly than ordinary user input.

Why system prompts are not security boundaries

Despite being called "system" prompts, they're not enforced by anything stronger than the model's training. Several documented limitations:

Best practices