DoorDash reduced search-provider costs in its large language model (LLM)-powered query understanding system by more than 98% while maintaining comparable accuracy on production workloads1,2. The company achieved the reduction by building Decoupled Search Grounding (DSG), an MCP-compatible gateway that separates evidence retrieval from model reasoning so applications can switch search providers independently of the underlying model.
Native LLM search integrations bundle retrieval into a model provider's API, which restricts provider choice, result reuse, retrieval-depth controls, and cost visibility. Decoupled Search Grounding (DSG) exposes those capabilities through a shared interface instead of embedding search integrations inside individual agents. The gateway connects to third-party search providers Serper, Bright Data, Firecrawl, Exa, and Tavily, alongside native search capabilities from model providers including OpenAI and Anthropic. Teams onboard HTTP search providers using YAML-based adapters without altering application code.
Gateway architecture and caching
Each request routed through Decoupled Search Grounding (DSG) undergoes query normalization, exact and semantic cache lookups, and provider routing. Exact caching reuses identical queries, whereas semantic caching uses embeddings to match similar queries, and the gateway executes external searches only on cache misses. The system tries another configured provider whenever a primary provider fails or times out.
Decoupled Search Grounding (DSG) normalizes provider responses into a common format containing titles, URLs, and content snippets, keeping retrieved evidence separate from model-generated responses. The gateway returns evidence through structured tool responses, which reduces search-induced verbosity and preserves strict output formats such as JSON or Boolean values. Built-in telemetry tracks provider selection, cache outcomes, retrieval depth, latency, and cost across requests.
Production and benchmark performance
DoorDash evaluated Decoupled Search Grounding (DSG) across five models, three public question-answering benchmarks, and its production query intent understanding (QIU) workload. Search-provider costs dropped from $7.90 to $0.11 per 1,000 retail queries and from $10.37 to $0.146 per 1,000 long-tail queries. A warm-cache evaluation lifted the cache hit rate from 6.2% to 99.4%, cut average latency from 4,570 milliseconds to 1,465 milliseconds, and lowered search costs to $0.0045 per 1,000 queries.
Decoupled Search Grounding (DSG) paired with Gemini Flash and Serper reached 93.90% accuracy across 7,988 general retail queries, outperforming the 93.40% accuracy recorded by native Google search grounding. The gateway also scored 87.79% accuracy on 2,335 synthetic long-tail queries, compared with 87.62% for native search. Raising retrieval depth from two to six results increased SimpleQA accuracy from 78.7% to 84.9%, with diminishing gains above six results, while native search outperformed the gateway on the freshness-sensitive FreshQA benchmark. DoorDash cited multi-hop reasoning and third-party provider reliability as ongoing challenges, with planned updates covering adaptive provider routing, contract-aware output validation, and iterative retrieval for multi-source workloads.