Build a Prompt Regression Harness Shared Across Client Projects
Last updated: November 29, 2026
Quick Overview
Design an internal evaluation service that lets engineers on any client project register a dataset and graders, run a candidate prompt or model against it, and see a diff versus the current production version before merging.
Ode
November 29, 20260
0
0 solved
Design an internal evaluation service that lets engineers on any client project register a dataset and graders, run a candidate prompt or model against it, and see a diff versus the current production version before merging.
Ode says it runs evaluations constantly to prove impact, and across dozens of engagements a shared harness pays off quickly. The interviewer wants a pragmatic internal tool design: clear data model, reproducibility, caching to control cost, and a CI integration engineers will actually use.
What the Interviewer Expects
- Define datasets, graders, runs and results as first-class versioned entities
- Support exact-match, programmatic and LLM-judge graders behind one interface
- Make runs reproducible (pin prompt version, model, parameters, dataset version)
- Cache model outputs by input hash to cut cost on reruns
- Report per-example diffs and statistical uncertainty, not just one score
- Isolate client data by tenant
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you keep an LLM judge from drifting when the judge model changes?
- How big must a dataset be before a 2 point difference means anything?
- How would you let a client's own staff add examples safely?
- What blocks a merge, and who can override it?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Users: Ode engineers and forward deployed PMs. A project has datasets (inputs plus optional references), graders, and targets (a prompt template plus model plus parameters, or an HTTP endpoint for ful...
High-Level Design
- API service with Postgres for metadata (projects, dataset versions, targets, runs, scores).
- Object storage for dataset files and raw outputs, one bucket prefix per client with separate key...