LearnQuestion bank

GPT-5 shipped as a fast model, a deeper reasoning model and a real-time router between them. Design and evaluate a similar router for your own assistant, which today sends every request to an expensive reasoning model.

Applied LLMSystem designHard

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • Frame the router as a cheap, latency-bounded decision: rules first, then a small classifier, with explicit user intent, tool need, user tier and capacity as first-class signals.
  • Train on real routing outcomes and correctness, while guarding against feedback loops and selection bias from the router’s own choices.
  • Evaluate offline on a labelled, slice-stratified set to show the quality-cost curve, then run an online A/B test with hard-query guardrails.
  • Name the failure modes and mitigations: hard queries sent to the fast path, capacity overflow, and inconsistent answers, with user override and low-confidence escalation.
  • After launch, monitor routing mix, cost per request, and quality per slice, with alerts and rollback criteria.

In full

GPT-5’s internal routing is not public in detail, but the pattern is clear: route each request by expected value, not by default. My router would start with deterministic rules for explicit intent (e.g., user asks for deep reasoning or tools), then a small classifier over features like query complexity, tool need, user tier, and current capacity, kept inside a tight latency budget with a fast-path default and a safe fallback. Training signals would include user model switches, preferences, and measured correctness from task success or verifier/human labels, but I would not train only on the router’s own labels: I would keep exploration (a small randomised share of traffic) and holdout slices so the classifier does not learn that hard queries are rare because the router already avoids them. Offline, I would evaluate on a labelled set stratified by hard-query slices and report the quality-cost curve and calibration, not just average accuracy, then run an online A/B test with guardrails on hard-query slices and tail latency. The main failure modes are sending hard queries to the fast path, overflow when the reasoning path is saturated, and inconsistent answers across paths; mitigations are user override, escalation on low confidence or verifier disagreement, consistent prompts/decoding, and a capacity-aware fallback rather than silent degradation. After launch I would monitor routing mix, cost per request, and quality per slice, with alerts and rollback if hard-slice quality or tail latency degrades.

Corrected by an independent AI reviewer.

What a strong answer covers

  • Routing signals: query complexity, need for tools, explicit user intent, user tier and current capacity; router options from rules to a small classifier, within a tight latency budget.
  • Training signals such as user model switches, preferences and measured correctness, with awareness of feedback loops and selection bias.
  • Offline evaluation on a labelled set showing the quality–cost curve, then an online A/B test with guardrail metrics on hard-query slices.
  • Failure modes: sending hard queries to the fast path, overflow behaviour at capacity limits, inconsistent answers; mitigations such as user override and escalation on low confidence.
  • Monitors routing mix, cost per request and quality per slice after launch.

Common mistakes

  • Evaluating the router only on accuracy of its own labels instead of end-to-end answer quality and cost.

Follow-ups

  • How would you route mid-conversation when a simple chat turns into a hard problem?