DoorDash introduced a Decoupled Search Grounding gateway that isolates the web‑retrieval stage from the LLM’s reasoning phase. By moving retrieval out of the model’s prompt, the system can swap providers, cache results, adjust how deep it searches, and fall back to alternate sources without altering the reasoning component.
Architecture Shift
The gateway follows the Model Context Protocol (MCP), making it a plug‑in point for any MCP‑compatible search service. Key architectural traits include:
- Provider interchangeability: Teams can replace or add search back‑ends without redeploying the LLM.
- Exact and semantic caching: Repeated queries hit a cache layer, reducing external calls.
- Configurable retrieval depth: Operators can limit how many results are fetched per query.
- Provider fallbacks: If the primary source fails, the gateway can automatically query a secondary service.
Operational Impact
Production query‑intent tests showed more than a 98% reduction in search‑related costs while keeping accuracy on par with native grounding. The cost drop stems mainly from caching and the ability to choose cheaper providers for low‑risk queries. Operators will need to monitor cache hit ratios, provider latency, and any drift in answer quality as retrieval logic evolves.
Security and Trust Considerations
Separating retrieval creates a distinct trust boundary. Practitioners should assess the security posture of each search provider, verify data handling policies, and ensure that cached content does not expose sensitive information. The gateway itself becomes a point of control that must be hardened against misconfiguration or unauthorized provider changes.
Next Evaluation Steps
Teams adopting this pattern should track:
- Cost per query before and after caching.
- Latency differences between primary and fallback providers.
- Accuracy trends as retrieval depth is tuned.
- Cache eviction policies and their impact on freshness.
Related CloudNinjas coverage: AI engineering.
What This Means For Practitioners
Implement a modular retrieval layer that complies with MCP, enable both exact and semantic caches, and define fallback rules to improve resilience. Continuously measure cost, latency, and quality to fine‑tune depth and caching parameters. Finally, treat each provider as a separate security domain and apply appropriate governance.
