ML Utterances for dialog task

As user can ask anything to chatbot, how to define ML utterances that only those defined in training data set should trigger dialog task, others should not. Currently what is happening one word matching incorrectly recognizing the intent, adding negative pattern might not be a solution as how many negative patterns to add. For example:

ML Training dataset - status of issue 7777888

User Utterance - I am having issue connecting to system - This triggers the dialog task of the above ML dataset.

As you see both sentences are so different only matching word in those two sentences are β€œissue”. How to avoid this type of false positives? Can it be handled using ML threshold parameters? Should stop words be included in ML utterances? Looking for guidance on how to define ML utterances to avoid these type of false positives?

1 Like

Hello @peu.dutta ,

Intent detection through ML is possible in the above case due to the word β€œissue”.

To prevent other utterances detecting this intent, ML threshold adjustment will be useful, however, you should note that this also impacts the ML detection for the whole bot.

The feasible approach is to use negative patterns - i.e, using the keyword β€œconnecting” as negative pattern for the intent.

You can go through https://developer.kore.ai/docs/bots/nlp/optimizing-bots/ for more details on each of the engines and how best to optimize.

Hope this helps!