Documentation

The documentation is divided into the following sections:

Getting Started

This section will help you get started quickly with NeMo Guardrails.

  • Installation guide: This guide walks you through the process of setting up your environment and installing NeMo Guardrails

  • Getting Started guides: A series of guides that will help you understand the core concepts and build your first guardrails configurations. These guides include Jupyter notebooks that you can experiment with.

Examples

The examples folder contains multiple examples that showcase a particular aspect of using NeMo Guardrails.

  • Bots: This section includes two example configurations.

    • HelloWorldBot: This basic configuration instructs the bot to greet the user using “Hello World!” and to not talk about politics or the stock market.

    • ABCBot: This more complex configuration includes topical rails, input and output moderation and retrieval augmented generation.

  • Configs: These example configurations showcase specific NeMo Guardrails features, e.g., how to use various LLM providers, Retrieval Augmented Generation, streaming, red-teaming, authentication, etc.

  • Scripts: These short scripts showcase various aspects of the main Python API.

Note: These examples are meant to showcase the process of building rails, not as out-of-the-box safety features. Customization and strengthening of the rails is highly recommended.

User Guides

The user guides cover the core details of the NeMo Guardrails toolkit and how to configure and use different features to make your own rails.

Security

  • Security Guidelines: Learn about some of the best practices for securely integrating an LLM into your application.

  • Red-teaming: Learn how you can use the experimental NeMo Guardrails red-teaming interface.

Evaluation Tools

NeMo Guardrails provides a set of CLI evaluation tools and experimental results for topical and execution rails. There are also detailed guides on how to reproduce results and create datasets for the evaluation of each type of rail.

Advanced Guides

The following guides explain in more details various specific topics:

Other

  • Architecture: Learn how the Guardrails runtime works under the hood.

  • Glossary

  • FAQs