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

Feat/migration tool sample converstaion syntax conversion #764

Closed Pouyanpi closed 2 months ago

Pouyanpi commented 2 months ago

This PR implements conversion logic of sample_conversations in config.yml as part of the migration tool.

To verify it works:

Do the migration

nemoguardrails convert --from-version '1.0' "./examples/bots/abc" --validate

then

nemoguardrails chat --config=./examples/bots/abc

query_1: what can you do? query_2: you are stupid