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.
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 set | Queries | Built-in search: accuracy | DSG + Serper: accuracy | Search cost per 1,000 queries |
|---|---|---|---|---|
| DoorDash Retail | 7,988 | 93.4% | 93.9% | $7.90 to $0.11 |
| DoorDash Tail (synthetic) | 2,335 | 87.62% | 87.79% | $10.37 to $0.146 |
| SimpleQA (public, five-model mean) | public benchmark | 87.7% | 83.3% | $20.00 to $0.67 |
| FreshQA (public, five-model mean) | public benchmark | 72.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.
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.
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:
| Provider | List price | Billed per | Other charges and notes |
|---|---|---|---|
| OpenAI | $10 per 1,000 | call | Search content tokens at model rates |
| Anthropic | $10 per 1,000 | search | Standard token costs for search content |
| Google (Gemini 3+) | $14 per 1,000 | search query | 5,000 free a month; one request can trigger several queries |
| xAI | $5 per 1,000 | call | X Search billed separately, per item |
| AWS (AgentCore) | $7 per 1,000 | query | 5,000 free a month |
| Perplexity (Fast Search) | $1 per 1,000 | search | Input tokens |
| Microsoft (Grounding with Bing) | $14 per 1,000 | transaction | Listed 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
- Boateng et al. — Decoupling Search from Reasoning: A Vendor-Agnostic Grounding Architecture for LLM Agents, arXiv:2606.18947 (the arXiv listing notes EMNLP 2026 acceptance). Source of the DoorDash figures above.
- DoorDash — How DoorDash Reduced LLM Search Costs by 98% Without Losing Accuracy
- InfoQ — DoorDash decouples search from LLM calls (Nov 2026)
- Atalar et al. — Multi-Turn Semantic Caching for Low-Cost LLM Serving, arXiv:2611.01077. Reports an AUC of 0.62 to 0.74 for embedding similarity across five workloads.
- Shakya et al. — Adaptive Retrieval helps Reasoning in LLMs — but mostly if it's not used, arXiv:2602.07213
- Portkey — Transforming E-commerce Search with Generative AI: Walmart's Journey (2024 interview; secondhand)
- Perplexity — Agent API pricing documentation (Fast Search $0.001 per search)