Course outline▾
Week 1 · The Foundations
- Day 1Demystifying AI — From Buzzword to Business Logic
- Day 2How Machines Actually Learn — Supervised, Unsupervised and Reinforcement Learning
- Day 3Inside Neural Networks — The Engine of Modern Deep Learning
- Day 4The AI Project Lifecycle — From Raw Data to Production Deployment
- Day 5The Math Behind the Magic — Why Linear Algebra and Probability Matter
- Day 6Data Preprocessing — Cleaning the Messy Reality of Enterprise Data
- Day 7Measuring Success — Understanding Accuracy, Precision, Recall and F1 Scores
Week 2 · Applied AI & APIs
- Day 8Introduction to LLMs & The Modern AI API Landscape
- Day 9Advanced Prompt Engineering — Few-Shot, Chain-of-Thought and Structured JSON
- Day 10Tokenization, Context Windows and Cost Optimization
- Day 11Embeddings and Vector Representations — How Machines Map Meaning
- Day 12Vector Databases — Storing and Searching Enterprise Knowledge
- Day 13Retrieval-Augmented Generation (RAG) — Chatting with Proprietary Documents
- Day 14RAG Evaluation and Hallucination Guardrails
Week 3 · Infrastructure & Hosting
- Day 15Introduction to AI Infrastructure — Hardware, Runtimes and Compute
- Day 16Local Model Execution — Running Open-Weight LLMs Securely with Ollama and vLLM
- Day 17Containerizing AI Workloads — Production Dockerfiles for Python APIs
- Day 18Docker Compose for Multi-Container AI Stacks
- Day 19Kubernetes for AI 101 — Pods, Deployments and Services for Model Serving
- Day 20Persistent Storage in Kubernetes — Managing State, Weights and Vector Indices
- Day 21High-Performance Networking — Ingress and Egress for AI Clusters
Week 4 · Enterprise Workflows
- Day 22Autonomous Agents — From Passive LLMs to Goal-Driven Execution
- Day 23Tool Use and Function Calling — Connecting LLMs to APIs, Databases and Shells
- Day 24Multi-Agent Orchestration — Supervisor, Worker and Evaluator Patterns
- Day 25Automated CI/CD — Automating the Software Lifecycle for AI Models
- Day 26Zero-Trust Security for AI — Sandboxing Ephemeral Execution and Model Egress
- Day 27Observability and Tracing for Agentic Systems — Telemetry, Logs and Metrics
- Day 28Human-in-the-Loop Architecture — Machine Second, Human First in Practice
- Day 29Managing Technical Debt, Drift and Model Governance in Enterprise IT
- Day 30The 10-Year Horizon — Architecting IT Strategy for the AI-Native Enterprise
Day 14: RAG Evaluation and Hallucination Guardrails
2026-10-14 · 7 min read
Watch the video lesson, or subscribe on YouTube for a new lesson every day.
A RAG pipeline is powerful, but it adds new places to fail. The model is only as good as what you hand it, and when it is handed the wrong thing it does not say "I'm confused". It answers confidently.
In plain terms: An open-book exam only works if the student opens the right book. Hand them the wrong chapter and they will write a polished, convincing, wrong answer.
1. Measure the two halves
You evaluate a RAG system by scoring its two halves separately, because they fail in different ways.
- Context relevance asks whether the retrieved documents actually contain the answer to the user's question. This checks the retrieval step.
- Faithfulness asks whether the generated response is strictly derived from the retrieved context, or whether the model brought in outside information. This checks the generation step.
2. Spot an unfaithful answer
Faithfulness is checked claim by claim. If the context says the REIT paid a dividend in Q3 and the answer adds that its yield is 7.4%, that second claim is not in the context. It was invented, and that is a hallucination, even though it sounds perfectly plausible.
3. Guardrails: an LLM as judge
You can automate that check. A secondary, smaller LLM acts as a judge in the pipeline. Before the final answer reaches the user, the judge compares it with the retrieved text and decides whether to show it or block it. When a check fails you can retry retrieval, or return "I don't know". Judges can be wrong too, so sample their decisions and review them.
Here is the idea as a short Python sketch. The llm_judge function stands in for a call to a small model that you prompt to compare an answer against a context.
def guarded_answer(question: str) -> str:
chunks = search(embed(question), top_k=3)
answer = generate(question, chunks)
# Judge: is every claim in the answer supported by the retrieved text?
verdict = llm_judge(
"Reply SUPPORTED or UNSUPPORTED. Is every claim in the answer "
"backed by the context?\n\n"
f"Context: {chunks}\n\nAnswer: {answer}"
)
if verdict.strip().upper().startswith("SUPPORTED"):
return answer
return "I could not find a reliable answer in the documents."
Keep a small test set of real questions with known answers, and run it every time you change chunking, the embedding model or the prompt. That is how you catch a regression before your users do.
Coming Up Next
Day 15: Introduction to AI infrastructure: hardware, runtimes and compute.
#AIQuality #MLOps #Hallucination #TechLeadership #DataGovernance