Skip to content

Guardrail Configurations

Guardrail configurations define the safety policies that protect your LLM interactions. A configuration specifies which safety checks (rails) to apply, the models to use, and the prompts to use for the safety checks.


Overview

A guardrail configuration contains several properties that customize how the service interacts with models and applies safety checks. Most configurations define these core components:

  1. Models – The models to use for each task.
  2. Prompts – Prompt templates to use for each task.
  3. Rails – Configuration that defines how to apply checks on the user input or LLM output.

A guardrail configuration also supports general options such as instructions and sample conversations that you can customize.


In This Section