Prompt Engineering
Same question, two different answers. Ask a model "what should I eat?" with no setup and you get a generic list. Ask it the same thing after telling it "You are a no-nonsense sports nutritionist talking to a marathoner two days before a race" and the answer ch
9 lessons, each with runnable code in the browser.
- System Prompts: Setting the Stage
- Tokens: How Models Read and Bill
- Temperature: Tuning Randomness
- Few-Shot Prompting: Teaching by Example
- Structured Output: Getting JSON You Can Use
- Role and Persona Prompting
- Delimiters and Prompt Structure
- Iterating and Debugging Prompts
- Chain-of-Thought: Make the Model Show Its Work