Skip to content

Logging #178

Answered by drazvan
spehl-max asked this question in Q&A
Nov 8, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @spehl-max !

Indeed, there is an inconsistency in behavior. The difference comes from the fact the the CLI Chat also calls the set_verbose function (https://github.com/NVIDIA/NeMo-Guardrails/blob/develop/nemoguardrails/cli/__init__.py#L63C13-L63C13) which adds a new logging handler. So, if you want to achieve the same behavior from the python API using app.generate, in addition to passing verbose=True you should also call set_verbose(True) before.

We've also just added an explain feature which is used in the Getting Started guide, for example here: https://github.com/NVIDIA/NeMo-Guardrails/blob/develop/docs/getting_started/2_core_colang_concepts/README.md#the-explain-feature.

If you ha…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@drazvan
Comment options

Answer selected by spehl-max
@spehl-max
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants