Pre-Configuration Checklist
Pre-Configuration Checklist
This Configure Rails chapter thoroughly describes how to prepare guardrails configuration files. This page covers the prerequisites and decisions to make before you begin working on guardrails configurations.
Checklist Summary
Use the following checklist to ensure that you have all the necessary components ready before you begin configuring guardrails.
- (Required) Main LLM endpoint and credentials ready. Refer to Hosted LLM For The Main LLM for more details.
- (Recommended) NemoGuard NIM endpoints deployed. Refer to Supported Nemoguard NIM Microservices for more details.
- (Optional) Knowledge base documents prepared. Refer to Knowledge Base Documents for more details.
- (Optional) Custom action requirements identified. Refer to Advanced Components for more details.
Each item in the checklist is described in detail in the following sections.
Hosted LLM for the Main LLM
You need a main LLM hosted and accessible via API. This LLM handles the conversation by generating responses to user queries.
Options:
Checklist of what you need:
- LLM API endpoint URL, either locally, on NVIDIA API Catalog, or on the third-party providers
- Authentication credentials (API key or token)
NVIDIA NemoGuard NIM Microservices
Deploy dedicated safety models to offload guardrail checks from the main LLM:
Checklist of what you need:
- NemoGuard NIM endpoint URLs, either locally or on NVIDIA API Catalog
- KV cache enabled for better performance (recommended)
If you use NVIDIA NIM for LLMs and LLM-based Nemotron NIMs, KV cache helps reduce latency for sequential guardrail checks. To learn more about KV cache, see the KV Cache Reuse guide in the NVIDIA NIM documentation.
Knowledge Base Documents
If using RAG (Retrieval-Augmented Generation) for grounded responses (i.e. Retrieval rails):
- Prepare documents in markdown format (
.mdfiles) - Organize documents in a
kb/folder
Advanced Components
For advanced use cases such as implementing your own custom scripts or guardrails, prepare the following as needed:
Next Steps
Once you have these components ready, proceed to the next section Overview to start organizing your guardrails configuration files.
If you need tutorials to understand how to use the NeMo Guardrails library, revisit the Get Started section.