kairon
kairon copied to clipboard
Response empty with only Q&A
Hi Guys, i hope you can help me with a situation that is occurring when I call the /chat end-point. When i call the end-point, the response is always empty and I really don't know why.
Response:
{ "success": true, "message": null, "data": { "nlu": { "text": "Hi", "intent": { "id": -5668266704242435470, "name": "greet", "confidence": 0.9999999403953552 }, "entities": [], "intent_ranking": [ { "id": -5668266704242435470, "name": "greet", "confidence": 0.9999999403953552 }, { "id": -1894405930850988402, "name": "new", "confidence": 6.276561492768451e-08 }, { "id": -6269350766581444242, "name": "bye", "confidence": 2.6635090577542542e-08 } ], "response_selector": { "all_retrieval_intents": [], "default": { "response": { "id": null, "responses": null, "response_templates": null, "confidence": 0.0, "intent_response_key": null, "utter_action": "utter_None", "template_name": "utter_None" }, "ranking": [] } } }, "action": [ { "action_name": "utter_greet", "max_confidence": 0.9937130212783813, "policy_name": "policy_1_TEDPolicy" }, { "action_name": "action_listen", "max_confidence": 0.9982038140296936, "policy_name": "policy_1_TEDPolicy" } ], "response": [], "slots": [ "doc_url: None", "document: None", "video: None", "audio: None", "image: None", "order: None", "kairon_action_response: None", "bot: 65985df50ac8038d3104f6ae", "session_started_metadata: {'tabname': 'default', 'is_integration_user': False, 'bot': '65985df50ac8038d3104f6ae', 'account': 2, 'channel_type': 'chat_client'}" ], "events": null, "tabname": "default", "agent_handoff": { "initiate": false, "type": null, "additional_properties": null } }, "error_code": 0 }
Could you help-me with this issue?
Thank you very much.
Hi, it looks like your bot is hallucinating while trying to predict action. Can you verify if you have any intents or actions that are not linked to any story. You can check this by going to components screen:
1.
-
Verify if each intent has at least 1 story attached (see Corresponding Stories on right side of screen) by selecting each intent.
-
Similarly, verify for utterances and actions too.
If there are intent/actions/utterances that have no corresponding stories, then either create stories with those or delete them.
Let us know anyway if it helped so we can debug further.
Hi @udit-pandey, thank you very much for you awnser.
I deleted all no used actions, utter and intentions. But the aplication still returns empty reponse :(
I created a new chatbot with the default project, but this new chatbot return empty too.
Attached is the downloaded model
Thank you very much.
Did you retrain the bot after removing the intents?
Yes, i retrained the bot. But it's don't work.
I really doin't know whats going on.
Thats strange because I trained a new bot based on the training data you shared and its working. Will it be possible to share this bot with me ([email protected])? If yes, then please add me to the bot by going to Deploy >> Administration >> Add Members.