LLM Primer III — Series Introduction & Index

Published on: 2026-03-17 Last updated on: 2026-06-09 Version: 2

LLM Primer III — Enhancing Enterprise AI with RAG: Series Introduction & Index

"A base model is brilliant and unprovable. RAG is the architecture that makes it both fresh and citable." Welcome to Book III in the LLM Primer series — and to the walkthrough that goes with it. Over the next eleven days, one post per chapter, we’ll open up the retrieval-augmented generation stack and look at the decisions that determine whether an enterprise RAG system quietly works or quietly fails.


Why Book III exists

Books I and II in this series gave you the model. Book I told the plain-language story of what LLMs are and how systems are built around them. Book II opened the mathematics underneath. Book III is about what surrounds a model once you try to put it to work on documents that change, on knowledge that has to be cited, and on access controls that are not optional.

RAG looks simple from the outside. Three boxes on a slide: embed, retrieve, generate. Anyone who has shipped one to production knows that every box is its own discipline, and that the gap between a working demo and a system a legal team will trust is measured in months of engineering against problems the demo never surfaced. The parser silently flattens tables. The chunker cuts a definition off from its qualifier. The vector database’s filter pushdown is weaker than the benchmark suggested. The retriever returns confident neighbors of a meaningless embedding. The evaluation harness reports green dashboards over hallucinations.

This book walks the stack honestly, layer by layer. Each chapter is the discipline behind one of the boxes — the questions a serious team has to answer to put that layer into production. The promise is not that there is one right architecture. The promise is that, by the end, you will know which architecture is right for your corpus, your team, and your regulatory perimeter, and which costs you are paying along each axis.

Book in one sentence: Enterprise RAG is a stack of decisions — parsing, chunking, indexing, retrieval, security, evaluation, and update — and every layer constrains what the layer above it can do.

Who I wrote this for

Engineers building RAG systems, technical PMs scoping them, and architects who have to defend the choices to a security review. The book assumes the reader is comfortable with the Book I picture of how an LLM behaves; it does not assume the Book II mathematics. Where math matters, it appears as intuition, not as a derivation to grind through. The center of gravity is the engineering: where the failure modes live, which decisions are reversible, and which lock the team in for years.

How to read it

Three modes that have worked for early readers. Front-to-back, if you are about to start building an enterprise RAG system and want the stack in the order the decisions actually arrive. As a reference, if you have a working system and a specific layer that is hurting — the parsing chapter, the chunking chapter, the evaluation chapter all stand on their own. Or as a sidebar for the architecture review, where the chapters become the prompts for the conversation a team needs to have before committing to a vendor.

The 11-chapter walk

March 18 — Chapter 1: The Evolution of RAG Architecture. The four architectural postures — Naive, Advanced, Modular, Agentic — and when fine-tuning is the better answer than retrieval.

March 19 — Chapter 2: Intelligent Document Parsing. Why flattening a PDF loses what matters, the layout-aware parsers that put the signals back, and the multimodal track where the model reads the page directly.

March 20 — Chapter 3: Advanced Chunking Frameworks. The chunking spectrum, the overlap myth, the context cliff, and the frontier techniques — contextual retrieval and late chunking — that reshape the calculus.

March 21 — Chapter 4: Selecting the Right Vector Database. Purpose-built versus extension architectures, the managed leaders, the open-source field, and the three axes — residency, ops, cost — that decide the real choice.

March 22 — Chapter 5: Architecting the Retrieval Pipeline. Hybrid search, reciprocal rank fusion, cross-encoder reranking, and the query-understanding layer that bridges how users ask and how documents answer.

March 23 — Chapter 6: RAG Threat Models and Vulnerabilities. Prompt injection, indirect injection through retrieved content, data exfiltration paths, and the threat model you actually have to defend.

March 24 — Chapter 7: Implementing Access Control. Per-document permissions, row-level security at the index, identity propagation through the retrieval call, and the patterns that survive an audit.

March 25 — Chapter 8: Data Anonymization in the RAG Pipeline. PII detection at ingest, the right place to redact, the asymmetries between training data and retrieval corpora, and the residual-risk picture.

March 26 — Chapter 9: The RAG Evaluation Triad. Context relevance, answer faithfulness, answer relevance — the three measurements that localize where a regression came from.

March 27 — Chapter 10: Leading Evaluation Frameworks. RAGAS, TruLens, DeepEval, and the practical question of how to make the triad usable in CI.

March 28 — Chapter 11: Continuous Updates and Pipeline Optimization. Incremental indexing, drift detection, reindex strategy, and the operational discipline that keeps a RAG system from quietly degrading after launch.

What’s different about Volume III: the earlier volumes were about the model. This one is about the apparatus that surrounds it. Most RAG failures are not model failures — they are decisions made three layers upstream that no amount of prompt engineering can recover. The book is organized to surface those decisions in the order they actually have to be made.

About this book and the series

The LLM Primer series is the long answer to the question I kept being asked by engineers, founders, and the occasional regulator: how do these systems actually work, and what does it take to build one that holds up under load? Book I gave the shape of it. Book II gave the mathematics. Book III gives the production architecture. Book IV, in progress, turns to MCP and the cognition layer that sits above the model.

Want the whole picture right now? LLM Primer III: Enhancing Enterprise AI with RAG is the book this series is mapping — with the full architectural comparisons, evaluation playbooks, security checklists, and operational templates that the walkthrough only sketches. View on Amazon →

See you tomorrow, with Chapter 1.


SHO
SHO
CTO of Receipt Roller Inc., he builds innovative AI solutions and writes to make large language models more understandable, sharing both practical uses and behind-the-scenes insights.