"A healthcare organization with 50M documents wants a private AI search system for their clinical staff. They have HIPAA constraints, on-prem infrastructure preferences, and their data is in 12 different source systems. Design it."
This tests system design — and whether you reach for the FDE answer structure: scope the customer first, then a week-one walking skeleton, then production hardening, then trade-offs and rollout. Traps: jumping straight to a perfect architecture, and forgetting trust boundaries, evals, and cost.
Whiteboard your answer — scope → skeleton → production → trade-offs → rollout — before opening the worked solution. Then ask the AI panel to interrogate your assumptions.
One source system only: clinical guidelines (highest value, cleanest data). ~10K documents → chunk → embed with an open-source model on-prem → vector store → simple search UI → LLM answer with citations. Deploy on their existing Kubernetes cluster. Five pilot clinicians, qualitative feedback. Goal: one "oh, this is useful" moment.
Data pipeline: 12 sources → per-system connectors → text extraction + OCR → PHI detection and de-identification before any processing → structure-aware chunking → self-hosted embeddings → on-prem Elasticsearch. Every document carries metadata: source, type, department, date, access level. Incremental sync every 6 hours; full re-index weekly off-hours.
Retrieval + generation: query → hybrid search (BM25 + vector, RRF fusion) → access-control filter before reranking → cross-encoder reranker (50 → 5–8) → LLM (self-hosted Llama 3 70B, or Azure OpenAI with BAA) → output guardrails (PHI scan, hallucination check) → cited response. Latency budget: <5s p99.
Evaluation: offline golden set of 500 clinical questions (recall@5, faithfulness) — run before every deployment, block on regression. Online: thumbs up/down + "wrong source" flag → weekly review → failures become new golden-set entries. Compliance: every query/response logged (HIPAA audit trail, 7-year retention).
Security: SSO via their IdP, department-level RBAC, TLS + AES-256, PHI de-identified before embedding and re-identified only at response time for authorized users, no external egress.
5 users → 50 → 500 → all. Train their team, write runbooks, joint on-call initially, then hand off operations.
Why hybrid retrieval here instead of pure vector?
What changes if the customer insists on fully air-gapped, no cloud at all?
A 13th source system arrives mid-engagement. What breaks?
What does the "wrong source" flag teach you that thumbs-down doesn't?
Estimate the embedding cost again, but for 200M documents.
Senior signal: lead with the customer's metric and the money. Architecture without a business case is a hobby project.