Skip to content
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

Response empty with only Q&A #1112

Open
albinomarlon opened this issue Jan 6, 2024 · 5 comments
Open

Response empty with only Q&A #1112

albinomarlon opened this issue Jan 6, 2024 · 5 comments

Comments

@albinomarlon
Copy link

albinomarlon commented Jan 6, 2024

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 }

image
image
image

Could you help-me with this issue?

Thank you very much.

@udit-pandey
Copy link
Contributor

udit-pandey commented Jan 8, 2024

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.
Screenshot from 2024-01-08 20-10-57

  1. Verify if each intent has at least 1 story attached (see Corresponding Stories on right side of screen) by selecting each intent.
    Screenshot from 2024-01-08 20-12-20

  2. Similarly, verify for utterances and actions too.
    Screenshot from 2024-01-08 20-12-45

image

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.

@albinomarlon
Copy link
Author

albinomarlon commented Jan 8, 2024

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

659bed57ee3e1ffabfd45422.zip

Thank you very much.

@udit-pandey
Copy link
Contributor

Did you retrain the bot after removing the intents?

@albinomarlon
Copy link
Author

Yes, i retrained the bot. But it's don't work.
I really doin't know whats going on.

@udit-pandey
Copy link
Contributor

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 (udit.pandey@digite.com)?
If yes, then please add me to the bot by going to Deploy >> Administration >> Add Members.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants