Lesson 5 of 33 · Part 0: Foundations

Writing Good Prompts

Clear, specific prompts with context, format and examples get much better answers.

Last time: The system prompt, messages[0], sets who the AI should be and its rules, re-sent every call.
Today: We turn vague requests into clear prompts with six ingredients, fences and step-by-step thinking.
Part 0 · Foundations

Writing Good Prompts

What you'll learn
1Why vague prompts get vague answers
2The six ingredients of a clear prompt
3Fences, step by step, and fixing drafts
Solo Bot
messages = [
{"role": "system", …} ✓ last lesson
{"role": "user", …} ← today
]
← Prev
1/0
Next: Hallucination →