{"id":17929,"date":"2016-10-28T17:12:45","date_gmt":"2016-10-28T17:12:45","guid":{"rendered":"https:\/\/developer.kore.com\/?post_type=docs&#038;p=8561"},"modified":"2023-07-24T07:15:18","modified_gmt":"2023-07-24T06:15:18","slug":"testing-your-bot-with-nlp","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/test-your-bot\/testing-your-bot-with-nlp\/","title":{"rendered":"Utterance Testing"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p><span style=\"font-weight: 400;\">To make sure your assistant responds to user utterances with related tasks, it is important that you test it with a variety of user inputs. Evaluating a VA with a large sample of expected user inputs not only provides insights into its responses but also gives you a great opportunity to train it in interpreting diverse human expressions.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can perform all the training-related activities for a VA from the <\/span><em><span style=\"font-weight: 400;\">Utterance Testing<\/span><\/em><span style=\"font-weight: 400;\"> module. We will use a sample <\/span><em><span style=\"font-weight: 400;\">Travel Planning <\/span><\/em><span style=\"font-weight: 400;\">assistant to provide examples within this article.<\/span><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Testing_the_Assistant\"><span style=\"font-weight: 400;\">Testing the Assistant<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400;\">Simply put, testing a VA refers to checking if it can respond to a user utterance with the most relevant task. Given the flexibility of language, users will use a wide range of phrases to express the same intent.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For example, you can rephrase <\/span><em><span style=\"font-weight: 400;\">I want to change my ticket from San Francisco to Los Angeles on Jan 1<\/span><\/em><span style=\"font-weight: 400;\"> as <\/span><em><span style=\"font-weight: 400;\">Please change my travel date. Can\u2019t make it on Jan 1. <\/span><\/em><span style=\"font-weight: 400;\">The trick is to train the assistant to map both of these utterances with the same intent.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The first step to start testing a VA is to identify a representative sample of user utterances to test the responses. Look for sources of data that reflect real-world usage of the language, such as support chat logs, online communities, FAQ pages of relevant portals.<\/span><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"How_to_test_the_assistant\"><span style=\"font-weight: 400;\">How to test the assistant<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Follow these steps to test your assistant:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Open the assistant that you want to test.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Select the <\/span><strong>Build<\/strong><span style=\"font-weight: 400;\"> tab from the top menu.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">From the left menu click <\/span><strong>Testing<\/strong><span style=\"font-weight: 400;\"> -&gt; <\/span><strong>Utterance Testing<\/strong><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">In the case of a multiple intent model, you can select the <\/span><strong>Intent Model<\/strong><span style=\"font-weight: 400;\"> against which you want to test the utterance. The ML Engine will detect the intents only from the selected model.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">In the <\/span><strong>Type a user utterance<\/strong><span style=\"font-weight: 400;\"> field, enter the utterance that you want to test. Example: <\/span><em><span style=\"font-weight: 400;\">Book a flight<\/span><\/em><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The result appears with a single, multiple, or no matching intents<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181537\/utterance-testing-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46544\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181537\/utterance-testing-3-1024x576.png\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181537\/utterance-testing-3-1024x576.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181537\/utterance-testing-3-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181537\/utterance-testing-3.png 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Types_of_Test_Results\"><span style=\"font-weight: 400;\">Types of Test Results<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">When you test an utterance, the NLP engine tries to identify an intent using the following\u00a0 engines and intent identification features:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/user-utterances\/\"><span style=\"font-weight: 400;\">Machine Learning<\/span><\/a> <span style=\"font-weight: 400;\">engine,\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/fundamental-meaning\/\"><span style=\"font-weight: 400;\">Fundamental Meaning<\/span><\/a><span style=\"font-weight: 400;\"> engine,<\/span><\/li>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-builder-tool\/knowledge-task\/knowledge-ai-overview\/\"><span style=\"font-weight: 400;\">Knowledge AI<\/span><\/a><span style=\"font-weight: 400;\">, including the <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/knowledge-graph\/\"><span style=\"font-weight: 400;\">Knowledge Graph<\/span><\/a><span style=\"font-weight: 400;\"> engine and the <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-builder-tool\/knowledge-task\/answer-from-documents\/\"><span style=\"font-weight: 400;\">Answer from Documents<\/span><\/a><span style=\"font-weight: 400;\"> feature,<\/span><\/li>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/nlp-detection\/\"><span style=\"font-weight: 400;\">Ranking and Resolver<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ul>\n<table style=\"width: 100%; border-collapse: collapse; background-color: #fffbea;\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\"><strong><em>Note <\/em><\/strong><em><span style=\"font-weight: 400;\">that utterance testing differs for Knowledge AI and Ranking and Resolver, depending on the NLP version, Ranking and Resolver version, and whether you are using the Few-Shot Knowledge Graph model.<\/span><\/em><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Utterance Match Classification<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Test results are classified as <\/span><span style=\"font-weight: 400;\">either <\/span><em><span style=\"font-weight: 400;\">Possible Matches<\/span><\/em><span style=\"font-weight: 400;\"> or <\/span><em><span style=\"font-weight: 400;\">Definitive Matches, as follows<\/span><\/em><span style=\"font-weight: 400;\">;<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181521\/testing-matches.png\"><img decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181521\/testing-matches.png\" \/><\/a><\/span><\/p>\n<p><em>Definitive Matches<\/em>\u00a0get high confidence scores and are assumed to be perfect matches for the user utterance. In published assistants, if user input matches with a single\u00a0<em>Definitive Match<\/em>, the VA directly executes the task. If the utterances match with multiple\u00a0<em>Definitive Matches<\/em>, they are sent as options for the end-user to choose one.<\/p>\n<p>On the other hand,\u00a0<em>Possible Matches<\/em>\u00a0are intents that score reasonably well against the user input but do not inspire enough confidence to be termed as exact matches. Internally the system further classifies possible matches into good and unsure matches based on their scores. If the end-user utterances were generating possible matches in a published VA, the assistant sends these matches as\u00a0<em>\u201cDid you mean?\u201d<\/em>\u00a0suggestions for the end-user.<\/p>\n<p>Below are the possible outcomes of a user utterance test:<\/p>\n<ul>\n<li><strong>Single Match (Possible or Definitive)<\/strong>: The NLP engine finds a match for the user utterance with a single intent or task. The intent is displayed below the User Utterance field. If it is a correct match, you can move on to test the next utterance or you can also further train the task to improve its score. If it is an incorrect match, you can mark it as incorrect and select the appropriate intent.<\/li>\n<li><strong>Multiple Matches (Possible or Definitive or Both)<\/strong>: NLP engine identifies multiple intents that match with the user utterance. From the results, select the radio button for the matching task and train it.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181541\/utterancetesting-multiple.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46547\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181541\/utterancetesting-multiple-1024x636.png\" alt=\"\" width=\"640\" height=\"398\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181541\/utterancetesting-multiple-1024x636.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181541\/utterancetesting-multiple-300x186.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181541\/utterancetesting-multiple.png 1135w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/li>\n<li><strong>Unidentified Intent<\/strong>: The user input did not match any task in any of the linked assistants. Select an intent and train it to match the user utterance.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181508\/nointent.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46523\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181508\/nointent-1024x576.png\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181508\/nointent-1024x576.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181508\/nointent-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181508\/nointent.png 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\"><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Entity_Match\"><span style=\"font-weight: 400;\">Entity Match<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">During testing of the VA, the matched entities are displayed. The entities from the utterance are processed in the following order:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">first NER and pattern entities\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">then the remaining entities.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Post v. 8.0 of the XO Platform, the details of how the entity is matched, and with what confidence scores are also displayed. The details include:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><strong>Identification Engine<\/strong><span style=\"font-weight: 400;\"> \u2013 Machine Learning, Fundamental Meaning or Knowledge Graph;<\/span><\/li>\n<li style=\"font-weight: 400;\"><strong>Training Type <\/strong><span style=\"font-weight: 400;\">\u2013 match can be from NER, pattern training, entity name, system concept, etc.. In case of pattern match, click the row to get the details for the same;<\/span><\/li>\n<li style=\"font-weight: 400;\"><strong>Confidence Score<\/strong><span style=\"font-weight: 400;\"> identified by the ML engine using NER training (only when Conditional Random Field is selected as the NER model)<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181503\/ner-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46520\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181503\/ner-1.png\" alt=\"\" width=\"640\" height=\"492\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181503\/ner-1.png 743w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181503\/ner-1-300x231.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><br \/>\n<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\"><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Analyzing_the_Test_Results\"><span style=\"font-weight: 400;\">Analyzing the Test Results<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">When you test a user utterance, in addition to the matching intents you will also see an NLP Analysis box that provides a quick overview of the shortlisted intents, the NLP models using which they were shortlisted, corresponding scores, and the final winner.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181444\/fm-en.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46505\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181444\/fm-en.png\" alt=\"\" width=\"640\" height=\"566\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181444\/fm-en.png 801w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181444\/fm-en-300x266.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-weight: 400;\">Under the <\/span><em><span style=\"font-weight: 400;\">Fundamental Meaning<\/span><\/em><span style=\"font-weight: 400;\"> tab, you can see the scores of all the intents even if they aren\u2019t shortlisted.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">As mentioned above, the Kore.ai NLP engine uses Machine Learning, Fundamental Meaning, and Knowledge Graph (if any) models to match intents. If the NLP engine finds a single <\/span><em><span style=\"font-weight: 400;\">Definitive Match <\/span><\/em><span style=\"font-weight: 400;\">through one of the underlying models, you will see the task as the matching intent. If the test identifies more than one definitive match, you will receive them as options to pick the right intent.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If the models shortlist more than one possible match, all the shortlisted intents are re-scored by the <\/span><em><span style=\"font-weight: 400;\">Ranking and Resolver<\/span><\/em><span style=\"font-weight: 400;\"> using the <\/span><em><span style=\"font-weight: 400;\">Fundamental Meaning <\/span><\/em><span style=\"font-weight: 400;\">model to determine the final winner.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Sometimes, multiple <\/span><em><span style=\"font-weight: 400;\">Possible Matches<\/span><\/em><span style=\"font-weight: 400;\"> secure the same score even after the rescoring in which case they are presented as multiple matches to the developer to select one. You can click the tab with the name of the learning model in the NLP Analysis box to view the intent scores.<\/span><\/p>\n<table style=\"background-color: #fffbea; width: 100%;\" width=\"100%\">\n<tbody>\n<tr>\n<td width=\"100%\"><strong><em>Note<\/em><\/strong><em><span style=\"font-weight: 400;\">: The NLP score is an absolute value and can only be used to compare against other tasks with the same input. Task scores cannot be compared across different utterances.<\/span><\/em><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181529\/testing-mltc.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46538\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181529\/testing-mltc.png\" alt=\"\" width=\"640\" height=\"599\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181529\/testing-mltc.png 805w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181529\/testing-mltc-300x281.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">From each model dialog, clicking the icon on the top right will display the configurations and thresholds in place for the corresponding engines.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"ML_Model\"><span style=\"font-weight: 400;\">ML Model<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">The ML model tries to match the user input with the task label and the training utterances of each task. If the user input consists of multiple sentences, each sentence is run separately against the task name as well as the task utterances.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Click on the Machine Learning Model button to open the Machine Learning Model section of NLP Analysis. This shows only the names of the tasks that secure a positive score. In general, the more the number of training utterances that you add to a task, the greater are its chances for discovery. For more information, read <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/user-utterances\/\"><span style=\"font-weight: 400;\">Machine Learning<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181525\/testing-ml.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46535\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181525\/testing-ml.png\" alt=\"\" width=\"640\" height=\"538\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181525\/testing-ml.png 801w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181525\/testing-ml-300x252.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-weight: 400;\"><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"FM_Model\"><span style=\"font-weight: 400;\">FM Model<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Apart from the ML model, each task in the VA is also scored against the user input using a comprehensive custom NLP algorithm that involves different combinations of task names, synonyms, and patterns.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The Fundamental Meaning (FM) Model tab shows the analysis for all the intents in the VA. Click the tab to view the scores of each task.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Clicking the <\/span><strong>Processed Utterance<\/strong><span style=\"font-weight: 400;\"> shows how the user utterance was analyzed and processed.<\/span><\/p>\n<h4><span style=\"font-weight: 400;\">FM Scoring Model<\/span><\/h4>\n<p><span style=\"font-weight: 400;\">From v. 7.2, the FM engine generates the model in two ways, depending upon the language of the VA.<\/span><\/p>\n<p><strong>Approach 1<\/strong><span style=\"font-weight: 400;\">: Supported for German and French languages.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><strong>word analysis<\/strong><span style=\"font-weight: 400;\"> factors pertaining to Original Word, Universal Parts of Speech, Dependency Relation and Related Word are elaborated.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Next, the <\/span><strong>score breakup<\/strong><span style=\"font-weight: 400;\"> for each of the intents processed is displayed. Selecting a scored intent (matched or eliminated) displays the details of the scoring for each word. This includes the words from the utterance and score assigned to each based upon the dependency parsing.<\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181440\/fm-de.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46502\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181440\/fm-de.png\" alt=\"\" width=\"640\" height=\"521\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181440\/fm-de.png 799w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181440\/fm-de-300x244.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><strong>Approach 2<\/strong><span style=\"font-weight: 400;\">: Supported for languages, other than the ones mentioned above.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><strong>word analysis<\/strong><span style=\"font-weight: 400;\"> factors pertaining to Original Word, Role in the sentence and Processed word (in case of spell correction) are elaborated.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Next, the <\/span><strong>score breakup<\/strong><span style=\"font-weight: 400;\"> for each of the intents processed is displayed. Selecting a scored intent (matched or eliminated) displays the details of the scoring for each word. The detailed breakdown is given below.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181448\/fundamental-meaning.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46508\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181448\/fundamental-meaning.png\" alt=\"\" width=\"640\" height=\"566\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181448\/fundamental-meaning.png 801w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181448\/fundamental-meaning-300x266.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-weight: 400;\">The other scoring methods are:<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"font-weight: 400;\"><strong>Words Matched<\/strong><span style=\"font-weight: 400;\">: The score given for the number of words in the user input that matched words in the task name or a trained utterance for the task.<\/span><\/li>\n<li style=\"font-weight: 400;\"><strong>Word Coverage<\/strong><span style=\"font-weight: 400;\">: The score given for the ratio of the words matched with that of the overall words in the task, including task name, field names, utterances, and synonyms.<\/span><\/li>\n<li style=\"font-weight: 400;\"><strong>Exact Words<\/strong><span style=\"font-weight: 400;\">: The score given for the number of words that matched exactly and not by synonyms.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li><strong>Bonus<\/strong>\n<ul>\n<li><strong>Sentence Structure<\/strong><span style=\"font-weight: 400;\">: Bonus for the sentence structure match to the user input.<\/span><\/li>\n<li><strong>Word Position<\/strong><span style=\"font-weight: 400;\">: Score given to a word based on its position in a sentence Individual words towards the start of the sentence are given higher preference. Extra credit if the word is near to the sentence start.<\/span><\/li>\n<li><strong>Order Bonus<\/strong><span style=\"font-weight: 400;\">: Bonus for the number of words in the same order as the task label.<\/span><\/li>\n<li><strong>Role Bonus<\/strong><span style=\"font-weight: 400;\">: Bonus for the number of primary and secondary roles (subject\/verb\/object) matched.<\/span><\/li>\n<li><strong>Spread Bonus<\/strong><span style=\"font-weight: 400;\">: Bonus for the difference between the position of first and last matched words in a pattern. The higher the difference, the greater the score.<\/span><\/li>\n<\/ul>\n<\/li>\n<li><strong>Penalty<\/strong><span style=\"font-weight: 400;\">: <\/span>\n<ul>\n<li><span style=\"font-weight: 400;\">Penalty if there are several phrases before the task name or if there is a conjunction in the middle of the task label.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\"><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Knowledge_Graph\"><span style=\"font-weight: 400;\">Knowledge Graph<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">If the VA includes a Knowledge Graph, the user utterances are processed to extract the terms and are mapped with the Knowledge Graph to fetch the relevant paths. All the paths containing more than a preset threshold of the number of terms get shortlisted for further screening. Path with 100% terms covered and having a similar FAQ in the path is considered a perfect match.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In case the utterance triggers a dialog (as per run a dialog option in KG), the same is displayed as <\/span><em><span style=\"font-weight: 400;\">matched intent<\/span><\/em><span style=\"font-weight: 400;\"> and <\/span><em><span style=\"font-weight: 400;\">matched utterance<\/span><\/em><span style=\"font-weight: 400;\">. You can further train the VA as you would for an intent from ML or FM engine. <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/knowledge-graph\/\"><span style=\"font-weight: 400;\">Know more about Knowledge Graph Training from here<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181517\/testing-kg.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46529\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181517\/testing-kg.png\" alt=\"\" width=\"640\" height=\"569\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181517\/testing-kg.png 795w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181517\/testing-kg-300x267.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-weight: 400;\"><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Answer_from_Documents\"><span style=\"font-weight: 400;\">Answer from Documents<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">If you have enabled <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-builder-tool\/knowledge-task\/answer-from-documents\/\"><span style=\"font-weight: 400;\">Answer from Documents<\/span><\/a><span style=\"font-weight: 400;\"> for your VA, and a match is found within your uploaded documents, you will see results for this match, provided the intent is not identified using any other method (a dialog task, a Knowledge Graph FAQ, the Machine Learning or the Fundamental Meaning engine).<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When an utterance is answered from a document, you will see a note mentioning that no Intent was identified by the ML, FM, and KG engines. Click <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-builder-tool\/knowledge-task\/manage-faqs\/\"><span style=\"font-weight: 400;\">Add to KG<\/span><\/a><span style=\"font-weight: 400;\"> to add an FAQ to the Knowledge Graph to address the utterance and improve intent identification.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When the <\/span><em><span style=\"font-weight: 400;\">Answer from Document<\/span><\/em><span style=\"font-weight: 400;\"> feature is used in reply to a test utterance, the following information is provided:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The document from which the answer has been retrieved;<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">An option to view this document;<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The page where the answer has been identified;<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">A similarity score between the tested utterance and the top-matched document;<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The content of the answer.<\/span><\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419104525\/utterance-testing-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-56759\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419104525\/utterance-testing-4.png\" alt=\"\" width=\"1922\" height=\"815\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419104525\/utterance-testing-4.png 1922w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419104525\/utterance-testing-4-300x127.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419104525\/utterance-testing-4-1024x434.png 1024w\" sizes=\"auto, (max-width: 1922px) 100vw, 1922px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\"><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Ranking_and_Resolver\"><span style=\"font-weight: 400;\">Ranking and Resolver<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Ranking and Resolver determines the final winner of the entire NLP computation. If either the ML model or the Knowledge Graph find a perfect match, the ranking and resolver doesn\u2019t re-score the intent and presents it as a matched intent. Even if there are multiple perfect matches, they will be presented as options to the developers from which they can choose.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The Ranking and Resolver re-scores all the other good and unsure matches identified by the three models using the Fundamental Meaning model. After re-scoring, if the final score of an intent crosses a certain threshold, it too is considered as a match.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Selecting the Ranking and Resolver tab provides you with details on how the winning intent has been determined.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The ranking and details for each match can be viewed by selecting the matched utterance.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181512\/RR-matched-utterance.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46526\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181512\/RR-matched-utterance.png\" alt=\"\" width=\"640\" height=\"566\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181512\/RR-matched-utterance.png 797w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181512\/RR-matched-utterance-300x265.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/p>\n<h4><span style=\"font-weight: 400;\">RR Scoring Model<\/span><\/h4>\n<p><span style=\"font-weight: 400;\">Depending upon the Bot language the scoring model can be:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">based on a mixture of word roles, sentence\/word positions, and word order; or<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">based on dependency parsing (supported for German and French languages)<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">The basis for <\/span><strong>intent elimination<\/strong><span style=\"font-weight: 400;\"> by Ranking &amp; Resolver when the three engines return different definite\/possible matches is as follows:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Intents matched based upon entity values like date, number etc., by the Machine Learning Model are eliminated.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">All possible matches identified by any of the three engines are eliminated if a definitive match was found.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Definitive match eliminated if another definitive match was found prior to this in the user utterance \u2013 case when the user utterance includes two intents. For example, \u201cBook me a flight and then book a cab\u201d would match \u201cBook Flight\u201d and \u201cBook Cab\u201d but \u201cBook Cab\u201d is eliminated over \u201cBook Flight\u201d.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Intent pattern matches following a definitive intent match are eliminated. For example, user utterance \u201ccreate a task to send an email\u201d can match the intents \u201ccreate task\u201d and \u201csend email\u201d, in such cases the \u201csend email\u201d will be eliminated since it follows the intent \u201ccreate task\u201d<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Intents with scores below the minimum value set in the Threshold and Configurations section are eliminated.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Definitive matches which match a Negative Pattern.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Intents for which the pre-conditions, in case defined, are not met are eliminated.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">If the definitive match was from Knowledge Graph Engine by Search In Answer and there is another matched intent.<\/span><\/li>\n<\/ul>\n<table style=\"width: 100%; border-collapse: collapse; background-color: #dffbea;\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\">\n<h3><span class=\"ez-toc-section\" id=\"Ranking_and_Resolver_v2\"><span style=\"font-weight: 400;\">Ranking and Resolver v2<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\"><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/nlp-detection\/#Notes_on_Ranking_and_Resolver_Version_2\" target=\"_blank\" rel=\"noopener noreferrer\">Version 2 of the Ranking and Rezolver<\/a> only ranks the scores of the definitive matches from ML and KG engines (not the FM engine) without intent rescoring to ensure the best intent identification accuracy.<br \/>\nIf you enable Ranking and Resolver Version 2, your test results adjust as follows:\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><strong>Ranking &amp; Resolver<\/strong><span style=\"font-weight: 400;\"> window displays the following:<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The definitive intent that is matched based on ranking,<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The number of definitive and probable matches.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The winning intent name and the ranking score.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The other definitive intent(s), the reason for elimination, and the ranking score.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The result, including the winning and eliminated intents.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419172701\/RR-testing.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-56786\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419172701\/RR-testing.png\" alt=\"\" width=\"1922\" height=\"815\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419172701\/RR-testing.png 1922w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419172701\/RR-testing-300x127.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419172701\/RR-testing-1024x434.png 1024w\" sizes=\"auto, (max-width: 1922px) 100vw, 1922px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><strong>NLP Analysis<\/strong> page within the <strong>NLP Insights <\/strong><span style=\"font-weight: 400;\"> dashboard displays the following:<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The given user utterance.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The flow of how the NLP models generated the rescored matching intents.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The flow of Version 2 of R&amp;R, including the ranking, identification, and marking of the winning intent as the definitive match.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The identification and marking of the probable match.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419173944\/rr-nlp.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-56789\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419173944\/rr-nlp.png\" alt=\"\" width=\"1922\" height=\"815\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419173944\/rr-nlp.png 1922w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419173944\/rr-nlp-300x127.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419173944\/rr-nlp-1024x434.png 1024w\" sizes=\"auto, (max-width: 1922px) 100vw, 1922px\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\"><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Training_the_Assistant\"><span style=\"font-weight: 400;\">Training the Assistant<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Training is how you enhance the performance of the NLP engine to prioritize one task or user intent over another based on the user input. You should test and, if needed, train your assistant for all possible user utterances and inputs.<\/span><\/p>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Utterance-based_Training\"><span style=\"font-weight: 400;\">Utterance-based Training<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Below is the process we recommend you use for utterance training:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">After you enter a User Utterance, depending on the test result do one of the following to open the training options:<\/span>\n<ol>\n<li style=\"font-weight: 400;\"><strong>For an unmatched intent<\/strong><span style=\"font-weight: 400;\">: From the <\/span><strong>Select an Intent<\/strong><span style=\"font-weight: 400;\"> drop-down list, select the intent that you want to match with the user utterance.<\/span><\/li>\n<li style=\"font-weight: 400;\"><strong>For multiple matched intents<\/strong><span style=\"font-weight: 400;\">: Select the radio button for the intent you want to match.<\/span><\/li>\n<li style=\"font-weight: 400;\"><strong>For a single matched intent<\/strong><span style=\"font-weight: 400;\">: Click the name of the matched intent.<\/span><\/li>\n<\/ol>\n<\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The user utterance that you entered gets displayed in the field under the <\/span><em><span style=\"font-weight: 400;\">ML Utterances <\/span><\/em><span style=\"font-weight: 400;\">section. To add the utterance to the intent, click <\/span><strong>Save<\/strong><span style=\"font-weight: 400;\">. You can add as many utterances as you want, one after another. For more information, read <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/user-utterances\/\"><span style=\"font-weight: 400;\">Machine Learning<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Under the <\/span><em><span style=\"font-weight: 400;\">Intent Synonyms<\/span><\/em><span style=\"font-weight: 400;\"> section, each word in the task name appears as a separate line item. Enter the synonyms for the words to optimize the NLP interpreter accuracy to recognize the correct task. For more information, read <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/fundamental-meaning\/#Managing_Synonyms\"><span style=\"font-weight: 400;\">Managing Synonyms<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Under the <\/span><em><span style=\"font-weight: 400;\">Intent Patterns<\/span><\/em><span style=\"font-weight: 400;\"> section, enter task patterns for the intent. For more information, read <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/fundamental-meaning\/#Managing_Patterns\"><span style=\"font-weight: 400;\">Managing Patterns<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">When you are done making the relevant training entries, click <\/span><strong>Re-Run Utterance<\/strong><span style=\"font-weight: 400;\"> to see if you have improved the intent to get a high confidence score.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181544\/utterance-training.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-46550\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181544\/utterance-training.png\" alt=\"\" width=\"641\" height=\"608\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181544\/utterance-training.png 745w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181544\/utterance-training-300x285.png 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/a><\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"View_Matched_Training_Data\"><span style=\"font-weight: 400;\">View Matched Training Data<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">The <strong>Ranker and Resolver NLP Analysis<\/strong> window lists the matched training data (ML utterances, intent synonyms, questions, patterns, and traits) <\/span><span style=\"font-weight: 400;\">that helped the ML, KG, or FM engine to identify the qualified intent during utterance testing. This crucial information is available in all the NLU languages of R&amp;R V1 and V2, and helps understand why the given intent is qualified.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The system displays the matched training data for the following NLP engines and network models:<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<th>NLP Engine<\/th>\n<th>Supported Network Models<\/th>\n<th>Matched Training Data<\/th>\n<\/tr>\n<tr>\n<td>Machine Learning<\/td>\n<td>Standard and Few-shot Model.<\/td>\n<td>Sample utterance for every intent qualified.<\/td>\n<\/tr>\n<tr>\n<td>Knowledge Graph<\/td>\n<td>Ontology and Few-shot Model.<\/td>\n<td>Questions\/alternate questions of the qualified FAQs.<\/td>\n<\/tr>\n<tr>\n<td>Fundamental Meaning<\/td>\n<td>All Models<\/td>\n<td>Pattern for the qualified intents.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">For the intents qualified and eliminated in R&amp;R, the system displays the elimination reason in addition to the matched utterance, processed utterance, and the winning intent.<\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230724071027\/RR-matched-training-data-view.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-58125\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230724071027\/RR-matched-training-data-view.png\" alt=\"\" width=\"908\" height=\"703\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230724071027\/RR-matched-training-data-view.png 1094w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230724071027\/RR-matched-training-data-view-300x232.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230724071027\/RR-matched-training-data-view-1024x793.png 1024w\" sizes=\"auto, (max-width: 908px) 100vw, 908px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\"><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Train_with_FAQ\"><span style=\"font-weight: 400;\">Train with FAQ<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">If you want the assistant to respond to user utterance with FAQs there are two ways to do it:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">set the terms, term configuration, or classes from the FAQ page, train the KG and retest the utterance.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">add the utterance as an alternate question to the selected FAQ from the Knowledge Graph page, train the KG and retest the utterance.<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/knowledge-graph\/\"><span style=\"font-weight: 400;\">Know more about Knowledge Graph Training<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Mark_an_Incorrect_Match\"><span style=\"font-weight: 400;\">Mark an Incorrect Match<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">When a user input matches an incorrect task, do the following to match it with the right intent:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Above the matched intent name, click the <\/span><strong>Mark as incorrect match<\/strong><span style=\"font-weight: 400;\"> link.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">It opens the Matched Intent drop-down list to select another intent.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Select the corresponding intent for the user input and train the VA.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181458\/mark-incorrect-intent.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46517\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181458\/mark-incorrect-intent-1024x387.png\" alt=\"\" width=\"640\" height=\"242\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181458\/mark-incorrect-intent-1024x387.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181458\/mark-incorrect-intent-300x114.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929181458\/mark-incorrect-intent.png 1184w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>[vc_raw_html]JTNDZGl2JTIwY2xhc3MlM0QlMjJ3LXBvc3QtZWxtJTIwcG9zdF9uYXZpZ2F0aW9uJTIwbGF5b3V0X3NpbXBsZSUyMGludl9mYWxzZSUyMiUzRSUwQSUwOSUzQ2ElMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtJTIwb3JkZXJfZmlyc3QlMjB0b19wcmV2JTIyJTIwaHJlZiUzRCUyMmh0dHBzJTNBJTJGJTJGZGV2ZWxvcGVyLmtvcmUuYWklMkZkb2NzJTJGYm90cyUyRnRlc3QteW91ci1ib3QlMkZ0YWxrLXRvLWJvdCUyRiUyMiUzRSUzQyUyRnAlM0UlMEElM0NkaXYlMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtLWFycm93JTIyJTNFJTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS1tZXRhJTIyJTNFUHJldmlvdXMlM0MlMkZkaXYlM0UlMEElM0NkaXYlMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtLXRpdGxlJTIyJTNFJTNDc3BhbiUzRVRhbGslMjB0byUyMEJvdCUzQyUyRnNwYW4lM0UlM0MlMkZkaXYlM0UlMEElM0NwJTNFJTNDJTJGYSUzRSUzQ2JyJTIwJTJGJTNFJTBBJTNDYSUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0lMjBvcmRlcl9zZWNvbmQlMjB0b19uZXh0JTIyJTIwaHJlZiUzRCUyMmh0dHBzJTNBJTJGJTJGZGV2ZWxvcGVyLmtvcmUuYWklMkZkb2NzJTJGYm90cyUyRnRlc3QteW91ci1ib3QlMkZiYXRjaC10ZXN0aW5nJTJGYmF0Y2gtdGVzdGluZyUyRiUyMiUzRSUzQyUyRnAlM0UlMEElM0NkaXYlMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtLWFycm93JTIyJTNFJTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS1tZXRhJTIyJTNFTmV4dCUzQyUyRmRpdiUzRSUwQSUzQ2RpdiUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0tdGl0bGUlMjIlM0UlM0NzcGFuJTNFQmF0Y2glMjBUZXN0aW5nJTNDJTJGc3BhbiUzRSUzQyUyRmRpdiUzRSUwQSUzQ3AlM0UlM0MlMkZhJTNFJTNDJTJGZGl2JTNF[\/vc_raw_html]<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"To make sure your assistant responds to user utterances with related tasks, it is important that you test it with a variety of user inputs. Evaluating a VA with a large sample of expected user inputs not only provides insights into its responses but also gives you a great opportunity to train it in interpreting...","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[],"class_list":["post-17929","post","type-post","status-publish","format-standard","hentry","category-test-your-bot"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/17929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/comments?post=17929"}],"version-history":[{"count":39,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/17929\/revisions"}],"predecessor-version":[{"id":58129,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/17929\/revisions\/58129"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=17929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=17929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=17929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}