Scaling LLMs for Product Knowledge and Search in E-commerce

doordash · E-commerce · 2024 · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: e-commerce product knowledge and search

DoorDash needed to scale product knowledge, catalog quality, and personalized multi-intent search as it expanded from food delivery into groceries, alcohol, and retail.

Constraints:

Architecture

DoorDash combines traditional ML and LLMs for two major areas: a Product Knowledge Graph with LLM-assisted annotation/attribute extraction and search relevance/personalization. The pipeline starts with manually labeled golden annotations, uses RAG to generate silver annotations, fine-tunes generalized attribute extraction models, detects catalog inconsistencies with LLM prompts over product attributes/images, and uses LLMs for relevance labeling on sparse/tail search queries before deploying smaller distilled/quantized models for online inference.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  A["Product catalog"] --> B["Golden annotations"]
  B --> C["RAG silver annotation generator"]
  C --> D["Attribute extraction model"]
  D --> E["Product Knowledge Graph"]
  A --> F["Catalog inconsistency detector"]
  F --> G["Priority bucket workflow"]
  E --> H["Search relevance system"]
  H --> I["LLM relevance labeling"]
  H --> J["Relevance guardrails"]
  I --> K["Online student models"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Product catalog DoorDash SKU and product data across groceries, alcohol, retail, and other verticals. Golden annotations, Catalog inconsistency detector
Golden annotations Small manually labeled set for new categories and products. Product catalog, RAG silver annotation generator
RAG silver annotation generator Uses LLM/RAG to generate many additional training annotations. Golden annotations, Attribute extraction model
Attribute extraction model Fine-tuned model that extracts product attributes for the knowledge graph. RAG silver annotation generator, Product Knowledge Graph
Product Knowledge Graph Enriched product information used by shoppers, dashers, and recommendations. Attribute extraction model, Search relevance system
Catalog inconsistency detector LLM prompt that compares item name, photo, and unit information. Product catalog, Priority bucket workflow
Priority bucket workflow P0/P1/P2 prioritization for catalog fixes. Catalog inconsistency detector
Search relevance system Multi-intent, geo-aware, personalized search and relevance labeling. Product Knowledge Graph, LLM relevance labeling, Relevance guardrails
LLM relevance labeling Labels sparse or tail queries to improve search model training data. Search relevance system, Online student models
Relevance guardrails Prevents personalization from overwhelming the user's actual search intent. Search relevance system
Online student models Distilled/quantized smaller models suitable for low-latency online inference. LLM relevance labeling

Data flow

Golden annotations seed LLM/RAG generation of silver labels, which fine-tune attribute extraction models and enrich the Product Knowledge Graph. Catalog items are checked by prompts over names, photos, and unit data, then prioritized into P0/P1/P2 fix buckets. Search queries are labeled by LLMs for relevance and personalization models rank results with geo-awareness and guardrails.

3 supporting quotes
“using Retrieval-Augmented Generation (RAG), we generate many additional "silver" annotations.”article, stated
“The LLM evaluates the product details, identifying any discrepancies between the listed attributes and the visual representation on the packaging.”article, stated
“LLMs help us assign labels to these less common queries, enhancing the accuracy and reliability of our search systems.”article, stated

Why this architecture

DoorDash uses LLMs where labels, attributes, tail queries, and catalog inconsistencies are expensive for humans, then distills/quantizes models for production latency and cost.

3 supporting quotes
“LLM-assisted annotations help us tackle the "cold start" problem, significantly reducing costs and enabling us to train models in days instead of weeks.”article, stated
“we employ model distillation and quantization to create smaller, more efficient student models suitable for online inference.”article, stated
“Over-personalization can lead to users seeing repetitive or irrelevant items.”article, stated

Models used: LLMs · RAG · generalized attribute extraction model · LoRA · QLoRA · Ray · distilled student models

Scale

Alternatives considered (roads not taken)

Human-only annotation for product attributes

Rejected because: Manual labeling is expensive and slow; LLM-assisted silver annotations scale faster.

“Traditionally, this has meant outsourcing annotation tasks to human annotators—a process that is both time-consuming and expensive.”article, stated

Simple keyword search

Rejected because: DoorDash search needs multi-intent, multi-entity, geo-aware and personalized relevance.

“Search at DoorDash is more than just a straightforward keyword matching system; it’s a dynamic, multi-intent, multi-entity-type, and geo-aware engine.”article, stated

Let personalization dominate ranking

Rejected because: Over-personalization can show repetitive or irrelevant items and obscure search intent.

“we prioritize relevance guardrails to ensure that personalization complements, rather than overshadows, the actual search intent.”article, stated

Patterns

synthetic-data-generation (data)

DoorDash turns a small golden-label set into many LLM/RAG-generated silver annotations.

“By starting with a small set of golden annotations and leveraging LLMs to generate a much larger set of silver annotations”article, stated

rag-retrieval (retrieval)

RAG generates silver annotations and injects external/product knowledge for domain-specific extraction.

“integrating Retrieval-Augmented Generation (RAG) techniques allows us to inject external knowledge into our models”article, stated

model-distillation (model-training)

Distillation and quantization create smaller student models for online inference.

“model distillation and quantization to create smaller, more efficient student models suitable for online inference.”article, stated

safety-policy-enforcement (ranking)

Relevance guardrails constrain personalization so it does not override user intent.

“ensure that personalization complements, rather than overshadows, the actual search intent.”article, stated

Tradeoffs

Annotation strategy

Chose golden-plus-silver LLM-assisted annotations over outsourced human annotation only.

Rationale: LLM assistance reduces cost and cycle time while still grounding categories in a small manually labeled set.

“This approach not only improves the relevance and accuracy of our product database but also enhances the shopping experience”article, stated

Search personalization

Chose personalization with relevance guardrails over unbounded preference-driven ranking.

Rationale: The result must remain relevant to the actual search query.

“while a user with a preference for yogurt might see yogurt-related products in a search for “blueberry,” we ensure that the results remain relevant to blueberries”article, stated

Online serving model

Chose distilled and quantized student models over large LLMs directly in all online paths.

Rationale: High-throughput low-latency production requires smaller efficient models.

“This process allows us to scale LLM-powered features without compromising on performance, making our systems faster and more cost-effective.”article, stated

Gotchas (what bit them)

Cold-start categories lack enough high-quality labels.

Root cause: Human annotation for new product categories is slow and expensive.

Resolution: Seed with golden annotations and generate silver annotations with RAG/LLMs.

“At DoorDash, LLM-assisted annotations help us tackle the "cold start" problem, significantly reducing costs and enabling us to train models in days instead of weeks.”article, stated

Catalog errors damage customer trust.

Root cause: Product titles, photos, and units can disagree at SKU scale.

Resolution: Use LLM prompts to classify discrepancies and prioritize P0/P1/P2 fixes.

“Ensuring the accuracy of our product catalog is crucial to maintaining customer trust and delivering a seamless shopping experience.”article, stated

Tail search queries have sparse and noisy engagement data.

Root cause: Rare queries do not produce enough reliable behavioral labels.

Resolution: Use LLM-generated relevance labels to improve training data quality.

“We train relevance models based on engagement signals, but since engagement data can be noisy and sparse for niche or “tail” queries, we leverage Large Language Models (LLMs) to improve training data quality at scale.”article, stated

Over-personalization can harm relevance.

Root cause: User preferences can bias ranking away from the actual query intent.

Resolution: Add relevance guardrails around personalization.

“Over-personalization can lead to users seeing repetitive or irrelevant items. To counter this, we prioritize relevance guardrails to ensure that personalization complements, rather than overshadows, the actual search intent.”article, stated

Evaluation

DoorDash evaluates product knowledge and search through annotation quality, catalog discrepancy priority, relevance labeling, engagement-derived search signals, guardrail behavior, latency, and production throughput.

Metrics: annotation quality · catalog priority buckets · relevance labels · engagement signals · latency · throughput · model development speed

“Labeling search results for relevance is a task that traditionally relies on human annotations, which can be both costly and time-consuming.”article, stated
“Prompt tuning and evaluation at scale is a significant hurdle, especially as we leverage distributed computing frameworks like Ray to accelerate LLM inference.”article, stated

Outcomes

The case describes architecture and methods across DoorDash new verticals, with less public quantitative outcome data beyond SKU scale and annotation-time improvement.

“This model allows us to enrich our Product Knowledge Graph with accurate and detailed product information, making it easier for customers to find exactly what they are looking for, whether it's a specific vintage wine or a flavor of craft beer.”article, stated
“allowing us to maintain high-quality search experiences with greater efficiency.”article, stated