All jobs / AI engineer / AI Safety & Guardrails
AI engineer interview question · 0–1 years
Your assistant gets a question it has no information to answer. What should happen, and how do you get that behaviour?
The strongest answer
It should say it does not know, ask for clarification or hand over — not guess. I design for it: when retrieval finds nothing relevant the app says so, and unanswerable questions are in the test set
Why it works
Exactly — abstaining is a feature you build and measure. A confident tone says nothing about whether the answer is right.
What a good answer covers
- Not knowing is a valid answer.
- Give the app a “nothing found” path.
- Put unanswerable questions in the tests.
- Never read confidence from tone.
Answers that fall short
- Close, but not the strongest: It should say “I don’t know”; I add a line to the prompt asking it to admit when it is unsure
The goal is right, but a prompt line alone is a hope. Give the app a real “nothing found” path and test that it is taken. - Weak: It should always give its best answer, because a fluent, confident reply means the model actually knows the subject
Fluency is not knowledge; a model produces equally confident text when it is wrong. That is what a hallucination is. - Red flag: It should answer anyway and we add a small disclaimer under the chat; an assistant that says “I don’t know” looks broken in a demo
Choosing a good demo over a truthful answer, with a disclaimer to cover it, is the trade an interviewer does not want made for their users.
Who gets asked this
More AI Safety & Guardrails questions
- A health-information assistant was tightened after a complaint. It now refuses ordinary questions about…
- 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?