Skip to content
Forward Deployed

Forward Deployed
Prompt & Context Engineering: sections and modules
T3.1

Prompt Engineering Patterns

Apply persona, flipped-interaction, N-shot, directional-stimulus, template and meta-language patterns.

Lessons
6 lessons
By
Sourav Banerjee
Prerequisites
None
6 lessons

Also used in this module

Lessons taught in another module that this one builds on.

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

How confident are you with this module?

1 means "I could not explain it yet"; 5 means "I could teach it". Rate again any time.

 

Saved in this browser when you leave the box.