The layers of AI: from rules to agents

People often use AI, ML, deep learning, generative AI, LLMs, RAG and agentic AI as if they meant the same thing. They don't. Think of them as layers: each new layer is built on the ones below it, and each adds a new ability.

Everyday analogy

A building: the foundation (classical AI) was laid first, then each floor was added on top. Agentic AI is the newest top floor, but it still stands on everything underneath.

Example

ChatGPT is generative AI, built on an LLM, which is deep learning, which is machine learning, which is AI. When it searches your files before answering it's using RAG, and when it books something for you it's acting as an agent.

Artificial intelligenceany machine that acts smartMachine learninglearns from dataDeep learningmany-layered neural networksGenerative AIcreates new contentLLMslanguage modelsAgentsLLMs that act
Each layer sits inside the one before it: agents are built on LLMs, which are a kind of generative AI, and so on.
Agentic AIPlans, uses tools, remembers and acts on its own to reach a goale.g. agents that research, book and report back
RAGGenerative AI that looks up your documents before answeringe.g. a company policy chatbot
Large Language Models (LLMs)Generative AI trained on huge amounts of texte.g. GPT, Claude, Gemini, Llama
Generative AICreates new text, images, audio, video and codee.g. ChatGPT, Midjourney, Suno
Deep learning & neural networksMany-layered networks that learn complex patterns (CNNs, RNNs, transformers)e.g. face recognition, translation
Machine learningLearns patterns from data (supervised, unsupervised, reinforcement)e.g. spam filters, fraud detection
Classical AIHand-written rules, logic and expert systemse.g. early chess programs, rule-based diagnosis

Read from the bottom up: each layer is built on the ones below it.

Try it yourself

About 10 min

Sort the buzzwords into layers

  1. Write these on paper: AI, machine learning, deep learning, generative AI, LLM, RAG, AI agent.
  2. Draw circles inside circles (or a staircase) and place each word where it belongs.
  3. Write one real product for each layer, e.g. ChatGPT for LLM.

What you should see: A picture you can use to explain the difference to a friend in one minute.

Use any free AI chatbot (ChatGPT, Claude, Gemini or Copilot). Never paste private or confidential information.

Build it for real · guided projectTrain an image recogniser and test it for biasAbout 45 min · No coding needed · step by step
Test what you learned

Take a quick quiz, or look up any word in the glossary.