mlprep
Hard35 min·3 rounds

How would you design a RAG system that answers questions over a company's internal documents?

Written by the mlprep team · Updated

Interviewer Mode
Interviewer

Design an assistant that answers employee questions using the company's internal documents: wikis, PDFs, support tickets, and Slack threads. Walk me through the architecture end to end, from ingestion to the answer the user sees.

Ready to compare your reasoning?
Interviewer

How do you evaluate this system? Your PM wants a single number that says whether a change made it better.

Ready to compare your reasoning?
Interviewer

The system is live. What goes wrong in production, and how do you design for it?

Ready to compare your reasoning?

The key takeaway unlocks after you reveal an expert answer.

Follow-up Questions to Test Yourself

Interviewers often pivot here once you cover the core concept.

  • How would you handle questions that need information from many documents, such as "summarize every incident involving service X this quarter"?
  • When would you fine-tune the embedding model or reranker on your own data, and what training signal would you use?
  • How would you support multi-turn conversations where the follow-up question only makes sense with the previous turn?

How confident do you feel explaining this?

Track your understanding or flag it to revisit before your next loop.

Related Questions