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

Get confidence score for selected answer #36

Closed
padmalcom opened this issue Nov 2, 2020 · 4 comments
Closed

Get confidence score for selected answer #36

padmalcom opened this issue Nov 2, 2020 · 4 comments

Comments

@padmalcom
Copy link
Collaborator

Hi, I'm running chatbotai in combination with snips-nlu whereas chatbotai is the first choice and whenever an answer cannot be parsed, snips-nlu should be used and try to parse the user input. The problem is that I do not know when no pattern from chatbot ai matches. Is there a way to get such a score/boolean? Otherwise, I'd like to open a feature request.

@ahmadfaizalbh
Copy link
Owner

Please add feature request I will add that feature.
Mean while as temporary fix you can add below code to end of your template file and handle in python which would pass entire message to default_snips_nlu_handler function

{% block %}
    {% client %}.*{% endclient %}
    {% response %}{% call default_snips_nlu_handler: %0 %}{% endresponse %}
{% endblock %}

@padmalcom
Copy link
Collaborator Author

Thanks for the quick reply. How would that relate to the default template? Would this block been choosen first? Or the blocks from the default template?

@ahmadfaizalbh
Copy link
Owner

this block would get chosen before block from default template and hence default template would be skipped/ignored

@padmalcom
Copy link
Collaborator Author

Alright, I'll do some tests to see how the chatbot behaves when configured like that.

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