AI engineering glossary · Evals guardrails AI security

What is input guardrail?

Input guardrail: A check applied to a user's message before it reaches the model, which can block, rewrite or flag it. Typical checks detect injection attempts, harmful requests, off-topic queries and personal data, and they reduce risk and cost by stopping bad requests early.

Level: intermediateTopic: Evals guardrails AI security

Input guardrail: an example

A classifier scans each incoming message and rejects those that ask the bot to 'ignore previous instructions'.

Related terms

More Evals guardrails AI security terms

Where you learn it

Input guardrail is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.