DoorDash cut LLM search-provider spending more than 98% on its query-intent workload while matching or slightly beating native grounding accuracy, according to its engineering article and the companion arXiv report Decoupling Search from Reasoning, summarized by InfoQ. The mechanism is Decoupled Search Grounding (DSG): an MCP-compatible gateway that routes web retrieval through swappable providers while the reasoning model stays on your chosen API.
If you ship agents that call bundled web search on every turn, this is a reference design for unbundling retrieval, measuring search COGS per task, and keeping native search as one backend when freshness wins.
TL;DR: the numbers DoorDash published
| Workload | Native accuracy / search $ per 1K | DSG + Serper accuracy / search $ per 1K |
|---|---|---|
| QIU retail (N=7,988) | 93.40% / $7.90 | 93.90% / $0.110 |
| QIU long-tail synthetic (N=2,335) | 87.62% / $10.37 | 87.79% / $0.146 |
DoorDash states these rows use Gemini Flash as the reasoning model with Google Search grounding as the native baseline — one of the stronger bundled integrations available. Costs exclude model inference; only search-provider charges appear in the table.
On public benchmarks, DSG lands near native accuracy at roughly 10–30× lower search cost depending on provider, per the arXiv main results table. FreshQA, which stresses recency, still favors native search across five models — DoorDash is explicit that decoupling is not universal.
Globe with magnifier illustrating LLM web search routing through an MCP gateway
Why bundled LLM search gets expensive
Frontier APIs make grounding easy to turn on: one flag, one bill, one latency line item. That convenience hides vendor lock-in on retrieval pricing and makes it hard to reuse evidence across apps or cache page snapshots independently of the model.
DoorDash's query-intent understanding (QIU) system interprets ambiguous marketplace searches using catalog plus web evidence. At DoorDash scale, search spend per 1,000 agent calls becomes a product line, not a rounding error. DSG exists so engineers can:
- Pick BrightData, Serper, or native search per route
- Tune retrieval depth without retraining prompts per vendor
- Log search latency and dollars separately from reasoning tokens
- Share a warm cache across workloads that ask similar questions
The pattern rhymes with how teams already split embedding indexes from chat models — except here the split is live web retrieval, not vector DB ingest.
How DSG is wired (MCP gateway)
In DoorDash's diagram, the agent or orchestrator calls an MCP search tool exposed by DSG. The gateway:
- Normalizes queries and provider parameters
- Calls the selected search backend
- Returns a consistent schema to the model regardless of vendor
- Records cost and latency for ops dashboards
Because the interface is MCP-shaped, you can swap Claude, Gemini, or GPT-class reasoners without rewriting retrieval glue each time — the arXiv evaluation spans GPT-4o, GPT-4o-mini, Gemini 2.5 Flash, Gemini 2.5 Pro, and Claude Sonnet 4 on public QA sets.
If you already run Gemini Managed Agents with files and credentials, think of DSG as the optional web leg you own instead of the bundled search leg the vendor prices.
Production QIU: where the 98% headline comes from
The Hacker News spike (thread) centers on production QIU, not academic trivia.
DoorDash evaluates 7,988 general retail queries and 2,335 synthetic long-tail queries. Accuracy is the final resolved intent after the agent finishes — the same framing DoorDash uses in agentic commerce posts about third-party agent order volume.
The headline 98% is search-provider COGS, not total LLM spend. Your CFO still pays input and output tokens on the reasoning model. The win is that search used to dominate the per-query bill when native grounding priced like a premium add-on.
InfoQ's summary matches DoorDash: DSG+Serper slightly beats native accuracy on both QIU slices while search cost drops from dollars to cents per thousand queries.
Caching: the second lever after provider choice
DoorDash publishes a cold versus warm cache pass:
| Pass | Cache hit rate | Search $ / 1K | Avg latency |
|---|---|---|---|
| Cold | 6.2% | $0.7385 | 4,570 ms |
| Warm | 99.4% | $0.0045 | 1,465 ms |
A shared gateway cache means multiple agents warm the same keys — important if you run cloud agent platforms where many workers hit similar catalog questions.
Builders should treat cache policy as part of the search contract: TTL, query normalization, and PII redaction before you store snippets that later get replayed into prompts.
Public benchmarks: when native search still wins
DoorDash is careful not to oversell DSG:
- SimpleQA / HotpotQA: DSG gets near-native accuracy at fractional search cost with BrightData or Serper backends.
- FreshQA: native search leads on recency-sensitive questions — proprietary freshness stacks beat generic APIs on some tasks.
That matches how agent harnesses should expose routing policies, not a single global search toggle. Product teams can ship "cheap Serper for catalog QIU" and "native for news mode" behind one tool schema.
What developers are saying on Hacker News
The HN discussion is worth reading for skepticism and analogies, not as a second benchmark lab.
- ex1fm3ta (comment 50704235) asked how DSG differs from classical Elasticsearch retrieval — a fair reminder that not every grounding problem needs an LLM-native search SKU.
- golly_ned (comment 50705764) quipped that 50× optimizations often mean you stopped an expensive default, not magic — useful when pitching leadership.
- quard8 (comment 50705857) noted the blog lists older frontier model names, suggesting the evaluation ran months before the November HN spike.
- d3Xt3r (comment 50704892) argued DoorDash consumer search quality is already weak, so "without losing accuracy" is a low bar — product criticism, not a refutation of the table math.
We attribute those points to the commenters; DoorDash did not respond in-thread.
How to apply DSG ideas on your stack
You do not need DoorDash's codebase to copy the architecture:
- Expose one MCP tool (or internal RPC) named
web_searchwith provider, depth, and budget fields. - Normalize results to HTML snippets, titles, and URLs in a stable JSON shape before they hit the model context.
- Meter provider invoices per task ID and attribute them in your agent eval harness.
- Keep native grounding as
provider=nativefor FreshQA-class routes. - Add a shared cache with explicit TTL and source attribution for compliance.
Teams training coding agents should pair this with RL environment datasets only after reading quarantine flags on historical coding rows — DoorDash's paper is about search economics, not about swapping your entire agent trainer overnight.
Reading gets you the idea. Building it with feedback gets you the skill.
Limits DoorDash lists
The blog's limitations section matters for architects:
- Third-party vendors introduce uptime and ToS risk you do not have when search is bundled.
- Freshness gaps on general-purpose APIs can hurt news and inventory tasks.
- Evaluation models in the public section may lag current frontier SKUs — rerun numbers when you change reasoners.
None of that negates the QIU production row. It says routing should be conditional, which is how mature enterprise agent rollouts should be designed anyway.
Mapping DSG to your finance and compliance reviews
Procurement teams often approve one model SKU and discover later that search grounding is priced like a second meter tied to the same API key. DSG-style gateways give finance a search line item they can benchmark against Serper, Brave, Bing, or an internal crawl without reopening the model master agreement.
For regulated workloads, separate retrieval also helps data residency: you can log which URL snippets entered a prompt, attach retention policies to cached HTML, and prove no training use without trusting the model vendor's blanket statement. That is adjacent to how EU AI Act FLOPs tracking pushes teams to document compute and process — here the documentation target is evidence provenance for agent decisions.
Security reviewers should ask three questions before copying DoorDash:
- Does the gateway redact secrets before they hit a third-party search API?
- Can you block search on internal-only tasks while leaving it on for public catalog enrichment?
- What happens when a provider throttles — do you fail closed, fail over, or silently shrink context?
DoorDash's paper discusses fallbacks and configurable depth, but your threat model still owns the answers.
Cost sanity checks when you pitch leadership
Use DoorDash's split accounting when you build an internal ROI slide:
- Search $/1K tasks before and after gateway routing
- Reasoning $/1K tasks unchanged unless you also shrink prompts
- Latency p95 with cold versus warm cache
- Accuracy on a production-labeled set, not only public QA
Commenter iaaan on HN (50705299) noted these "we stopped doing something insane" posts are increasingly common as companies normalize agent bills. Whether you find that comforting or alarming, the method — publish tables, name providers, show routing — is what your platform team should copy.
If you are comparing DSG to RAG over your own index, remember DoorDash still needed live web for long-tail retail language. Your marketplace might get more lift from hybrid catalog plus crawl before you add paid search APIs at all.
Related reading
- DoorDash Flux — cloud agent guardrails at DoorDash scale
- dd-cli food ordering from the terminal — another DoorDash agent surface
- Agentic era roadmap — where agent economics fit strategically
- Gemini managed agents APIs — credentials patterns adjacent to MCP tools
- AG-UI protocol — standardizing agent-user events while you own retrieval
Reading gets you the idea. Building it with feedback gets you the skill.
