What is 'Constitutional AI' as a prompting pattern and how does it differ from a standard system prompt with refusal rules?
Constitutional AI turns safety rules into a structured generate, critique, revise loop, so principle compliance becomes an inspectable step instead of a hope.
Imagine writing an essay. One approach is to read a list of rules first and then write, hoping you followed them. Another approach is to write a draft, then re-read the rules and mark every place your draft broke one, then rewrite. The second approach catches problems the first never sees, because checking is a separate step you actually do. Constitutional AI is the second approach for an LLM. Instead of just listing rules in the system prompt, you ask the model to draft an answer, critique it against named principles, and revise. That extra step turns a vague instruction into an inspectable workflow.
Detailed answer & concept explanation~4 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: training method vs prompt pattern + the three-step loop + why the critique step is inspectable + production cost and self-rater caveats.
Real products, models, and research that use this idea.
- Anthropic publishes a constitutional-style prompting recipe in the Claude Opus 4.7 docs that teams adapt for guardrails on top of any model.
- NVIDIA NeMo Guardrails ships rails that wrap a generate, critique, revise loop around base model calls for compliance-heavy domains.
- Promptfoo supports critique-based eval suites where a judge LLM rates a draft against named principles, mirroring the constitutional structure.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you write the principles list for a customer-support assistant?
QWhat is the failure mode if the critique uses the same model as the draft?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Confusing the Constitutional AI training method (used for Claude) with the prompting pattern; the inference-time pattern is just generate, critique, revise against named principles, and any model can run it.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.