Phase 1: Retrieval & Knowledge Systems · 30 hours · Python (pipeline + API) · TypeScript (chat UI)
Production RAG Chatbot for a Regulated Vertical
Harvey, Glean, Mendable, and LlamaCloud all run the same production shape in 2026.
Introduction
Ingest with docling or Unstructured and ColPali for visuals. Hybrid search. Re-rank with bge-reranker-v2-gemma. Synthesize with Claude Sonnet 4.7 using prompt caching at 60-80% hit rate. Guard with Llama Guard 4 and NeMo Guardrails. Watch with Langfuse and Phoenix. Grade with RAGAS on a 200-question golden set. Build one in a regulated domain (legal, clinical, insurance), and the capstone is passing the golden set, the red team, and the drift dashboard.
Phases exercised: P5 · P7 · P11 · P12 · P17 · P18
- Type: Capstone
- Languages: Python (pipeline + API), TypeScript (chat UI)
- Prerequisites: the NLP & Speech Processing course, the Transformers & LLMs from Scratch course, the ML & AI Engineering course, the Multimodal AI Systems course, the LLM Inference & Production Infrastructure course, the Responsible AI Engineering course
- Time: 30 hours
The Problem
Regulated-domain RAG (legal contracts, clinical trial protocols, insurance policies) is the most-shipped production shape of 2026 because the ROI is obvious and the stakes are concrete. Harvey (Allen & Overy) built it for legal. Mendable ships the developer-docs flavor. Glean covers enterprise search. The pattern is: ingest high-fidelity, retrieve hybrid with rerank, synthesize with citation enforcement and prompt caching, guard with multiple safety layers, and monitor drift continuously.
The hard parts are not the model. They are jurisdiction-aware compliance (HIPAA, GDPR, SOC2), citation-level auditability, cost control (prompt caching buys 60-90% discount when hit rate is high), hallucination detection via RAGAS faithfulness, and drift detection when the source documents get updated without the index catching up. This capstone asks you to ship all of it on a 200-question golden set with a red-team suite alongside.
Unlock the full lesson
You've read the first 2 sections. The rest of this lesson covers The Concept, Build, Check Yourself, Key Terms & Next — plus a hands-on lab, quiz, and project artifact.
Create a free account — the opening phases of 29 of 35 courses, and the first lesson of every phase, are free, no credit card.
Browse all courses · View pricing · DeVenture Academy