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.

  1. System Prompts: Setting the Stage
  2. Tokens: How Models Read and Bill
  3. Temperature: Tuning Randomness
  4. Few-Shot Prompting: Teaching by Example
  5. Structured Output: Getting JSON You Can Use
  6. Role and Persona Prompting
  7. Delimiters and Prompt Structure
  8. Iterating and Debugging Prompts
  9. Chain-of-Thought: Make the Model Show Its Work

Compilearn home