Building with AI
How companies connect AI to their own data and let it take actions: RAG, CAG, agents and agentic AI.
Giving AI your knowledge
Embeddings, RAG, chunking and the alternatives: how AI answers from your own documents.
- Embeddings & vector databases: An embedding turns a piece of text into a list of numbers that captures its meaning.
- Embeddings up close: similarity search and sentence embeddings: An embedding is a list of numbers (often a few hundred to a few thousand of them) that places a word, sentence or image on a map of meaning.
- Inside a vector database: indexes, filters and top-K: A vector database stores embeddings (lists of numbers that capture meaning) together with metadata such as the source, date and author.
- RAG: Retrieval-Augmented Generation: RAG lets AI answer using your own documents.
- Do you even need RAG?: If you have one short document, you can simply give it to the LLM with your question.
- Inside a real RAG system: 15 key ideas: A basic RAG demo takes an afternoon; a reliable RAG system needs many more pieces.
- Chunking strategies for RAG: Before documents can be searched, they're cut into chunks.
- Agentic RAG: query routing and corrective RAG: In basic RAG, every question goes through the same search.
- CAG: Cache-Augmented Generation: CAG loads all the knowledge into the AI's memory (context window) once, in advance, and keeps it ready (cached).
- RAG vs CAG vs MAG: Three ways to give an AI the knowledge it needs: RAG retrieves external context for each question; CAG pre-loads the knowledge into a cache once; MAG (memory-augmented generation) lets the AI both read and write a memory, so it remembers things across conversations.
Teaching a model new skills
When and how to fine-tune a model, including LoRA.
- Fine-tuning: Fine-tuning means giving an already-trained model extra training on a smaller, focused set of examples, so it becomes a specialist.
- Fine-tuning in practice: the pipeline, LoRA and QLoRA: Fine-tuning today rarely changes all of a model's billions of settings.
- Fine-tuning methods compared: full, PEFT, instruction tuning and alignment: Fine-tuning comes in several flavours.
- Prompting vs RAG vs fine-tuning: which one when?: There are three main ways to get better results from a generative AI model.
AI agents: the basics
What agents are, how they differ from chatbots and workflows, and what they're made of.
- AI agents: An AI agent doesn't just answer; it takes actions to reach a goal.
- Agentic AI: Agentic AI is the bigger idea of AI systems that work on their own towards a goal: they plan, break big tasks into steps, use tools, and often several agents work together, with only light human supervision.
- Agentic AI at a glance: the full map: Building agentic AI touches many areas.
- LLM vs RAG vs AI agent vs agentic AI: Four steps up in capability.
- AI chatbot vs AI copilot vs AI agent vs agentic AI: These four words are often used as if they mean the same thing.
- Anatomy of an AI agent: the five building blocks: An AI agent is more than an LLM.
- The 5 levels of AI autonomy: from prompt to autonomous agent: AI tools differ in how much they decide on their own.
- Types of AI agents: from simple reflex to multi-agent: Not all agents are equally smart.
- Agent or workflow? Choosing the right one: A workflow follows a predefined sequence of steps: predictable and repeatable.
Designing and building agents
Architectures, frameworks, tools, memory and teamwork between agents.
- How to build an AI agent, step by step: Building a useful agent is mostly about design, not the model.
- 9 agentic AI concepts everyone should know: When an agent fails, it's usually not the model but the system around it.
- Agent architectures: how agents think and team up: There are two kinds of design choice.
- Agent frameworks and SDKs: You don't build agents from scratch.
- Tools and protocols: how agents act: Agents act in the world through four main mechanisms: function (tool) calling, MCP to plug into tools and data, A2A for agents to talk to other agents, and computer use / browser agents that operate screens like a person.
- Function calling step by step: how an AI uses a tool: Function calling (also called tool use) lets an AI ask your software to do something it can't do alone: check the weather, search a database, book a meeting.
- Loop engineering: keeping agents on track: Every agent runs a loop: reason → act → observe, again and again.
- How AI agents plan and reason: Before an agent acts, it needs a plan: break the goal into smaller steps, choose tools and an order, then adjust when something changes.
- Designing good tools for agents: An agent chooses tools by reading their names and descriptions, so tool design matters as much as the prompt.
- Memory architecture for agents: Agents need two kinds of memory: short-term (what's in the context window right now) and long-term (stored and retrieved later).
- Choosing the right memory for an AI agent: 5 options: An agent can keep what it learns in five different places, from "just this chat" to "the whole project".
- Knowledge graphs, context graphs and procedural graphs: A knowledge graph stores facts as a network of things (nodes) joined by relationships (edges), like Flight AI-302 → departs from → Gate C8.
- What your agent actually sees: the six parts of its context: Before an AI agent answers, it reads a single block of text called its context.
- Orchestration patterns: one agent or many?: There are a few standard ways to organise agents.
- AI architecture patterns: 10 ways to build with AI: There's no single way to build an AI system.
Running agents safely
Human approval, testing, the production stack and success metrics.
- Human-in-the-loop design: How much should a human be involved?
- Evaluating agents: Testing an agent is harder than testing a single answer, because it takes many steps.
- The agent build stack: Under every production agent sits a stack of components.
- LLMOps and safety: running agents responsibly: LLMOps is the day-to-day work of running AI in production.
- Deploying and scaling an AI agent: from laptop to production: An AI agent that works on your laptop isn't finished.
- AI guardrails: how every answer gets checked: Guardrails are automatic checks that sit around an AI model, like seatbelts and traffic rules.
- From idea to production: roadmap and success metrics: Successful agent projects follow four stages: discover the right use case, build carefully, pilot safely, then scale.
Voice, multimodal and MCP
Agents that talk, see, and plug into your apps.
- Voice AI agents: A voice agent listens, understands and speaks back, often in several languages.
- Multimodal AI & MCP: Multimodal AI understands more than text: photos, voice, video.
- MCP vs APIs: An API is how one app talks to another service, usually through web requests.