RAG for Everyone

← Back to interview questions

Chapter 21 Project160 min build

Project: Prompt Regression Harness

Build a test runner that scores prompt answers against golden cases and produces release-gate results. This is the system that stops prompt changes from silently breaking production behavior.

What you will build

Production Milestones

M1: Test Case Schema

Define question, evidence, answer, expected behavior, risk, and prompt version.

M2: Assertions

Implement citation presence, refusal correctness, format stability, and injection resistance checks.

M3: Gate

Block releases on high-risk unsupported answers, missed refusals, and injection failures.

Revisit-Value Extensions

← Interview QuestionsChapter 22: Retrieval Metrics →