DoorDash AI Team Reduces LLM Search Costs by 98%

Overview of DoorDash Decoupled Search Grounding (DSG)

DoorDash has introduced the DoorDash Decoupled Search Grounding (DSG) system, which significantly reduces the costs associated with large language model (LLM) web searches by over 98%. This innovation utilizes a shared gateway compatible with the Model Context Protocol (MCP) to manage web searches effectively, separating the retrieval process from the reasoning model.

How the MCP Search Gateway Functions

The MCP-compatible gateway serves as a single interface for all agents and reasoning models. It connects to various pluggable backends, including Serper, Bright Data, Firecrawl, Exa, and Tavily. The architecture allows for streamlined search queries through a systematic approach comprising the following steps:

  • Normalize the query for consistent caching.
  • Check the exact cache for previous results.
  • Utilize a semantic cache based on embedding similarity.
  • Only if both caches miss, invoke providers from a fallback chain.
  • Standardize retrieved results into a common schema.
  • Write the results back to the caches with adjusted time-to-live.
  • Return the response in a structured format.

Performance Metrics

In production testing, DSG demonstrated accuracy comparable to or slightly better than native searches. For instance, DSG achieved a 93.90% accuracy on 7,988 retail queries while minimizing search costs to $0.110 per 1,000 queries, compared to $7.90 for native searches. Furthermore, warm caching improved the hit rate from 6.2% to 99.4% and lowered average latency from 4,570 ms to 1,465 ms, reflecting a 68% reduction in response time.

Limitations and Considerations

Despite its benefits, native search retains advantages in freshness-sensitive contexts. Though DSG generally reduces output format violations, it can still face challenges in specific instances, particularly when exact, concise responses are needed. The system’s implementation is not open-sourced and runs exclusively on DoorDash’s internal GenAI platform.

Key Takeaways

  • DSG centralizes web search through an MCP gateway.
  • Production costs were markedly reduced from $7.90 to $0.110 per 1,000 queries.
  • Accuracy has remained stable, with minor improvements noted.
  • A shared cache contributes to enhanced efficiency and speed.
  • Native search remains more reliable for up-to-date search queries.

Source: www.marktechpost.com

Related Articles

Character.AI, once valued at over $1 billion, is filing for bankruptcy and has announced plans to auction off data from...
Introduction Building a secure password generator in Python is an effective way to practice programming while enhancing security measures. This guide...
SpaceXSI has announced the integration of its recently acquired Cursor into its suite of AI coding products, rebranding them under...