Preparing your design workspace

Loading the problem and your latest saved attempt…

Design an Agent-Assisted Search Experience

Design a grounded search experience that decomposes complex questions, retrieves evidence, and returns cited answers with observable progress.

Problem statement

For this exercise, assume an authenticated user asks a multi-part natural-language question over a large, already-indexed document corpus.

The system may clarify the request, generate a bounded search plan, issue read-only searches, inspect retrieved passages, refine queries, and synthesize a final response whose important claims link to supporting passages.

Users should see useful progress, may cancel an active search, and can later reopen the durable result. The system must distinguish supported conclusions from missing evidence and must not present a generated claim as sourced when no retrieved passage supports it.

Assume the underlying document index and lexical or semantic retrieval APIs already exist; designing their internal indexing pipeline is outside scope. The agent may perform at most 12 retrieval or model steps and must enforce per-request time and cost budgets.

Custom user code, write-capable tools, unrestricted web access, collaborative editing, and model training are outside scope.

What to build

  1. A user can submit a complex question, answer a clarification when needed, observe progress, cancel active work, and reopen the durable outcome.
  2. The service can decompose a question into bounded read-only retrieval steps, refine queries from prior results, and track the evidence used by each step.
  3. The service returns a concise response with passage-level citations, coverage limits, and an explicit insufficient-evidence outcome when support is missing.
  4. A user can reconnect to ordered progress and retrieve the final answer, plan, cited evidence, and terminal status without restarting completed work.

At scale

  • For this exercise, assume peaks of 200 new searches per second and 10,000 concurrently active searches, with at most 12 retrieval or model steps per search.
  • For this exercise, target two seconds for the first durable progress event and 20 seconds p95 for a complete answer, while exposing a pending state for slower searches.
  • For this exercise, retain ordered progress, the final answer, and citation references for seven days, and tolerate at-least-once event delivery through stable event identifiers and sequence numbers.
  • For this exercise, an acknowledged search survives any single process or availability-zone failure without losing committed plan state, evidence references, or the terminal outcome.