AI Engineering
/
RAG & Data Pipelines
/

Design multi-tenant RAG with deletion

RAG & Data Pipelines · 3 to 4 hours

Design multi-tenant RAG with deletion

Design a private multi-tenant policy assistant whose answers and citations stay correct through asynchronous updates, retries, permission changes, and deletion.

Hard
System Design

4 h

Premium

Step 1: The question

Design a private multi-tenant policy assistant with citations. Documents update asynchronously and can be deleted while ingestion or answer generation is running. Explain publication, retries, authorization, deletion, cached answers, historical citations, evaluation, and recovery from backup.

Constraints

  • Several organizations share the service; every passage sent to a model must be authorized for the requesting user
  • Current-policy answers use one published revision per logical document
  • Documents update asynchronously and can be deleted while ingestion or answer generation is running
  • Answers cite the exact source revision they used

Deliverables

  • Data model for documents, revisions, chunks, jobs, and answer provenance
  • Publication and retry flow, with the checks that stop stale writes
  • Deletion and permission-change handling across caches, history, and backups
  • Citation, evaluation, and recovery plan, with the guarantee at each boundary

Hard questions are part of Premium: the study guide, reference answer, rubric, and exercises unlock with Premium.