Skip to content

Latest commit

 

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Documentation

The documentation is divided into the following sections:

  1. Getting Started
  2. Examples
  3. User Guide
  4. Evaluation Tools
  5. Architecture Guide
  6. Security
  7. API Reference

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.

The following guides explain in more details various specific topics:

  • Extract User-provided Values: Learn how to extract user-provided values like a name, a date or a query.
  • Prompt Customization: Learn how to customize the prompts for a new (or existing) type of LLM.
  • Bot Message Instructions: Learn how to further tweak the bot messages with specific instructions at runtime.
  • Streaming: Learn about the streaming support in NeMo Guardrails.
  • Embedding Search Providers: Learn about the core embedding search interface that NeMo guardrails uses for some of the core features.
  • Event-based API: Learn about the generic event-based interface that you can use to process additional information in your guardrails configuration.
  • Nested AsyncIO Loop: Understand some of the low level issues regarding asyncio and how they are handled in NeMo Guardrails.
  • AlignScore deployment: Learn how to deploy an AlignScore server either directly or using Docker.

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.

Architecture Guide

This guide sheds more light on the infrastructure details and the execution flow for a query when the runtime is used:

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.

Other