All jobs / AI engineer / AI Safety & Guardrails
AI engineer interview question · 3–5 years
Your sales chatbot told a customer they were entitled to a discount that does not exist, and the customer is holding the company to it.
How do you make sure the assistant cannot commit the company to things that are not true?
The strongest answer
Take commitments out of free text: prices and policy come from the system of record via code, the model only explains them, and an output check blocks any amount or promise that does not match the source
Why it works
Exactly — constrain the output so the risky part is not generated at all, then verify what is left. The model explains; the system of record decides.
What a good answer covers
- Do not generate what must be exact.
- Numbers and policy come from code.
- Validate output against the source.
- Block or fall back on a mismatch.
Answers that fall short
- Close, but not the strongest: Put the full price list and refund policy in the prompt and instruct the model to quote only from them, word for word
Grounding in the real policy is necessary, but nothing checks the answer. Put a validator between the model and the customer. - Weak: Lower the temperature to zero so the model stops being creative and gives the same factual answer every time
Temperature affects variety, not truth; a model can be consistently wrong at zero. - Red flag: Add a footer saying the chatbot’s answers are not binding, and tell support to refuse any claim that is based on a chat
A disclaimer is not a guardrail, and you may not get to decide whether the promise binds you. Fix the behaviour rather than disown it.
Who gets asked this
More AI Safety & Guardrails questions
- 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…
- A health-information assistant was tightened after a complaint. It now refuses ordinary questions about…