Term
Role Prompting
Role prompting assigns the LLM a concrete role or persona ("you are an experienced tax lawyer …") to steer style, vocabulary and depth of answers.
Role Prompting — explained in more detail
A role instruction at the start of the system or user prompt shifts the model’s response behaviour in a specific direction. Instead of generic answers the model produces text that fits the named profession or personality — terminology, level of detail, tone and implicit assumptions all adapt. The effect is large on style and form, but typically small to nil on raw factual accuracy or reasoning quality. Recent studies (e.g. from PromptHub) show that personas don’t reliably lift solution quality on reasoning tasks — they are a styling tool, not a reasoning booster.
Example / Practical context
“You are an experienced DevOps engineer giving a junior a code review” yields different answers than “you are a friendly tech writer for beginners” — same question, very different output. Useful when audience or abstraction level is clearly defined. Less useful as a way to lift factual accuracy: “you are a Nobel laureate in physics” does not make the model more accurate on physics questions, only more verbose and confident.
Distinction from related concepts
System prompts are the container in which role prompting typically lives — but system prompts can also be pure tool/format instructions with no persona at all. Few-shot prompting steers via examples rather than roles. Meta-prompting has the LLM itself design suitable role or prompt structures.
Entdecke mehr
Effort level and deep thinking: two independent axes for AI tasks
Effort scales breadth, deep thinking scales depth. When each setting makes sense — with three clear examples and one rule of thumb.
GlossarChain-of-Thought
Chain-of-Thought (CoT) is a prompting technique that asks the model to spell out its reasoning in intermediate steps — boosting accuracy on multi-step tasks.
LexikonPrompt Security — Injection, Leaking, Guardrails
How prompt injection, prompt leaking, and jailbreaks work — and which defenses (guardrails, spotlighting, sanitization) actually help.