Thursday, December 3, 2026 | London 11°C · Drizzle
DailyGlimpse

AI

DoorDash Slashes AI Search Costs by 98% with New Gateway System

DoorDash slashed AI search costs by 98% with a new system—accuracy intact.

MarkTechPost 5 min read

DoorDash Slashes AI Search Costs by 98% with New Gateway System

DoorDash has quietly revolutionized how its AI systems handle web searches—cutting costs by a staggering 98% while maintaining accuracy. The company’s engineering team unveiled DoorDash Decoupled Search Grounding (DSG), a novel approach that strips search operations out of the model provider’s API and routes them through a shared gateway. This shift not only trims expenses but also solves long-standing issues with control, reuse, and visibility in AI-driven search workflows.

“Native search often breaks output formats—models ignore instructions like ‘answer only’ 78% of the time. DSG keeps evidence separate from generation, reducing drift.” — DoorDash engineering team

The Problem with Native Search

Traditional AI search models rely on the provider’s integrated search stack, which bundles retrieval and reasoning into a single API call. This approach creates three major headaches:

  • Control is lost: Switching models or reacting to price hikes requires rewriting integration code.
  • Reuse is nonexistent: Duplicate queries from different agents trigger redundant searches, inflating costs.
  • Observability is opaque: Per-query costs and latency remain hidden behind the API’s black box.

DoorDash’s DSG system addresses these flaws by moving search behind a single, Model Context Protocol (MCP)-compatible gateway. This gateway acts as a middleman, routing queries to one of five pluggable search providers—Serper, Bright Data, Firecrawl, Exa, or Tavily—or even falling back to native search if needed.

How DSG Works: A 7-Step Pipeline

Every query processed by DSG follows a meticulous workflow designed to maximize efficiency and accuracy:

  1. Normalization: The system standardizes phrasing to ensure near-identical queries hit the same cache entry.
  2. Exact cache check: The query is matched against a precise cache of previous results.
  3. Semantic cache check: If no exact match exists, the system uses embedding similarity to find relevant cached answers.
  4. Provider fallback: Only if both caches miss does the system query external providers in a predefined order.
  5. Result mapping: Retrieved data is formatted into a consistent schema with titles, URLs, and snippets.
  6. Caching: Both exact and semantic caches are updated with tuned time-to-live settings, scoped per provider.
  7. Response: The structured tool response is returned to the reasoning model.

New providers can be onboarded via a YAML adapter, eliminating the need for application code changes. Every request logs critical metrics like provider usage, cache outcomes, retrieval depth, latency, and cost—giving engineers unprecedented visibility.

Why Native Search Fails on Output Formats

Many of DoorDash’s AI systems rely on structured outputs—JSON, enums, or Booleans—to parse results reliably. Native search, however, often disrupts this flow. In tests with Claude Sonnet 4 on the HotpotQA benchmark, native search violated ‘answer-only’ instructions 78.1% of the time. One example saw native search return 245 characters starting with “Based on the search results”, while DSG’s response was simply “Yes.”—the latter being trivially parseable.

DSG mitigates this issue by treating search results as tools, not part of the generation stream. This separation ensures evidence arrives in a format the model can trust, reducing drift and improving reliability.

Benchmark Showdown: DSG vs. Native Search

DoorDash evaluated DSG against native search across five models—GPT-4o, GPT-4o-mini, Gemini 2.5 Flash, Gemini 2.5 Pro, and Claude Sonnet 4—using public benchmarks like HotpotQA, SimpleQA, and FreshQA. The results were striking:

  • DSG configurations achieved 83% to 86% accuracy, trailing native search’s 87.7% but at a fraction of the cost.
  • DSG with BrightData came within 1.6 points of native accuracy while costing 11 times less.
  • DSG with Serper dropped costs to under $0.70 per 1,000 queries.

In production tests using DoorDash’s Query Intent Understanding (QIU) system—designed to map ambiguous searches to shopping intents—DSG matched native search’s accuracy while slashing costs by 98.6%:

Evaluation Set Native Accuracy Native Cost / 1K DSG + Serper Accuracy DSG Cost / 1K
Retail (7,988 queries) 93.40% $7.90 93.90% $0.110
Tail (2,335 queries) 87.62% $10.37 87.79% $0.146

The Power of Caching and Retrieval Depth

A warm shared cache transformed DSG’s performance:

  • Cache hit rate soared from 6.2% to 99.4%, drastically reducing redundant searches.
  • Latency plummeted from 4,570 ms to 1,465 ms, a 68% reduction.
  • Search cost per 1,000 queries fell from $0.7385 to $0.0045.

Retrieval depth also plays a key role. On SimpleQA, increasing results from 2 to 6 improved accuracy from 78.7% to 84.9%, while adding 10 results yielded only a 0.6-point boost to 85.5%. This suggests diminishing returns beyond a certain threshold.

DSG vs. Native Search: A Side-by-Side Comparison

Feature DSG (DoorDash Gateway) Native Search (Gemini 3.x) Native Search (Gemini 2.5) Native Search (Other Providers)
Search fee per 1K $0.110–$0.146 $14 (after free tier) $35 (grounded prompts) $10–$35 (varies by provider)
Swap search backend Yes (YAML config) No (Google Search only) Not disclosed Not disclosed
Fallback across providers Yes (configurable) No No No
Shared cross-agent cache Yes (99.4% warm hit rate) No No No
FreshQA performance Trailed native on all 5 models Beat DSG Beat DSG Beat DSG
Output-contract drift Minimal (structured tool response) Not disclosed Not disclosed 78.1% violations (Sonnet 4, HotpotQA)
Availability Internal (not open-sourced) Public API Public API Public API

The Road Ahead

While DSG delivers dramatic cost savings and efficiency gains, native search still holds an edge in freshness-sensitive queries. DoorDash’s engineers emphasize that the system is designed for internal use, with no plans to open-source the code. However, the principles behind DSG—decoupling, caching, and provider flexibility—could inspire broader adoption across the AI industry.

For teams grappling with ballooning AI search costs, DoorDash’s approach offers a compelling blueprint: separate retrieval from reasoning, share resources, and regain control over your AI stack.

React

More on: AI Cost Reduction Strategies DoorDash AI Engineering DoorDash Decoupled Search Grounding DoorDash Query Intent Understanding Large Language Model Search Optimization Model Context Protocol