System Prompt
A system prompt is a special set of instructions provided to an AI model before the user's message that defines the model's behavior, personality, constraints, and response format for the entire conversation. System prompts are typically hidden from the end user and act as persistent guidelines that shape every subsequent response.
Example
A system prompt for a code assistant: "You are a helpful coding assistant. Always provide code examples in Python. Include brief explanations. If the user's code has bugs, identify them before providing the fix. Never execute code that could be harmful."
Frequently asked questions
What is System Prompt?
- A system prompt is a special set of instructions provided to an AI model before the user's message that defines the model's behavior, personality, constraints, and response format for the entire conversation.
Can you give an example of System Prompt?
- A system prompt for a code assistant: "You are a helpful coding assistant. Always provide code examples in Python. Include brief explanations. If the user's code has bugs, identify them before providing the fix. Never execute code that could be harmful."