Skip to content
RED SAGSkills
hardAI Engineer (LLM & Generative AI) interview question

Design a RAG assistant over 2 million internal documents with different access permissions per team.

What the interviewer wants to hear

  • Ingestion pipeline: parsing, chunking, metadata, incremental updates
  • Hybrid retrieval with reranking
  • Permission filtering at retrieval time (document-level ACLs)
  • Citations, refusal when unsupported
  • Evaluation, monitoring, cost and latency budgets

Model answer

I would start with ingestion: connectors pull documents from each source, parse them carefully (including PDFs and tables), split them along structure, and store chunks with metadata such as source, date, owner and access control list. Updates are incremental using change events, and deletions remove vectors quickly. Retrieval uses hybrid search, vector plus BM25, and always applies a permission filter based on the user identity at query time, so the model never sees chunks the user cannot access; filtering after generation is too late. A reranker narrows to the top few chunks. The generator is instructed to answer only from sources, cite them, and say when it cannot find an answer. I build an eval set per department, measure retrieval recall and answer faithfulness, and monitor latency, cost per query, feedback and stale content.

Can you answer it under time pressure?

Take a timed hard round and get scored on every answer.

Start mock interview

More hard AI Engineer (LLM & Generative AI) questions