Day 2 showed you how the model thinks. Day 3 shows you how to direct it — system prompts, few-shot examples, chain-of-thought. The craft, not the magic.
Every model call has a hidden preamble. It's your instructions before the user even speaks.
The system prompt is not a suggestion — it shapes persona, rules, and output format. The same model behaves like a completely different product depending on what's in it.
You are a senior software engineer conducting a thorough code review.
• Be direct and specific — no flattery • Flag every issue, ranked by severity • Suggest the exact fix, not just the problem
Format: [SEVERITY] — issue — fix Output as a structured review.
You are a senior software engineer conducting a thorough code review.
• Be direct and specific — no flattery • Flag every issue, ranked by severity • Suggest the exact fix, not just the problem
Format: [SEVERITY] — issue — fix
"The system prompt is not a setting. It's software. It should be version-controlled, tested, and deployed like code."
Show, don't tell. Examples teach format better than instructions.
Instructions describe what you want. Examples demonstrate it. The model infers the pattern — output structure, tone, level of detail — from what it sees.
Min et al. (2022) found that random labels in few-shot examples barely hurt performance. The model learns format and structure — not the specific input-to-label mapping.
Extract action items from: 'We agreed that Sarah will finish the report by Friday, and Tom should book the venue by next week. Also, everyone needs to review the budget doc before Monday.'
There are several action items mentioned in this text. Sarah has been tasked with finishing the report, with Friday as her deadline. Tom needs to book the venue sometime next week. Additionally, the entire team is expected to review the budget document before Monday. These represent the main commitments discussed...
Force the model to show its work. The answer follows the reasoning.
When the model jumps straight to an answer, it's using fast pattern matching — System 1 thinking. Chain-of-thought makes it slow down, allocate tokens to intermediate steps, and reason before committing.
Kojima et al. (2022) found that adding "Let's think step by step" to prompts improved accuracy on the MultiArith benchmark from 17.7% → 78.7%. Five words. No fine-tuning. No new model.
Each reasoning step is a token. More tokens = more compute allocated to the problem before the final answer token is generated. The model literally thinks more.
If prompts are code, prompt injection is the SQL injection of AI.
A user (or content in the environment) embeds instructions that override your system prompt. The model can't tell the difference between your instructions and the attacker's.
OWASP named it the #1 vulnerability in their LLM Top 10 (2023). No complete defence exists. This is not a solvable problem yet — it's a fundamental architectural challenge.
All from peer-reviewed research. All directly applicable tomorrow.
Kojima et al. (2022) "Large Language Models are Zero-Shot Reasoners" showed that adding this phrase lifted accuracy on MultiArith from 17.7% to 78.7%. No new model. No fine-tuning. Zero additional training. Five words appended to the prompt.
Min et al. (2022) "Rethinking the Role of Demonstrations for In-Context Learning" tested few-shot prompts with randomly scrambled labels. Performance barely dropped. The model learns the output structure and format from examples — not the specific input-to-label mapping.
Liu et al. (2023) "Lost in the Middle: How Language Models Use Long Contexts" found that model performance forms a U-shape across position. The model attends strongly to the beginning and end of context. Content placed in the middle is systematically under-attended.
OWASP released the LLM Top 10 in 2023. Prompt injection — where user content overrides system instructions — came first. Every major lab acknowledges it. No one has solved it. It's a fundamental challenge: the model processes instructions and data in the same channel.
Sclar et al. (2023) "Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design" showed that changing only prompt formatting — capitalization, punctuation, spacing, label tokens — can shift accuracy by over 50 points on identical tasks with identical models.
Wei et al. (2022) "Chain-of-Thought Prompting Elicits Reasoning in Large Language Models" found that CoT consistently improved reasoning only in models above ~100B parameters. Below that threshold, adding reasoning steps often made performance worse — the small model would generate plausible-sounding but incorrect chains.
These aren't optional. Day 4 assumes you've felt these in your hands.
Take a task you currently do manually and write a system prompt for it. Version 1 will be bad. Write version 2. Iterate until it works 8/10 times.
Start with: persona → rules → format. Don't skip the format section — it's where most prompts fail.
Find a prompt that isn't working well. Add 2–3 examples of the correct output. Compare before and after.
The classic upgrade path: struggling 0-shot → add few-shot examples → add "Let's think step by step" for reasoning tasks.