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).
| Layer | Its job | Example tools |
|---|---|---|
| 1. LLMs | The brain that reads, writes and reasons | GPT, Claude, Gemini, Llama, Mistral, DeepSeek, Qwen |
| 2. Inference & access | Where the model actually runs, in the cloud or on your own computer | Hugging Face, OpenRouter, Together AI, Groq, Amazon Bedrock, Google Vertex AI, Microsoft Foundry, Replicate, Ollama, LM Studio, vLLM |
| 3. Agent frameworks | The code that runs the plan → act → check loop | LangGraph, CrewAI, LlamaIndex, OpenAI Agents SDK, Microsoft Agent Framework, Pydantic AI |
| 4. Tools & protocols | How agents reach apps, search the web and talk to other agents | MCP, A2A, Composio, Tavily, Exa, E2B code sandboxes |
| 5. Memory | What the agent remembers between chats | Mem0, Zep, Letta, Cognee, LangGraph memory |
| 6. Vector databases | Where knowledge is stored so it can be searched by meaning | Pinecone, Qdrant, Weaviate, Milvus, Chroma, pgvector, Elasticsearch |
| 7. Embeddings & rerankers | Turn text into numbers, then put the best results on top | OpenAI, Cohere, Voyage AI, Jina, BGE, Sentence Transformers |
| 8. Data extraction | Turn messy PDFs, web pages and scans into clean text | Unstructured, LlamaParse, Docling, Firecrawl, Mistral OCR |
| 9. Evals & observability | Check answer quality and trace what went wrong | LangSmith, 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 minSort the tool names
- Pick 10 tool names you've heard (from LinkedIn posts or this lesson).
- Put each in one of the 9 layers.
- 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.