Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

System design Remove topic System design Clear all 6 posts RSS

2026

OpenAI

How we built ChatGPT’s novel ad stack for user trust and relevance

Case study 14 min +140 XP

ChatGPT's ad stack replaces the event-driven request/response ads pipeline with stateful ads sessions that track evolving intent across turns and conversations, orchestrated by a post-trained LLM that calls tools for query rewriting, ANN retrieval over multiple embedding indices, eligibility filtering (budget, pacing, targeting, policy, dedup), relevance and engagement scoring, and a separate auction tool that handles pricing and final selection.

The quest for software engineering knowledge.

Look:
Layout: