DoorDash AI Team Cuts LLM Search Costs 98% With an MCP Search Gateway

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:

  1. Normalize the query so near-identical phrasings hit the same cache entry.
  2. Check the exact cache.
  3. Check the semantic cache, which matches on embedding similarity.
  4. Walk the provider fallback chain only if both caches miss.
  5. Map results into a shared title, URL and snippet schema.
  6. Write both cache layers, scoped per provider, with tuned time-to-live.
  7. 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 setNative accuracyNative cost / 1KDSG + Serper accuracyDSG cost / 1K
Retail, general non-food (N=7,988)93.40%$7.9093.90%$0.110
Tail, synthetic long-tail (N=2,335)87.62%$10.3787.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%.

Source link

Leave a Reply

Your email address will not be published. Required fields are marked *