DoorDash cut search-provider costs in its LLM-powered query understanding system by more than 98% while maintaining comparable accuracy on production workloads. Its Decoupled Search Grounding (DSG) gateway separates evidence retrieval from model reasoning, so applications can change search providers without changing the underlying model.
Native LLM search integrations bundle retrieval into a model provider’s API. DoorDash says that makes it harder to choose providers, reuse results, control retrieval depth, and see search costs. DSG gives agents a shared, MCP-compatible interface for search.
The gateway supports Serper, Bright Data, Firecrawl, Exa, and Tavily, along with native search from model providers including OpenAI and Anthropic. It converts results into a common format with titles, URLs, and content snippets. Retrieved evidence stays separate from model-generated answers.
Pratik Dhanave, an AI Architect at ClearRoute, described the architectural benefit in a LinkedIn post: “Reasoning models and retrieval infrastructure evolve at different speeds. Decoupling them makes grounding a reusable and observable platform capability rather than a vendor-controlled feature.”
Read nextGoogle adds a model training opt-out for Search Services HistoryThe gateway routes and caches searches
Each request goes through query normalization, then exact and semantic cache lookups. Exact caching reuses identical queries. Semantic caching uses embeddings to find similar queries. The gateway calls an external provider only on a cache miss and can try another configured provider if the first fails or times out.
Provider-specific caches have configurable time-to-live settings. YAML-based adapters let teams add HTTP search providers without changing application code. Telemetry records provider selection, cache outcomes, retrieval depth, latency, and cost. Structured tool responses also limit search-related verbosity and help preserve strict output formats, including JSON and Boolean values.
Consultant Analyst Jean-Pierre Palomba-Marin wrote in a LinkedIn post: “Its MCP-compatible architecture uses interchangeable search providers, semantic caching, and configurable retrieval to improve cost efficiency, latency, and reliability.”

DoorDash measured cost and accuracy
DoorDash evaluated DSG across five models, three public question-answering benchmarks, and its production query intent understanding workload. On 7,988 general retail queries, DSG with Gemini Flash and Serper reached 93.90% accuracy, versus 93.40% with native Google search grounding. On 2,335 synthetic long-tail queries, it reached 87.79%, versus 87.62% with native search.
Search-provider costs fell from $7.90 to $0.11 per 1,000 retail queries and from $10.37 to $0.146 per 1,000 long-tail queries. Those figures exclude model inference costs.
In a warm-cache evaluation, the hit rate rose from 6.2% to 99.4%. Average latency fell from 4,570 to 1,465 milliseconds, and search costs fell to $0.0045 per 1,000 queries. Increasing retrieval depth from two to six results raised SimpleQA accuracy from 78.7% to 84.9%, with diminishing gains beyond six.
Native search performed better on FreshQA, which tests freshness-sensitive questions. DoorDash also identified multi-hop reasoning and third-party provider reliability as remaining challenges. Its planned work includes adaptive provider routing, contract-aware output validation, and iterative retrieval for workloads that need evidence from multiple sources.



