Learn Prompt Engineering by writing real code

Talk to AI like a pro, explained like you are five: clear prompts, examples, formats, safety, testing and a production prompt system, with runnable demos in every chapter.

Each chapter explains one idea, shows a worked example and then asks you to write and run your own Prompt Engineering code in the browser, with tests that check your answer.

Anyone can read the chapter list. The chapters themselves are part of licode Club.

Prompt Engineering chapters

  1. What Is a Prompt?
  2. How a Model Reads Your Words
  3. Be Clear and Specific
  4. System, User and Assistant Roles
  5. Teaching with Examples (Few-Shot)
  6. Thinking Step by Step
  7. Asking for a Format
  8. Delimiters and Templates
  9. Giving the Model Context
  10. Personas and Tone
  11. Breaking Big Tasks Apart
  12. Randomness and Settings
  13. When Models Make Things Up
  14. Prompt Injection and Safety
  15. Testing Your Prompts
  16. Improving Prompts Step by Step
  17. Prompts for Writing Code
  18. Tools and Agents
  19. Long Inputs, Summaries and Cost
  20. Capstone: A Production Prompt System