Security rails
Detect direct and indirect injection.
The Guard Evaluate includes a default security check for user inputs, analyzing both direct and indirect injection (e.g., jailbreaking or injection via retrieval or 3rd party tools).
Setup
There is no need to configure any special parameters or policies, as security rails are automatically applied to every user
input.
When correction_enabled
is set to False
, only the user
input message is required. If correction_enabled
is True
, the assistant
output is also required for running auto correction. The system
prompt would be relevant to the auto correction as well.
Alternatively, using override_response
can be a good option in such cases by setting a default response for every detected injection.