productinterview.tools
MenuClose

AI System Design Framework: Requirements, Skeleton, Depth, Quality, Failure, Cost

On this page
  1. When to use it
  2. The framework
  3. Worked example
  4. Where people go wrong
  5. Patterns to plug in
  6. Questions to practise with it

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