AI Today

🍽️ DoorDash cuts LLM search costs by over 98% by separating retrieval from the model

· 3 min

In brief


🍽️ DoorDash says it cut the search costs of its LLM-based query understanding by more than 98 % while keeping accuracy comparable, InfoQ reports. The company built Decoupled Search Grounding (DSG), a gateway compatible with the Model Context Protocol (MCP) that separates evidence retrieval from model reasoning. Instead of using the search built into a model provider's API, applications ask the gateway, which can route to providers such as Serper, Bright Data, Firecrawl, Exa and Tavily or to the native search of OpenAI and Anthropic. 💶 On 7,988 general retail queries, search-provider costs fell from $7.90 to $0.11 per 1,000 queries, excluding model inference. Native search performed better on freshness-sensitive questions, and multi-hop reasoning and provider reliability remain open. The approach is relevant to teams that run many LLM queries with web grounding.


⚙️ How the gateway works. Per InfoQ, every request passes query normalisation, then exact and semantic cache lookups, then provider routing. Exact caching reuses identical queries, semantic caching finds similar ones through embeddings, and an external search happens only on a cache miss. If a provider fails or times out, another configured provider is tried. Caches per provider have configurable time-to-live settings, YAML adapters let teams add HTTP search providers without changing application code, and telemetry tracks provider choice, cache results, retrieval depth, latency and cost. Results are normalised to titles, URLs and snippets and returned as structured tool responses, which keeps retrieved evidence apart from the model's answer, reduces search-induced verbosity and preserves strict output formats such as JSON or Boolean values. DoorDash's motivation: native LLM search bundles retrieval into the provider's API, which limits provider choice, result reuse, control over retrieval depth and visibility of cost.

🧪 The measurements. DoorDash tested DSG on five models, three public question-answering benchmarks and its own production query-intent workload. With Gemini Flash and Serper, accuracy on 7,988 general retail queries was 93.90 %, against 93.40 % for native Google search grounding. On 2,335 synthetic long-tail queries it was 87.79 % against 87.62 %, with search costs falling from $10.37 to $0.146 per 1,000 queries. In a warm-cache run, the hit rate rose from 6.2 % to 99.4 %, average latency dropped from 4,570 to 1,465 milliseconds and search cost to $0.0045 per 1,000 queries. Raising retrieval depth from two to six results lifted SimpleQA accuracy from 78.7 % to 84.9 %, with smaller gains beyond that.

⚠️ What is not solved. Native search did better on FreshQA, a benchmark for questions where freshness matters, which is a natural limit for any cache. The team also names multi-hop reasoning and the reliability of third-party providers as open challenges. Planned work covers adaptive provider routing, output validation that knows the contract, and iterative retrieval for tasks that need evidence from several sources. All figures are DoorDash's own, as relayed by InfoQ; DoorDash's blog post could not be opened by our reader, so we have not seen it directly.

Sources

Open in the interactive reader →

This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources. Imprint, privacy policy and terms of service