LinkedIn analytics tracking pixel for AIDOLS AI consulting website performance measurement
Governance & Risk

AI Guardrails

AI guardrails are the layered controls — input filters, output classifiers, policy engines, schema validation, and structured generation — that constrain an AI system to safe, on-policy, and on-task behavior.

Full definition

Guardrails operate at four points: (1) input — block disallowed queries; (2) retrieval — restrict source documents by ACL; (3) generation — constrain to schemas (JSON, function signatures); (4) output — classify and reject unsafe completions. NVIDIA NeMo Guardrails, Llama Guard, and OpenAI's moderation API are common implementations. Guardrails are layered defense, not a single filter, and should fail closed.

Why it matters

Guardrails turn "the model behaved badly" into "the system refused, logged, and alerted." For any user-facing AI, they are non-optional — and they are the boundary between an AI feature you can defend in court and one you cannot.

Example

A healthcare chatbot wraps an LLM with three layers: PHI input redaction, schema-constrained outputs, and a Llama Guard classifier on every response. A jailbreak that bypasses one layer is caught by the other two.

Source & further reading

Primary source: Inan et al. — "Llama Guard: LLM-based Input-Output Safeguard" (Meta AI) (2023).

Citation policy: this entry is part of the AIDOLS AI Implementation Glossary and may be quoted for research, journalism, and education with attribution to aidolsgroup.com/it/glossary/guardrails/.