Getting Started
This section is a getting started guide for Colang 2.0. It starts with a basic “Hello World” example and then goes into dialog rails, input rails, multimodal rails and other Colang 2.0 concepts like interaction loops and LLM flows. This guide does not assume any experience with Colang 1.0, and all the concepts are explained from scratch.
Prerequisites
This getting started guide will focus only on the Colang files. For complete details on how to install NeMo Guardrails and create a sample configuration please refer to the Installation Guide and the NeMo Guardrails Getting Started Guide.
The config.yml
file for all the examples should have the following content:
colang_version: "2.x"
models:
- type: main
engine: openai
model: gpt-3.5-turbo-instruct
The above config sets the Colang version to “2.x” (this is needed since “1.0” is currently the default) and the LLM engine to OpenAI’s gpt-3.5-turbo-instruct
.
Terminology
At a high level, Colang adopts as much as possible from the Python terminology. This guide will talk about Colang scripts and modules (i.e., .co
files), packages (i.e., folders), standard library, importing mechanism, etc.