Walk me through how you'd design a question-answering feature over our internal documents using an LLM. What are the main pieces?

technical-conceptual · Junior level · data-ml

What the interviewer is really asking

Assess whether the candidate can outline a retrieval-augmented QA system end to end — ingestion, retrieval, generation, grounding, evaluation — at a coherent high level appropriate for junior, without getting lost or missing whole stages.

What to say

What to avoid

Example answers

Strong: Offline: I'd chunk the documents, embed each chunk, and store them in a vector index. Online: embed the question, retrieve the top relevant chunks, and prompt the LLM to answer using only those chunks with citations. Around that I'd add access control so users only retrieve docs they're allowed to see, a refresh job to re-index changed docs, and an eval set to track answer quality and retrieval relevance.

Weak: I'd fine-tune the model on all our documents so it just knows the answers.

Want questions matched to your role? Paste a job title, job description, or CV and get a personalized set, or go Pro to unlock the full bank.