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
- What Is a Prompt?
- How a Model Reads Your Words
- Be Clear and Specific
- System, User and Assistant Roles
- Teaching with Examples (Few-Shot)
- Thinking Step by Step
- Asking for a Format
- Delimiters and Templates
- Giving the Model Context
- Personas and Tone
- Breaking Big Tasks Apart
- Randomness and Settings
- When Models Make Things Up
- Prompt Injection and Safety
- Testing Your Prompts
- Improving Prompts Step by Step
- Prompts for Writing Code
- Tools and Agents
- Long Inputs, Summaries and Cost
- Capstone: A Production Prompt System