· 8 min read

DoorDash Cut Its LLM Search Bill From $7.90 to $0.11 per 1,000 Queries by Moving Search Out of the Model Call. Here Is the Small Version I'd Build.

DoorDash's engineering blog published a post on October 29 with a number that got picked up by InfoQ yesterday: search grounding for one of its LLM systems went from $7.90 per 1,000 queries to $0.110. Accuracy on the same evaluation went from 93.40% to 93.90%. The change was to stop using the model's built-in web search and call a search API directly, behind a cache.

If your product has a model that looks things up on the web, you are probably paying the $7.90 kind of price right now, because built-in search is one parameter and it works. I think the cheap version is within reach of one person, with a caveat about what the 98% covers.

What DoorDash built

The system is called Decoupled Search Grounding. It sits in front of DoorDash's query intent understanding system, which works out what a shopper meant by a search. Before, the model (Gemini Flash) called Google search grounding itself. Now a gateway does the retrieval and hands the model the evidence as a structured tool response.

Each request follows the same steps. The gateway normalizes the query and checks an exact-match cache. On a miss it checks a semantic cache, which reuses a stored result if the query's embedding is close enough. On a second miss it calls a search provider, falls through to the next provider on timeout or error, normalizes the response to title, URL and snippet, and writes both caches with a TTL.

The providers named are Serper, BrightData, Firecrawl, Exa and Tavily. The gateway is MCP-compatible, and adding an HTTP provider takes a YAML file. The post gives no specific TTL values, only that recency-sensitive queries get short ones and stable facts get longer ones.

The numbers, and what they leave out

On the retail evaluation set (7,988 queries), native search cost $7.90 per 1,000 queries and the decoupled setup cost $0.110. On a synthetic long-tail set (2,335 queries) it was $10.37 against $0.146. Accuracy on long-tail was 87.79% decoupled against 87.62% native.

Those figures are search-provider charges only. Model inference is excluded, so this is not a 98% cut to the whole bill. It is a 98% cut to the line item for looking things up. If search is a small share of what you pay per request, the saving is real and modest.

The cache result is the other half. Cold, the hit rate was 6.2% and average latency was 4,570 ms. Warm, the hit rate was 99.4%, latency was 1,465 ms, and search cost fell to $0.0045 per 1,000 queries. A 99.4% hit rate tells you DoorDash's queries repeat heavily, which makes sense for retail search. Yours may not.

One side finding I didn't expect: with native search on, Claude Sonnet 4 broke an explicit "answer only" instruction 78.1% of the time on HotpotQA. The post's example is a 245-character answer where the decoupled setup returned "Yes." If you parse model output downstream, that matters more than the money.

Where native search still wins

The authors are direct about the limits, and I'd read this section of their post before copying anything.

On three public QA benchmarks, the decoupled configurations scored 83% to 86% against 87.7% for native search. On FreshQA, which tests recent information, native search was better across all five models they tried. Their conclusion is that "the backend should be a routing decision," meaning you keep native search available and send it the questions where freshness matters.

Multi-hop questions also gained less than single lookups. And the setup depends on third-party search vendors for uptime, latency and price. A vendor price change moves the whole comparison.

The models in the evaluation (GPT-4o, Gemini 2.5 Flash and Pro, Claude Sonnet 4) are also not the ones most of us call today. I'd expect the cost gap to hold, since it comes from search pricing. I would not assume the accuracy numbers transfer.

The small version I'd build

You don't need a gateway with five providers. For a solo product I'd build three pieces.

First, one search provider called from your own code. Turn off the model's built-in search, define a web_search tool, and when the model calls it, hit the provider's API and return the top results as title, URL and snippet. DoorDash found that going from 2 to 6 results raised average accuracy from 78.7% to 84.9% on SimpleQA, and 10 results only reached 85.5%. So I'd start at 6.

Second, an exact-match cache. A table keyed on the normalized query (lowercased, whitespace collapsed) plus provider name, with the JSON result and an expiry.

create table search_cache (
  query_key text primary key,
  provider text not null,
  results jsonb not null,
  expires_at timestamptz not null
);

I'd skip the semantic cache at first. It needs an embedding call and a similarity threshold you have to tune, and a wrong match returns evidence for a different question. Add it when the exact cache's hit rate plateaus and the logs show near-duplicate queries.

Third, a fallback to native search. If the provider times out, or the query is obviously about something recent, let the model use its built-in search for that request. That is the routing decision the authors recommend, in its simplest form.

Is it worth an afternoon?

Run your own arithmetic first. At DoorDash's native price, 1,000 searches a day is about $237 a month. The decoupled figure for the same volume is about $3.30. That is worth an afternoon. At 50 searches a day the native bill is under $12 a month and I would leave it alone.

The other reason to do it is control. With your own tool you can log every query and result, see which sources the model leaned on, and change providers without touching prompts.

What I'd actually do

Pull last month's invoice and find what you paid for search grounding as its own line. If it's over $50, build the one-provider version with the exact cache, then run 200 real queries from your logs through both paths and compare answers by hand before switching traffic. Keep native search as the fallback. And log the cache hit rate from day one, because that number decides whether your saving looks like DoorDash's or like a rounding error.

Author

Sources

Newsletter

The week, in one email.

The weekly summary of what happened and what it means for people who build alone. No spam, unsubscribe any time.

Form not showing? Subscribe on this page instead.

Related Posts