← Back to writing

The Economics of Intelligence · December 2, 2026

LLM Web-Search Optimization: DoorDash Cut Search Costs 98%

DoorDash cut web-search cost from $7.90 to $0.11 per 1,000 queries by taking search out of the model provider's hands. The saving came from ownership, not a smarter model.

DoorDash reduced web-search cost from $7.90 to $0.11 per 1,000 queries, with accuracy that matched native search on its own workloads. The saving applies to search only, not to the model's own cost, and the figures come from DoorDash's paper. Most of the saving came from choosing a cheaper search provider; caching contributed an additional reduction. The paper estimates that split from observed search usage and the provider's list price, rather than measuring it directly. The lesson is that search, caching and retrieval are separate economic decisions, and many AI teams leave them inside the provider's black box.

Imagine an AI assistant that answers product questions. To stay accurate, it looks things up on the web before it replies. Many providers bundle that search into the model service. The invoice may show a line for search calls, but the line does not show which provider ran the search, what it retrieved, or whether the same query ran twice. Nobody asks what each search cost.

DoorDash asked.

What DoorDash found. DoorDash had two problems with the provider's built-in search. It could not see which search ran, what it returned, or what it cost, and it could not choose a cheaper search service. If two parts of the system asked the same question, it paid twice. The second problem was output format. Many calls feed a program that needs a one-word answer like "Yes." With search switched on, the model began writing "Based on the search results..." and used 245 characters where one word was needed. The paper presents this as a risk diagnostic, not proof that built-in search always does it. The answer was right, but the program could not read it.

What DoorDash built. It built Decoupled Search Grounding (DSG), a gateway between the application and the model, described in DoorDash's engineering write-up and summarized by InfoQ. Think of it as a traffic controller. When a question arrives, the DSG layer:

  • normalizes the query;
  • checks whether the same or a very similar question was already answered, and reuses that result;
  • routes cache misses through a provider fallback chain, so another search service takes over if one is down;
  • returns a structured result to the model, so the answer stays short;
  • records what every search costs.
Diagram of DoorDash's Decoupled Search Grounding gateway. An application question passes through normalize, cache check, provider chain and structured result before reaching the model.
DSG sits between the application and the model. The "traffic controller" label is an analogy, not DoorDash's wording. Source: DoorDash paper, arXiv:2606.18947.

How the pieces fit. Caching and retrieval are two different controls, and each asks a different question. Retrieval policy asks: "Do I need outside information?" Caching asks: "Do I already have it?" Search should run only when outside information is needed and no safe cached result exists. If no outside information is needed, the model answers alone. If it is needed and a safe cached result exists, reuse it. If not, call the search provider, then the model.

DoorDash's DSG primarily covers the cache and search-routing stages. It determines whether a previous result can be reused and, if not, which search provider to call. It then passes a structured result to the model. The separate question of whether retrieval is needed at all can be implemented ahead of a gateway like DSG. DoorDash did not report such a layer.

The result, with limits. DoorDash compared Google's built-in search grounding with DSG, which used Gemini Flash and the Serper search service. Before any cache reuse, DSG cut Retail search cost from $7.90 to about $0.13 per 1,000 queries, a 58.7× reduction. Caching, with a 14.9% hit rate in production, took it to $0.11. On the synthetic long-tail set, provider choice gave 69.6× and caching 1.02×. DSG did not search less often than built-in search (26.9% vs 22.5% of Retail queries). The saving came from the cheaper provider.

Accuracy matched built-in search on both DoorDash sets, with no statistically detectable difference on the paired Tail test. Public benchmarks were more mixed. The cheapest Serper setup scored 83.3% on SimpleQA against 87.7% for built-in search, and built-in search led on FreshQA.

Test setQueriesBuilt-in search: accuracyDSG + Serper: accuracySearch cost per 1,000 queries
DoorDash Retail7,98893.4%93.9%$7.90 to $0.11
DoorDash Tail (synthetic)2,33587.62%87.79%$10.37 to $0.146
SimpleQA (public, five-model mean)public benchmark87.7%83.3%$20.00 to $0.67
FreshQA (public, five-model mean)public benchmark72.6%67.3%$20.00 to $0.66

The public-benchmark rows forced search on and disabled cache reuse, so they show the effect of provider choice only. Costs are search costs per 1,000 queries and exclude model inference.

Two cards comparing built-in search grounding at $7.90 per 1,000 queries and 93.4% accuracy with DSG using Gemini Flash and Serper at $0.11 per 1,000 queries and 93.9% accuracy.
Retail evaluation, 7,988 queries. Search cost only; model inference is excluded. Source: DoorDash paper, arXiv:2606.18947.

Four limits matter:

  • These are DoorDash's own evaluations, and the datasets are proprietary.
  • The Tail set is synthetic, not production traffic.
  • The figures cover search cost only, not model inference.
  • Built-in search did better on recent-news questions.

Caching decides whether to reuse a previous answer. Every safe cache hit avoids a new search and lowers cost. In a controlled replay of 500 identical queries, the paper reports the cache hit rate rising from 6.2% to 99.4%, pass cost falling from $0.7385 to $0.0045, and latency falling 68%. Treat this as a best-case ceiling. In production, caching added only 1.22× on Retail and 1.02× on Tail.

Three cards from a controlled replay of 500 identical queries: cache hit rate up from 6.2% to 99.4%, pass cost down from $0.7385 to $0.0045, and average latency down 68%.
Controlled replay of 500 SimpleQA queries, cold versus warm cache. A best-case ceiling, not live traffic. Source: DoorDash paper, arXiv:2606.18947.

But reuse is only valuable if the old answer is still acceptable. A bad cache saves money and reduces quality. Research on semantic caching suggests that simple similarity scores are often poor indicators of safe reuse. The metric that matters is not the cache-hit rate. It is the accepted-answer rate. The earlier essay Caching does not automatically reduce AI cost makes the same point for prompt caching.

Retrieval policy decides whether to search at all. Many AI systems search by default, but every search adds cost, latency and complexity. A recent study found that retrieval often provided little benefit in its test cases. The research focused on math problems rather than product search, so the results may not apply directly to your workload. The broader lesson is simple: before making search cheaper, decide whether a search is needed in the first place. Search is billed as a separate usage item, so every unnecessary search is a cost you can avoid. The same logic appears in 10 Tokens Asked. 6,000 Tokens Sent., which looks at what a request actually needs to carry.

The industry is making search more visible. DoorDash's DSG treats search as a separate service with its own cost and performance metrics. Other companies are moving in the same direction. In a 2024 interview, Walmart's chief architect reported that semantic caching on tail e-commerce queries achieved roughly a 50% hit rate, suggesting that avoiding unnecessary searches can become a meaningful optimization. Meanwhile, Perplexity prices web search as a separate tool invocation, and other vendors list it as a separate price too.

Vendors publish web-search prices as a separate line. List prices, checked Dec 2, 2026:

ProviderList priceBilled perOther charges and notes
OpenAI$10 per 1,000callSearch content tokens at model rates
Anthropic$10 per 1,000searchStandard token costs for search content
Google (Gemini 3+)$14 per 1,000search query5,000 free a month; one request can trigger several queries
xAI$5 per 1,000callX Search billed separately, per item
AWS (AgentCore)$7 per 1,000query5,000 free a month
Perplexity (Fast Search)$1 per 1,000searchInput tokens
Microsoft (Grounding with Bing)$14 per 1,000transactionListed on the Bing APIs page

Prices are vendor-published list prices and can vary by product tier, region, commitment, and usage; they exclude model-inference charges unless stated.

A separate price is not the same as visibility. A list price tells you the rate. Only your own logs tell you which provider ran each search, what it retrieved, and how often the same query repeated.

The decision rule. Treat search as a metered dependency with an owner. Measure cost per accepted answer, including search, retries, cache misses and review. Set a quality floor first. Compare the same workload at the same quality floor. DoorDash's $7.90 baseline is observed cost, not a list price, so check your own baseline. Test recent-news questions separately, because that is where DoorDash's built-in search still won. Move search out of the provider only when the numbers hold for your queries.

The important number is not search cost, cache-hit rate or retrieval volume by itself. It is cost per accepted answer. DoorDash did not report that metric. By my calculation, using accuracy as a proxy for accepted answers, search cost per 1,000 correct Retail answers falls from about $8.46 to $0.12, and on the synthetic Tail set from about $11.84 to $0.17. That covers search cost only. The drop came from taking control of the search layer, so DoorDash could choose the provider and see each search. As AI systems become more tool-driven, search will increasingly be managed like any other metered infrastructure dependency.

References