Role Prompting
A technique where the model is instructed to adopt a specific persona, expertise, or perspective in its responses. The assigned role shapes tone, depth, terminology, and reasoning approach.
Why It Matters
Role prompting significantly changes output quality for domain-specific tasks. A model prompted as an expert produces markedly better domain responses.
Example
Prompting: 'You are a senior cybersecurity analyst with 15 years of experience. Analyze this log file for potential security threats.' versus just 'Look at this log file.'
Think of it like...
Like hiring an actor and giving them a character brief — the same person delivers a completely different performance depending on the role they are playing.
Related Terms
Prompt Engineering
The practice of designing and optimizing input prompts to get the best possible output from AI models. It involves crafting instructions, providing examples, and structuring queries to guide the model toward desired responses.
System Prompt
Hidden instructions provided to an LLM that define its behavior, personality, constraints, and capabilities for a conversation. System prompts set the rules of engagement before the user interacts.
Few-Shot Prompting
A prompt engineering technique where a small number of input-output examples are provided before the actual query, demonstrating the desired format and behavior to the model.
Instruction Following
An LLM's ability to accurately understand and execute user instructions, including complex multi-step directives with specific constraints on format, tone, length, and content.