Closed AadarshBhalerao closed 1 month ago
Hi @AadarshBhalerao ,
I can see a small typo in your config.yml:
rails:
output:
flow:
- self check output
It must be
rails:
output:
flows:
- self check output
changing flow
to flows
resolve the issue
Hi @Pouyanpi I found an interesting thing while exploring output rails. Sharing my observation below.
I defined a only a single output rail in my config.yml file which you can see below
config.yml
The currosponding prompt.yml and flow.co are:
prompt.yml
flow.co
python code
And when I print the config variable, ideally in RailsConfig[rails][output] it should be mentioning "flows=['self check output']" but as you can see the list is blank.
print output
I tested another scenario where I added two rails:
And when I print the config again, It gave
... input=InputRails(flows=['self check input']), output=OutputRails(flows=[]), ...
Hope this is useful! The version of nemoguardrails which I am using is 0.9.0
Similar issue is faced in #270
Please note: if you think this could be an issue of '.pynb' notebook. I tried running a .py file which also didnt work