wit icon indicating copy to clipboard operation
wit copied to clipboard

Looping w/ bookmark breaks the app on the 12th response

Open torreypayne opened this issue 9 years ago • 4 comments

Do you want to request a feature, report a bug, or ask a question about wit?

Question

What is the current behavior?

Looping w/ bookmark breaks story after a fixed amount of loops.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

My bot is set up to read articles in small chunks. If I want to continue to the next section, I simply say "⏭". My story is set up to move to the next section and loop back to the same branch of the story. The problem I'm running into now is, I can say "⏭" or "Next" 11 times, and on the 12th "⏭" response the story breaks. I wrote a test to see if this was random, and in fact the test breaks every single time on the 12th "⏭". By "breaking", I mean that the app goes into some sort of infinite loop of repeating the current section of the article until it hits the max steps limit. Additionally, is there a way to keep the app from going into these "infinite loops" when confidence gets low/the app falls off the story?

What is the expected behavior? That I could keep looping over that branch of my story without it getting confused (confidence drops to <0.01 on the 12th try, then going into this weird loop where

What is the App ID where you are experiencing this issue (if applicable)? 58d2c3e6-debc-4433-899a-eee73e38a912

torreypayne avatar Apr 28 '17 01:04 torreypayne

Same question here! Can anyone help? Thanks! It's kind of urgent.

What is the current behavior? Looping w/ bookmark breaks story after a fixed amount of loops.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

My bot is set to answer questions. When context "More" is updated, it is supposed to go back to the takeQuestion action via the bookmark Answering. After that if the same contexts get updated, the conversation flow breaks.

Sample for reproduction: get started -> greetingMessage, update {message} user asks a question -> takeQuestion, update and send {noanswer}{askimg} user asks another one -> imgFeedback, update {more} -> jump to "Answering" bookmark -> takeQuestion, remove {more}, update {noanswer}{askimg}, then the bot is supposed to send {noanswer}{askimg} like before, but it only sends {askimg}.

What is the App ID where you are experiencing this issue (if applicable)? 58f4e149-4d8f-409a-993c-56d4289cb87d

jiajia-z avatar May 03 '17 20:05 jiajia-z

@Giada-Z did you ever find a solution?

torreypayne avatar May 29 '17 07:05 torreypayne

Ok it looks like this is now working better. I still get low confidence after about 10 responses or so, but the application continues to make the correct predictions. It's still very concerning that the confidence drops so low, but at least I can continue with my actions!

torreypayne avatar May 31 '17 23:05 torreypayne

Closing since we will stop Stories and serving requests to the associated /converse endpoint on February 1, 2018: https://wit.ai/blog/2017/07/27/sunsetting-stories

l5t avatar Jan 22 '18 01:01 l5t