Design a Retrieval Assistant Over Client Runbooks for Managed Support

Last updated: November 29, 2026

Quick Overview

Design a GenAI assistant for support engineers who serve many enterprise clients. It answers incident questions using each client's runbooks, past tickets and architecture docs, cites sources, and must never leak one client's content to another.

Cognizant
ML System Design
Machine Learning Engineer
Cognizant
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


Design a GenAI assistant for support engineers who serve many enterprise clients. It answers incident questions using each client's runbooks, past tickets and architecture docs, cites sources, and must never leak one client's content to another.

Cognizant builds GenAI solutions for its own managed services and for clients, through offerings like Neuro AI, where tenant isolation and responsible AI controls are contract requirements. The interviewer checks retrieval design, isolation enforced outside the model, evaluation, and how you keep answers grounded.

What the Interviewer Expects
  • Enforces tenant isolation in retrieval, not in the prompt
  • Designs ingestion with chunking, metadata and freshness
  • Uses hybrid retrieval and reranking
  • Grounds answers with citations and refuses when evidence is weak
  • Defines offline and online evaluation
  • Covers PII redaction and audit logging
Key Topics to Cover
retrieval augmented generation
multi-tenancy
hybrid search
LLM evaluation
responsible AI
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • A client terminates its contract. How do you guarantee its data is gone from every index and cache?
  • How would you evaluate whether answers actually shortened incident resolution time?
  • Runbooks contain shell commands. How do you stop the assistant from suggesting a dangerous one with false confidence?
  • When would you fine-tune a model instead of improving retrieval?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Users: about 5,000 support engineers across 300 client tenants, each engineer entitled to a subset. Sources: runbooks in Confluence and SharePoint, ServiceNow tickets, architecture docs. Functional: n...

High-Level Design
  1. Connectors pull documents with source ACLs, redact secrets and PII, chunk by headings (about 500 tokens with overlap) and attach metadata: tenant ID, doc type, last updated, ACL groups.
  2. Index: o...

Submit Your Answer
Markdown supported

Related Questions