跳到主内容
@wquguru
精选88MarkTechPost(RSS)技巧与观点

DoorDash 基于 MCP 网关将 LLM 搜索成本降低 98%

DoorDash AI Team Cuts LLM Search Costs 98% With an MCP Search Gateway

原文
发到 X
推荐理由

Agent 开发者的降本实战,给出了基于 MCP 解耦搜索的完整工作流与参数取舍,直接可复用于优化检索链路。

DoorDash engineers have published how they cut LLM web search costs by more than 98%. Their approach, DoorDash Decoupled Search Grounding (DSG), pulls web search out of the model provider’s API. Search instead runs behind a shared gateway compatible with the Model Context Protocol (MCP). In DoorDash’s production query intent workload, DSG matched or slightly beat native search accuracy.

DoorDash 工程师发布了他们如何将 LLM 网络搜索成本降低 98% 以上的方案。他们的做法是 DoorDash 解耦式搜索 grounding(DSG),将网络搜索从模型提供商的 API 中剥离出来。搜索改为在一个与模型上下文协议(MCP)兼容的共享网关后面运行。在 DoorDash 的生产环境查询意图负载下,DSG 的准确率匹配或略优于原生搜索。

TL;DR

  • Scope: 1 MCP-compatible gateway, 5 pluggable search providers, plus native search as an option.
  • Runs on: DoorDash’s internal GenAI platform, in front of any reasoning model. Not open-sourced; hardware not disclosed.
  • Performance: Matches native search in production and lands near it on public QA benchmarks.
  • Best: 93.90% vs 93.40% native on 7,988 retail queries, at $0.110 vs $7.90 per 1K.
  • 范围:1 个 MCP 兼容网关、5 个可插拔搜索提供商,以及作为选项的原生搜索。
  • 运行平台:DoorDash 内部 GenAI 平台,位于任何推理模型之前。未开源;硬件未披露。
  • 性能:在生产环境中匹配原生搜索,在公开 QA 基准测试中也接近原生水平。
  • 最佳表现:在 7,988 个零售查询上,DSG 为 93.90%,原生搜索为 93.40%;每千次查询成本分别为 $0.110 和 $7.90。

What is DoorDash Decoupled Search Grounding?

什么是 DoorDash 解耦式搜索 grounding?

DSG is a shared search gateway from DoorDash that separates LLM reasoning from web retrieval. With native search, the provider’s API runs its own search stack inside generation. That breaks down when the model call is one node in a pipeline.

DSG 是 DoorDash 的一个共享搜索网关,它将 LLM 推理与网络检索分离开来。使用原生搜索时,提供商的 API 会在生成过程中运行其自己的搜索堆栈。当模型调用只是流水线中的一个节点时,这种做法就会失效。

DoorDash lists 3 problems with native search:

DoorDash 列出了原生搜索的 3 个问题:

  • Control: Swapping models or reacting to a vendor price change means touching the model integration.
  • Reuse: Two agents asking the same question pay for 2 searches.
  • Observability: Per-query cost and latency stay invisible.
  • 控制力:更换模型或对供应商价格变化做出反应,意味着需要修改模型集成代码。
  • 复用性:两个代理询问相同的问题,会支付两次搜索费用。
  • 可观测性:每次查询的成本和延迟都不可见。

How does the MCP search gateway work?

MCP 搜索网关是如何工作的?

Every agent and reasoning model calls 1 MCP-compatible interface. Behind it sits a registry of pluggable backends: Serper, Bright Data, Firecrawl, Exa and Tavily. Native search can be registered as 1 more provider.

每个代理和推理模型都调用 1 个 MCP 兼容接口。其后是一个可插拔后端的注册表:Serper、Bright Data、Firecrawl、Exa 和 Tavily。原生搜索可以注册为第 6 个提供商。

Each query follows 7 steps:

每个查询遵循 7 个步骤:

  • Normalize the query so near-identical phrasings hit the same cache entry.
  • Check the exact cache.
  • Check the semantic cache, which matches on embedding similarity.
  • Walk the provider fallback chain only if both caches miss.
  • Map results into a shared title, URL and snippet schema.
  • Write both cache layers, scoped per provider, with tuned time-to-live.
  • Return a structured tool response.
  • 规范化查询,使几乎相同的措辞命中同一个缓存条目。
  • 检查精确缓存。
  • 检查语义缓存,它基于嵌入相似度进行匹配。
  • 仅当两个缓存均未命中时,才遍历提供商回退链。
  • 将结果映射到共享的标题、URL 和摘要模式。
  • 写入两个缓存层,按提供商作用域划分,并配置调优的存活时间(TTL)。
  • 返回结构化工具响应。

New HTTP providers onboard through a YAML adapter, with no application code changes. Every request logs provider, cache outcome, retrieval depth, latency and cost.

新的 HTTP 提供商通过 YAML 适配器接入,无需更改应用程序代码。每个请求都会记录提供商、缓存结果、检索深度、延迟和成本。

Why does native search break output formats?

为什么原生搜索会破坏输出格式?

Many DoorDash LLM calls feed JSON parsers, enums or Booleans. With native search on, models often ignore ‘answer only’ instructions. On HotpotQA, Claude Sonnet 4’s native-search answers violated that instruction 78.1% of the time.

许多 DoorDash 的 LLM 调用会向 JSON 解析器、枚举类型或布尔值输入数据。开启原生搜索后,模型经常会忽略‘仅回答’的指令。在 HotpotQA 数据集上,Claude Sonnet 4 的原生搜索结果违反该指令的比例高达 78.1%。

In one example, native search returned 245 characters opening with ‘Based on the search results’. DSG returned ‘Yes.’ Only one was parseable. DSG reduces this drift because evidence arrives as a tool response, outside the generation stream.

在一个示例中,原生搜索返回了以‘根据搜索结果’开头的 245 个字符。DSG 返回了‘是’。其中只有一个结果可被解析。由于证据作为工具响应到达,且位于生成流之外,DSG 减少了这种漂移。

How does DSG compare with native search on benchmarks?

DSG 与原生搜索在基准测试中的表现如何对比?

DoorDash tested 5 models: GPT-4o, GPT-4o-mini, Gemini 2.5 Flash, Gemini 2.5 Pro and Claude Sonnet 4. The public benchmarks were HotpotQA, SimpleQA and FreshQA.

DoorDash 测试了 5 个模型:GPT-4o、GPT-4o-mini、Gemini 2.5 Flash、Gemini 2.5 Pro 和 Claude Sonnet 4。公开使用的基准测试包括 HotpotQA、SimpleQA 和 FreshQA。

  • DSG configurations scored 83% to 86% accuracy, versus 87.7% for native search.
  • DSG reached native-level accuracy at roughly 10 to 30 times lower cost.
  • DSG with BrightData landed within 1.6 points of native at roughly 11 times lower cost.
  • DSG with Serper cost under $0.70 per 1,000 queries.
  • DSG 配置的准确率为 83% 至 86%,而原生搜索为 87.7%。
  • DSG 以大约低 10 到 30 倍的成本达到了原生级别的准确率。
  • 使用 BrightData 的 DSG 成本约为原生搜索的十一分之一,准确率差距仅为 1.6 个百分点。
  • 使用 Serper 的 DSG 每千次查询成本低于 0.70 美元。

Production results: query intent understanding

生产环境结果:查询意图理解

The production test used DoorDash’s query intent understanding (QIU) system, which maps ambiguous searches to shopping intents. Gemini Flash was the reasoning model. The native baseline used Gemini’s integrated Google search grounding. Costs cover search-provider charges only, not model inference.

生产测试使用了 DoorDash 的查询意图理解(QIU)系统,该系统将模糊搜索映射到购物意图。推理模型为 Gemini Flash。原生基线使用了 Gemini 集成的 Google 搜索 grounding。成本仅涵盖搜索提供商的费用,不包括模型推理费用。

Evaluation setNative accuracyNative cost / 1KDSG + Serper accuracyDSG cost / 1K
Retail, general non-food (N=7,988)93.40%$7.9093.90%$0.110
Tail, synthetic long-tail (N=2,335)87.62%$10.3787.79%$0.146
评估集原生准确率原生成本/千次DSG + Serper 准确率DSG 成本/千次
零售,一般非食品 (N=7,988)93.40%$7.9093.90%$0.110
尾部,合成长尾 (N=2,335)87.62%$10.3787.79%$0.146

Both sets show a cost cut of about 98.6% (Marktechpost calculation from DoorDash’s table).

两组数据均显示出约 98.6% 的成本削减(Marktechpost 根据 DoorDash 表格计算得出)。

What do caching and retrieval depth add?

缓存和检索深度带来了什么增益?

A warm shared cache raised the hit rate from 6.2% to 99.4%. Average latency fell from 4,570 ms to 1,465 ms, a 68% cut. Search cost dropped from $0.7385 to $0.0045 per 1,000 queries.

预热共享缓存将命中率从 6.2% 提升至 99.4%。平均延迟从 4,570 毫秒降至 1,465 毫秒,降低了 68%。搜索成本从每千次查询 0.7385 美元降至 0.0045 美元。

Retrieval depth is now a setting. On SimpleQA across 3 models, going from 2 to 6 results lifted accuracy from 78.7% to 84.9%. Going to 10 results added only 0.6 points, reaching 85.5%.

检索深度现在是一个可配置项。在 SimpleQA 上针对 3 个模型的测试显示,将结果数量从 2 增加到 6,准确率从 78.7% 提升至 84.9%。增加到 10 个结果仅带来 0.6 个百分点的提升,达到 85.5%。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件