Back to Glossary
Generative AI / Prompt Engineering

System Prompt

A set of instructions or context provided to a large language model (LLM) at the beginning of a conversation to define its persona, behavior, and operational constraints.

Explanation

A system prompt acts as the foundational layer of a conversation with an AI model. Unlike user prompts, which are specific queries or tasks, the system prompt establishes the rules of engagement. It can specify the AI's tone, its role, and safety boundaries. In many API implementations, such as OpenAI's Chat Completions API, this is passed via the system role. It is crucial for steering the model's output and ensuring consistency across multiple user interactions.

Related Terms