Preparing your design workspace

Loading the problem and your latest saved attempt…

Design Intent Understanding While a User Types

Infer a safe, calibrated task intent from changing partial input without confusing intent with text completion.

Problem statement

For this exercise, assume an application has one search-and-action box. As a signed-in user types, the product predicts whether the current partial text expresses intent to find information, navigate to an entity, start an action, or is still unclear. For example, 'open my invoices' may be navigation while 'how were invoices calculated?' asks for information. The UI may show a short intent card that lets the user choose a destination, but it must never execute an action from a prediction alone. The goal is to understand the user's current task, not to complete their text or return prefix-matching phrases. The prefix may be revised, deleted, or replaced rapidly; an older prediction must not overwrite one for newer input. Assume the service may use the current application surface and locale, but not private message history or cross-user context. An authorized product team maintains an intent taxonomy and approved destinations. Design a feedback and labeling path, offline model and calibration evaluation, low-latency online inference, a safe unknown outcome, and rollout monitoring. The numbers below are practice assumptions, not interview-reported constraints. Building a search index, executing downstream actions, and generating text completions are outside scope.

What to build

  1. For a current partial input, return a calibrated intent category and approved destination candidate, or an explicit unknown outcome, without completing the text or taking action.
  2. The UI can discard a stale response after typing, deletion, or surface change and can show only an intent for its latest visible input.
  3. The product team can collect consented selections and corrections, maintain a versioned intent taxonomy and labels, evaluate models offline, and roll out or roll back an approved release.

At scale

  • For this exercise, assume up to 3,000 inference requests per second at peak after client-side debouncing, with a server p95 target of 120 milliseconds for a cached or model-scored response.
  • For this exercise, a signed-in session may send a new prefix every 150 milliseconds; the service must distinguish input revision and surface version so delayed results never replace the current intent card.
  • For this exercise, on a reviewed holdout of prefixes at least three characters long, keep wrong action-intent or destination cards below 0.5 percent of displayed action cards while showing a correct action card for at least 50 percent of clearly labeled action-intent prefixes. Report both rates by locale and input length; allow unknown for insufficient evidence.
  • For this exercise, retain consented training events for 30 days and aggregate quality metrics for 90 days; raw prefixes must not appear in ordinary service logs.