infoq.com via Hacker News

DoorDash's DSG Gateway Cuts LLM Grounding Costs by 98%

Inference RAG Agents ai-business

TL;DR

  • DSG cut DoorDash's retail LLM-search costs from $7.90 to $0.11 per 1,000 queries while holding 93.90% accuracy, matching native Google search at 93.40%.
  • Warm-cache hit rate climbed from 6.2% to 99.4%, pulling average latency from 4,570 ms to 1,465 ms and cached search cost to $0.0045 per 1,000 queries.
  • The MCP-compatible gateway lets apps swap Serper, Bright Data, Firecrawl, Exa, Tavily, OpenAI, or Anthropic as retrieval backends without changing the reasoning model.

DoorDash cut search-provider costs in its LLM-powered query understanding system by over 98% while holding accuracy on production workloads, by routing grounding through a gateway that separates evidence retrieval from model reasoning. The company's Decoupled Search Grounding (DSG), described in a post on InfoQ by Leela Kumili, is an MCP-compatible layer that treats search providers as interchangeable backends behind a stable interface. Those backends include Serper, Bright Data, Firecrawl, Exa, Tavily, and the native search features inside OpenAI and Anthropic models.

On 7,988 general retail queries, DSG paired with Gemini Flash and Serper hit 93.90% accuracy versus 93.40% for native Google search, while retail costs fell from $7.90 to $0.11 per 1,000 queries and long-tail costs from $10.37 to $0.146. Warm-cache evaluation told a sharper story: hit rate climbed from 6.2% to 99.4%, average latency fell from 4,570 to 1,465 milliseconds, and cached costs dropped to $0.0045 per 1,000 queries. Pushing retrieval depth from two to six results lifted SimpleQA accuracy from 78.7% to 84.9%, with diminishing gains beyond six.

"Reasoning models and retrieval infrastructure evolve at different speeds," Pratik Dhanave, an AI architect at ClearRoute, told InfoQ. "Decoupling them makes grounding a reusable and observable platform capability rather than a vendor-controlled feature." Consultant analyst Jean-Pierre Palomba-Marin framed the engineering trade differently, noting the architecture "uses interchangeable search providers, semantic caching, and configurable retrieval to improve cost efficiency, latency, and reliability."

Native search did win on one axis: DoorDash found that native search performed better on FreshQA, a benchmark focused on freshness-sensitive questions. Planned follow-on work, Kumili writes, includes adaptive provider routing, contract-aware output validation, and iterative retrieval for workloads requiring evidence from multiple sources. The piece is one of 21 RAG stories we have tracked in the last 90 days, several of them circling the same decoupling question Dhanave raises.