RAG for Everyone

← Back to practice

Chapter 4 Interview Prep30 min review

Interview Questions: RAG Execution Pipelines

Use these to explain RAG like a production engineer, not only as a demo builder.

01

Why split RAG into offline and online pipelines?

Strong answer: offline prepares trustworthy searchable knowledge; online answers live users with routing, permissions, retrieval, context, answer policy, and tracing.
Red flag: saying RAG is just one vector search plus one model call.
02

What should a production RAG trace include?

Strong answer: request id, index version, route, filters, source ids, scores, context, prompt version, answer status, latency, cost, and feedback.
Red flag: logging only the final answer.
03

How do you handle weak retrieval?

Strong answer: retry, rewrite, broaden search, ask clarification, refuse, or escalate based on risk and evidence requirements.
Red flag: always answer anyway.
04

Why is index versioning important?

Strong answer: answers depend on the published knowledge version; versioning enables debugging, eval comparison, and rollback.
Red flag: treating indexing as a background script.
05

Where should access control happen?

Strong answer: before unauthorized documents enter retrieval results or prompt context; UI-only permissions are not enough.
Red flag: trusting the model not to leak retrieved content.
06

What release gates would you define?

Strong answer: retrieval recall, citation support, route accuracy, refusal accuracy, stale-source rate, p95 latency, and cost thresholds.
Red flag: shipping because three demos looked good.
07

How do fallbacks differ by risk?

Strong answer: low-risk queries can retry or answer with caveat; high-risk queries may need refusal or human escalation when evidence is incomplete.
Red flag: one fallback for every request.
08

What makes a pipeline stage production-ready?

Strong answer: defined input/output contract, owner, metrics, failure mode, test coverage, logs, and rollback plan.
Red flag: "it works in the notebook."
09

How do you debug a wrong answer?

Strong answer: inspect retrieved sources first, then filters, route, index version, context assembly, prompt, and final generation.
Red flag: immediately changing the model.
10

What is a paired-source requirement?

Strong answer: a rule that certain questions need multiple source families, such as access policy plus incident runbook.
Red flag: trusting one nearby source for high-risk answers.
← Practice BankProject →