Checked at Every Turn
An Independent Guide to NVIDIA NeMo Guardrails for Safer LLM Applications and Agents
-
- $0.99
-
- $0.99
Publisher Description
An independent, practical guide to adding programmable safety checks, called rails, to applications and agents built on large language models, using the open-source NeMo Guardrails library from NVIDIA as the worked example. The book follows one fictional parcel delivery company, Tamberlyn Parcel Post, as its team puts rails around a customer-support assistant and an operations agent that issues delivery credits through tools. You start with rails that need no model and no key: regular-expression and expression-language checks that block card numbers, unknown tools, bad arguments and oversized credits, all run for real. You then learn the configuration model, check mode and proxy mode, input and output rails, content safety and topic checks, sensitive-data masking, tool-call and tool-result validation, retrieval and fact-checking rails, Colang dialog flows and custom actions. A full chapter explains the 0.25 release, which introduces a new engine and deprecates the older Colang runtime, and shows how to plan a migration. The final part covers testing with scripted models, policy-based evaluation, serving rails as a shared service, latency, observability, privacy of logs and day-to-day operations. Includes Python code, a hands-on lab, review questions with answers and a glossary.