Pre-Configuration Checklist

View as Markdown

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.

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:

ProviderRequirements
NVIDIA NIMDeploy NIM and note the API endpoint
OpenAIObtain API key
Azure OpenAIConfigure Azure endpoint and API key
AnthropicObtain API key
CohereObtain API key
Google Vertex AIConfigure project and credentials
HuggingFaceObtain API token or deploy endpoint
vLLMDeploy vLLM server and note the API endpoint
Other providersRefer to Supported LLMs

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:

NVIDIA NemoGuard ModelPurpose
Content SafetyDetect harmful or inappropriate content
Jailbreak DetectBlock adversarial prompt attacks
Topic ControlKeep conversations on-topic

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 (.md files)
  • 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:

ComponentPurposeFormat
Custom ActionsExternal API calls, validation logicPython functions in actions.py
Custom InitializationRegister custom LLM/embedding providersPython code in config.py
Custom PromptsOverride default guardrails promptsYAML in config.yml or prompts.yml

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.