Hi, I am following this tutorial:
It mostly works. However, I have two specific questions:
After I re-trained my NLU model, do I need to re-train my Core dialog module?
The results with 2 runs are different: a. python -m rasa_core.run -d models/dialogue/ -u models/current/nlu/ b. With the following API code:
from rasa_core.agent import Agent from rasa_core.interpreter import RasaNLUInterpreter
interpreter = RasaNLUInterpreter(‘models/current/nlu’) messages = [“Hi! you can chat in this window. Type ‘stop’ to end the conversation.”] agent = Agent.load(‘models/dialogue’, interpreter=interpreter)
a = input() messages.append(a) if a == ‘stop’: break responses = agent.handle_message(a) for r in responses: messages.append(r.get(“text”))
My dialog looks like the following through the command line run:
Your input -> hi
Hey! How are you? Your input -> sad
Here is something to cheer you up: Image: https://i.imgur.com/nGF1K8f.jpg Did that help you?
However, with my API call running, the output form the bot missed the “Here is something to cheer you up, Image: …” part. Instead, it directly answered “Did that help you?”
What might caused this difference in two cases? Is there a way to debug? Thanks.