Examples or Instructions: How Would You Improve This Prompt?
The interviewer asksYour prompt that classifies support tickets into 12 categories gets 78% accuracy. How would you improve it?
AI Product EngineerForward Deployed EngineerCoreBuild roundRepresentative7 min
On this page
The 30-second version
- Check the measurement: how many labelled tickets, and are the labels right?
- Find where it fails: which categories get confused with which.
- Fix the cause: clearer category definitions, examples of confusing pairs, merging overlapping categories.
- Change one thing at a time and measure on held-out tickets.
- If prompting plateaus, consider a fine-tuned or smaller classifier.
What it's really testing
- Diagnosing prompt failures
- Prompt iteration discipline
- Knowing when to change approach
How to structure your answer
- Check the measurement.
- Find the confusion.
- Fix and measure.
- Know when to switch approach.
The interview, played out
- InterviewerYour prompt that classifies support tickets into 12 categories gets 78% accuracy. How would you improve it?
- CandidateFirst, 78% on what? How many labelled tickets, and who labelled them?
- Revealed when asked300 tickets labelled by the support team.
- CandidateOK. I'd look at where it's wrong: which categories get mixed up.
- Revealed when askedMost errors are between "billing" and "refund", and between "bug" and "how-to".
- Strong moveUses the confusion pattern to target the fix.
- CandidateThen I'd write sharper definitions for those pairs, with the rule that separates them, and add two or three examples of each confusing pair. And I'd check whether support agents themselves disagree on those; if they do, the categories may need merging.
- InterviewerHow do you know it improved?
- CandidateSplit the 300: tune on 150, check on the other 150, one change at a time.
- Missed signalShould mention a fine-tuned or smaller classifier if prompting plateaus.
The strong answer, distilled
- Measurement: 300 tickets labelled by support; check label quality.
- Diagnosis: errors concentrate on billing vs refund and bug vs how-to.
- Fix: sharper definitions with the separating rule, examples of the confusing pairs; merge categories people disagree on.
- Discipline: tune on half, measure on the other half, one change at a time.
- Next step if it plateaus: a fine-tuned or smaller dedicated classifier.
This is one strong answer, not the only one.
How it's scored
| Dimension | Weak (2) | Passable (3) | Strong (5) |
|---|---|---|---|
| Measurement | Trusts 78% | Asks about data | Checks data size and label quality |
| Diagnosis | Rewrites the prompt | Looks at errors | Finds confused pairs |
| Iteration | By feel | Tests changes | Held-out set, one change at a time |
Round scorecard: FDE: technical and build round, filled in for the mock candidate
| Dimension | Weak | Passable | Strong | The mock candidate |
|---|---|---|---|---|
| Clarifying | Starts coding immediately. | Asks a few questions. | Pins down the goal, inputs and what done means first. | Strong. Asked how accuracy was measured and on what. |
| Approach | Unworkable or over-built. | Workable. | The simplest approach that works, stated before building. | Strong. Read the confusion between categories before changing anything. |
| Testing | Tries one happy-path input. | Tries a few inputs. | Tests varied and bad inputs, and checks outputs systematically. | Strong. Measured each change on a held-out set. |
| Trade-offs | None mentioned. | Some. | Says what was cut, why, and what comes next. | Passable. Considered a smaller fine-tuned classifier only when prompted. |
How the answer changes by role
| Role | What to emphasise |
|---|---|
| AI Product Engineer | The iteration loop and held-out evaluation |
| Forward Deployed EngineerForward Deployed Engineer. An engineer embedded with customers who scopes, builds and ships AI solutions into production. Read the full explanation | Working with the customer's labels and categories |
Common mistakes
- Rewriting the whole prompt at once
- Tuning and testing on the same tickets
- Ignoring bad labels
More follow-ups to practise
- "Accuracy is 95% but one rare category is always wrong." Hint: per-category metrics, not just overall.
- "Cost matters: 1 million tickets a month." Hint: small model or fine-tuned classifier.
Go deeper
- Module: Prompting and context engineering
- Framework: Build Round Framework
- Framework: Opening Any Interview Answer
- Lesson: The parts of a good prompt
- Lesson: Improving prompts with evals
- Also tests: Evals foundations
- Also tests: Grading: code, judge, human
Sources
Representative question: written to match build rounds for AI product roles, not a specific reported interview.