DoorDash's engineering team has published a reference design for Decoupled Search Grounding (DSG), an MCP-compatible gateway that pulls web retrieval out of the reasoning model's API call and routes it through swappable search providers. On the company's production query-intent workload, search-provider spend fell more than 98% while accuracy held at or slightly above the bundled baseline.
The published rows are specific rather than promotional. Across 7,988 general retail queries, native Google Search grounding behind Gemini Flash scored 93.40% at $7.90 per thousand queries. The DSG path with Serper scored 93.90% at $0.110. A second synthetic long-tail slice of 2,335 queries moved from 87.62% at $10.37 to 87.79% at $0.146. Those figures exclude reasoning-model inference on both sides, which is the only fair way to read the headline.
Why bundled grounding breaks at scale
Native search is convenient because it collapses retrieval, reasoning, and billing into one call. That same collapse is the problem once an agent runs a multi-step loop. Search latency and search dollars land inside the model invocation, so a per-turn tool call silently becomes the dominant line item on the bill.
DoorDash's intent system, which interprets ambiguous marketplace queries using catalog data plus live web evidence, hits this wall directly. At that volume, a few cents per thousand lookups turns into a budget category with its own owner.
There are two secondary costs that rarely show up in a vendor deck. First, output-format drift: mixing retrieved snippets with generated structure increases the rate of malformed responses, which downstream parsers then have to absorb. Second, lock-in: retrieval pricing and retrieval behavior both move with the model vendor, so a routing change becomes a migration project.
Inside the gateway
DSG inverts the ownership. Agents call a single MCP tool, and the gateway normalizes the query, selects a backend, and returns one stable schema regardless of which vendor answered. The provider registry ships with Serper, Bright Data, Firecrawl, Exa, and Tavily, with native model search retained as a fallback route. New HTTP services attach through declarative YAML adapters, so adding a provider does not require touching application code.
Because the interface is MCP-shaped, the reasoning layer becomes replaceable too. DoorDash evaluated GPT-4o, GPT-4o-mini, Gemini 2.5 Flash, Gemini 2.5 Pro, and Claude Sonnet 4 against HotpotQA, SimpleQA, and FreshQA without rewriting retrieval glue between runs.
Observability is treated as part of the contract rather than an afterthought. Every request logs the provider used, cache status, retrieval depth, latency, and cost, which is what makes per-task attribution possible in an evaluation harness.
The cache is the second lever, and the gap is wider than provider choice. A cold pass showed a 6.2% hit rate, $0.7385 per thousand queries, and 4,570 ms average latency. A warm pass reached 99.4% hits, $0.0045 per thousand, and 1,465 ms. That is roughly a 68% latency reduction and a two-order-of-magnitude cost cut from caching alone, since many agents ask near-identical catalog questions.
Where the design stops working
DoorDash is unusually explicit that decoupling is not universal. On FreshQA, which stresses recency, native search still wins across all five models. Proprietary freshness stacks beat general-purpose retrieval APIs on time-sensitive questions, so the sensible policy is conditional routing: cheap provider for catalog intent, native grounding for news and inventory.
Third-party providers also introduce uptime and terms-of-service exposure that a bundled search leg does not have. Evaluation models in the public section already lag current frontier SKUs, so the numbers need rerunning whenever the reasoning layer changes.
For architects, the transferable idea is narrower than the headline. Retrieval should be a metered, replaceable dependency with its own budget, its own cache policy, and its own failure mode, not a flag inside someone else's API call.
Comments