Guardrails
Guardrails are external safety controls, used in AI security, ethics and governance, that check an AI model's inputs and outputs while the application runs and block risky responses without retraining the model.[1] They apply rules set separately from the model, such as avoiding harmful topics, following a predefined conversation path or keeping a particular style or format.[1] There are two broad approaches: programmable rails, where rules and dialogue flows are written as code,[1] and model-based safeguards, where a classifier labels inputs and outputs as safe or unsafe.[2] Unlike alignment built into a model during training, guardrails can be changed while the service is running.[1]