跳到正文
InfoQ· Leela Kumili·· 3 小時前AI 評分64

DoorDash 分離檢索與推理,將 LLM 搜尋成本降低逾 98%

DoorDash Cuts LLM Search Costs by 98% by Decoupling Retrieval from Reasoning

AI 導讀

DoorDash 引入 Decoupled Search Grounding(DSG),分離檢索與模型推理,使搜尋供應商成本降低逾 98%,並在生產工作負載維持相若準確率。

正文

DoorDash reduced search-provider costs in its large language model (LLM)-powered query understanding system by more than 98% while maintaining comparable accuracy on production workloads. The company introduced Decoupled Search Grounding (DSG), an MCP-compatible gateway that separates evidence retrieval from model reasoning, allowing applications to switch search providers independently of the underlying model.

Native LLM search integrations bundle retrieval into the model provider's API, limiting provider choice, result reuse, retrieval-depth controls, and cost visibility. DSG exposes these capabilities through a shared interface rather than embedding search integrations in individual agents.

The gateway supports multiple search providers, including Serper, Bright Data, Firecrawl, Exa, and Tavily, as well as native search capabilities offered by model providers such as OpenAI and Anthropic. It normalizes provider responses into a common format containing titles, URLs, and content snippets, keeping retrieved evidence separate from model-generated responses.

As Pratik Dhanave, AI Architect at ClearRoute, observed in a LinkedIn post,

Reasoning models and retrieval infrastructure evolve at different speeds. Decoupling them makes grounding a reusable and observable platform capability rather than a vendor-controlled feature.

Native search compared with DoorDash's decoupled search architecture. (Source: DoorDash Blog Post)

Each request passes through query normalization, exact and semantic cache lookups, followed by provider routing. Exact caching reuses identical queries, while semantic caching identifies similar queries using embeddings. External searches occur only on cache misses. If a provider fails or times out, the gateway tries another configured provider. Provider-specific caches use configurable time-to-live settings. YAML-based adapters let teams onboard HTTP search providers without changing application code. Telemetry tracks provider selection, cache outcomes, retrieval depth, latency, and cost. DSG also returns evidence through structured tool responses, reducing search-induced verbosity and preserving strict output formats such as JSON or Boolean values.

Jean-Pierre Palomba-Marin, a Consultant Analyst, in a linked post, shared an implementation perspective,

Its MCP-compatible architecture uses interchangeable search providers, semantic caching, and configurable retrieval to improve cost efficiency, latency, and reliability.

DoorDash evaluated DSG across five models, three public question-answering benchmarks, and its production query intent understanding (QIU) workload. On 7,988 general retail queries, DSG with Gemini Flash and Serper achieved 93.90% accuracy, compared with 93.40% for native Google search grounding. On 2,335 synthetic long-tail queries, accuracy was 87.79%, compared with 87.62% for native search. Search-provider costs fell from $7.90 to $0.11 per 1,000 retail queries and from $10.37 to $0.146 for long-tail queries. These figures exclude model inference costs.

DSG request lifecycle and caching architecture. (Source: DoorDash Blog Post)

In a warm-cache evaluation, the hit rate increased from 6.2% to 99.4%, average latency fell from 4,570 to 1,465 milliseconds, and search costs dropped to $0.0045 per 1,000 queries. Increasing retrieval depth from two to six results improved SimpleQA accuracy from 78.7% to 84.9%, with diminishing gains beyond six.

DoorDash found that native search performed better on FreshQA, a benchmark focused on freshness-sensitive questions. The team also identified multi-hop reasoning and third-party provider reliability as remaining challenges. Planned work includes adaptive provider routing, contract-aware output validation, and iterative retrieval for workloads requiring evidence from multiple sources.

About the Author

Leela Kumili

Show moreShow less

來源:InfoQ · infoq.com