DoorDash's search gateway cuts QIU search costs by over 98%
DoorDash's engineering blog describes Decoupled Search Grounding (DSG), a shared gateway compatible with the Model Context Protocol (MCP). It sits between DoorDash's agents, the reasoning model and a registry of pluggable search backends: Serper, BrightData, Firecrawl, Exa and Tavily. Native search from the model provider can be registered as one more backend behind the same interface. DoorDash built it for its query intent understanding (QIU) system, which uses catalog and web evidence to interpret ambiguous marketplace searches. One example: for the query "450 north", the ungrounded model classified it as a restaurant, while catalog evidence and web search identified a craft brewery and the system resolved the intent to Alcohol.
The post says native search made grounding easy to switch on but kept retrieval decisions inside the model provider's API. DoorDash names three production problems: control (no seam between which model reasons and which backend grounds it), reuse (two agents asking the same question pay for two searches) and observability (per-query cost and latency are invisible, and enabling search breaks strict output contracts).
The contract problem is what DoorDash calls search-induced verbosity. Many of its LLM calls are intermediate nodes whose output is parsed as JSON, matched against an enum or read as a Boolean. Without search, models follow "provide only the final answer" instructions. With native search they often do not. In a building-height comparison, native search returned 245 characters opening with "Based on the search results", while DSG returned three characters, "Yes." Both were correct, but only one was parseable. On HotpotQA, Claude Sonnet 4's native-search answers violated an explicit answer-only instruction 78.1% of the time by opening with explanatory framing. DoorDash did not see the same pattern with DSG, where evidence comes back as a structured tool response instead of inside the generation stream.
Each request follows a fixed lifecycle: normalize the query, check the exact cache, check the semantic cache (reuse a prior result if its embedding is similar enough), and walk the provider fallback chain only if both caches miss. Timeouts and errors move the request to the next provider. Results are normalized into a shared title, URL and snippet schema, written to both cache layers scoped per provider with a time-to-live tuned to how fast the answer goes stale, and returned as a structured tool response. Every step emits telemetry on branch taken, provider, latency and cost. New HTTP providers onboard through a YAML adapter covering endpoint, request template, response mapping and cost metadata, with no application code changes.
For results, DoorDash evaluated DSG against native search on five models (GPT-4o, GPT-4o-mini, Gemini 2.5 Flash, Gemini 2.5 Pro, Claude Sonnet 4), three public QA benchmarks and its QIU production workload. DSG with BrightData landed within 1.6 accuracy points of native search at roughly 11 times lower cost. DSG with Serper, described as the cheapest configuration that still clearly beats no search, costs under 70 cents per 1,000 queries.
On QIU, the test set was 7,988 general non-food retail queries and 2,335 synthetic long-tail queries. With Gemini Flash as the reasoning model, DSG+Serper scored 93.90% against native search's 93.40% on Retail, and 87.79% against 87.62% on Tail, with search costs down by more than 98%. The costs cover search-provider charges only and exclude model inference. The native baseline was Gemini Flash with integrated Google search grounding, which the authors call one of the strongest native integrations available.
Caching helped further. A warm-cache pass raised the hit rate from 6.2% to 99.4% compared with the cold-cache pass, cut average latency by 68% and lowered search cost per 1,000 queries by more than 99%. On SimpleQA across three models, raising retrieval depth from 2 to 6 results lifted average accuracy from 78.7% to 84.9%, a 6.2-point gain; going to 10 results added only 0.6 points, to 85.5%.
Native search still won where freshness mattered. On FreshQA, which focuses on recency-sensitive questions, it outperformed DSG across all five models. DoorDash's conclusion is not that grounding should always be decoupled, but that the backend should be a routing decision, with native search as one option. The listed limitations: DSG depends on third-party vendors for stability, latency and data quality, and their pricing can shift the measured trade-off; multi-hop reasoning benefits less than single-hop lookup (on HotpotQA, search of either kind gave modest gains); and search-induced verbosity is mitigated, not solved. Next steps are adaptive routing that learns depth and provider per query, contract-aware output validation, and iterative retrieval for multi-hop workloads.
Key facts
- In DoorDash's QIU evaluation, DSG with Serper scored 93.90% on Retail (native search: 93.40%) and 87.79% on Tail (native: 87.62%), while cutting search costs by more than 98%. Costs cover search-provider charges only, not model inference.
- The test set was 7,988 general non-food retail queries and 2,335 synthetic long-tail queries, with Gemini Flash as the reasoning model and Gemini Flash with Google search grounding as the native baseline.
- Across five models and three public benchmarks, DSG with BrightData came within 1.6 accuracy points of native search at roughly 11 times lower cost; DSG with Serper costs under 70 cents per 1,000 queries.
- A warm cache raised the hit rate from 6.2% to 99.4%, cut average latency by 68% and lowered search cost per 1,000 queries by more than 99%.
- Native search won on FreshQA across all five models, and DoorDash says DSG does not make native search obsolete: the backend should be a per-workload routing decision.
Why it matters
Search grounding is easy to switch on and hard to control once an LLM call is one node in a pipeline. DoorDash's case is that pulling retrieval out of the model provider's API gives a team control over provider choice, caching, retrieval depth and cost, and makes search spend visible per query. The reported result for its QIU workload is that accuracy held (93.90% versus 93.40% on Retail) while search-provider costs fell by more than 98%. It also documents a practical failure of native search: in 78.1% of Claude Sonnet 4's HotpotQA answers, the model ignored an answer-only instruction, which matters when output feeds a JSON parser or an enum match.
Who it affects
Mainly teams that run LLM calls inside pipelines or multi-agent systems and pay for search on many calls, especially where outputs must follow a strict format. Platform teams that want one place to set grounding policy for every agent are the target of the design. Teams whose questions are mostly recency-sensitive are affected differently, since native search outperformed DSG on FreshQA for all five models.
How to use it
The post does not say DSG is open-sourced or available to others, so the takeaway is the pattern rather than a product. The pattern: put search behind a shared MCP-compatible gateway; normalize queries; check an exact cache and then a semantic cache before calling a provider; configure a provider fallback chain; return results as a structured tool response with title, URL and snippet; and log provider, cache outcome, depth, latency and cost per query. DoorDash's retrieval-depth data suggests a default of around 6 results on SimpleQA (78.7% at 2, 84.9% at 6, 85.5% at 10) and treats depth as something to trade against latency or cost. It also recommends choosing the backend per workload, keeping native search as an option where freshness matters more than control.
How solid is it
This is a vendor engineering post from DoorDash describing its own system and its own evaluation, so the numbers are self-reported. The tables and figures are not reproduced in the text, and the absolute dollar cost of native search per 1,000 queries is not stated. The 98% figure covers search-provider charges only, applies to the QIU evaluation with Gemini Flash as the reasoning model, and is not a claim that DoorDash's total LLM bill fell by 98%. The roughly 11 times cost reduction with BrightData is a separate measurement. The accuracy gaps on QIU are small (0.5 points on Retail, 0.17 points on Tail), which the post reads as matching native search. The latency cut of 68% is warm cache versus cold cache within DSG, not DSG versus native search.
Risks and caveats
DoorDash lists its own limits. DSG makes the team depend on third-party vendors for stability, latency and data quality, and vendor pricing can shift the measured trade-off, so the post says the durable result is the interface, not the price point. Multi-hop reasoning benefits less than single-hop lookup, and deep reasoning likely needs iterative retrieval loops rather than one call. Search-induced verbosity is mitigated, not solved; catching it systematically needs contract-aware validators at the gateway. Native search beat DSG on recency-focused FreshQA, and the post notes provider search stacks have freshness and indexing advantages that general-purpose search APIs do not always match. The text does not say how many queries DoorDash serves through DSG in production, nor that it has been fully rolled out; it describes an evaluation on a production workload.
“The broader engineering lesson is to make grounding an explicit interface that teams can evaluate and change as their requirements evolve.”
— DoorDash engineering blog