{"id":18064,"date":"2018-11-23T10:54:31","date_gmt":"2018-11-23T10:54:31","guid":{"rendered":"https:\/\/developer.kore.ai\/v7-3\/?post_type=docs&#038;p=15439"},"modified":"2021-03-26T09:00:56","modified_gmt":"2021-03-26T09:00:56","slug":"knowledge-extraction-service","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v7-3\/docs\/bots\/bot-builder-tool\/knowledge-task\/knowledge-extraction-service\/","title":{"rendered":"Knowledge Extraction"},"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>The Knowledge Graph Extraction Service enables you to effortlessly move your enterprise\u2019s existing Frequently Asked Questions- FAQ content &#8211; into bot Knowledge Graph.<\/p>\n<p>The feature supports the extraction from unstructured content such as web pages and PDF documents as well as from structured content such as CSV files.<\/p>\n<p>After completing the extraction, you can edit the question and answers using an easy-to-use interface and organize them under the relevant Knowledge Graph nodes.<\/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>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"Extraction_Process\">Extraction Process<\/span><\/h3>\n<p>Moving data using the Knowledge Extraction Service to the Knowledge Graph involves the followings steps:<\/p>\n<ul>\n<li><b>Step 1 Extracting:<\/b> Extract the existing FAQ content from structured or unstructured sources of question-answer data such as PDF, web pages, and CSV files. This extraction can be done before or after creating a Knowledge Graph for the bot.<br \/>\n<b>Note<\/b>: The Knowledge Extraction service supports a specific content structure for each source type. Refer to the <a href=\"#Supported_Formats\">Supported formats<\/a> section for details.<br \/>\n<b><\/b><\/li>\n<li><b>Step 2 Editing: <\/b>Upon successful data extraction, you can edit the questions and answer text before moving it to the Knowledge Graph.<\/li>\n<li><b>Step 3 Moving: <\/b>You can add data into a Bot before or after creating a Knowledge Graph (KG). If you try to add the extracted content to a KG before it exists, the bot creates automatically create one with the Bot\u2019s name.<\/li>\n<\/ul>\n<p>The Knowledge Extractor allows you to add the extracted content to the Knowledge Graph:<\/p>\n<ul>\n<li><b>Add to Knowledge Graph<\/b>\u00a0moves the selected questions to the root node of the Knowledge Graph. You can use this option when the required term is not yet added to the KG or when the Bot does not have a Knowledge Graph.<\/li>\n<li><b>Add to Specific Term<\/b>: If the bot already consists of a Knowledge Graph, you drag-drop the selected content to the required nodes.<\/li>\n<\/ul>\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>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"Extracting_from_a_Website\">Extracting from a Website<\/span><\/h3>\n<ol>\n<li>Open the bot into which you want to extract the content and click the <strong>Knowledge Graph<\/strong><b>\u00a0<\/b>tab.<\/li>\n<li>Under Extracts section, click <b>Extract from URL<\/b>.<\/li>\n<li>Enter a <strong>Name<\/strong> for extraction.<\/li>\n<li>Enter the <b>URL <\/b>of the page, and then click <b>Proceed<\/b>.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/15\/ke-url.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21227\" src=\"\/wp-content\/uploads\/sites\/15\/ke-url.png\" alt=\"\" width=\"820\" height=\"461\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/15\/20221201095626\/ke-url.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/15\/20221201095626\/ke-url-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/15\/20221201095626\/ke-url-1024x576.png 1024w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/a><\/li>\n<li>Once the extraction is complete, the page with the Success status appears.<\/li>\n<\/ol>\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>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"Extracting_from_File\">Extracting from File<\/span><\/h3>\n<p>NOTE: File size should not be more than 5MB.<\/p>\n<p>For file format details, refer to the <a href=\"#Supported_Formats\">Supported formats<\/a> section below.<\/p>\n<ol>\n<li>Open the bot into which you want to extract the content and click the <strong>Knowledge Graph<\/strong><b>\u00a0<\/b>tab.<\/li>\n<li>From the <strong>Extracts<\/strong> section, from the tab <b>Extract from file, <\/b>click <b>Browse<\/b>.<\/li>\n<li>Browse to the file &#8211; PDF or CSV formatted, select the file and then click <b>Proceed<\/b>.<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/15\/KE-file.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21229\" src=\"\/wp-content\/uploads\/sites\/15\/KE-file.png\" alt=\"\" width=\"820\" height=\"461\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/15\/20221201095626\/KE-file.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/15\/20221201095626\/KE-file-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/15\/20221201095626\/KE-file-1024x576.png 1024w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/a><\/li>\n<li>Once the extraction is complete, a page with the Success status will be displayed.<\/li>\n<\/ol>\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>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"Editing_the_Extracted_Content\">Editing the Extracted Content<\/span><\/h3>\n<ol>\n<li>Open the bot and click the<b> Knowledge Graph<\/b>\u00a0tab.<\/li>\n<li>The <strong>Knowledge Extraction<\/strong> section displays the list of all extractions.<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/15\/success-website-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-22316\" src=\"\/wp-content\/uploads\/sites\/15\/success-website-1.png\" alt=\"\" width=\"998\" height=\"258\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/15\/20221201095548\/success-website-1.png 998w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/15\/20221201095548\/success-website-1-300x78.png 300w\" sizes=\"auto, (max-width: 998px) 100vw, 998px\" \/><\/a><\/li>\n<li>Click the name of a successful extract whose content you want to edit.<\/li>\n<li>Hover over the question-answer pair to modify it and click the edit icon.<\/li>\n<li>Make the necessary changes and click <b>Save<\/b>.<\/li>\n<\/ol>\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>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"Adding_the_Extracted_Content\">Adding the Extracted Content<\/span><\/h3>\n<p>There are two ways to add the extracted content to the Knowledge Graph.<\/p>\n<h4>From the Extracts Section<\/h4>\n<ol>\n<li>Open the bot and click the<b> Knowledge Graph<\/b>\u00a0tab.<\/li>\n<li>From the <strong>Knowledge Extraction<\/strong> section, select the name of a successful extract whose content you want to add.<\/li>\n<li>Drag and drop the required Q&amp;A to the node\/term to which you want to add. As you drag and drop the child nodes will be expanded.<\/li>\n<li>You can select multiple Q&amp;As and do a bulk move.<\/li>\n<\/ol>\n<h4>From Knowledge Graph<\/h4>\n<ol>\n<li>Open the bot and click the<b> Knowledge Graph <\/b>tab.<\/li>\n<li>Select the node to which you want to add these Question-Answers.<\/li>\n<li>Click <strong>Add from extraction<\/strong>. It opens the list of successful and failed extractions.<\/li>\n<li>Click the name of a successful extract whose content you want to move.<\/li>\n<li>Select the checkboxes next to the question-answer pairs that you want to move and then click <b>Add<\/b>.<\/li>\n<\/ol>\n<p><strong>Note<\/strong>: Once you move a question-answer pair from the extract to the knowledge graph, you cannot move it again. The platform throws a duplicate error when you try to move a question from the extract that\u2019s already present in the collection. You can make any changes to the moved content from the knowledge graph. However, if the question is modified or removed in the knowledge graph, then the developer would be allowed to add it again to the knowledge graph.<\/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>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"Supported_Formats\">Supported Formats<\/span><\/h3>\n<p>The Knowledge Extraction service supports extracting FAQs only from supported CSV, PDF and URL formats.<\/p>\n<p>Note that the file size should not be more than 5MB.<\/p>\n<h4>CSV<\/h4>\n<ul>\n<li>The Knowledge Extraction service interprets the text in the first column as a question and that in the second column as an answer.<\/li>\n<li>The file should not have any headers.<\/li>\n<li>The Knowledge Extraction service ignores any headers and the text present in the other columns.<\/li>\n<\/ul>\n<h4>PDF<\/h4>\n<ul>\n<li>The Knowledge Extraction service can process the content from a PDF and convert into question-answer pairs.<\/li>\n<li><span style=\"text-decoration: underline\">Documents with table of contents<\/span>: Ideally a document with a table of contents is preferred. In such cases, the Knowledge Extraction service extracts the table of contents first and then uses it to parse the document and identify headings. The information present in the table of contents is used to derive the hierarchy of headings (headings. subheadings, sub-subheadings, etc.). These levels will be separated by a vertical line as a delimiter (heading | subheading | sub-subheading) as part of the extraction process.<\/li>\n<li><span style=\"text-decoration: underline\">Documents with no table of contents<\/span>: In such cases the Knowledge Extraction service uses a pre-trained machine learning model that identifies headings based on either font style or font size. In case of using font size, the heading hierarchy can also be derived.<\/li>\n<li>The text is then formatted with uniform header and paragraph blocks.<\/li>\n<\/ul>\n<h4>Web Pages<\/h4>\n<p>The Knowledge Extraction service supports the following three different formats of FAQ web pages:<\/p>\n<ul>\n<li>Plain FAQ Pages with linear question-answer pairs<\/li>\n<li>Pages with question hyperlinks that point to answers on the same page.<\/li>\n<li>Pages with question hyperlinks that point to answers on a different page.<\/li>\n<\/ul>\n<p>Extraction of certain FAQs on the webpage fails under the following conditions:<\/p>\n<ul>\n<li>The question text is split between multiple HTML tags on the FAQ page.<\/li>\n<li>The tag applied to the answer is neither the child nor the sibling of the extracted question as per the HTML DOM structure.<\/li>\n<li>The question doesn\u2019t have a hyperlink to the answer (applies to FAQs with hyperlinks)<\/li>\n<li>When the questions hyperlink to the answer, but the question statement isn\u2019t repeated above the answer (applies to FAQs with hyperlinks)<\/li>\n<\/ul>\n<p>The extraction of the entire FAQ page fails if the page consists of more than one FAQ page types mentioned above.<\/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><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"The Knowledge Graph Extraction Service enables you to effortlessly move your enterprise\u2019s existing Frequently Asked Questions- FAQ content - into bot Knowledge Graph. The feature supports the extraction from unstructured content such as web pages and PDF documents as well as from structured content such as CSV files. After completing the extraction, you can edit...","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-18064","post","type-post","status-publish","format-standard","hentry","category-knowledge-task"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/posts\/18064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/comments?post=18064"}],"version-history":[{"count":17,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/posts\/18064\/revisions"}],"predecessor-version":[{"id":23600,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/posts\/18064\/revisions\/23600"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/media?parent=18064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/categories?post=18064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/tags?post=18064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}