About Configuring Guardrails
This section explains how to configure your guardrails system, from defining LLM models and guardrail flows in YAML to implementing advanced features like Colang flows and custom actions.
Before You Begin with Configuring Guardrails
Before diving into configuring guardrails, ensure you have the required components ready and understand the overall structure of the guardrails system.
Prepare LLM endpoints, NemoGuard NIMs, and knowledge base documents before configuration.
Get StartedLearn to write config.yml, Colang flows, and custom actions for guardrails.
ConceptCore Configuration
Configure the essential components of your guardrails system.
Define models, guardrails, prompts, and tracing settings in the config.yml file.
ReferenceReference for all config.yml options including models, rails, prompts, and advanced settings.
ReferenceReference for pre-built guardrails including content safety, jailbreak detection, and PII handling.
ReferenceLearn Colang, the event-driven language for defining guardrails flows and bot behavior.
ConceptAdvanced Configuration
Optional configurations for extending and optimizing your guardrails system.
Create Python actions to extend guardrails with external APIs and validation logic.
How ToUse config.py to register custom LLM providers, embedding providers, and shared resources at startup.
How ToAdditional configuration topics including knowledge base setup and embedding search providers.
ReferenceConfigure in-memory caching for LLM calls and KV cache reuse to improve performance and reduce latency.
How ToRaise and handle exceptions in guardrails flows to control error behavior and custom responses.
Reference