# DoorDash DSG: Cut LLM Web Search Costs 98% Without Losing Accuracy

> Source: <https://explainx.ai/blog/doordash-dsg-decoupled-search-grounding-98-percent-llm-cost-2026?utm_source=rss&utm_medium=feed&utm_campaign=blog>
> Published: 2026-11-30 00:00:00+00:00

**Recommendation:** Unbundle web retrieval from the reasoning model behind an MCP gateway with swappable providers, and log search dollars and latency separately from reasoning tokens to measure search COGS per task.
More in the playbook "Controlling LLM cost": <https://wpnews.pro/playbooks/llm-cost>

**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](https://careersatdoordash.com/blog/how-doordash-reduced-llm-search-costs-by-98-without-losing-accuracy/?ref=explainx) and the companion arXiv report [Decoupling Search from Reasoning](https://arxiv.org/html/2606.18947v2?ref=explainx), summarized by [InfoQ](https://www.infoq.com/news/2026/11/doordash-decoupled-search/?ref=explainx). 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](https://explainx.ai/blog/lasagna-rag-compositionality-ibm-450-configurations-47-percent-predicted-17-realized-open-source-2026)** — 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:

1. Normalizes queries and provider parameters
2. Calls the selected **search backend**
3. Returns a **consistent schema** to the model regardless of vendor
4. 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](https://explainx.ai/blog/google-gemini-managed-agents-files-credentials-api-2026)**, 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](https://news.ycombinator.com/item?id=50703563&ref=explainx)) 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](https://explainx.ai/blog/doordash-several-hundred-orders-ai-agents-q3-earnings-tony-xu-agentic-commerce-reality-check-2026)**.

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](https://explainx.ai/blog/doordash-flux-cloud-agents-platform-august-2026)** 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](https://explainx.ai/blog/ag-ui-protocol-1-0-agent-user-interaction-copilotkit-github-trending-guide-2026)** 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](https://news.ycombinator.com/item?id=50703563&ref=explainx) is worth reading for **skepticism and analogies**, not as a second benchmark lab.

- **ex1fm3ta** ([comment 50704235](https://news.ycombinator.com/item?id=50704235&ref=explainx) ) 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](https://news.ycombinator.com/item?id=50705764&ref=explainx) ) quipped that**50× optimizations often mean you stopped an expensive default** , not magic — useful when pitching leadership.
- **quard8** ([comment 50705857](https://news.ycombinator.com/item?id=50705857&ref=explainx) ) noted the blog lists**older frontier model names** , suggesting the evaluation ran months before the**November HN spike** .
- **d3Xt3r** ([comment 50704892](https://news.ycombinator.com/item?id=50704892&ref=explainx) ) 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:

1. **Expose one MCP tool** (or internal RPC) named`web_search` with**provider, depth, and budget** fields.
2. **Normalize results** to HTML snippets, titles, and URLs in a**stable JSON shape** before they hit the model context.
3. **Meter provider invoices** per task ID and attribute them in your**[agent eval harness](https://explainx.ai/blog/prime-sandboxes-filesystem-checkpoints-fork-rollouts-agentic-rl-guide-2026)** .
4. **Keep native grounding** as`provider=native` for**FreshQA-class** routes.
5. **Add a shared cache** with explicit TTL and**source attribution** for compliance.

Teams training coding agents should pair this with **[RL environment datasets](https://explainx.ai/blog/hugging-face-hub-rl-environments-openenv-verifiers-guide-2026)** 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](https://explainx.ai/workshops)** 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](https://explainx.ai/blog/eu-ai-act-article-51-per-second-portuguese-croatian-flops-translation-error-arxo-2026)** 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:

1. **Does the gateway redact secrets** before they hit a third-party search API?
2. **Can you block search** on internal-only tasks while leaving it on for public catalog enrichment?
3. **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](https://news.ycombinator.com/item?id=50705299&ref=explainx)) 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](https://explainx.ai/blog/lasagna-rag-compositionality-ibm-450-configurations-47-percent-predicted-17-realized-open-source-2026)** before you add **paid search APIs** at all.

## Related reading

- **[DoorDash Flux](https://explainx.ai/blog/doordash-flux-cloud-agents-platform-august-2026)** — cloud agent guardrails at DoorDash scale
- **[dd-cli food ordering from the terminal](https://explainx.ai/blog/doordash-dd-cli-ai-food-ordering-july-2026)** — another DoorDash agent surface
- **[Agentic era roadmap](https://explainx.ai/blog/agentic-era-ai-future-2026-2030)** — where agent economics fit strategically
- **[Gemini managed agents APIs](https://explainx.ai/blog/google-gemini-managed-agents-files-credentials-api-2026)** — credentials patterns adjacent to MCP tools
- **[AG-UI protocol](https://explainx.ai/blog/ag-ui-protocol-1-0-agent-user-interaction-copilotkit-github-trending-guide-2026)** — standardizing agent-user events while you own retrieval

Reading gets you the idea. Building it with feedback gets you the skill.
