docs(guardrail-catalog): document running multiple self-check rails#2176
Merged
Conversation
Add a "Running Multiple Self-Check Rails" section to the self-check guardrail reference. It covers the $variant= flow parameter: one flow per variant, a matching prompt task per variant, optional per-variant model routing via a model type that matches the variant name, and the fallback to the base self-check model type and then the main model. Notes that a missing variant prompt raises at config load and that a rail without $variant= uses the default prompt.
Contributor
|
Staged Fern docs preview: https://nvidia-preview-pr-2176.docs.buildwithfern.com/nemo/guardrails |
Contributor
miyoungc
approved these changes
Jul 16, 2026
miyoungc
reviewed
Jul 16, 2026
Signed-off-by: Miyoung Choi <miyoungc@nvidia.com>
Contributor
📝 WalkthroughWalkthroughAdds documentation for configuring and running multiple self-check rails with named variants, matching prompts, optional dedicated models, execution ordering, blocking behavior, and default rails. ChangesSelf-check rail configuration
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Contributor
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/configure-rails/guardrail-catalog/self-check.mdx`:
- Around line 298-313: Expand the model-routing example around the model
definitions and fallback description to state the routing mode, supported model
modes, and applicable limitations or access requirements. Include the required
model type, routing mode, supported modes, and known limitations while
preserving the existing variant-specific and fallback routing behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 083523e8-4065-4373-b7b0-cf01e17d8538
📒 Files selected for processing (1)
docs/configure-rails/guardrail-catalog/self-check.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add a "Running Multiple Self-Check Rails" section to the self-check guardrail reference. It covers the $variant= flow parameter: one flow per variant, a matching prompt task per variant, optional per-variant model routing via a model type that matches the variant name, and the fallback to the base self-check model type and then the main model. Notes that a missing variant prompt raises at config load and that a rail without $variant= uses the default prompt.
Related Issue(s)
#1874 #2175
Verification
fern passed locally
AI Assistance
Checklist
Summary by CodeRabbit