MODULE 6 · DAY 2
The Declarative Agent
Agentic RAG — an agent you write down, not code up
Gourav Shah · Containers for GenAI & Agentic AI · School of DevOps & AI
M6·01
What you'll learn
By the end of this module — you can write an agent, not just call a model.
M6·02
Naive RAG is passive — it always retrieves
Module 5's pipeline has no judgment: every question takes the same road.
M6·03
Onboard an engineer — don't script a robot
You don't hand a new hire a flowchart. You hand them three documents.
M6·04
The anatomy of a 2026 agent
Five parts — persona, instructions, skill, tools, guardrails — plus glue.
M6·05
Declarative Markdown vs a hand-coded robot
Changing Aria's tone or adding a guardrail is an edit — not a code change.
M6·06
Agentic RAG — decide first, then act
The agent routes each question first: does this need Acme's runbooks?
M6·07
A 1.5B model can route reliably
Two classes, temperature 0 — the decision is simple, so a laptop model nails it.
M6·08
Real tools through an MCP gateway
ToolHive at the hub; each MCP server an isolated container on a spoke.
M6·09
Each tool server in its own sandbox
thv run fetch — ToolHive wraps the server in proxy + DNS containers.
M6·10
Guardrails — refuse before the model runs
A hard regex gate in application code, not a soft plea in the system prompt.
M6·11
Memory — a librarian who shelves by meaning
ChromaDB is Aria's long-term semantic memory, reused unchanged from Module 5.
M6·12
The whole agent ships in a container
Markdown + skills + MCP config bundled — portable, reproducible, one image.
M6·13
TO THE LAB
The agent IS Markdown + skills + tools
Read the three files that are Aria, run the agent, then wire in a live MCP tool.
Next: Module 6 Lab, then M7 — the crew. · Gourav Shah · School of DevOps & AI
M6·14