Design a Retrieval-Augmented Assistant Over a Client's Policy Documents

Last updated: November 29, 2026

Quick Overview

A large enterprise client wants an internal GenAI assistant that answers employee questions from its HR, IT and compliance policies with citations, respecting document-level permissions. Design the system, including evaluation and guardrails.

Accenture
ML System Design
Machine Learning Engineer
Accenture
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


A large enterprise client wants an internal GenAI assistant that answers employee questions from its HR, IT and compliance policies with citations, respecting document-level permissions. Design the system, including evaluation and guardrails.

Accenture is investing heavily in delivering generative AI for clients, and an access-controlled knowledge assistant is one of the most common first engagements. The interviewer checks retrieval quality, permission enforcement, measurable evaluation and responsible AI controls, not just 'put documents in a vector database'.

What the Interviewer Expects
  • Designs ingestion with chunking, metadata and incremental refresh
  • Enforces document permissions at retrieval time, not after generation
  • Uses hybrid retrieval and reranking with justification
  • Defines an offline evaluation set and online feedback metrics
  • Handles hallucination with grounding, citations and refusal
  • Addresses PII, prompt injection from documents, and cost
Key Topics to Cover
Retrieval-augmented generation
Hybrid search
Access control
LLM evaluation
Guardrails
Responsible AI
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How do you know the assistant improved after you changed the chunking strategy?
  • A policy was updated this morning. How quickly does the answer change and how do you guarantee it?
  • How would you support questions that need data from a live system, like remaining vacation days?
  • How do you stop a malicious document from instructing the model?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Around 200k documents across SharePoint, Confluence and a policy CMS, in several languages. 50k employees, a few thousand questions per hour at peak. Answers must cite sources, only use documents the ...

High-Level Design

Ingestion connectors pull documents and their ACLs, convert to text, split into chunks of a few hundred tokens along headings, and store each chunk with metadata: source, section, effective date, lang...


Submit Your Answer
Markdown supported

Related Questions