Using the Demonstration Configuration#
The microservice includes a demonstration configuration store that is prepopulated with three demo configurations.
If the DEMO
environment variable is set to True
, the configuration store directory is initialized with three demo configurations:
default
: This is an empty guardrail configuration, useful for testing the connectivity to the LLM.self-check
: This is a demo guardrail configuration using a simple self-check input rail. For more details, check out the Self Check Input section from the NeMo Guardrails toolkit documentation.abc
: The ABC Bot configuration from NeMo Guardrails toolkit answers questions about the ABC company employee handbook.
The microservice adds a separate directory for each configuration to the locally accessible directory for the configuration store. For the demo configurations, the layout is as follows:
/config-store
├── abc
│ ├── rails
│ │ └── disallowed.co
│ ├── kb
│ │ └── employee-handbook.md
│ ├── prompts.yml
│ └── config.yml
├── default
│ └── config.yml
└── self-check
└── config.yml
The ID of each configuration is the name of the folder.
For example, for the demo configurations, the corresponding configuration IDs are: abc
, default
and self-check
.
For more information about guardrail configurations, refer to About NeMo Guardrails.