-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flow problems in Colang 1 and 2 #755
Comments
Hi @geraldhahn, Regarding Colang 1.0 make sure to define the other canonical forms, e.g.,
then it works. Regarding the Colang 2.x, it is working as expected for me, which version of NeMo Guardrails you are using? |
Thanks for the help! My version of Nemo guardrails is 0.9.1.1 When I use the code above in Colang 2, I get the following answer, no matter what I ask: How are you? The answer is basically always 'How are you?' Otherwise, I got the Colang 1 flow running. However, there is still an issue that I am trying to solve in general using Nemo guardrails. Essentially, as an example I have user who asks a question and nemo responds with a confirmation request. In the Colang1 example below the express happiness flows for user and bot should only be triggered when the flow ''hello" starts, i.e. once the bot asks how are you are doing. However, for the moment when I say 'Good' or 'Bad' at any time during the conversation, the bot response 'That is great' or 'I am sorry to hear that' as defined within the 'hello' flow. Thus these responses can be triggered globally and not just locally within the flow.
Is that this confirmation question problem something that can be solved in the Colang 1 framework. If not, does Colang 2 provide a solution? |
Hi,
I have been playing around with the Colang flow control in version 1 and 2. I do not get it to work the way I hoped.
First I tried the Colang 1 example from the documentation:
(I left the definition of what the user and bot say out for clarity)
When I express a greeting, the bot, as expected from the flow definition, also responds with a greeting. However, when I want to continue the flow by expressing happiness, I just get a generic answer that does not match what was defined in the 'bot express happiness' definition. Only when I define a separate flow outside the flow hello, where a user express happiness statement is followed by a bot express happiness statement, it works.
It looks as if the 'when' statements are not really taken into account and when the user expresses happiness it looks for a flow associated to it outside of the flow hello statements. It just skips the whole 'when' block.
Is there error in the syntax here or something I missed?
Then I tried the Colang 2 flow example to see if it works better:
When I run the code the bot would ask 'How are you?' as expected. However, When I type 'Good' or 'Bad', the only response I get is 'How are you' again and again without following the flow defined in 'react to user wellbeing' at all.
Is there something I missed ? Do I need to add more code?
Thanks for your help !
The text was updated successfully, but these errors were encountered: