Amardeep Kumar, Emmanuel Aboah Boateng, Siddarth Kodwani and Kyle MacDonald describe how DoorDash took web search out of the model provider’s API. A shared gateway checks for a prior result first. On a miss, it can choose among search providers and return links and snippets in a consistent format.

  • On 7,988 retail queries, separate search cost $0.11 per 1,000 versus $7.90 for Gemini’s built-in search. DoorDash measured 93.90% versus 93.40% intent accuracy.
  • On 2,335 synthetic long-tail queries, it cost $0.146 versus $10.37 per 1,000. Accuracy was 87.79% versus 87.62%.
  • Built-in search did better across all five models on FreshQA, a test of questions whose answers change over time. DoorDash keeps built-in search as an option.

Caveat: The 98% figure covers search-provider fees in DoorDash’s tests. It excludes the cost of running the language model.

The 141-comment thread on Hacker News raises questions the aggregate numbers leave open.

What the thread adds

  • AyishikD asks whether the evaluation separates harmful misses from abstentions: “were wrong answers counted separately from no answer?”
  • ruddct describes a similar system their team built: “a unified exact cache match/logging/telemetry interface for LLM calls with provider/model fallback chains.” They’re curious how much of DoorDash’s savings came from reusing results for similar queries.
  • spillguard gives a case where reusing a result could go wrong. They argue that “pizza open now” and “pizza” are “basically the same embedding and definitely not the same answer.” DoorDash says results expire sooner for time-sensitive queries. The write-up leaves open how the gateway decides whether two similar queries need different answers.
  • dirteater_ flags how easily the percentage can be misread: “The title seems written to imply 98% of LLM cost (cost of calling the API for a model)”.

HN handles are pseudonymous and HN publishes no per-comment scores; this is a selection from HN’s ranked thread, not a consensus.