The modern AI stack: 9 layers and what each one does

AI meetings can sound like a long list of tool names. The trick is to stop memorising names and learn the layers instead. Almost every AI application is built from the same nine layers, and each tool simply fills one of them.

Everyday analogy

Building a house. You need foundations, walls, plumbing, wiring and an inspector. Many companies sell bricks or pipes, but once you know which part of the house a product is for, the list stops being scary.

Example

A company chatbot might use Claude (layer 1) through a cloud provider (2), built with LangGraph (3), connected to SharePoint through MCP (4), remembering users with Mem0 (5), storing documents in pgvector (6) after embedding them with Cohere (7), parsing PDFs with Docling (8), and checking quality with Langfuse (9).

📊 Evals and observability📄 Data extraction🔢 Embeddings and rerankers🗄️ Vector databases🗂️ Memory🧰 Tools and protocols🔁 Agent frameworks☁️ Inference and access🧠 LLMs
The nine layers of the modern AI stack; every tool fills one of them.
LayerIts jobExample tools
1. LLMsThe brain that reads, writes and reasonsGPT, Claude, Gemini, Llama, Mistral, DeepSeek, Qwen
2. Inference & accessWhere the model actually runs, in the cloud or on your own computerHugging Face, OpenRouter, Together AI, Groq, Amazon Bedrock, Google Vertex AI, Microsoft Foundry, Replicate, Ollama, LM Studio, vLLM
3. Agent frameworksThe code that runs the plan → act → check loopLangGraph, CrewAI, LlamaIndex, OpenAI Agents SDK, Microsoft Agent Framework, Pydantic AI
4. Tools & protocolsHow agents reach apps, search the web and talk to other agentsMCP, A2A, Composio, Tavily, Exa, E2B code sandboxes
5. MemoryWhat the agent remembers between chatsMem0, Zep, Letta, Cognee, LangGraph memory
6. Vector databasesWhere knowledge is stored so it can be searched by meaningPinecone, Qdrant, Weaviate, Milvus, Chroma, pgvector, Elasticsearch
7. Embeddings & rerankersTurn text into numbers, then put the best results on topOpenAI, Cohere, Voyage AI, Jina, BGE, Sentence Transformers
8. Data extractionTurn messy PDFs, web pages and scans into clean textUnstructured, LlamaParse, Docling, Firecrawl, Mistral OCR
9. Evals & observabilityCheck answer quality and trace what went wrongLangSmith, Langfuse, Arize Phoenix, Ragas, DeepEval, Braintrust, MLflow, Giskard, Promptfoo

Around the stack

  • AI security and guardrails: filters that block harmful prompts, leaks of personal data and prompt injection (for example NVIDIA NeMo Guardrails, Guardrails AI, Microsoft Presidio, Lakera Guard, Azure AI Content Safety, AWS Bedrock Guardrails).
  • Automation: no-code tools that connect apps and trigger AI steps (n8n, Zapier, Make, Microsoft Power Automate).
  • Workflow orchestration: schedule and retry long-running jobs (Apache Airflow, Temporal, Prefect, Kestra).

Tip: when you hear a new tool name, ask one question: which layer does it fill? New tools appear every month, but the layers stay the same.

Try it yourself

About 10 min

Sort the tool names

  1. Pick 10 tool names you've heard (from LinkedIn posts or this lesson).
  2. Put each in one of the 9 layers.
  3. Look up any you couldn't place.

What you should see: Tool names stop being scary once you know which layer they fill.

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

Build it for real · guided projectBuild an AI workflow that summarises feedback for youAbout 75 min · No coding needed · step by step
Test what you learned

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