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

AI engineer interview question · 0–1 years

Walk me through a RAG system, from a document being uploaded to a user getting an answer.

The strongest answer

Two pipelines. Ahead of time: parse, chunk, embed and index the documents. At question time: retrieve the closest chunks, put them in the prompt, and have the model answer from them with sources. The weights never change

Why it works

Exactly — ingestion and answering are separate pipelines, and many RAG bugs live in the first one. Nothing is trained: the knowledge arrives in the prompt.

What a good answer covers

Answers that fall short

Who gets asked this

More RAG — Retrieval-Augmented Generation questions