Policy example to detect direct prompt injection using jailbreak rule
To detect prompt injections, you can use the rule jailbreak
, for more details, see our Rules Catalog.
Here is an example of policy to detect injection:
detect-injection
status
being fail or pass, and the list of policy violations. You could check if the policy id detect-injection
is there.Policy example to detect direct prompt injection using jailbreak rule
To detect prompt injections, you can use the rule jailbreak
, for more details, see our Rules Catalog.
Here is an example of policy to detect injection:
detect-injection
status
being fail or pass, and the list of policy violations. You could check if the policy id detect-injection
is there.