Skip to content
Preptima

LLMs & RAG interview questions

RAG system design interview questions on embeddings, vector search, chunking, retrieval evaluation, hallucination debugging, guardrails, cost and latency.

3 questions in Data & AI Engineering.

hard3

hardScenarioDesign

Your RAG system returns confident but wrong answers. How do you debug it?

Debug a RAG system with confident wrong answers by separating retrieval failure from generation failure. Check whether the gold passage was retrieved, then measure recall@k, reranking quality, faithfulness and abstention on a labelled eval set. It also connects retrieval evaluation to the point an interviewer is testing.

5 minmid, senior, staff
hardConceptDesign

You stream the model's answer token by token to the browser. What does that change about error handling, guardrails and cost?

Streaming commits you to the response before you have seen it: the status code is already sent, any check that needs the whole output now runs after the user has read part of it, a mid-stream failure has no clean retry, and an abandoned tab keeps generating tokens you pay for. It also connects llm serving to the point an interviewer is testing.

5 minmid, senior, staff