Unofficial Hacker News client - receive Push Notifications on replies.

DoorDash reduced LLM search costs by 98% without losing accuracy (opens external site)

220 points by ersinesen 15 hours ago | careersatdoordash.com | 184 comments on HN | Vote on HN (opens Hacker News)

View full thread · View on Hacker News

Comment thread (9)

  1. I feel like we keep re-inventing the wheel. How is this different from what we were able to do with a apache lucene engine (or ElasticSearch) ?
    Replies (5)
    1. This architecture implements a semantic layer that you don't get with plain ElasticSearch or Lucene. Those engines are built specifically for string-based comparison (which is often all you really need)
      Replies (1)
      1. Lucene has supported semantic search for a while now
    2. That didn't cost $20 for 1000 requests. If you make something that costs that much then when you optimize it to be sane and ... then you can produce this blog post to talk about how much money you saved.
    3. first paragraph says "matched or slightly exceeded native-search accuracy while reducing search costs"

      so it's slightly better, and cheaper. plus it has additional benefits, e.g. in the third paragraph:

      Native search made grounding easy to enable, but kept retrieval decisions inside the model provider’s API. We needed to choose search providers, reuse evidence across applications, tune retrieval depth, and measure search cost and latency independently of the reasoning model.

      Replies (2)
      1. “Native search” in this case is referring to their existing hosted-LLM QIU architecture, not a text-index search. I suspect the cost comparison would not be nearly so favorable against ElasticSearch or Lucene, but it also wouldn’t do the whole “intent understanding” bit unless you built an expert system in top of it… which is basically what layering an LLM on top does for you.
      2. That is not how I read that, but the article is incredibly badly written, so who knows. My take was that they were using LLMs, as a search engine, for god knows what reason. I assume that's what they mean by "kept retrieval decisions inside the model provider’s API", because I never encountered anyone talking about models within a normal search engine. They also list Tavily as a search API, which seems to be a search engine for AI agents.

        One good reason for using an LLM is the intent understanding, because they are good at that, a classic search engines don't really understand intent. However a search engine also doesn't make the mistake they mention, thinking that "450 north" is a restaurant, when it's a brewery, because it has absolutely data suggesting that.

        Frankly I don't understand the need for the AI here, other than maybe as a means to parse strange queries. My take away (hehe, take away) is that DoorDash doesn't have their own datasets and they rely on 3rd party search APIs, which may or may not be agentic in nature, and those APIs aren't actually that good or their data is not the quality which DoorDash really needs. They are then trying to cover up the poor data quality and direct queries better (both in terms of quality and price) by introducing a caching/routing layer.

        It does still seem like something that would be better addressed by improving data quality and bringing search in-house.

    4. How is this different? They are able to tell their shareholders that they're using AI.
    5. lucene supports dense vectors so you can use it to do a "hybrid" search of BM25 + the more "natural language" aspect of vector search.

      https://lucene.apache.org/core/9_0_0/core/org/apache/lucene/...