All jobs / AI engineer / AI Safety & Guardrails
AI engineer interview question · 1–3 years
A health-information assistant was tightened after a complaint. It now refuses ordinary questions about common medicines, and support tickets say it is useless.
How do you approach fixing it?
The strongest answer
Both errors cost: over-refusal fails legitimate users, under-refusal lets harm through. I build a test set with should-answer and should-refuse cases, measure both rates on every change, and make refusals say what the assistant can help with
Why it works
Exactly — it is a two-sided error, so both sides go in the evaluation. Otherwise every fix for one complaint creates the opposite complaint.
What a good answer covers
- Refusing too much is also a failure.
- Test should-answer and should-refuse cases.
- Measure both rates on every change.
- Make a refusal point somewhere useful.
Answers that fall short
- Close, but not the strongest: Loosen the safety prompt until the complaints stop, then check a handful of risky questions by hand to make sure it still refuses them
Right direction, but tuning until the noise stops and spot-checking by hand is how the pendulum swung here in the first place. Make it a regression suite. - Weak: A refusal is always the safe choice for a health product, so I would leave it as it is and explain that to support
A refusal is not free: a user turned away from a reasonable question goes somewhere less careful. Over-refusal is a failure too. - Red flag: Remove the refusal rules; users are adults and the terms of use already say the answers are not medical advice
Dropping the policy and pointing at the terms of use hands real risk to users; an interviewer hears someone who will not own the product’s behaviour.
Who gets asked this
More AI Safety & Guardrails questions
- How do you make sure the assistant cannot commit the company to things that are not true?
- Your output content filter is a separate classifier call, and your answers stream to the user. What happens…
- What do you build, and what do you refuse to leave to the model?
- Your organisation is about to launch an LLM feature that summarises and ranks CVs for recruiters. A…
- What is a guardrail in an LLM application, and where does it sit?
- Your assistant gets a question it has no information to answer. What should happen, and how do you get that…