How it works · 29 of 49 Core

What is a compound AI system?

The model is one box of many

Compound AI systems: A useful AI feature is rarely one model call. It is a system: a retriever that fetches the right documents, tools that look things up or calculate, a checker that compares the answer with the evidence, and code that wires them together. The model stays the same; the parts around it decide what it knows, what it can do and what is stopped before a customer sees it. That is why most quality gains in applications come from system design, not a bigger model, and why each part is something to build, measure and pay for.

Loading the animation…

Say it like this A compound AI system wraps one model in retrievers, tools and checkers, and most of the quality comes from those parts, not from a bigger model; each part is another call to build, pay for and test.

Under the hood — for builders
The sources, in their words
Zaharia, Khattab and others ("The Shift from Models to Compound AI Systems", BAIR Blog, Feb 2024): "a system that tackles AI tasks using multiple interacting components, including multiple calls to models, retrievers, or external tools"; at Databricks "60% of LLM applications use some form of retrieval-augmented generation (RAG), and 30% use multi-step chains."
Words
Retriever: finds the passages a question needs (GenAI A1). Tool: code the model asks to run, such as an order lookup (GenAI C2). Checker: a second step that compares the answer with the evidence and stops unsupported ones.
Run here: every set of helpers
1,000 questions: half need the shop's documents, a fifth an order lookup, the rest general knowledge. The model alone guesses the first two. Hit rates are ours. Right · wrong · to a person:
Read the claim: one call or many?
BAIR's own table, MMLU (a 57-subject multiple-choice test). Gemini's CoT@32 "samples 32 chain-of-thought answers" and keeps the top choice; a score from 32 calls is a system's score.
Why systems win
BAIR: "Some tasks are easier to improve via system design"; "Systems can be dynamic" (fresh data); "Improving control and trust is easier with systems" (filters, citations).
Measure it
Score each part on its own (did retrieval find the passage? did the tool run?) and the whole: right, wrong, handed off, cost and time per question.
Watch out
Every part can fail and every call adds time and cost; a checker that is too strict hands everything to people. Our run is a toy with assumed hit rates.
Sources
Matei Zaharia, Omar Khattab et al., "The Shift from Models to Compound AI Systems", BAIR Blog, 18 Feb 2024, read in session · newsroom simulation, Python, 19 Nov 2026.

What happens in the compound AI systems animation, step by step?

  1. One model alone answers 1,000 questions about one shop. It knows the world, not the shop's policies or your order.
  2. Your turn: drag the helpers to the desk, one at a time, and watch the bars. The model never changes.
  3. With all three, 834 right and only 37 wrong; the editor sends 129 doubtful answers to a person instead of guessing.
  4. The Berkeley authors' example: tripling a model's training lifts it from 30% to 35%; a system that samples and tests reached 80%.
  5. Each part is another call to pay for, wait for and test. Next: who decides the path, your code or the model?

What everyday example explains compound AI systems?

A newsroom, not a single writer: researchers fetch, a desk checks the sums, an editor checks the facts, and the writer is the same person throughout.

Why should a team care about compound AI systems?

When an AI feature is wrong, the fix is usually in the system (what was retrieved, what was checked), not the model. Reading a benchmark or a vendor claim also means asking: one call, or a system?