DoorDash published the numbers last week and the HN thread did what HN threads do. The company's query-understanding system cut LLM web-search costs by more than 98% — from $7.90 to $0.11 per thousand queries in the breakdown analysts ran from their figures — while accuracy held, 93.90% against 93.40% for the native grounding it replaced. The mechanism is not a cheaper model. It's an architecture: DoorDash's Decoupled Search Grounding (DSG) pulls web search out of the model API and runs it behind a shared MCP gateway with a cache in front. The cache is where the 98% actually lives, and saying so plainly is the useful part of this story.
Search cost−98%$7.90 → $0.11 per 1,000 queries
Accuracy after93.9%vs 93.40% native grounding, matched or better
Eval size7,988general retail queries, Query Ion Understanding set
Model in the loopFlashGemini Flash + Serper behind the gateway
How does a query actually flow through DSG?
The gateway sits where the model's built-in web-search tool used to sit. Same interface for the model, very different economics on the far side:
- The model asks the gateway to search — the MCP tool call it already knows how to make
- Exact-match cache first: repeated and templated queries never leave the building
- Semantic cache next: "cheap sushi near me" and "affordable sushi close by" resolve to the same answer
- Cache miss goes to the search provider (Serper), result flows back through the gateway
- The answer and its cache write happen together, so the next caller pays zero
Every agent workload that shares the gateway inherits the hit rate. That's the compounding part: native grounding bills every caller every time, because each model call is an island.
So is the 98% real?
Here's the pushback, which the HN thread landed fast and correctly: the number is largely a cache hit rate wearing a costume. Native search results can be cached too — nothing about Google's grounding makes caching impossible — so the honest comparison isn't "model search vs gateway search," it's "uncached retrieval vs cached retrieval." DoorDash's real achievement is narrower and better: they built the seam. Search became a service with an interface, an owner, a cache key and a bill you can actually read. Once that seam exists, the caching is obvious; before it exists, nobody caches, because the retrieval is buried inside a vendor's token price.
| Native grounding | DSG behind the gateway | |
|---|---|---|
| Accuracy (7,988 retail queries) | 93.40% | 93.90%, matched or better |
| Cost per 1,000 queries | $7.90 | $0.11, dominated by cache hits |
| Cache | None you control | Exact + semantic, shared across callers |
| Swap the provider | Vendor-bound | Config change at the gateway |
The docked item on our radar carries the source thread and discussion.
What's the honest counter-take?
One eval domain — retail query understanding on DoorDash's own data — and a vendor publishing its own numbers. Semantic caching has its own failure mode worth naming: near-duplicate queries that deserve different answers get merged, and at 93.90% vs 93.40% the margin over native grounding is thin enough that a few bad merges could flip it. Run this pattern against your own eval set before quoting the accuracy line in a design doc.
The architecture lesson survives all of that. If your agents each carry their own web-search bill, you are paying island pricing for a shared resource, and the fix is boring plumbing: one gateway, cache keys, provider choice behind a config flag.
Verdict — copy the seam, audit the number. The 98% is DoorDash's cache hit rate, not a law of nature. The gateway pattern is the transferable part: retrieval as a service, cached once, billed where you can see it. Your next agent infra doc should have that seam in it by default.
Sources:
- DoorDash — How DoorDash reduced LLM search costs by 98% without losing accuracy
- InfoQ — DoorDash cuts LLM search costs by 98% by decoupling retrieval from reasoning
- Hacker News — discussion thread
- Medium — The 98% saving was a cache hit rate, not a model choice
Originally published at mrsn — the dev radar.
![Legged Robot Mechanics and Dynamics — Ch.09: Reliability [KR]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkuk3p6eb8kjhvcnyrd2j.png)
![Legged Robot Mechanics and Dynamics — Ch.00: Introduction [KR]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkqgu3abc5p8k38hjfsf9.png)
![Legged Robot Mechanics and Dynamics — Ch.06: Foot Ground Interaction [KR]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdd5ngt0w66porxtgbo5h.png)