DoorDash engineers have published how they cut LLM web search costs by more than 98%. Their approach, DoorDash Decoupled Search Grounding (DSG), pulls web search out of the model provider’s API. Search instead runs behind a shared gateway compatible with the Model Context Protocol (MCP). In DoorDash’s production query intent workload, DSG matched or slightly beat native search accuracy.
TL;DR
- Scope: 1 MCP-compatible gateway, 5 pluggable search providers, plus native search as an option.
- Runs on: DoorDash’s internal GenAI platform, in front of any reasoning model. Not open-sourced; hardware not disclosed.
- Performance: Matches native search in production and lands near it on public QA benchmarks.
- Best: 93.90% vs 93.40% native on 7,988 retail queries, at $0.110 vs $7.90 per 1K.
What is DoorDash Decoupled Search Grounding?
DSG is a shared search gateway from DoorDash that separates LLM reasoning from web retrieval. With native search, the provider’s API runs its own search stack inside generation. That breaks down when the model call is one node in a pipeline.
DoorDash lists 3 problems with native search:
- Control: Swapping models or reacting to a vendor price change means touching the model integration.
- Reuse: Two agents asking the same question pay for 2 searches.
- Observability: Per-query cost and latency stay invisible.
How does the MCP search gateway work?
Every agent and reasoning model calls 1 MCP-compatible interface. Behind it sits a registry of pluggable backends: Serper, Bright Data, Firecrawl, Exa and Tavily. Native search can be registered as 1 more provider.
Each query follows 7 steps:
- Normalize the query so near-identical phrasings hit the same cache entry.
- Check the exact cache.
- Check the semantic cache, which matches on embedding similarity.
- Walk the provider fallback chain only if both caches miss.
- Map results into a shared title, URL and snippet schema.
- Write both cache layers, scoped per provider, with tuned time-to-live.
- Return a structured tool response.
New HTTP providers onboard through a YAML adapter, with no application code changes. Every request logs provider, cache outcome, retrieval depth, latency and cost.
Why does native search break output formats?
Many DoorDash LLM calls feed JSON parsers, enums or Booleans. With native search on, models often ignore ‘answer only’ instructions. On HotpotQA, Claude Sonnet 4’s native-search answers violated that instruction 78.1% of the time.
In one example, native search returned 245 characters opening with ‘Based on the search results’. DSG returned ‘Yes.’ Only one was parseable. DSG reduces this drift because evidence arrives as a tool response, outside the generation stream.
How does DSG compare with native search on benchmarks?
DoorDash tested 5 models: GPT-4o, GPT-4o-mini, Gemini 2.5 Flash, Gemini 2.5 Pro and Claude Sonnet 4. The public benchmarks were HotpotQA, SimpleQA and FreshQA.
- DSG configurations scored 83% to 86% accuracy, versus 87.7% for native search.
- DSG reached native-level accuracy at roughly 10 to 30 times lower cost.
- DSG with BrightData landed within 1.6 points of native at roughly 11 times lower cost.
- DSG with Serper cost under $0.70 per 1,000 queries.
Production results: query intent understanding
The production test used DoorDash’s query intent understanding (QIU) system, which maps ambiguous searches to shopping intents. Gemini Flash was the reasoning model. The native baseline used Gemini’s integrated Google search grounding. Costs cover search-provider charges only, not model inference.
| Evaluation set | Native accuracy | Native cost / 1K | DSG + Serper accuracy | DSG cost / 1K |
|---|---|---|---|---|
| Retail, general non-food (N=7,988) | 93.40% | $7.90 | 93.90% | $0.110 |
| Tail, synthetic long-tail (N=2,335) | 87.62% | $10.37 | 87.79% | $0.146 |
Both sets show a cost cut of about 98.6% (Marktechpost calculation from DoorDash’s table).
What do caching and retrieval depth add?
A warm shared cache raised the hit rate from 6.2% to 99.4%. Average latency fell from 4,570 ms to 1,465 ms, a 68% cut. Search cost dropped from $0.7385 to $0.0045 per 1,000 queries.
Retrieval depth is now a setting. On SimpleQA across 3 models, going from 2 to 6 results lifted accuracy from 78.7% to 84.9%. Going to 10 results added only 0.6 points, reaching 85.5%.
DSG vs native search tools: comparison table
| Feature | DoorDash DSG | Gemini: Grounding with Google Search | OpenAI: web search tool | Claude: web search tool |
|---|---|---|---|---|
| Type | Internal MCP-compatible gateway (source) | Built-in API tool | Built-in API tool | Built-in API tool |
| Search fee per 1K | $0.110 to $0.146 measured with Serper (QIU) | $14 per 1K search queries (Gemini 3.x, after 5,000 free/month); $35 per 1K grounded prompts (Gemini 2.5) | $10 per 1K calls plus search content tokens | $10 per 1K searches plus result tokens |
| Swap search backend | Yes, via YAML config | No, Google Search only | Not disclosed | Not disclosed |
| Fallback across providers | Yes, configured chain | Not disclosed | Not disclosed | Not disclosed |
| Shared cross-agent cache | Exact + semantic, 99.4% warm hit rate | Not disclosed | Not disclosed | Not disclosed |
| FreshQA (DoorDash test) | Trailed native on all 5 models | Beat DSG | Beat DSG | Beat DSG |
| Output-contract drift (DoorDash test) | Structured tool response, less drift | Not disclosed | Not disclosed | 78.1% “answer only” violations (Sonnet 4, HotpotQA) |
| Availability | Internal, not open-sourced | Public API | Public API | Public API |
Key Takeaways
- DSG moves web search out of the model API, behind 1 MCP gateway.
- Production search cost fell from $7.90 to $0.110 per 1K queries.
- Accuracy held: 93.90% vs 93.40% on 7,988 retail queries.
- A warm shared cache cut latency 68% and hit 99.4% reuse.
- Native search still wins freshness-sensitive questions.
Check out the full DoorDash engineering post and the QIU case study on arXiv. You can check the deployment options and specs here through our GPULeaderboard.com chrome extension.
Also, feel free to follow us on Twitter and donโt forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.
Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us
Asif Razzaq is the CEO of Marktechpost AI Media Inc.. As a visionary entrepreneur and engineer, Asif is committed to harnessing the potential of Artificial Intelligence for social good. His most recent endeavor is the launch of an Artificial Intelligence Media Platform, Marktechpost, which stands out for its in-depth coverage of machine learning and deep learning news that is both technically sound and easily understandable by a wide audience. The platform boasts of over 2 million monthly views, illustrating its popularity among audiences.







