Skip to content
StackDecode
System Design
19. AI System Design and LLM InfrastructureAnimated

AI System Architecture

How the parts of an AI product fit together.

The idea

Data, models, serving, retrieval, guardrails and monitoring form a pipeline around the model, which is only one component.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

DataTrainingModel registryServingFeedback
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Data is collected, cleaned and versioned.

step:
1/4
at:
Data
1/9

The green dot is a request moving through the system.

Step by step

  1. 1Collect and prepare data
  2. 2Train or choose a model
  3. 3Serve it behind an API
  4. 4Monitor quality and cost

Where it is used

Any AI-powered product.

Watch out for

The model is often the easy part. Data, latency and evaluation take the effort.

Related