-
Hello, I am wondering if any developers are adding logging to the NeMo chain. For debugging purposes, I'd find it useful to log, -every prompt that was fed to an LLM, If not, I could try. Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Follow-up: I see that when I enabled the verbose option in the LLMRails function with,
And ran a test,
The result is,
Whereas, when I use the --verbose option in the nemoguardrails chat cli, I obtain a much more detailed log. I do not understand why the behavior of the verbose option is so different between the |
Beta Was this translation helpful? Give feedback.
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 usingapp.generate
, in addition to passingverbose=True
you should also callset_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…