On this page
When to use it
"Design a system that…" questions involving LLMsLarge language model. A model trained to predict the next token of text, used to generate and reason over language. Read the full explanation, RAGRetrieval-augmented generation. Fetching relevant documents and putting them in the model's context before it answers. Read the full explanation or agents.
The framework
| Step | Ask yourself | What good sounds like |
|---|---|---|
| Requirements | Users, data, scale, latency, cost, risk? | 1M meetings a day; summaries within 10 minutes; consent. |
| Skeleton | The whole flow first | Input checks → context → model → tools → output checks → response → logs. |
| Depth | Which two or three parts matter most here? | Sectioned summarisation and speaker attribution. |
| Quality | How do we evaluate each part and the whole? | Labelled meetings: missed action items, invented facts. |
| Failure | What happens when the model is wrong or down? | Fallbacks, human review, graceful degradation. |
| Cost and latency | Rough numbers and levers | ~7B tokens/day; batch; smaller model for short meetings. |
Worked example
Design an AI feature that summarises meetings for a video-calling app with 1 million meetings a day.: Uses the 10-minute requirement to choose batch processing, then sizes tokens and cost.
Where people go wrong
- Drawing components before asking requirements
- Going deep on one box and never showing the whole
- No evals or failure handling
- No numbers
Patterns to plug in
- Tier expensive models behind cheap filters
- Validate model output in code
- Route by difficulty
- Cache what repeats
Questions to practise with it
- Design an assistant that answers employees' questions from 50,000 internal documents: policies, wikis and project docs.
- A social platform with 50 million posts a day wants to use LLMs for content moderation. Design the system.
- An insurer receives 1 million claim PDFs a month and wants key fields extracted automatically. Design it.