NVIDIA / NeMo-Guardrails

NeMo Guardrails is an open-source toolkit for easily adding programmable guardrails to LLM-based conversational systems.
Other
4.2k stars 399 forks source link

Fix/import path colang 2 #835

Closed Pouyanpi closed 3 weeks ago

Pouyanpi commented 3 weeks ago

Description

If you import nemoguardrails standard library in a Colang 2.x config _load_imported_path function fails.

WAR: export path to root of nemoguardrails as "COLANGPATH" env var.

Limitation: the standard library must be included by default, also if the user install the wheel it does not work because it needs to be set to its location in a virtual environment

Steps to reproduce:

cd ./examples/bots/abc_v2
nemoguardrails chat --config=.

Related Issue(s)

Checklist