Prompt & Context Engineering: sections and modules
Prompt Engineering Patterns
Apply persona, flipped-interaction, N-shot, directional-stimulus, template and meta-language patterns.
- Lessons
- 6 lessons
- By
- Sourav Banerjee
- Prerequisites
- None
Lessons
Start moduleAlso used in this module
Lessons taught in another module that this one builds on.
- The Four Context Operations
Credited source
Practise and Check
- Deliverable
- Prompt bake-off: write three prompts for grading whether a retrieved passage answers a question, and measure their agreement with your own labels on 30 pairs.
- Assessment
- Answer the five Interview questions without notes, then run the lab.
- Interview probe
- Larkspur's relevance grader labels the `refund-timing` chunk "no" for "How long does a refund take?", so the assistant answers "I don't know". The grader is a few-shot prompt. How do you debug it?
- Common mistakes
- A grading prompt whose only no example is on an unrelated topic
- Majority voting when one wrong answer is more common than the right one
- Passing replies on without parsing and validating the JSON contract
Your Progress
Saved in this browser when you leave the box.