Design a Retrieval-Augmented Support Assistant for Platform Documentation
Last updated: November 29, 2026
Quick Overview
Design a RAG assistant that answers developers' questions about the OpenAI API using the official docs, changelog and help center, with citations and a fallback to human support.
OpenAI
ML System Design
Machine Learning Engineer
OpenAI
November 29, 2026Machine Learning Engineer
Phone Screen
ML System Design
Easy
0
0
0 solved
Design a RAG assistant that answers developers' questions about the OpenAI API using the official docs, changelog and help center, with citations and a fallback to human support.
OpenAI's help and developer support see huge question volume about API usage, billing and errors. In a phone screen, the interviewer expects a clean RAG baseline: ingestion, chunking, retrieval, prompting with citations, and evaluation.
What the Interviewer Expects
- Ingest and chunk docs with structure and metadata (section, version, date)
- Embed and index for hybrid retrieval
- Prompt the model to answer only from retrieved context and cite sources
- Escalate to humans when confidence is low or the question is account-specific
- Evaluate with a question set and track deflection and satisfaction
Key Topics to Cover
RAG
chunking
embeddings
evaluation
escalation
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
- How do you keep answers correct right after an API change?
- How do you handle questions about the user's own account or bill?
- How would you detect and reduce hallucinated parameters?
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: API reference, guides, changelog, help articles; a few thousand pages, updated weekly.
- Answer within a few seconds with citations; handle code examples.
- Escalate to support for account-...
High-Level Design
- Ingest job on doc publish: split by headings into chunks of about 300 to 800 tokens, keep code blocks intact, attach metadata (URL, section, last updated, API version).
- Index: embeddings i...
Submit Your Answer
Markdown supported