How DoorDash Cut LLM Search Costs by 98% Without Sacrificing Accuracy

DoorDash cut LLM search costs by 98% without sacrificing accuracy through engineering optimization.
The article centers on DoorDash's case of reducing LLM search costs by 98% while maintaining accuracy, and discusses its implications for enterprise AI search deployment. Since the original discussion did not disclose full technical details, the article outlines common paths to lower LLM inference costs, including prompt optimization to reduce token consumption, using small models for simple queries, introducing caching, and query routing tiers. It emphasizes that cost optimization must not come at the expense of user experience, so tiered strategies need careful design, calling large models only for complex queries. For search-intensive scenarios like e-commerce and local services, the case shows that LLM search can move from experimentation to large-scale deployment through systematic engineering optimization, and may prompt more companies to reassess its economics.
Introduction
In the deployment of AI applications, the inference cost of large language models (LLMs) has always been a key concern for enterprises. Recently, DoorDash shared a striking result: by optimizing its LLM search workflow, it reduced search costs by 98% while maintaining search accuracy. This case offers valuable reference for many companies exploring AI search applications.
Behind the 98% Cost Reduction
According to Hacker News, DoorDash achieved a significant reduction in LLM search costs—a 98% drop—without sacrificing accuracy. Although the specific technical details were not fully elaborated in the original discussion, the result alone is enough to spark industry reflection: how can LLM search become economically viable while ensuring effectiveness?
Typically, the cost of LLM search mainly comes from model inference calls. Common paths to reduce costs include: optimizing prompts to reduce token consumption, using smaller models for simple queries, introducing caching mechanisms, and routing queries in tiers. DoorDash's achievement may well be a combination of these strategies.
The composition of LLM inference costs is more complex than many imagine. Beyond the model's parameter size, actual calls also involve the number of input and output tokens (billed per token), context length (long contexts significantly increase memory usage and computation), batch processing efficiency, and underlying hardware utilization. The so-called "inference cost" usually refers to the computational overhead per query on GPUs/TPUs converted into cloud service fees. The core idea for reducing this cost is to "complete the most confident answer with the least computation," so the industry commonly employs query complexity assessment, result caching (reusing historical results for identical or similar queries), model distillation (training small models with data generated by large models), and hybrid retrieval (first using traditional BM25 or vector retrieval to recall candidates, then having the LLM re-rank). Understanding these components is necessary to judge that DoorDash's 98% reduction more likely comes from system-level combinatorial optimization rather than a single trick.
Implications for AI Search Applications
For search-intensive scenarios such as e-commerce and local services, the introduction of LLMs can significantly enhance semantic understanding, but cost pressure follows closely. DoorDash's case shows that through engineering optimization, costs can be reduced to an acceptable range, allowing LLM search to move from experimentation to large-scale deployment.
You may not have noticed that cost reduction cannot come at the expense of user experience. DoorDash emphasizes "without sacrificing accuracy," which means optimization strategies need careful design—for example, using large models only for complex queries, while simple queries are handled by lightweight models or traditional retrieval.
Query routing / model cascade is a key engineering pattern that supports "cost reduction without accuracy loss." The basic approach is to first use a lightweight classifier or rules to determine the difficulty and type of the query: simple, high-frequency, and clearly intentioned queries are handled by small models or traditional retrieval; only semantically ambiguous, multi-step reasoning, or long-tail complex queries are escalated to large models. This "cascade" design can significantly lower the average cost overall, because the vast majority of real search requests are actually simple. Common signals for implementing routing include query length, historical click-through rate, intent classification confidence, and the score distribution of retrieval recall results. The difficulty of tiered strategies lies in designing routing thresholds and handling misjudgment fallbacks—once a query that a small model cannot handle is mistakenly left in the lightweight tier, accuracy suffers, so confidence thresholds and fallback mechanisms are usually required.
Industry Impact and Outlook
This achievement may prompt more companies to reassess the economics of LLM search. As model efficiency improves and engineering practices mature, LLM search is expected to replace traditional keyword search in more scenarios, offering a more natural interaction experience.
The difference between semantic search and traditional keyword search is the background for understanding the value of LLM search. Traditional keyword retrieval relies on term matching (e.g., BM25), excelling at precise hits but insensitive to synonyms, colloquial questions, and implicit intent; LLM search understands semantics through vector representations and generative re-ranking, and can handle queries requiring reasoning such as "a quiet restaurant suitable for bringing children." But semantic retrieval also brings new overhead: vectorization, approximate nearest neighbor (ANN) index maintenance, and LLM re-ranking all consume computing power. A common industry compromise is "hybrid retrieval"—running keyword recall and vector recall in parallel, then fusing the rankings. In local service scenarios like DoorDash, queries are highly diverse with obvious long tails, making semantic understanding most needed and cost overruns most likely when calling large models for all queries—which is exactly why its optimization results are noteworthy.
Conclusion
DoorDash's case proves that the cost of LLM search is not uncontrollable. Through systematic optimization, enterprises can enjoy the search experience upgrade brought by AI while controlling costs. For technical teams, focusing on inference efficiency and designing tiered strategies will be key.
Related articles

Flow Matching Parameterization Study: How Network Prediction Targets Determine Generation Quality
Tufts' Ping Li team systematically studies Flow Matching parameterization: x-flow vs v-flow errors, consistency loss design, decoupling deterministic prediction in conditional generation, and RL training for Flow language models.

Kick Hackers Off Your Network in 30 Seconds with Cisco ACLs
A hands-on demo of blocking hacker traffic in 30 seconds with a Cisco ACL: two rules, port application order, the implicit deny any trap, and why lab practice in a simulator beats memorizing commands.

AI Coding Agents vs. Writing Code by Hand: When to Do It Yourself, When to Let Go
When should you use AI coding agents, and when should you write code by hand? Drawing on a tech creator's experience, this article breaks down different approaches for learning, architecture, security-sensitive code, and low-risk frontend tasks, helping developers build a clear framework for deciding what to delegate.