{"id":18124,"date":"2019-02-12T09:36:25","date_gmt":"2019-02-12T09:36:25","guid":{"rendered":"\/docs\/bots\/bot-builder\/knowledge-graph\/"},"modified":"2023-04-19T11:49:23","modified_gmt":"2023-04-19T10:49:23","slug":"knowledge-graph","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/knowledge-graph\/","title":{"rendered":"Knowledge Graph Training"},"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><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/optimizing-bots\/\"><span style=\"font-weight: 400\">Training your Assistant <\/span><\/a><span style=\"font-weight: 400\">is not restricted to the Machine Learning and Fundamental Meaning engines. You must also train the Knowledge Graph (KG) engine, too.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The Ontology-based Knowledge Graph turns static FAQ text into an intelligent, personalized conversational experience. It uses domain terms and relationships thus reducing the training needs. It also has the capability to enable the ontology weighted features whenever ML gets confused and to automate conversational dialog for resolving appropriate answers.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The Few-Shot Knowledge Graph leverages Kore.ai\u2019s LLM and lets you add FAQs without building an ontology. Less training and maintenance are required since you do not need to configure the graph term-by-term. <a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-builder-tool\/knowledge-task\/knowledge-ontology\/\" rel=\"noopener noreferrer\" target=\"_blank\">Learn more about Knowledge Graph Types<\/a>.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The Knowledge Graph engine thus responds to users&rsquo; intents by identifying the appropriate questions within the Knowledge Graph, and then presenting the user with the appropriate response.<\/span><\/p>\n<p><span style=\"font-weight: 400\">You can find the Knowledge Graph by selecting your desired VA, then going to <\/span><strong>Build &gt; Conversation Skills &gt; Knowledge Graph.<\/strong><\/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<table style=\"width: 100%;border-collapse: collapse;background-color: #dffbea\">\n<tbody>\n<tr>\n<td style=\"width: 100%\">\n<h2><span class=\"ez-toc-section\" id=\"Training_a_Few-Shot_Knowledge_Graph\"><span style=\"font-weight: 400\">Training a Few-Shot Knowledge Graph<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">Few-Shot Knowledge Graphs do not require an ontology and do not perform path qualification. Instead, they identify intents using semantic similarity and <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/how-tos\/how-to-use-patterns-for-intents-entities\/\"><span style=\"font-weight: 400\">pattern recognition<\/span><\/a><span style=\"font-weight: 400\">. However, if you want to train the VA on a specific use case for which the appropriate FAQ is not identified, you can map FAQs to an ontology, similar to what you would do with an Ontology-based Graph.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The main difference concerning training is that in the Few-Shot KG, Terms don&rsquo;t require some of the training configurations needed in an Ontology Graph.:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><strong><em>Default Terms<\/em><\/strong> <span style=\"font-weight: 400\">are not available. The only exception is when you switch from an Ontology Graph, in which case existing <\/span><em><span style=\"font-weight: 400\">Default <\/span><\/em><span style=\"font-weight: 400\">terms are stored as such until updated. Afterward, <\/span><em><span style=\"font-weight: 400\">Default <\/span><\/em><span style=\"font-weight: 400\">terms become <\/span><em><span style=\"font-weight: 400\">Organizer <\/span><\/em><span style=\"font-weight: 400\">terms and can be set as <\/span><em><span style=\"font-weight: 400\">Mandatory<\/span><\/em><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong><em>Organizer Terms<\/em><\/strong> <span style=\"font-weight: 400\">do not support Path-Level and Knowledge Graph Synonyms<\/span><span style=\"font-weight: 400\">. They support Intent Preconditions and Context Output.&nbsp;<\/span><\/li>\n<li style=\"font-weight: 400\"><strong><em>Mandatory Terms<\/em><\/strong> <span style=\"font-weight: 400\">support Traits, Path-Level and Knowledge Graph Synonyms, Intent Preconditions, and Context Output, just like in an Ontology-based Graph.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400\">You can set all Thresholds and Configurations except<\/span><strong> Path Coverage and Lemmatization using Parts of Speech,<\/strong> <strong>Search in Answer, <\/strong><span style=\"font-weight: 400\">and <\/span><strong>Qualify Contextual Paths<\/strong><span style=\"font-weight: 400\">, which are not supported by Few-Shot Graphs.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400\">See the <\/span><span style=\"font-weight: 400\"><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-builder-tool\/knowledge-task\/knowledge-ontology\/#Compare_Knowledge_Graph_Types\" rel=\"noopener noreferrer\" target=\"_blank\">Knowledge Graph Types Comparison Table<\/a> <\/span><span style=\"font-weight: 400\">for a detailed list of supported features.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Also, see <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/knowledge-graph\/#Training_Configuration\"><span style=\"font-weight: 400\">Training Configuration<\/span><\/a><span style=\"font-weight: 400\"> below for training setup details. <\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\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=\"Knowledge_Graph_Engine_Capabilities\"><span style=\"font-weight: 400\">Knowledge Graph Engine Capabilities<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">The following are the overall capabilities of the Knowledge Graph Engine:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>Ease of Training using Synonyms<\/strong><span style=\"font-weight: 400\">: Kore.ai&rsquo;s Knowledge Graph has a provision to associate synonyms against a graph node. This helps capture the variation in a question. For example, <\/span><em><span style=\"font-weight: 400\">flight<\/span><\/em><span style=\"font-weight: 400\"> can be used as a synonym for <\/span><em><span style=\"font-weight: 400\">plane <\/span><\/em><span style=\"font-weight: 400\">in an FAQ such as <\/span><em><span style=\"font-weight: 400\">How can I buy a plane ticket<\/span><\/em><span style=\"font-weight: 400\">?.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Better Coverage with Alternate Questions<\/strong><span style=\"font-weight: 400\">: The Knowledge Graph has a provision to add alternate questions. This helps us to capture the various ways a user might ask the same question. For example, in <\/span><em><span style=\"font-weight: 400\">How do I change my flight?<\/span><\/em><span style=\"font-weight: 400\"> we can add an alternate question as <\/span><em><span style=\"font-weight: 400\">Can I change my flight?.<\/span><\/em><\/li>\n<li style=\"font-weight: 400\"><strong>Improved Accuracy<\/strong><span style=\"font-weight: 400\">: Ontology-driven question-answers reduce the possibility of false positives.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Weighing Phrases using Traits<\/strong><span style=\"font-weight: 400\">: Kore.ai&rsquo;s Knowledge Graph engine includes a concept of traits for filtering out irrelevant suggestions. <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/traits\/\"><span style=\"font-weight: 400\">See here for further details<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Ability to Mark Term Importance<\/strong><span style=\"font-weight: 400\">: The Knowledge Graph has a provision to mark that an ontology term is important. For example, in the question, <\/span><em><span style=\"font-weight: 400\">How to book a flight<\/span><\/em><span style=\"font-weight: 400\">, the word <\/span><em><span style=\"font-weight: 400\">flight<\/span><\/em><span style=\"font-weight: 400\"> is an important term. If the <\/span><em><span style=\"font-weight: 400\">flight <\/span><\/em><span style=\"font-weight: 400\">keyword is not present in the user utterance, then it makes little sense.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Ability to Group Relevant Nodes<\/strong><span style=\"font-weight: 400\">: As the graph grows in size, managing graph nodes can become a challenging task. Using the <\/span><em><span style=\"font-weight: 400\">organizer node<\/span><\/em><span style=\"font-weight: 400\"> construct of the ontology engine, developers can group relevant child nodes under a parent node.<\/span><\/li>\n<\/ul>\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=\"FAQ_Detection_Steps\"><span style=\"font-weight: 400\">FAQ Detection Steps<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">Here are the steps that the Knowledge Graph Engine takes when detecting FAQs:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>Step 1: Extract Nodes: <\/strong><span style=\"font-weight: 400\">The KG engine processes the user utterance to extract the term (ontology nodes) present in the graph. It also takes into consideration the synonyms, traits, and tags associated with the terms.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Step 2: Query Graph<\/strong><span style=\"font-weight: 400\">: The KG engine fetches all the paths that consist of the extracted nodes.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Step 3: Shortlist Paths<\/strong><span style=\"font-weight: 400\"><span style=\"font-weight: 400\">: All the paths consisting of 50% or more matching terms with the user utterance are shortlisted for further processing.<br \/><\/span><\/span><br \/>\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>: Patch coverage computation doesn&rsquo;t consider the root node.<\/em><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400\"><br \/><\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Step 4: Filter with Traits<\/strong><span style=\"font-weight: 400\">: If traits are defined in the Knowledge Graph, paths shortlisted in the above step are further filtered based on the confidence score of a classification algorithm in user utterance.&nbsp;<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Step 5: Send to Ranker: <\/strong><span style=\"font-weight: 400\">The KG engine then sends the shortlisted paths to the Ontology Ranker Program.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Step 6: Score based on Cosine Similarity<\/strong><span style=\"font-weight: 400\">: The Ontology Ranker makes use of user-defined synonyms, lemma forms of word, n-grams, stop words, to compute the cosine similarity between the user utterance and the shortlisted questions. Paths are ranked in non-increasing order of cosine similarity score.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Step 7: Qualify Matches<\/strong><span style=\"font-weight: 400\">: The Ontology Ranker then qualifies the paths as follows:<\/span><\/li>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Paths with score &gt;= upper_threshold are qualified as an answer (definitive match).<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Paths with lower_threshold &lt; score &lt; upper_threshold are marked as suggestions (probable match).<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Paths with a score &lt; lower_threshold are ignored.<\/span><\/li>\n<\/ul>\n<\/ul>\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=\"Training_Guidelines\"><span style=\"font-weight: 400\">Training Guidelines<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">From the Knowledge Graph, follow these steps to build and train the corresponding Knowledge Graph:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Identify terms by grouping the unique words in each FAQ question. Build a hierarchy based on all such unique words.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Ensure that each node has not more than 25 questions.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Associate traits with terms to enable filtering FAQs from multiple identified results.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Define synonyms for each term\/node in the hierarchy. Ensure that all the different ways to call the term are defined.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Depending on the importance of each term in a path, mark them as either mandatory or regular.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Define alternative questions for each FAQ to ensure better coverage.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Manage context for accurate response.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Use Stop Words to filter unwanted utterances.<\/span><\/li>\n<\/ol>\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=\"Training_Configuration\"><span style=\"font-weight: 400\">Training Configuration<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">This article presupposes that you already know the basics of building your Knowledge Graph. If not, please read <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-builder-tool\/knowledge-task\/knowledge-ontology\/\"><span style=\"font-weight: 400\">this article<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">In order to configure the training of your Knowledge Graph for improved VA performance, we recommend that you go through as many of the following parameters as possible. These parameters involve:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Adjusting the Term Type to your VA&rsquo;s needs when adding terms to your graph,<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Setting tags for FAQs to improve detection,<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Configuring synonyms for Knowledge Graph terms to enhance path detection and help the VA find the appropriate questions to answer by widening the spectrum of words that can be used to find a specific question,<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Adding Traits to detect relevant information that improves intent or scenario detection.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Manage Context to help<\/span><span style=\"font-weight: 400\"> users complete tasks faster and create more natural, human-like back and forth conversations.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Add Stop Words which will be discarded from intent scoring, even when they are a node term.&nbsp;<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Moving forward, we will discuss these parameters in detail.<\/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=\"Term_Type\"><span style=\"font-weight: 400\">Term Type<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">Designate the terms and tags in the Knowledge Graph as Default, or Mandatory, or Organizer depending on their importance in qualifying matching paths: You can configure term types by accessing the term\/node settings.<\/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\/20220929151432\/term-settings-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46400\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151432\/term-settings-1.png\" alt=\"\" width=\"266\" height=\"227\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151432\/term-settings-1.png 451w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151432\/term-settings-1-300x256.png 300w\" sizes=\"auto, (max-width: 266px) 100vw, 266px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-weight: 400\">The available term types are:&nbsp;<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>Default<\/strong><span style=\"font-weight: 400\">: Default terms do not have any particular considerations in shortlisting qualified paths.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Mandatory<\/strong><span style=\"font-weight: 400\">: When you mark a term as Mandatory, all paths associated with the term are shortlisted for ranking only if the user&rsquo;s utterance includes the mandatory term or its synonyms.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Organizer<\/strong><span style=\"font-weight: 400\">: Term can be marked as being a part of the Knowledge Graph only for organizing questions (this option is available only for terms, not tags).<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151437\/term-type.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46403\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151437\/term-type-1024x707.png\" alt=\"\" width=\"640\" height=\"442\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151437\/term-type-1024x707.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151437\/term-type-300x207.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151437\/term-type.png 1201w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><br \/><\/span><\/li>\n<\/ul>\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=\"Tags\"><span style=\"font-weight: 400\">Tags<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">When you type a question in the Intent Name <\/span><strong>Add Question <\/strong><span style=\"font-weight: 400\">field, the Knowledge Graph suggests some tags that you can add to the graph based on the text. To include a suggested term to the path, select the tag from the drop-down list that appears when the cursor is in the Add Term field. You can also add custom tags by typing them in the add term field and hitting the Enter\/Return key.<\/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\/20220929151348\/add-tags.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46376\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151348\/add-tags-1024x487.png\" alt=\"\" width=\"640\" height=\"304\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151348\/add-tags-1024x487.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151348\/add-tags-300x143.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151348\/add-tags.png 1187w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\">After you add a tag, it is visible below the question like a tag everywhere the question appears. Tags work exactly like terms but are not displayed in the Knowledge Graph to avoid clutter.&nbsp;<\/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=\"Synonyms\"><span style=\"font-weight: 400\">Synonyms<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">You can add multiple synonyms for each term in your Knowledge Graph, making the path discoverable for varied user utterances. You can add synonyms for a term from the term&rsquo;s&nbsp; Settings window.<\/span><\/p>\n<p><span style=\"font-weight: 400\">When you add a synonym for a term in the Knowledge Graph, you can add them as local (Path Level) or global (Knowledge Graph level) synonyms.<\/span><\/p>\n<p><strong>Local Synonyms<\/strong><span style=\"font-weight: 400\"> apply to the term only in that particular path, whereas <\/span><strong>Global Synonyms<\/strong><span style=\"font-weight: 400\"> apply to the term even if it appears on any other path in the hierarchy.<\/span><\/p>\n<p><span style=\"font-weight: 400\">To add synonyms for a term, follow the below steps:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the top left of the VA&rsquo;s Knowledge Graph, <\/span><strong>hover over the node\/term<\/strong><span style=\"font-weight: 400\"> for which you want to add synonyms.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click the <\/span><strong>gear icon<\/strong><span style=\"font-weight: 400\"> to open the Settings window.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">To add <\/span><strong>synonyms<\/strong><span style=\"font-weight: 400\">,&nbsp; do the following:<\/span><\/li>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">To add local synonyms, type them in the box under <\/span><strong>Path Level Synonyms<\/strong><span style=\"font-weight: 400\">.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151344\/add-synonyms-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46373\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151344\/add-synonyms-1-1024x715.png\" alt=\"\" width=\"640\" height=\"447\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151344\/add-synonyms-1-1024x715.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151344\/add-synonyms-1-300x209.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151344\/add-synonyms-1.png 1190w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><br \/><\/span><\/li>\n<li style=\"font-weight: 400\">To add Global synonyms, click <strong>Edit <\/strong>then <strong>Add <\/strong>under <strong>Knowledge Graph Synonyms<\/strong> and enter them.<br \/>\n<table style=\"width: 100%;border-collapse: collapse;background-color: #fffbea\">\n<tbody>\n<tr>\n<td style=\"width: 100%\">\n<p><strong><em>Note<\/em><\/strong><em>: Press <\/em><strong><em>Enter<\/em><\/strong><em> after typing each synonym in the Synonyms box. If you type multiple synonyms without pressing <\/em><strong><em>Enter<\/em><\/strong><em> after each synonym, all the synonyms are considered as a single entity, even if they are separated by spaces.<br \/><\/em><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em><br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151338\/add-global-synonyms.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46370\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151338\/add-global-synonyms-1024x480.png\" alt=\"\" width=\"640\" height=\"300\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151338\/add-global-synonyms-1024x480.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151338\/add-global-synonyms-300x141.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151338\/add-global-synonyms.png 1175w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><\/em><\/p>\n<table style=\"width: 100%;border-collapse: collapse;background-color: #fffbea\">\n<tbody>\n<tr>\n<td style=\"width: 431.898px\">\n<p><strong><em>Note:<\/em><\/strong><em><span style=\"font-weight: 400\"> These Knowledge Graph Synonyms can also be accessed from the <\/span><\/em><strong><em>Manage Synonyms<\/em><\/strong><em><span style=\"font-weight: 400\"> option under the more options icon on the top-right of the Knowledge Graph page.<\/span><\/em><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em><span style=\"font-weight: 400\"><br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151419\/manage-synonyms.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46391\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151419\/manage-synonyms-1024x489.png\" alt=\"\" width=\"640\" height=\"306\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151419\/manage-synonyms-1024x489.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151419\/manage-synonyms-300x143.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151419\/manage-synonyms.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><\/span><\/em><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">You can use <\/span><strong>Bot Synonyms<\/strong><span style=\"font-weight: 400\"> in the identification of KG terms. This option can be enabled either from the <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/knowledge-graph\/#Threshold_Configurations\"><span style=\"font-weight: 400\">Threshold and Configurations<\/span><\/a><span style=\"font-weight: 400\"> or from More Options &gt; Manage Synonyms. <\/span><span style=\"font-weight: 400\"><br \/><\/span><span style=\"font-weight: 400\"><br \/><\/span><span style=\"font-weight: 400\">Once enabled, the bot-level synonyms that match with KG terms (or tags) are automatically displayed under the Bot Synonyms heading in the <\/span><strong>Synonyms<\/strong><span style=\"font-weight: 400\"> section and are used by the KG engine. The Bot Synonyms are used similar to that of KG graph level synonyms, for path qualification and for question matching. When a node matches both with a bot synonym and a bot concept, the bot concept takes priority.\n<p><\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">To add synonyms for a child node, enter them in the Synonyms box next to the <\/span><strong>Child Terms<\/strong><span style=\"font-weight: 400\"> listed at the bottom of the settings window.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151405\/child-synonyms.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46385\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151405\/child-synonyms-1024x722.png\" alt=\"\" width=\"640\" height=\"451\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151405\/child-synonyms-1024x722.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151405\/child-synonyms-300x211.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151405\/child-synonyms.png 1195w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><br \/><\/span><span style=\"font-weight: 400\"><br \/><\/span><\/li>\n<\/ol>\n<\/ol>\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=\"Traits\"><span style=\"font-weight: 400\">Traits<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">You can create traits with common user utterances and then add them to the relevant terms in your Knowledge Graph. To know more about Traits, <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/traits\/\"><span style=\"font-weight: 400\">click here<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Traits are common across the XO Platform. If you have created Traits from the Natural Language section they are available for use here as well.<\/span><\/p>\n<p><span style=\"font-weight: 400\">To create a trait, follow the below steps:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the top-right of the Knowledge Graph window, click the <\/span><strong>more options icon<\/strong><span style=\"font-weight: 400\"> and then select<\/span><strong> Manage Traits<\/strong><span style=\"font-weight: 400\">.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151424\/manage-traits.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46394\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151424\/manage-traits-1024x485.png\" alt=\"\" width=\"640\" height=\"303\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151424\/manage-traits-1024x485.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151424\/manage-traits-300x142.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151424\/manage-traits.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><span style=\"font-weight: 400\"><br \/><\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the Manage Traits window, click <\/span><strong>New Trait<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In the <\/span><strong>Trait Type<\/strong><span style=\"font-weight: 400\"> and <\/span><strong>Trait Name<\/strong><span style=\"font-weight: 400\"> field, enter a relevant name for the trait. For example, <\/span><em><span style=\"font-weight: 400\">Flight Fare<\/span><\/em><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In the <\/span><strong>Utterances <\/strong><span style=\"font-weight: 400\">field, enter all the utterances that you want to include in the trait. Examples of the <\/span><em><span style=\"font-weight: 400\">Issues<\/span><\/em><span style=\"font-weight: 400\"> trait: <\/span><em><span style=\"font-weight: 400\">First Class, Premium Economy, Economy, etc.<\/span><\/em> <em><span style=\"font-weight: 400\"><br \/><\/span><\/em><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><strong>Save &amp; Add Rule <\/strong>or <strong>Save &amp; Exit<\/strong><span style=\"font-weight: 400\">.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151400\/add-traits.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46382\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151400\/add-traits-1024x533.png\" alt=\"\" width=\"640\" height=\"333\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151400\/add-traits-1024x533.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151400\/add-traits-300x156.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151400\/add-traits.png 1603w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><br \/><\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400\">After you create a trait, you can assign it to multiple nodes in the Knowledge Graph.<\/span><\/p>\n<p><span style=\"font-weight: 400\">To add a trait to a node\/term, follow the below steps:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the top-left of your Knowledge Graph, hover over the<\/span><strong> terms<\/strong><span style=\"font-weight: 400\"> to which you want to add the trait.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click the <\/span><strong>gear icon<\/strong><span style=\"font-weight: 400\"> to open the <\/span><strong>Settings<\/strong><span style=\"font-weight: 400\"> window.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400\">Select the name of a trait from the <\/span><strong>Trait <\/strong><span style=\"font-weight: 400\">drop-down list and click <\/span><strong>Save<\/strong><\/p>\n<table style=\"width: 100%;border-collapse: collapse;background-color: #fffbea\">\n<tbody>\n<tr>\n<td style=\"width: 431.898px\">\n<p><strong><em>Note<span style=\"font-weight: 400\">: Adding a trait to a node doesn&rsquo;t add it to other nodes with the same name. You must add traits to each relevant node separately.<\/span><\/em><\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em><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\/20220929151354\/add-term-traits.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46379\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151354\/add-term-traits-1024x714.png\" alt=\"\" width=\"640\" height=\"446\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151354\/add-term-traits-1024x714.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151354\/add-term-traits-300x209.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151354\/add-term-traits.png 1202w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/em><\/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=\"Context\"><span style=\"font-weight: 400\">Context<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">You can <\/span><strong>Manage Context<\/strong><span style=\"font-weight: 400\"> for the terms and tags by setting:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>Intent Precondition<\/strong><span style=\"font-weight: 400\"> &ndash; the context that should be present as a qualifier for this node or tag<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Context Output<\/strong><span style=\"font-weight: 400\"> &ndash; the context that should be populated to signify the execution of this task<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Post the release of v8.0 of the Platform, context can be enabled for Organizer nodes as well. Enabling the <\/span><strong>Manage Context<\/strong><span style=\"font-weight: 400\"> option allows you to set the context precondition and context output mentioned above. <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-intelligence\/context-management\/\"><span style=\"font-weight: 400\">Click here for more<\/span><\/a><span style=\"font-weight: 400\"> on Context Management.<\/span><\/p>\n<table style=\"width: 100%;border-collapse: collapse;background-color: #fffbea\">\n<tbody>\n<tr>\n<td style=\"width: 431.898px\">\n<p><strong><em>Note<span style=\"font-weight: 400\">: Enabling the Manage Context option will not emit the term\/node name by default.<\/span><\/em><\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/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=\"Stop_Words\"><span style=\"font-weight: 400\">Stop Words<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">Stop words present in the user utterance are discarded for scoring even if the stop word is used to define a node (or node synonyms).<\/span><\/p>\n<p><span style=\"font-weight: 400\">The Knowledge Graph has a language-specific predefined set of stop words. This list can be customized to suit your requirements.<\/span><\/p>\n<p><span style=\"font-weight: 400\">To edit the stop words list, follow the below steps:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">From the Knowledge Graph page, click on the <\/span><strong>more options icon<\/strong><span style=\"font-weight: 400\"> and select <\/span><strong>Manage Stop Words<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">From the Manage Stop Words window, delete or add stop words.<\/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\/20220929151413\/manage-stop-words.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46388\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151413\/manage-stop-words-1024x485.png\" alt=\"\" width=\"640\" height=\"303\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151413\/manage-stop-words-1024x485.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151413\/manage-stop-words-300x142.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151413\/manage-stop-words.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/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=\"Training_Process\"><span style=\"font-weight: 400\">Training Process<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">After you complete creating\/editing the Knowledge Graph, click the <\/span><strong>Train <\/strong><span style=\"font-weight: 400\">button on the top-right of the Knowledge Graph window. When you perform this action, all the paths, synonyms, and question-answer sets are sent to the Graph DB engine.<\/span><\/p>\n<table style=\"width: 100%;border-collapse: collapse;background-color: #fffbea\">\n<tbody>\n<tr>\n<td style=\"width: 431.898px\">\n<p><strong><em>Note<span style=\"font-weight: 400\">: After every change that you make to the Knowledge Graph such as adding synonyms to a term or editing the name of a term, you must click the <\/span>Train <span style=\"font-weight: 400\">button for the changes to reflect in the bot responses.<\/span><\/em><\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">The training fails if any single node has more than 100 questions. This limit was introduced in v7.3 to make the Knowledge Graph more efficient by improving the response times. In such failure cases, you can <\/span><strong>Download Errors<\/strong><span style=\"font-weight: 400\"> CSV file which lists the path with more than 100 questions. You can use this file to rectify your Knowledge Graph.<\/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\"><span style=\"font-weight: 400\">Testing<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">When you complete creating the Knowledge Graph and training it, we recommend that you interact with the assistant and ask questions connected to the Knowledge Graph. Test the responses by using a variety of utterances so that you can identify missing terms, questions, alternative questions, synonyms, and traits. <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/test-your-bot\/testing-your-bot-with-nlp\/\"><span style=\"font-weight: 400\">Learn more about utterance testing<\/span><\/a><span style=\"font-weight: 400\">.<\/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=\"Thresholds_Configurations\"><span style=\"font-weight: 400\">Thresholds &amp; Configurations<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">To train and improve the performance, Thresholds and Configurations can be specified for all three NLP engines &ndash; FM, KG, and ML. You can access these settings from <\/span><strong>Natural Language &gt; Training &gt; Thresholds &amp; Configurations.<\/strong><\/p>\n<table style=\"width: 100%;border-collapse: collapse;background-color: #fffbea\">\n<tbody>\n<tr>\n<td style=\"width: 431.898px\">\n<p><strong><em>Note<span style=\"font-weight: 400\">: If your VA is multilingual, you can set the Thresholds differently for different languages. If not set, the Default Settings will be used for all languages. This feature is available from v7.0 onwards.<\/span><\/em><\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">The settings for the Knowledge Graph engine are discussed in detail in the following sections.<\/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=\"Explore_Thresholds_and_Configurations\"><span style=\"font-weight: 400\">Explore Thresholds and Configurations<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">To navigate to Thresholds and Configuration, please follow the steps below:&nbsp;<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Open the VA for which you want to configure Knowledge Graph settings.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Hover over the left pane and click <\/span><strong>Natural Language &gt; Training<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click the <\/span><strong>Thresholds &amp; Configurations <\/strong><span style=\"font-weight: 400\">tab.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Below is a detailed discussion about the <\/span><strong>Knowledge Graph<\/strong><span style=\"font-weight: 400\"> section on this page.<\/span><span style=\"font-weight: 400\"><br \/><\/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\/20230419103156\/thresholds-config-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419103156\/thresholds-config-1.png\" alt=\"\" width=\"1448\" height=\"1011\" class=\"alignnone size-full wp-image-56754\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419103156\/thresholds-config-1.png 1448w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419103156\/thresholds-config-1-300x209.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230419103156\/thresholds-config-1-1024x715.png 1024w\" sizes=\"auto, (max-width: 1448px) 100vw, 1448px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\">Here are the features that you will find in this section of the Platform:<\/span><\/p>\n<ul>\n<li><strong>Auto-Correction <\/strong><span style=\"font-weight: 400\">will spell correct the words in the user input to the closest matching word from the VA&rsquo;s Knowledge Graph domain dictionary. Knowledge Graph domain dictionary comprises the words extracted from Knowledge Graph&rsquo;s questions, alternate questions, nodes, and synonyms.<\/span><\/li>\n<li><strong>Bot Synonyms<\/strong> will enable the XO Platform to use the Bot Synonyms in Knowledge Graph as well. Inclusion of Bot Synonyms for intent detection by the KG engine requires training. Click <strong>Proceed<\/strong> when prompted to enable this setting and initiate training.<\/li>\n<li><strong>Lemmatization using Parts of Speech<\/strong> will enable the use of parts of speech associated with the words in the utterance to lemmatize.<\/li>\n<li><strong>Path Coverage<\/strong> can be used to define the minimum percentage of terms in the user&rsquo;s utterance to be present in a path to qualify it for further scoring. The default setting is 50% i.e. at least half of the terms in the user utterance should match the node names and terms.<\/li>\n<li><strong>Minimum and Definitive Level for Knowledge Graph Intent <\/strong>allows you to set the confidence levels for a Knowledge Graph intent. You can view and adjust the confidence level percentages for the graph in one of three ranges:\n<ul>\n<li><strong>Definitive Range<\/strong><span style=\"font-weight: 400\"> &ndash; Matches in this range (<\/span><strong>green area<\/strong><span style=\"font-weight: 400\">) are picked and any other probable matches are discarded, default set to 93-100%.<\/span><\/li>\n<li><strong>Probable Range<\/strong><span style=\"font-weight: 400\"> &ndash; Matches in this range (<\/span><strong>dark gray area<\/strong><span style=\"font-weight: 400\">) are considered for rescoring and ranking, by default set to 80-93%<\/span><\/li>\n<li><strong>Low Confidence Range<\/strong><span style=\"font-weight: 400\"> &ndash; If no other intents have matched, low confidence matches (<\/span><strong>orange area<\/strong><span style=\"font-weight: 400\">) are presented to end-user for intent confirmation, by default set to 60-80%<\/span><\/li>\n<li><strong>Not Matching an Intent<\/strong><span style=\"font-weight: 400\"> &ndash; The <\/span><strong>light gray area<\/strong><span style=\"font-weight: 400\"> represents the knowledge graph intent NLP interpreter confidence levels as too low to match the knowledge graph intent, default set to 60%.<\/span><\/li>\n<\/ul>\n<\/li>\n<li><strong>KG Suggestions Count:<\/strong> Define the maximum number of KG\/FAQ suggestions (up to 5) to be presented when a definite KG intent match is not available. Default set to 3.<\/li>\n<li><strong>Proximity of Suggested Matches:<\/strong> Define the maximum difference (up to 50%) to be allowed between top-scoring and immediate next suggested questions to consider them as equally important. Default set to 5%. This applies to the matches in the probable range.<\/li>\n<li><strong>Manage Long Responses<\/strong> when the response size exceeds channel-specific limitations. You can choose to truncate the response or display the full response with a <strong>read more<\/strong> link. Read More link is included at the end of the message. On selecting this link, the full response is opened as an answer in the browser. The URL to open the long response in a web browser is set by default by the Platform. But you can provide a custom URL, too.<\/li>\n<li><strong>Search in Answer<\/strong> for the qualifying FAQs.<\/li>\n<li><strong>Qualify Contextual Paths<\/strong> in the Knowledge Graph using the context tags available in the context. Enabling this option will ensure that the paths are shortlisted using terms or tags from the context. These tags can come from previous matched paths or intent or custom-defined tags.<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">The Platform also offers some advanced configurations. <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/nlp\/advanced-nlp-configurations\/\"><span style=\"font-weight: 400\">Refer here for more details<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Search_in_Answer\"><span style=\"font-weight: 400\">Search in Answer<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400\">This feature enables identifying FAQs by searching the user input against the answer section, instead of only matching with questions. This is a fallback mechanism only i.e. search in the answer section will be done only if no FAQs are identified from questions.<\/span><\/p>\n<table style=\"width: 100%;border-collapse: collapse;background-color: #fffbea\">\n<tbody>\n<tr>\n<td style=\"width: 431.898px\">\n<p><strong><em>Note<span style=\"font-weight: 400\">: This feature is not supported in all languages, <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/how-tos\/multi-lingual-bot-behavior\/#Feature_Support\"><span style=\"font-weight: 400\">refer here for details<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/em><\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">When the <\/span><strong>Search in Answer<\/strong><span style=\"font-weight: 400\"> flag is enabled, the Knowledge Graph engine considers the answer text for identifying the intents also.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Once this option is enabled, you can specify whether to <\/span><strong>Inform the end-user that the answer is a probable answer<\/strong><span style=\"font-weight: 400\">. If selected a Standard Message to the effect is displayed, which can be customized using the Manage Response link. <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-intelligence\/default-dialog\/#Managing_Standard_Responses\"><span style=\"font-weight: 400\">Learn more<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">There are three ways in which you can render the response:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><strong>Show Complete Response<\/strong><span style=\"font-weight: 400\">: Full response is sent as the answer to the user.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Show only the Relevant Paragraph<\/strong><span style=\"font-weight: 400\">: Only the relevant paragraph from which the question was identified is sent as the response.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Show only the Relevant Paragraph with Read More link<\/strong><span style=\"font-weight: 400\">: Only the relevant paragraph from which the question was identified is sent as the response.<\/span><span style=\"font-weight: 400\"><br \/><\/span><span style=\"font-weight: 400\">An additional Read More link is included at the end of the message. On selecting this link, the full response is opened as an answer in the browser. The URL to open the long response in a web browser is set by default by the Platform. But you can provide a <\/span><strong>custom URL<\/strong><span style=\"font-weight: 400\"> (see below for details).<\/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\/20220929151428\/search-in-answer.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46397\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151428\/search-in-answer.png\" alt=\"\" width=\"640\" height=\"223\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151428\/search-in-answer.png 871w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220929151428\/search-in-answer-300x105.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<h4>&nbsp;<\/h4>\n<h4><span style=\"font-weight: 400\">Custom URL Configuration<\/span><\/h4>\n<p><span style=\"font-weight: 400\">By default, the URL to open the long response in the web browser is set by the Platform. You have an option to provide a custom URL for rendering the FAQ answers.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The Platform will call the provided URL with details of the relevant message template (template id) and other necessary information.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The following API gives the full information of the FAQ:<\/span><\/p>\n<p><strong>URL<\/strong><span style=\"font-weight: 400\">: <\/span><code><span style=\"font-weight: 400\">https:\/\/{{host-name}}\/api\/1.1\/public\/users\/{{userId}}\/faqs\/resolvedResponse\/{{respId}}<\/span><\/code><\/p>\n<p><strong>Method<\/strong><span style=\"font-weight: 400\">: <\/span><code><span style=\"font-weight: 400\">get<\/span><\/code><\/p>\n<p><strong>Headers<\/strong><span style=\"font-weight: 400\">: <\/span><code><span style=\"font-weight: 400\">{auth : JWT}<\/span><\/code><\/p>\n<p><strong>Sample Response<\/strong><span style=\"font-weight: 400\">:<\/span><\/p>\n<pre>\n<span style=\"font-weight: 400\">{<br \/><\/span><span style=\"font-weight: 400\">\"response\": \"You can contact our Branch officials wherein you have submitted your documents.If the documents are in order, the account will be opened within 2 working days.\",<br \/><\/span><span style=\"font-weight: 400\">\"primaryQuestion\": \"How to check the status of my account opening?\"<br \/><\/span><span style=\"font-weight: 400\">}<\/span>\r\n<\/pre>\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=\"Lemmatization\"><span style=\"font-weight: 400\">Lemmatization<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">Lemmatization in linguistics is the process of grouping together the inflected forms of a word so they can be analyzed as a single item, identified by the word&rsquo;s lemma, or dictionary form. Using Parts of Speech information from the user utterance in the process of lemmatization can improve identifying a more accurate FAQ.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Following are some examples of the phrases as recognized by the KG engine with and without using parts of speech:<\/span><\/p>\n<table style=\"height: 266px\">\n<tbody>\n<tr>\n<th>\n<p><strong>USER UTTERANCE<\/strong><\/p>\n<\/th>\n<th>\n<p><strong>NOT USING POS<\/strong><\/p>\n<\/th>\n<th>\n<p><strong>USING POS<\/strong><\/p>\n<\/th>\n<\/tr>\n<tr style=\"height: 78px\">\n<td style=\"height: 78px;width: 306.968px\">\n<p><span style=\"font-weight: 400\">What is my outstanding booking invoice balance<\/span><\/p>\n<\/td>\n<td style=\"height: 78px;width: 102.257px\">\n<p><span style=\"font-weight: 400\">outstand<\/span><\/p>\n<p><span style=\"font-weight: 400\">book<\/span><\/p>\n<\/td>\n<td style=\"height: 78px;width: 86.7708px\">\n<p><span style=\"font-weight: 400\">outstanding<\/span><\/p>\n<p><span style=\"font-weight: 400\">booking<\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 46px\">\n<td style=\"height: 46px;width: 306.968px\">\n<p><span style=\"font-weight: 400\">I am filing for a visa so that I can travel<\/span><\/p>\n<\/td>\n<td style=\"height: 46px;width: 102.257px\">\n<p><span style=\"font-weight: 400\">file<\/span><\/p>\n<\/td>\n<td style=\"height: 46px;width: 86.7708px\">\n<p><span style=\"font-weight: 400\">filing<\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 78px\">\n<td style=\"height: 78px;width: 306.968px\">\n<p><span style=\"font-weight: 400\">What happens if my luggage exceeds the maximum weight? ?<\/span><\/p>\n<\/td>\n<td style=\"height: 78px;width: 102.257px\">\n<p><span style=\"font-weight: 400\">, happen<\/span><\/p>\n<p><span style=\"font-weight: 400\">exceed<\/span><\/p>\n<\/td>\n<td style=\"height: 78px;width: 86.7708px\">\n<p><span style=\"font-weight: 400\">happens<\/span><\/p>\n<p><span style=\"font-weight: 400\">exceeds<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/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]JTNDZGl2JTIwY2xhc3MlM0QlMjJ3LXBvc3QtZWxtJTIwcG9zdF9uYXZpZ2F0aW9uJTIwbGF5b3V0X3NpbXBsZSUyMGludl9mYWxzZSUyMiUzRSUwQSUzQ2ElMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtJTIwb3JkZXJfZmlyc3QlMjB0b19wcmV2JTIyJTIwaHJlZiUzRCUyMiUyRmRvY3MlMkZib3RzJTJGbmxwJTJGZnVuZGFtZW50YWwtbWVhbmluZyUyRiUyMiUzRSUzQyUyRnAlM0UlMEElM0NkaXYlMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtLWFycm93JTIyJTNFJTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS1tZXRhJTIyJTNFUHJldmlvdXMlMjBQb3N0JTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS10aXRsZSUyMiUzRSUzQ3NwYW4lM0VGdW5kYW1lbnRhbCUyME1lYW5pbmclM0MlMkZzcGFuJTNFJTNDJTJGZGl2JTNFJTBBJTNDcCUzRSUzQyUyRmElM0UlM0NiciUyMCUyRiUzRSUwQSUzQ2ElMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtJTIwb3JkZXJfc2Vjb25kJTIwdG9fbmV4dCUyMiUyMGhyZWYlM0QlMjIlMkZkb2NzJTJGYm90cyUyRm5scCUyRnRyYWl0cyUyRiUyMiUzRSUzQyUyRnAlM0UlMEElM0NkaXYlMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtLWFycm93JTIyJTNFJTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS1tZXRhJTIyJTNFTmV4dCUyMFBvc3QlM0MlMkZkaXYlM0UlMEElM0NkaXYlMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtLXRpdGxlJTIyJTNFJTNDc3BhbiUzRVRyYWl0cyUyMEVuZ2luZSUzQyUyRnNwYW4lM0UlM0MlMkZkaXYlM0UlMEElM0NwJTNFJTNDJTJGYSUzRSUzQyUyRmRpdiUzRQ==[\/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":"Training your Assistant is not restricted to the Machine Learning and Fundamental Meaning engines. You must also train the Knowledge Graph (KG) engine, too. The Ontology-based Knowledge Graph turns static FAQ text into an intelligent, personalized conversational experience. It uses domain terms and relationships thus reducing the training needs. It also has the capability to...","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-18124","post","type-post","status-publish","format-standard","hentry","category-nlp"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/18124","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=18124"}],"version-history":[{"count":65,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/18124\/revisions"}],"predecessor-version":[{"id":56775,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/18124\/revisions\/56775"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=18124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=18124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=18124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}