Design a Tenant Isolated RAG Assistant Over Enterprise Client Documents
Last updated: November 29, 2026
Quick Overview
Design a generative AI assistant that answers employee questions over a client enterprise's documents (contracts, SOPs, tickets) with citations, where many client tenants share the platform and no tenant may ever see another's data.
Infosys
November 29, 20260
0
0 solved
Design a generative AI assistant that answers employee questions over a client enterprise's documents (contracts, SOPs, tickets) with citations, where many client tenants share the platform and no tenant may ever see another's data.
Infosys Topaz positions generative AI assistants for many enterprise clients at once, so isolation, permissions and responsible AI controls matter as much as answer quality. An interviewer for an AI engineering role would probe retrieval design, document-level access control, evaluation, and how you keep a services platform cheap enough to run per client.
What the Interviewer Expects
- Design ingestion: parsing, chunking, embeddings, metadata including ACLs
- Enforce tenant and document-level permissions at retrieval time, not in the prompt
- Use hybrid retrieval and reranking, with grounded answers and citations
- Define offline and online evaluation, including groundedness and refusal behavior
- Cover PII handling, prompt injection from documents, and cost controls
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- A user loses access to a SharePoint folder. How quickly does the assistant stop using those documents, and how?
- How would you detect and handle a document containing instructions aimed at the model?
- One client insists on data residency in their own cloud account. How does the architecture change?
- How do you decide between fine-tuning a model and improving retrieval for a client?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Per tenant: connectors for SharePoint, Confluence, ServiceNow and file shares; answers with citations to the exact passages; respect each source's permissions; p95 latency under 5 seconds; admin contr...
High-Level Design
Ingestion: connectors pull documents and their ACLs, a parser handles PDF, Office and HTML (with OCR for scans), then structure-aware chunking (by headings and clauses, 300 to 800 tokens with over...