All jobs / AI engineer / RAG — Retrieval-Augmented Generation

AI engineer interview question · 5+ years

Since you added “answer only from the retrieved context, otherwise say you don’t know”, the assistant refuses about a third of the questions the docs do cover. Sales wants the rule removed before a customer demo.

What do you do?

The strongest answer

Keep the rule and split the refusals by cause: where retrieval missed, fix retrieval; where the context was good, fix the prompt — allow partial answers that say what is covered. Track false refusals and unsupported answers together

Why it works

Exactly — over-refusal and unsupported answers are two error rates on one dial, and you manage both. A false refusal has a cause you can find — a missed passage or an over-strict prompt — without touching the grounding rule.

What a good answer covers

Answers that fall short

Who gets asked this

More RAG — Retrieval-Augmented Generation questions