Documentation Index
Fetch the complete documentation index at: https://mintlify.com/NVIDIA-NeMo/Guardrails/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before installing NeMo Guardrails, ensure your system meets the following requirements:Python Version
NeMo Guardrails supports the following Python versions:- Python 3.10
- Python 3.11
- Python 3.12
- Python 3.13
C++ Compiler and Dev Tools
NeMo Guardrails uses annoy, a C++ library with Python bindings for efficient similarity search. You’ll need a C++ compiler and development tools installed on your system.- macOS
- Linux (Ubuntu/Debian)
- Linux (RHEL/CentOS/Fedora)
- Windows
Installation
Install via pip
Verify Installation
Optional Dependencies
NeMo Guardrails supports optional features through extras. Install them based on your needs:Optional Dependencies Details
openai - OpenAI and LangChain OpenAI Support
openai - OpenAI and LangChain OpenAI Support
openai- Official OpenAI Python clientlangchain-openai- LangChain integrations for OpenAI models
eval - Evaluation and Benchmarking Tools
eval - Evaluation and Benchmarking Tools
tqdm- Progress bars for evaluationnumpy- Numerical computingstreamlit- Web UI for evaluation resultstornado- Web server framework
nemoguardrails evaluate command.sdd - Sensitive Data Detection
sdd - Sensitive Data Detection
presidio-analyzer- PII detection and analysispresidio-anonymizer- PII anonymization
gcp - Google Cloud Platform Integration
gcp - Google Cloud Platform Integration
google-cloud-language- Google Cloud Natural Language API
nvidia - NVIDIA AI Endpoints
nvidia - NVIDIA AI Endpoints
langchain-nvidia-ai-endpoints- LangChain integration for NVIDIA NIM
tracing - OpenTelemetry Tracing
tracing - OpenTelemetry Tracing
opentelemetry-api- OpenTelemetry APIaiofiles- Async file operations
jailbreak - Jailbreak Detection
jailbreak - Jailbreak Detection
yara-python- Pattern matching for jailbreak detection
multilingual - Language Detection
multilingual - Language Detection
fast-langdetect- Fast language detection
server - Server Features
server - Server Features
aiofiles- Async file operationsopenai- OpenAI client for server endpoints
nemoguardrails server with full features.Development Installation
For contributing to NeMo Guardrails or running tests, install from source:Docker Installation
You can also run NeMo Guardrails in a Docker container:Environment Variables
For using LLM providers, you’ll typically need API keys set as environment variables:Troubleshooting
Error: Microsoft Visual C++ 14.0 or greater is required
Error: Microsoft Visual C++ 14.0 or greater is required
Error: command 'gcc' failed
Error: command 'gcc' failed
ImportError: No module named 'annoy'
ImportError: No module named 'annoy'
Version conflicts with existing packages
Version conflicts with existing packages