Skip to Content

2. Prompting

Write prompts that reliably steer the model. Take unstructured text and produce a structured summary — first vague, then explicit. Move the same instructions from user turn to system prompt and observe the difference.

Canonical Techniques

Learn the canonical techniques by name — you’ll use all of them:

Failure Modes

Know the failure modes: hallucination (confident wrong answers), refusals, and output variance at non-zero temperature.

!!! warning “The 9/10 trap” A prompt that works 9 out of 10 times is not a good prompt.

Resources

OpenAI prompt engineering · Anthropic prompt engineering · DAIR.AI Prompt Engineering Guide · ReAct paper · Chain-of-Thought paper