Configuring YAML File
This section describes the config.yml file schema used to configure the NeMo Guardrails library.
The config.yml file is the primary configuration file for defining LLM models, guardrails behavior, prompts, knowledge base settings, and tracing options.
Overview
The following is a complete schema for a config.yml file:
Configuration YAML Schema Reference
For a complete, consolidated reference of all configuration options, see the YAML Schema Reference.
Configuration Sections
The following sections provide detailed documentation for each configuration section of the overall config.yml file:
Configure LLM engines, embedding models, and task-specific models in config.yml.
ReferenceConfigure input, output, dialog, retrieval, and execution rails in config.yml to control LLM behavior.
ReferenceCustomize prompts for self-check, fact-checking, and intent generation tasks.
ReferenceConfigure FileSystem and OpenTelemetry tracing adapters to monitor guardrails.
ReferenceConfigure streaming for LLM token generation and output rail processing in config.yml.
ReferenceFile Organization
Configuration files should be organized in a config folder with the following structure: