Design Permission-Aware Retrieval Over Connected Workplace Apps for Enterprise
Last updated: November 29, 2026
Quick Overview
Design retrieval for ChatGPT Enterprise that answers questions using a company's connected sources (Drive, SharePoint, Slack, Jira) while only ever using documents the asking employee is allowed to see.
OpenAI
November 29, 20260
0
0 solved
Design retrieval for ChatGPT Enterprise that answers questions using a company's connected sources (Drive, SharePoint, Slack, Jira) while only ever using documents the asking employee is allowed to see.
Enterprise customers connect internal tools so ChatGPT can answer with company knowledge, and a single permission leak is a deal breaker. The interviewer checks ACL-aware indexing, sync freshness, hybrid retrieval quality on internal jargon, and evaluation without public labels.
What the Interviewer Expects
- Ingest via connectors with incremental sync and ACL capture
- Enforce permissions at query time with document-level ACL filters, not post-hoc prompting
- Use hybrid lexical plus vector retrieval tuned for internal acronyms
- Re-rank with recency and source signals and assemble citations
- Handle permission changes and deletions quickly
- Evaluate per tenant with synthetic and user feedback data
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 document is unshared from an employee; how fast must retrieval stop using it?
- How do you handle group memberships that are nested and change often?
- How would you build an eval set for a customer whose data you cannot look at?
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
- Sources: file storage, chat, ticketing, wikis; tens of millions of docs per large tenant.
- Answers cite sources; only documents the user can access in the source system.
- Permission changes reflec...
High-Level Design
- Connectors per source: initial crawl plus webhooks or delta APIs; capture content and ACLs (users, groups).
- Identity graph per tenant: expands groups to members via the directory (SCIM or ...