Guardrails are controls wrapped around LLM inference to reduce harmful, non-compliant, or off-policy behavior without replacing the base model. Their objective is AI safety and governance in production: block or rewrite prompts that attempt prompt injection or jailbreaks, filter toxic or leaked PII in outputs, enforce topic allowlists, validate structured tool calls, and log decisions for audit. Guardrails sit on the request path (before tokens reach the model or after the model proposes a draft response), combining rule engines, classifiers, regex, and sometimes smaller models. They complement—not replace—application auth, network policy, and human review; enterprises treat them as mandatory for customer-facing and internal copilots.
Architecturally, guardrails are CPU- and latency-sensitive orchestration around GPU inference. The heavy LLM still runs in vLLM or NIM; guardrail services may call lightweight detectors (e.g. prompt-injection classifiers) or policy APIs in parallel or in series, adding milliseconds to seconds depending on depth. Unlike training, guardrails do not update weights; unlike RAG, they do not retrieve facts—they constrain how the model may respond. False positives frustrate users; false negatives create security incidents, so teams tune thresholds per use case. MCP and agent toolchains extend the attack surface, so guardrails increasingly cover tool arguments and retrieved content, not only chat text.
Red Hat documents Guardrails Orchestrator for Red Hat OpenShift AI: integrating detectors (regex, Hugging Face models, vLLM-based judges) into serving pipelines on OpenShift, with configuration aligned to enterprise security practices (routes, secrets, SCCs). Blog and security content tie guardrails to defense-in-depth for AI agents (sandboxing, NetworkPolicy, memory-poisoning awareness). RHEL AI focuses on model quality via InstructLab; OpenShift AI adds runtime safety for served models. Red Hat positions guardrails as platform plumbing customers deploy beside open or NVIDIA runtimes, not as a single proprietary model.
