DoorDash says it has built a way to ground its large language models in live search results that costs a fraction of the usual price, with no loss in accuracy. In an evaluation of its query intent understanding system, the company reported that its new approach, called Decoupled Search Grounding (DSG), matched or slightly exceeded native search accuracy while reducing search costs by more than 98 percent.

The query intent system is meant to figure out what shoppers mean when they type vague marketplace searches. The company offers an example. Asked about “450 north,” an ungrounded model classified the term as a restaurant. Catalog evidence and web search showed it was a craft brewery, and the system resolved the intent to alcohol, which steered retrieval toward the right inventory.

Native search, the built-in option offered by model providers, made grounding easy to switch on. But it kept every retrieval decision inside the provider’s API. DoorDash wanted to choose its own search providers, reuse evidence across applications, tune how deep each search went and measure search cost and latency apart from the reasoning model.

Fixing the formatting problem

The company also ran into a problem that went beyond cost. Many of its LLM calls are intermediate steps whose output is parsed as JSON, matched against a list of allowed values or read as a yes-or-no answer. Those prompts ask the model to return only the final answer, with no explanation.

Without search, the models complied. With native search turned on, they often did not. In one example, asked to compare two building heights under an instruction to provide only the final answer entity, native search returned 245 characters that opened with “Based on the search results.” DSG returned three characters: “Yes.” Both answers were correct, but only one could be parsed by the system.

Why do LLMs break answer-only instructions when search is on?

On HotpotQA, a multi-hop question-answering benchmark, Claude Sonnet 4’s native-search answers broke an explicit “answer only” instruction 78.1 percent of the time by opening with explanatory framing. DoorDash said it did not see the same pattern with DSG, where evidence comes back as a structured tool response rather than inside the generated text.

How the system is built

How does Decoupled Search Grounding work?

DSG sits between DoorDash’s agents, the reasoning model and a registry of search backends that includes Serper, BrightData, Firecrawl, Exa and Tavily. It exposes a single interface compatible with the Model Context Protocol, so every agent uses the same grounding layer rather than building its own search integration. New HTTP providers can be added through a YAML configuration file covering the endpoint, request template, response mapping and cost data, without changes to application code.

Each query follows a set path. The system normalizes the wording so that minor variations hit the same cache entry, then checks an exact-match cache and a semantic cache. Only if both miss does it call a live provider. If a provider times out or returns an error, the request moves to the next provider in a configured chain. Results are normalized into a shared schema of title, source URL and snippet, and every step logs telemetry, including the branch taken, provider, latency and cost.

DoorDash says the shared cache is where the savings compound. A query resolved in one workload can be served instantly to another workload making a similar request. In a cold-cache pass, the hit rate was 6.2 percent and search cost ran $0.7385 per 1,000 queries. In a warm-cache pass, the hit rate reached 99.4 percent, cost fell to $0.0045 per 1,000 queries and average latency dropped from 4,570 milliseconds to 1,465 milliseconds.

Results and tradeoffs

How much does LLM search grounding cost with DSG?

On the company’s production query intent workload, DSG paired with Serper scored 93.90 percent accuracy on a set of 7,988 general non-food retail queries, compared with 93.40 percent for native search. Cost fell from $7.90 to $0.110 per 1,000 queries. On a synthetic set of 2,335 long-tail queries, DSG scored 87.79 percent against native search’s 87.62 percent, at $0.146 per 1,000 queries instead of $10.37. The reported costs cover search-provider charges and exclude model inference. The native baseline was Gemini Flash with integrated Google search grounding.

The results were not uniform. On public benchmarks, DSG configurations reached 83 to 86 percent accuracy, compared with 87.7 percent for native search, at roughly 10 to 30 times lower cost. DSG with BrightData came within 1.6 accuracy points of native search at about 11 times lower cost. On FreshQA, which focuses on recency-sensitive questions, native search beat DSG across all five models tested. DoorDash acknowledged that provider search stacks have freshness and indexing advantages that general-purpose search APIs do not always match.

The company also found that retrieval depth matters. Across three models on SimpleQA, raising retrieval from two results to six lifted average accuracy from 78.7 percent to 84.9 percent. Going to 10 results added only 0.6 points more, reaching 85.5 percent.

DoorDash said DSG does not make native search obsolete and that the approach carries its own risks. The company now depends on third-party vendors for stability, latency and data quality, and pricing changes could shift the tradeoffs. The company also said search-induced verbosity is reduced but not solved, and that multi-hop reasoning benefits less from single lookups than single-hop questions do. The company plans further work on adaptive routing, contract-aware output validation and iterative retrieval for multi-hop tasks.

Dieser Artikel wurde mit Unterstützung von KI verfasst.
News Factory APP - agentische News für besseres SEO & AEO.