Configuration Structure
The standard structure for a guardrails configuration folder looks like this:Main Configuration Files
A complete guardrails configuration typically consists of three main components:config.yml
General configuration options including LLM models, active rails, and custom settings
.co files
Colang definitions that define various types of rails and conversation flows
actions.py
Custom Python actions that can be called from your guardrails
Configuration Loading
To use a guardrails configuration in your application:Types of Guardrails
NeMo Guardrails supports five main types of guardrails that can be configured:Dialog Rails
Influence how the LLM is prompted; operate on canonical form messages and determine conversation flow
Basic Configuration Example
Here’s a minimal example fromexamples/configs/sample/config.yml:
Next Steps
config.yml Schema
Learn about all available configuration options
Rails Definition
Define custom rails using Colang
Custom Actions
Create Python actions for your guardrails
LLM Configuration
Configure different LLM providers