Complete the definition: prompt engineering is the practice of designing the LLM's ___ to shape its output, without modifying model ___.
Prompt engineering shapes LLM output by designing the input (instructions, format, examples, context) without touching the trained weights.
Imagine a chef who already knows thousands of recipes by heart. You cannot change what they learned in cooking school, but you can change the order ticket: 'gluten-free, no onions, plated like a tasting menu, here is the example I want.' Prompt engineering is the order ticket. The chef (the model) stays exactly the same; only the instructions and examples you hand them change. That is why a great prompt and a poor prompt can give wildly different dishes from the same chef.
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: input vs weights boundary + what lives in a prompt + why iteration is cheap + when to escalate to RAG or fine-tune + one production example.
Real products, models, and research that use this idea.
- Anthropic Workbench and the Claude Projects feature ship as prompt engineering surfaces; users edit system instructions and examples, never weights.
- GitHub Copilot Chat composes a prompt from the open file, project context, and the user turn; the underlying model is fixed per release.
- Cursor and Perplexity assemble retrieved snippets plus instructions into the prompt at every turn while the LLM stays untouched.
- OpenAI's Structured Outputs feature is a prompt side schema constraint, not a weight change; the same GPT-5.5 model serves it.
What an interviewer would ask next. Try answering before peeking at the approach.
QIf prompt engineering does not change weights, why do two prompts get such different outputs from the same model?
QWhen would you escalate from prompt engineering to fine-tuning, and what evidence would you need?
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 prompt engineering with fine-tuning. Prompt work touches the input only; fine-tuning rewrites the weights. Different cost, different latency, different governance.
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.