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

AI engineer interview question · 3–5 years

The assistant gave a wrong answer to a question the documentation clearly covers. How do you find out which stage of the pipeline failed?

The strongest answer

Follow that query’s trace stage by stage: is the passage in the index and parsed properly? Was it retrieved? Did it survive reranking and the context budget? If it reached the prompt and was ignored, it is generation

Why it works

Exactly — a RAG answer can fail at ingestion, retrieval, assembly or generation, and each has a different fix. The trace tells you which; guessing fixes the wrong one.

What a good answer covers

Answers that fall short

Who gets asked this

More RAG — Retrieval-Augmented Generation questions