Compound AI System
An AI application that combines multiple components—LLM calls, retrieval systems, code execution, classifiers, validators, and traditional logic—into a single integrated system rather than relying on a single model call. Most production AI agents are compound systems: a support agent might chain an intent classifier, a retrieval pipeline, an LLM for response generation, a guardrail classifier, and a confidence scorer. Compound systems outperform single-model approaches because each component can be independently optimized, tested, and improved.
Example
A customer support compound system: Intent classifier (small model) → Retrieval pipeline (vector DB + reranker) → Response generator (large LLM) → PII filter (regex + classifier) → Confidence scorer (small model) → Human escalation gate. Each component is tested and improved independently.
Frequently asked questions
- Why not just use one powerful model for everything?
- Single-model systems are simpler but less reliable, more expensive, and harder to debug. Compound systems let you use cheap models for simple tasks (classification, filtering), expensive models only where needed (complex reasoning), and deterministic code for exact operations (PII redaction, formatting). This optimizes cost, latency, and reliability simultaneously.