flow self check facts
"""Check if the previous answer is accurate w.r.t. the relevant chunks.
This output rail must be enabled explicitly per output message by setting
the $check_facts context variable to True.
"""
if $check_facts == True
global $check_facts
$check_facts = False
$accuracy = await SelfCheckFactsAction
if $accuracy < 0.5
if $system.config.enable_rails_exceptions
send FactCheckRailException(message="Fact check failed. The accuracy of the previous answer was below the required threshold.")
else
bot refuse to respond
abort
← Back to catalog
Facts (NeMo Guardrail)
flow self check facts """Check if the previous answer is accurate w.r.t. the relevant chunks. This output rail must be enabled explicitly per output m
Automated safety scan: no suspicious patterns found.
Heuristic text scan aligned to the OWASP Agentic Skills Top 10. How we scan
- Provider
- NVIDIA
- Origin
- Official
- Type
- Guardrails
- License
- Apache-2.0
- Language
- English
- Added
- 2026-02-15
#guardrail#nemo#rails#colang