forked from NVIDIA/NeMo-Guardrails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update documentation to allow rendering with Sphinx.
- Loading branch information
Showing
59 changed files
with
432 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.swagger-ui code { | ||
white-space: pre-wrap; | ||
} | ||
|
||
.microlight code { | ||
color: white; | ||
background: none; | ||
border: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Architecture | ||
============ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
README |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
:orphan: | ||
|
||
Evaluation | ||
========== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
README | ||
llm-vulnerability-scanning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:orphan: | ||
|
||
1 Hello World | ||
============= | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
README |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:orphan: | ||
|
||
2 Core Colang Concepts | ||
====================== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
README |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:orphan: | ||
|
||
3 Demo Use Case | ||
=============== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
README |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:orphan: | ||
|
||
4 Input Rails | ||
=============== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
README |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:orphan: | ||
|
||
5 Output Rails | ||
============== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
README |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:orphan: | ||
|
||
6 Topical Rails | ||
=============== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
README |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:orphan: | ||
|
||
7 Rag | ||
===== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
README |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,24 @@ | ||
# Getting Started | ||
|
||
```{toctree} | ||
:hidden: | ||
:maxdepth: 2 | ||
:caption: Contents | ||
1_hello_world/README | ||
2_core_colang_concepts/README | ||
3_demo_use_case/README | ||
4_input_rails/README | ||
5_output_rails/README | ||
6_topical_rails/README | ||
7_rag/README | ||
``` | ||
This *Getting Started* section of the documentation is meant to help you get started with NeMo Guardrails. It is structured as a sequence of guides focused on specific topics. Each guide builds on the previous one by introducing new concepts and features. For each guide, in addition to the README, you will find a corresponding Jupyter notebook and the final configuration (*config.yml*) in the *config* folder. | ||
|
||
1. [Hello World](./1_hello_world/README.md): get started with the basics of NeMo Guardrails by building a simple rail that controls the greeting behavior. | ||
2. [Core Colang Concepts](./2_core_colang_concepts/README.md): learn about the core concepts of Colang: messages and flows. | ||
3. [Demo Use Case](./3_demo_use_case): the choice of a representative use case. | ||
4. [Input moderation](./4_input_rails): make sure the input from the user is safe, before engaging with it. | ||
5. [Output moderation](./5_output_rails): make sure the output of the bot is not offensive and making sure it does not contain certain words. | ||
6. [Preventing off-topic questions](./6_topical_rails): make sure that the bot responds only to a specific set of topics. | ||
7. [Retrieval Augmented Generation](./7_rag): integrate an external knowledge base. | ||
3. [Demo Use Case](./3_demo_use_case/README.md): the choice of a representative use case. | ||
4. [Input moderation](./4_input_rails/README.md): make sure the input from the user is safe, before engaging with it. | ||
5. [Output moderation](./5_output_rails/README.md): make sure the output of the bot is not offensive and making sure it does not contain certain words. | ||
6. [Preventing off-topic questions](./6_topical_rails/README.md): make sure that the bot responds only to a specific set of topics. | ||
7. [Retrieval Augmented Generation](./7_rag/README.md): integrate an external knowledge base. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
:orphan: | ||
|
||
Getting Started | ||
=============== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
installation-guide | ||
README | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:hidden: | ||
|
||
1_hello_world/index | ||
2_core_colang_concepts/index | ||
3_demo_use_case/index | ||
4_input_rails/index | ||
5_output_rails/index | ||
6_topical_rails/index | ||
7_rag/index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
NVIDIA NeMo Guardrails | ||
==================================================== | ||
|
||
.. toctree:: | ||
:caption: NVIDIA NeMo Guardrails | ||
:name: NVIDIA NeMo Guardrails | ||
:maxdepth: 1 | ||
|
||
introduction.md | ||
documentation.md | ||
getting_started/installation-guide | ||
|
||
.. toctree:: | ||
:caption: Getting Started | ||
:name: Getting Started | ||
:maxdepth: 2 | ||
|
||
getting_started/1_hello_world/README | ||
getting_started/2_core_colang_concepts/README | ||
getting_started/3_demo_use_case/README | ||
getting_started/4_input_rails/README | ||
getting_started/5_output_rails/README | ||
getting_started/6_topical_rails/README | ||
getting_started/7_rag/README | ||
|
||
|
||
.. toctree:: | ||
:caption: User Guides | ||
:name: User Guides | ||
:maxdepth: 2 | ||
|
||
user_guides/cli | ||
user_guides/colang-language-syntax-guide | ||
user_guides/configuration-guide | ||
user_guides/guardrails-library | ||
user_guides/guardrails-process | ||
user_guides/llm-support | ||
user_guides/python-api | ||
user_guides/server-guide | ||
user_guides/detailed_logging/index | ||
user_guides/input_output_rails_only/index | ||
user_guides/jailbreak_detection_heuristics/index | ||
user_guides/langchain/index | ||
user_guides/llm/index | ||
user_guides/multi_config_api/index | ||
|
||
.. toctree:: | ||
:caption: Evaluation | ||
:name: Evaluation | ||
:maxdepth: 2 | ||
|
||
evaluation/README | ||
evaluation/llm-vulnerability-scanning | ||
|
||
.. toctree:: | ||
:caption: Security | ||
:name: Security | ||
:maxdepth: 2 | ||
|
||
security/guidelines | ||
security/red-teaming | ||
|
||
.. toctree:: | ||
:caption: Advanced User Guides | ||
:name: Advanced User Guides | ||
:maxdepth: 2 | ||
|
||
user_guides/advanced/align-score-deployment | ||
user_guides/advanced/bot-message-instructions | ||
user_guides/advanced/embedding-search-providers | ||
user_guides/advanced/event-based-api | ||
user_guides/advanced/extract-user-provided-values | ||
user_guides/advanced/generation-options | ||
user_guides/advanced/jailbreak-detection-heuristics-deployment | ||
user_guides/advanced/llama-guard-deployment | ||
user_guides/advanced/nested-async-loop | ||
user_guides/advanced/prompt-customization | ||
user_guides/advanced/streaming | ||
user_guides/advanced/using-docker | ||
user_guides/advanced/vertexai-setup | ||
|
||
.. toctree:: | ||
:caption: Other | ||
:name: Other | ||
:maxdepth: 2 | ||
|
||
architecture/index | ||
glossary | ||
faqs | ||
changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
:orphan: | ||
|
||
Security | ||
======== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
guidelines | ||
red-teaming |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.