DoorDash cuts search costs by 98% with a gateway for model search
DoorDash cut search provider costs from $7.90 to $0.11 for each 1,000 retail queries and kept accuracy almost the same.
DoorDash cut the cost of search in its query understanding system, which uses a large language model, by more than 98%. It made a gateway, Decoupled Search Grounding. The gateway divides the step that gets evidence from the reasoning of the model. A team can then change search providers with no change of model. DoorDash tells that accuracy stayed almost the same on production work.
How it works
Each query goes through a cache, a kept copy of answers to queries. The gateway uses again the same queries and almost the same queries. It uses the web only when the cache has no answer. If a provider stops, it uses a different provider. It works with providers such as Serper and Exa, and with the native search of OpenAI and Anthropic.
The numbers
- 7,988 retail queries: 93.90% accuracy, against 93.40% for native Google search.
- Cost: $7.90 down to $0.11 for each 1,000 queries, with no model cost.
- Warm cache: the hit rate went from 6.2% to 99.4%.
What is not known
Native search gave more correct answers on FreshQA, a test of questions on new facts. Work with many steps and the reliability of external providers are open problems.
Insight: Search is moving out of the model API
A test of an external layer cut search cost by 91% on SimpleQA. Native search gave more correct answers on FreshQA. Cloudflare also put web search in its AI Gateway, with no data on quality. Model companies give search with the model, and gateways divide it at this time. This reads as a race for the control of cost and of provider selection. Keep native search for questions on new facts.
Sources
Posted