---
title: Design a retrieval-augmented generation system that serves many enterprise customers, each with private documents. How…
url: https://gurkanozkan.ai/learn/questions/research-multi-tenant-enterprise-rag-080/
markdown: https://gurkanozkan.ai/learn/questions/research-multi-tenant-enterprise-rag-080.md
kind: question
role: Research
stage: System design
difficulty: Hard
json: https://gurkanozkan.ai/api/learn/questions/research-multi-tenant-enterprise-rag-080.json
robots: noindex
---

# Design a retrieval-augmented generation system that serves many enterprise customers, each with private documents. How do you guarantee isolation and good answer quality?

Research · System design · Hard

Theme reported publicly: [Cohere](https://www.techinterview.org/post/3233474931/cohere-interview-process-2026/)

## Answer

*Model answer, written in a candidate's voice*

### In short

- Ingest ACL-aware connectors, normalise, chunk with tenant/doc/page/version metadata, dedup and index incrementally.
- Hybrid dense plus lexical/BM25 retrieval, fuse results, rerank top candidates, return citable chunks.
- Isolation via per-tenant indexes or enforced tenant/ACL filters at retrieval time, deny by default, no cross-tenant cache/log leakage.
- Grounded answers only from retrieved evidence, with document/page/section citations and abstention when evidence is weak.
- Evals per tenant: retrieval recall@k/MRR and answer faithfulness/citation precision, regression gates and online sampling.
- On-prem/VPC/private-endpoint deployment with data residency and hosted or self-hosted model choices.
- Latency and cost: async ingestion, precomputed embeddings, caching, bounded retrieval/rerank depth, p95 and cost-per-query tracking.
- Monitoring: tenant dashboards, audit logs, quality drift/error alerts, rollback and incident runbooks.

### In full

The core design is a tenant-isolated RAG pipeline: connectors ingest documents with their ACLs, normalise and chunk them with tenant_id, document_id, page/section and version metadata, then deduplicate and index incrementally. At query time I authenticate and authorise the user, enforce isolation inside retrieval rather than after it: either a separate index or namespace per tenant, or a shared index where the tenant and document-ACL filter is mandatory in every query (deny by default), with caches, logs and any fine-tuning data also kept per tenant. Retrieval then uses hybrid dense plus lexical/BM25 search with fusion and a reranker so the model sees only permitted, relevant chunks. Answers are grounded in those chunks with citations to document/page/section, and the system abstains or asks for clarification when evidence is weak rather than filling gaps. I validate it with per-tenant golden sets measuring retrieval recall@k/MRR and answer faithfulness/citation precision, plus online sampling and regression gates before rollout. For enterprise deployment I support on-prem or customer VPC with private endpoints and data residency, with hosted or self-hosted models chosen per customer. Latency and cost are controlled by async ingestion, precomputed embeddings, caching, bounded retrieval/rerank depth, and p95 latency and cost-per-query dashboards, with monitoring for quality drift, errors, citation coverage and audit logs.

*Corrected by an independent AI reviewer.*

## What a strong answer covers

- Ingestion and chunking.
- Hybrid dense and lexical retrieval, plus reranking.
- Per-tenant indexes or enforced filters, with access control *at retrieval time*.
- Grounded answers with citations.
- Evals for retrieval recall and answer faithfulness.
- On-prem/VPC options; latency and cost; monitoring.

## Common mistakes

- Filtering only after retrieval, which risks leaks.
- Never evaluating retrieval.

## Topic guides

- [Evaluation: metrics, evals for LLM systems and statistical rigour](https://gurkanozkan.ai/learn/topics/evaluation.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
