System Prompt

Category: Generative AI / LLM

A special instruction provided to a language model that sets its behavior, personality, constraints, and role for an entire conversation.

Full Explanation

A system prompt is a privileged instruction typically provided at the beginning of a conversation that defines how the language model should behave throughout the interaction. It sets the model persona, establishes rules and constraints, specifies the output format, and provides domain context. Unlike user messages, system prompts are designed to be persistent and to take priority in guiding model behavior. System prompts are used in chatbot applications, AI assistants, and API calls to customize model behavior for specific use cases without fine-tuning. Effective system prompts are clear, specific, and include explicit instructions about what the model should and should not do. They are a key component of building reliable LLM applications and are closely related to guardrails and safety mechanisms. Major AI APIs from OpenAI, Anthropic, and Google all support system prompts.

Related Terms

More in Generative AI / LLM

Explore More