Knowledge graph extraction device and knowledge graph extraction method

The proposed knowledge graph extraction method addresses information loss by creating integrated knowledge graphs through ontology and document structure extraction, improving search accuracy and answer generation.

JP2026185659APending Publication Date: 2026-11-27HITACHI LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2025082925
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing knowledge graph construction technologies fail to consider information loss, leading to reduced search accuracy and inability to generate answers.

Method used

A knowledge graph extraction method involving an ontology definition file, document file, knowledge graph extraction unit, document structure/key topic extraction unit, and knowledge graph integration unit to create a keyword knowledge graph, section hierarchy/key topic knowledge graph, and integrated knowledge graph, reducing information loss.

Benefits of technology

Reduces the likelihood of information loss during knowledge graph construction, enhancing search accuracy and answer generation capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026185659000001_ABST
    Figure 2026185659000001_ABST
Patent Text Reader

Abstract

This invention provides a knowledge graph extraction device and method that minimizes the occurrence of information loss when constructing knowledge graphs. [Solution] The knowledge graph extraction device comprises a knowledge graph extraction unit that extracts some characters from the texts constituting the knowledge as keywords from an ontology definition file in which the ontology of the texts constituting the knowledge is defined and a document file in which the knowledge is described in text, and connects the nodes of each keyword with edges to create a keyword knowledge graph; a document structure / key topic extraction unit that extracts the section hierarchy and key topics as the structure of the texts contained in the document file, and connects the nodes of each key topic with edges to create a section hierarchy / key topic knowledge graph; and a knowledge graph integration unit that integrates the keyword knowledge graph, the section hierarchy / key topic knowledge graph, keywords, the section hierarchy and the key topics, and connects each node with edges to create an integrated knowledge graph.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present invention relates to a knowledge graph extraction device and a knowledge graph extraction method, and is preferably applied to, for example, a knowledge graph extraction device for a technology for constructing a knowledge graph. BACKGROUND ART

[0002] For example, Patent Document 1 discloses a technology related to advanced and reliable inference using a large language model on a knowledge graph. In the technology disclosed in Patent Document 1, for example, in situations requiring complex logical thinking or reliability, collaboration with an external knowledge graph has attracted attention as one measure to address hallucinations in large language models (hereinafter also referred to as "LLMs").

[0003] The technology disclosed in Patent Document 1 proposes a new framework for integrating LLMs with knowledge graphs. This framework adopts the concept of positioning the LLM as an active agent, exploring related entities and relationships on the knowledge graph, and performing inference based on them. To realize this framework, a new inference method called "Think-on-Graph (hereinafter referred to as "ToG")" has been developed. In ToG, the agent repeatedly performs searches on the knowledge graph, identifies promising inference paths, and derives the most appropriate conclusion. RELATED ART DOCUMENTS NON-PATENT DOCUMENTS

[0004] NON-PATENT DOCUMENT 1 https: / / arxiv.org / abs / 2307.07697 SUMMARY OF THE INVENTION PROBLEMS TO BE SOLVED BY THE INVENTION

[0005] However, the technology disclosed in Patent Document 1 does not take into consideration the occurrence of information loss when constructing the knowledge graph. If information loss occurs in the knowledge graph, the search for an inference path fails, resulting in reduced search accuracy and inability to generate an answer.

[0006] This invention was made in consideration of the above points, and aims to propose a knowledge graph extraction device and a knowledge graph extraction method that can reduce the likelihood of information loss occurring when constructing a knowledge graph. [Means for solving the problem]

[0007] To solve these problems, the present invention includes: an ontology definition file in which an ontology of texts constituting knowledge is defined; a document file in which the knowledge is described in text; a knowledge graph extraction unit that extracts some characters from the texts constituting the knowledge as keywords and connects the nodes of each keyword with edges to create a keyword knowledge graph; a document structure / key topic extraction unit that extracts the section hierarchy and key topics as structures related to the texts contained in the document file and connects the nodes of each key topic with edges to create a section hierarchy / key topic knowledge graph; and a knowledge graph integration unit that integrates the keyword knowledge graph, the section hierarchy / key topic knowledge graph, the keywords, the section hierarchy, and the key topics and connects each node with edges to create an integrated knowledge graph.

[0008] In the present invention, the knowledge graph extraction unit includes a knowledge graph extraction step in which it extracts some characters from the texts constituting the knowledge as keywords from an ontology definition file in which the ontology of the texts constituting the knowledge is defined and a document file in which the knowledge is described in text, and connects the nodes of each keyword with edges to create a keyword knowledge graph; a text structure / key topic extraction unit includes a text structure / key topic extraction step in which it extracts section hierarchies and key topics as structures related to the texts contained in the document file, and connects the nodes of each key topic with edges to create a section hierarchy / key topic knowledge graph; and a knowledge graph integration step in which it integrates the keyword knowledge graph, the section hierarchy / key topic knowledge graph, the keywords, the section hierarchy, and the key topics, and connects each node with edges to create an integrated knowledge graph. [Effects of the Invention]

[0009] According to the present invention, it is possible to reduce the likelihood of information loss occurring when constructing a knowledge graph. [Brief explanation of the drawing]

[0010] [Figure 1] This is a system configuration diagram showing an example of the overall configuration of the knowledge graph extraction device according to this embodiment. [Figure 2] Figure 1 shows an example of the structure of an ontology definition file. [Figure 3] Figure 1 shows an example of text contained in a document file. [Figure 4] This figure shows an example of the configuration of a prompt for generating a knowledge graph. [Figure 5] Figure 1 shows an example of the structure of a keyword knowledge graph. [Figure 6] This is a flowchart showing an example of the response processing procedure. [Figure 7] This figure shows an example of a document structure related to a section-hierarchical knowledge graph. [Figure 8]It is a diagram illustrating an example of the document structure related to the section hierarchy knowledge graph. [Figure 9] It is a diagram illustrating an example of the configuration of a prompt for generating a section hierarchy / key topic knowledge graph. [Figure 10] It is a flowchart illustrating an example of the procedure for document structure / key topic extraction processing. [Figure 11] It is a diagram illustrating an example of the configuration of an integrated knowledge graph. [Figure 12] It is a flowchart illustrating an example of the procedure for integrated knowledge graph creation processing. [Figure 13] It is a diagram illustrating an example of the configuration of an integrated knowledge graph. [Figure 14] It is a diagram illustrating an example of a prompt for topic entity collection and a response to the topic entity collection result. [Figure 15] It is a diagram illustrating an example of a prompt for topic entity selection and a response to the topic entity selection result. [Figure 16] It is a diagram illustrating an example of a prompt for inference path selection and a response to the inference path selection result. [Figure 17] It is a diagram illustrating an example of a prompt for determining whether answer generation is possible, a response to the answer generation feasibility determination result, and an example of the response to the answer generation feasibility determination result. [Figure 18] It is a diagram illustrating an example of information on nodes that are difficult to select. [Figure 19] It is a flowchart illustrating an example of the procedure for topic entity processing. [Figure 20] It is a flowchart illustrating an example of the procedure for answer generation processing. [Figure 21] It is a diagram illustrating an example of information on nodes that are difficult to select with surrounding information. [Figure 22] It is a diagram illustrating an example of a prompt for labeling and a response to the labeling result. [Figure 23] It is a flowchart illustrating an example of the procedure for knowledge graph update processing. [Description of Embodiments]

[0011] Hereinafter, this embodiment of the present invention will be described in detail with reference to the drawings. This embodiment is illustrative for explaining the present invention, and has been omitted and simplified as appropriate for clarity of explanation. The present invention can also be implemented in various other forms. Unless otherwise specified, each component may be singular or plural.

[0012] Figure 1 is a system configuration diagram showing an example of the overall configuration of a knowledge graph extraction device according to this embodiment. The knowledge graph extraction device according to this embodiment is, for example, a computer. In the illustrated example, the illustration of the large-scale language model (hereinafter also abbreviated as "LLM") and its input prompt may be omitted. This knowledge graph extraction device comprises, for example, a knowledge graph extraction unit 101, a document structure / key topic extraction unit 102, and a keyword occurrence section extraction / knowledge graph integration unit (hereinafter abbreviated as "knowledge graph integration unit") 103. The knowledge referred to in this embodiment is, for example, knowledge about technical support, and this knowledge about technical support is composed of document sections containing, for example, words related to topics.

[0013] The knowledge graph extraction device may also include a topic entity collection unit 104, a topic entity selection unit 105, an additional inference path selection unit with category nodes 106, and an answer generation feasibility determination unit 107.

[0014] Furthermore, the knowledge graph extraction device may also include a node information collection unit 109 and a node labeling unit 110.

[0015] First, the knowledge graph extraction unit 101 has the function of extracting some characters from the sentences constituting the knowledge as keywords from, for example, an ontology definition file 151 in which the ontology of the sentences constituting the knowledge is defined, and a document file 152 in which the knowledge is described in sentences, and connecting the nodes of each keyword with edges to create a keyword knowledge graph 153. The ontology definition file is a file that defines an ontology in which the connections between words in the sentences constituting the knowledge are represented by nodes and edges so that it can be read by a computer. The ontology definition file 151 has entity information and relation information, as will be described later. Entity information and relation information will be described later. The keyword knowledge graph 153 is a graph that represents knowledge, for example, by using some of the words that describe the knowledge as keywords, with each word as a node and the connections between each word as nodes.

[0016] The document structure / key topic extraction unit 102 has the function of extracting section hierarchies and key topics as structures related to the documents contained in the document file 152, and connecting the nodes of each key topic with edges to create a section hierarchy / key topic knowledge graph 154. The section hierarchy / key topic knowledge graph 154 includes, for example, information extracted from key topics included in the knowledge of document structure using words.

[0017] The knowledge graph integration unit 103 has the function of creating an integrated knowledge graph 155, for example, by integrating the keyword knowledge graph 153 and the section hierarchy / key topic knowledge graph 154. The knowledge graph integration unit 103 extracts keywords of words that constitute knowledge from the keyword knowledge graph 153. On the other hand, the knowledge graph integration unit 103 extracts key topics included in the knowledge of sentence structure using words from the section hierarchy / key topic knowledge graph 154.

[0018] The topic entity collection unit 104 collects a group of topic entities 158 as examples of topic entity candidates representing candidate topics of the text, from the input question text 157 and integrated knowledge graph 155.

[0019] The topic entity selection unit 105 selects a limited topic entity group 159 as an example of a specific topic entity from the topic entity group 158. The additional inference path selection unit 106 with category nodes collects additional inference path candidates that can be identified by the limited topic entity group 159 as an example of a specific topic entity.

[0020] The response generation feasibility determination unit 107 selects a group of inference paths 160 as an example of an additional inference path from the additional inference path candidates and determines whether or not a response can be generated from the group of inference paths 160 as an example of an additional inference path (hereinafter also referred to as "response generation feasibility"). If it is not possible to generate a response, it collects additional inference path collection candidates again, while if it is possible to generate a response, it generates a response 161.

[0021] The topic entity selection unit 105 described above, when selecting a limited topic entity group 159 as an example of a specific topic entity from a group of topic entities 158 as an example of a topic entity candidate, refers to a category node connected to the topic entity group 158 as an example of a topic entity candidate, and selects the limited topic entity group 159 as an example of a topic entity by providing the information set of pairs of the category node and the topic entity group 158 as an example of a topic entity candidate to an LLM (not shown). This LLM has been pre-machine-trained using a large number of pre-prepared training data, for example, with the information set of pairs of a category node and the topic entity group 158 as an example of a topic entity candidate as explanatory variables, and the limited topic entity group 159 as an example of a topic entity as the target variable. In other words, this LLM has been pre-machine-trained to be able to extract features from the former (the information set of pairs) and derive the result for the latter (the large number of limited topic entity groups 159) using a large number of training data using, for example, a large number of information sets of pairs and a large number of limited topic entity groups 159 as examples of a large number of pick entities.

[0022] The category node-attached additional inference path selection unit 106, as described above, selects an inference path group 160 as an example of an additional inference path from the additional inference path candidates by referring to the category node connected to the additional inference path candidate and providing the set of information of the pair of the category node and the additional inference path candidate to an LLM (not shown), thereby selecting an inference path group 160 as an example of an additional inference path. This LLM has been pre-machine-trained using a large number of pre-prepared training data, for example, with the category node as the explanatory variable and the additional inference path candidate as the target variable. In other words, this LLM has been pre-machine-trained to be able to extract features of the former (category node) and derive the result of the latter (additional inference path candidate) using a large number of training data using a large number of category nodes and a large number of additional inference path candidates.

[0023] When the selection-difficult node surrounding information collection unit 109 selects a limited topic entity group 159 as an example of a specific topic entity from a topic entity group 158 as an example of a topic entity candidate, it detects a group of nodes consisting of multiple similar nodes and records the node group in the selection-difficult node information 162. When selecting an inference path group 160 as an example of an additional inference path from an additional inference path candidate, it records the node that was difficult to select in the selection-difficult node information 162 and outputs selection-difficult node information with surrounding information, which is constructed by collecting information about the surrounding nodes and edges of the node recorded in the selection-difficult node information 162.

[0024] The difficult-to-select node labeling unit 110 provides the difficult-to-select node information 163 with surrounding information to a large-scale language model (LLM), performs clustering and cluster-specific labeling on the nodes, connects the difficult-to-select nodes with the labeled nodes, and reflects the results in the integrated knowledge graph 155. This LLM is pre-trained using a large number of pre-prepared training datasets, for example, with the difficult-to-select node information 163 with surrounding information as an explanatory variable and the clustering results and cluster-specific labeling results of the nodes as the dependent variables. In other words, this LLM is pre-trained using a large number of training datasets, for example, using a large number of difficult-to-select node information 163 with surrounding information and a large number of clustering results and cluster-specific labeling results of the nodes in question, so that it can extract features from the former (difficult-to-select node information 163 with surrounding information) and derive the latter results (clustering results and cluster-specific labeling results of the nodes).

[0025] Figure 2 shows an example of the structure of the ontology definition file 151 shown in Figure 1. The ontology definition file 151 contains entity information 201 and relation information 202. The entity information 201 includes information about entities, which are nodes such as words that make up a document. The entity information 201 includes an entity name 211, which is the name of the entity, and an entity description 212, which is a description of the entity. The entities include, for example, entities that include topic entities.

[0026] Entity names 211 are, for example, functions, commands, errors, and components. Entity descriptions 212 are, for example, "indicates the name of a function provided by the database."

[0027] Relationship information 202 indicates the relationship between multiple entities. Relationship information 202 includes, for example, a relationship name 213, which is a name indicating the relationship between multiple entities, a relationship entity name 214, which represents the names of the multiple entities involved, and a relationship description 215, which is a description of the relationship.

[0028] Relationship names 213 could be, for example, related commands, related errors, or commanded components. Relationship entity names 214 could be, for example, functions and commands. Relationship descriptions 215 could be, for example, indicating the use of "commands" for managing "functions".

[0029] Figure 3 shows an example of text 301 contained in document file 152 shown in Figure 1. Document file 152 contains information that, for example, provides knowledge about technical support for a database. Text 301 is, for example, "When taking a backup of a database, first execute the pdhold command to block the table storage area, and then execute the pcdopy command to take a backup of that table storage area." Text 301 contains words that constitute the sentences that make up the knowledge as entities. Some topics constitute topic entities.

[0030] Figure 4 shows an example of the configuration of the knowledge graph generation prompt 401. The knowledge graph generation prompt 401 includes an instruction statement 411, a text document 412, and an ontology definition 413. The ontology definition 413 is described in the ontology definition file 151 mentioned above.

[0031] Instruction 411 is a prompt sentence indicating the content of the instruction. Text 412 is text that constitutes the knowledge graph generation prompt 401. Ontology definition 413 shows the definition of the ontology.

[0032] Figure 5 shows an example of the structure of the keyword knowledge graph 153 shown in Figure 1. The keyword knowledge graph 153 is structured as follows: For example, keyword node 511 is connected to a first entity whose label is "command" and name is "pdcopy" by an edge 512 of a certain related command, and is also connected to a second entity whose label is "command" and name is "pdhold" by an edge 512 of a certain related command.

[0033] The first entity is connected to the third entity, whose label is "Error" and name is "Deadlock Occurred," by an edge 512 called "Related Error." The first entity is also connected to the fourth entity, whose label is "Component" and name is "Table Storage Area," by an edge 512 called "Command" and "Target Component." The second entity mentioned above is connected to the fourth entity by an edge 512 called "Command" and "Target Component."

[0034] Here, an example of a knowledge graph extraction method according to this embodiment will be described. The knowledge graph extraction method according to this embodiment includes: a knowledge graph extraction step in which a knowledge graph extraction unit 101 extracts some characters from the texts constituting the knowledge as keywords from an ontology definition file 151 in which an ontology of texts constituting the knowledge is defined, and a document file 152 in which the knowledge is described in text, and connects the nodes of each keyword with edges to create a keyword knowledge graph 153; a document structure / key topic extraction step in which a document structure / key topic extraction unit 102 extracts section hierarchies and key topics as structures related to the texts contained in the document file 152, and connects the nodes of each key topic with edges to create a section hierarchy / key topic knowledge graph 154; and a knowledge graph integration step in which a knowledge graph integration unit 103 integrates the keyword knowledge graph 153, the section hierarchy / key topic knowledge graph 154, keywords, section hierarchies, and key topics, and connects each node with edges to create an integrated knowledge graph 155.

[0035] Figure 6 is a flowchart showing an example of the procedure for answer processing by the knowledge graph extraction unit 101. In step S601, the knowledge graph extraction unit 101 receives the ontology definition file 151 and the document file 152 as input.

[0036] In step S602, the knowledge graph extraction unit 101 creates a knowledge graph generation prompt 401. In step S603, the knowledge graph extraction unit 101 sends the knowledge graph generation prompt 401 to an LLM (not shown) and obtains a response. In step S604, the knowledge graph extraction unit 101 converts the response into the shape of a keyword knowledge graph 153.

[0037] Figure 7 shows an example of a document structure related to a section-hierarchical knowledge graph 701. The section-hierarchical knowledge graph 701 is a knowledge graph that represents the section hierarchy structure of documents that constitute knowledge using nodes and edges. The document structure is as follows: For example, section node 711, labeled "Section" and named "Chapter 4", is connected by edges 512 labeled "Subsection" to nodes labeled "Section" and named "Chapter 4.1", labeled "Section" and named "Chapter 4.2", and labeled "Section" and named "Chapter 4.3".

[0038] Figure 8 shows an example of the document structure related to the section hierarchy / key topic knowledge graph 154. The section hierarchy / key topic knowledge graph 154 has the following document structure. For example, a section node labeled "Section" and named "Chapter 4" is connected by edges called "Subsections" to section nodes labeled "Section" and named "Chapter 4.1", "Section" and named "Chapter 4.2", and "Section" and named "Chapter 4.3". Furthermore, the section node labeled "Section" and named "Chapter 4" mentioned above is connected by an edge called "Key Topic" to a topic node labeled "Topic" and named "XYZ Function Settings".

[0039] A section node labeled "Section" and named "Chapter 4.1" is connected to a topic node labeled "Topic" and named "Software Installation" by an edge labeled "Key Topic". A section node labeled "Section" and named "Chapter 4.2" is connected to a topic node labeled "Topic" and named "Database Initialization" by an edge labeled "Key Topic". A section node labeled "Section" and named "Chapter 4.3" is connected to topic node 811 labeled "Topic" and named "Database Setup" by an edge labeled "Key Topic".

[0040] Figure 9 shows an example of the configuration of a prompt 901 for generating a section hierarchy / key topic knowledge graph. The prompt 901 for generating a section hierarchy / key topic knowledge graph includes an instruction statement 911 and a text statement 912.

[0041] Instruction 911 is a prompt such as, "Extract key topics from the document listed in [Document Text]." Text 912 is text such as, "4.1 Software Installation To configure the XYZ function, first..."

[0042] Figure 10 is a flowchart illustrating an example of the procedure for document structure and key topic extraction by the document structure and key topic extraction unit 102. In step S1001, the document structure and key topic extraction unit 102 receives a document file 152 as input. In step S1002, the document structure and key topic extraction unit 102 extracts chapter numbers and section numbers related to the text in the document file 152 from the input document file 152, and generates a section hierarchy knowledge graph 701 composed of edges connecting each node based on the extracted chapter numbers and section numbers. The section numbers represent the section hierarchy.

[0043] In step S1003, the document structure / key topic extraction unit 102 extracts the document text corresponding to the target chapter number and section number. In step S1004, the document structure / key topic extraction unit 102 extracts the titles corresponding to the target chapter number and section from the document file 152, creates topic nodes 811 corresponding to the titles, and connects each section node 711 with edges.

[0044] In step S1005, the document structure / key topic extraction unit 102 determines whether the document text is less than or equal to the prompt upper limit. If the document text is less than or equal to the prompt upper limit in step S1005, the document structure / key topic extraction unit 102 executes steps S1006 and S1007.

[0045] In step S1006, the document structure / key topic extraction unit 102 creates a prompt 901 for generating a section hierarchy / key topic knowledge graph. In step S1007, the document structure / key topic extraction unit 102 creates topic nodes 811 corresponding to the document text obtained in step S1003 and the key topics obtained as answers in step S1005, and connects them to the section node 711 with an edge.

[0046] On the other hand, if the document text is not below the prompt upper limit in step S1005, the document structure / key topic extraction unit 102 executes step S1008. In step S1008, the document structure / key topic extraction unit 102 divides the document text extracted in step S1003 into portions below the prompt upper limit and executes steps S1006 and S1007 described above.

[0047] Figure 11 shows an example of the structure of the integrated knowledge graph 155. The integrated knowledge graph 155 shown in the upper part of Figure 11 is the same as the section hierarchy / key topic knowledge graph 154 shown in Figure 8, which has already been explained, so the parts that are the same as the section hierarchy / key topic knowledge graph 154 will not be explained.

[0048] In the example shown in Figure 11, the following nodes are connected to the section node 711 as described above. For example, the section node 711 is connected by an edge 512 called "Occurrence" to the following keyword nodes: a keyword node 511 labeled "Function" and named "Backup", a keyword node labeled "Command" and named "pdcopy", a keyword node labeled "Command" and named "pdhold", a keyword node labeled "Error" and named "Deadlock Occurred", and a keyword node labeled "Component" and named "Table Storage Area".

[0049] Keyword node 511, labeled "Function" and named "Backup," is connected via an edge called "Related Commands" to two keyword nodes: one labeled "Command" and named "pdcopy," and another labeled "Command" and named "pdhold."

[0050] The keyword node labeled "Command" and named "pdcopy" is connected to the keyword node labeled "Error" and named "Deadlock Occurred," and to the keyword node labeled "Component" and named "Table Storage Area."

[0051] The keyword node labeled "Command" and named "pdhold" is connected to the keyword node labeled "Component" and named "Table Storage Area".

[0052] Here, an example of a knowledge graph extraction method according to this embodiment will be described. The knowledge graph extraction method according to this embodiment includes: a knowledge graph extraction step in which a knowledge graph extraction unit 101 extracts some characters from the texts constituting the knowledge as keywords from an ontology definition file 151 in which the ontology of the texts constituting the knowledge is defined, and a document file 152 in which the knowledge is described in text, and connects the nodes of each keyword with edges to create a keyword knowledge graph 153; a document structure / key topic extraction step in which a document structure / key topic extraction unit 102 creates a section hierarchy / key topic knowledge graph 154 from the document file 152; and a knowledge graph integration step in which a knowledge graph integration unit 103 integrates the keyword knowledge graph 153, the section hierarchy / key topic knowledge graph 154, keywords, section hierarchy, and key topics, and connects each node with edges to create an integrated knowledge graph 155. Next, the integrated knowledge graph creation process, which is part of the knowledge graph extraction method according to this embodiment, will be described.

[0053] Figure 12 is a flowchart showing an example of the procedure for creating an integrated knowledge graph. In step S1200, the knowledge graph integration unit 103 receives a keyword knowledge graph 153 and a section hierarchy / key topic knowledge graph 154 as input.

[0054] In step S1202, the knowledge graph integration unit 103 checks which sections of the document text contain the words included in each keyword node 511 of the keyword knowledge graph 153. In step S1203, the knowledge graph integration unit 103 connects each keyword node 511 to the section node 711 corresponding to the section checked in step S1202 with an edge 712.

[0055] In step S1204, the knowledge graph integration unit 103 stores the created integrated knowledge graph 155 in the graph DB 156.

[0056] Figure 13 shows an example of at least a portion of the configuration of the integrated knowledge graph 155. As shown in the upper part of the figure, a node labeled "Command" and named "pdcopy" is connected, for example, to a category node 1301 labeled "Category" and named "Index Copy" via an edge 512 labeled "Belonging".

[0057] As shown in the middle of the diagram, a node labeled "Command" and named "pdcopy" is connected, for example, to a category node labeled "Category" and named "Table Copy" via edge 512, which is labeled "Belonging".

[0058] In the example shown in the lower part of the diagram, the configuration is similar to the lower part of the integrated knowledge graph 155 shown in Figure 8 above, but an additional node with the label "Command" and name "pdcopy" is connected by an edge called "Belonging" to a category node with the label "Category" and name "Differential Backup".

[0059] Figure 14 shows an example of a topic entity collection prompt 1401 and a topic entity collection result response 1402.

[0060] The topic entity collection prompt 1401 has an instruction statement 1411 and a question text 1412. The instruction statement 1411 is a prompt such as, "Select n central concepts for the following questions. Please also provide numerical values ​​for relevance." The question text 1412 is a question such as, "An error occurred during the differential backup using pdcopy. What was the cause?"

[0061] Topic entity collection result response 1402 is a response that shows, for example, the relationship between the central concept 1413 and the relevance score 1414. For example, if the central concept 1413 is "pcopy", it shows that the relevance score 1414 is 0.973. On the other hand, if the central concept 1413 is "differential backup", it shows that the relevance score 1414 is 0.374.

[0062] Figure 15 shows an example of a topic entity selection prompt 1501 and a topic entity selection result response 1502.

[0063] The topic entity selection prompt 1501 includes an instruction 1511, a question text 1512, and a central concept candidate 1513. The instruction 1511 is, for example, "Select n central concepts from the central concept candidates for the following question. Please also include a numerical value for relevance." The question text 1512 is, for example, "An error occurred during the differential backup using pdcopy. What was the cause?"

[0064] Central concept candidate 1513 has central concept candidate 1523 and category information 1524. For example, if central concept candidate 1523 is "pcopy", then category information 1524 is "table copy".

[0065] Topic entity selection result response 1502 shows the relationship between the central concept and the degree of relevance. Topic entity selection result response 1502 has a limited topic entity group 159. The limited topic entity group 159 includes a central concept candidate 1523, category information 1524, relevance 1525, and relevance 1525. For example, if the central concept candidate 1523 is "pcopy", then the category information 1524 is "differential backup", and the relevance 1525 is 0.992. For example, if the central concept candidate 1523 is "pcopy", then the category information 1524 is "table copy", and the relevance 1525 is 0.814.

[0066] Figure 16 shows an example of an inference path selection prompt 1601 and an inference path selection result response 1602. The inference path selection prompt 1601 includes an instruction statement 1611, a question text 1612, and an inference path candidate 1613.

[0067] Instruction 1611 is, for example, "Select n pieces of the following knowledge that will help answer the following question. Please also provide a numerical value for relevance." Question text 1612 is, for example, "Select n pieces of the following knowledge that will help answer the following question. Please also provide a numerical value for relevance." Inference path candidate 1613 includes a first path component 1621, a first category 1622, an edge 1623, a second path component 1624, and second category information 1625.

[0068] For example, if the first path component 1621 is "pcopy", then the first category 1622 is "differential backup", the edge 1623 is "related command", the second path component 1624 is "backup", and the second category information 1625 is "backup".

[0069] The inference path selection result response 1602 indicates how relevant the useful knowledge is and has an inference path group 160. The inference path group 160 includes a first path component 1621, a first category 1622, an edge 1623, a second path component 1624, and second category information 1625.

[0070] Figure 17 shows an example of the prompt 1701 for determining whether or not to generate an answer, the answer generation feasibility determination result response 1702-1, and the answer generation feasibility determination result response 1702-2.

[0071] The prompt 1701 for determining whether an answer can be generated includes an instruction statement 1711, a question text 1612, and an inference path candidate 1613. The inference path candidate 1613 includes a first path component 1621, a first category 1622, an edge 1623, a second path component 1624, and second category information 1625.

[0072] Response 1702-1, which determines whether an answer can be generated, has an answer sentence 161. For example, answer sentence 161 is "The answer is 'deadlock occurred'." Response 1702-2, which determines whether an answer can be generated, is "An answer cannot be generated with this inference path."

[0073] Figure 18 shows an example of difficult-to-select node information 162. Difficult-to-select node information 162 includes similar node information 1811 and similar path information 1812.

[0074] Similar node information 1811 has a central concept 1413. Similar path information 1812 includes a first path component 1621, a first category 1622, an edge 1623, a second path component 1624, and second category information 1625.

[0075] Figure 19 is a flowchart illustrating an example of the procedure for processing topic entities. In step S1901, the topic entity collection unit 104 receives the question statement 157 as input. In step S1902, the topic entity collection unit 104 creates a prompt 1401 for topic entity collection.

[0076] In step S1903, the topic entity collection unit 104 sends a topic entity collection prompt 1401 to an LLM (not shown), obtains a topic entity collection result response 1402 from the LLM, and extracts a group of topic entities 158 from the topic entity collection result response 1402.

[0077] In step S1904, the topic entity collection unit 104 searches the integrated knowledge graph 155 stored in the graph DB 156 and extracts keyword nodes 511 and category nodes 1301 corresponding to the topic entity group 158 extracted in step S1903.

[0078] In step S1905, the topic entity selection unit 105 determines whether the number of keyword nodes is above a certain level and whether there are no category nodes.

[0079] If, in step S1905, it is determined that the number of keyword nodes is above a certain level and there are no category nodes, the topic entity selection unit 105 registers them in the similar node information 1811 of the difficult-to-select node information 162 (step S1906).

[0080] On the other hand, if it is determined in step S1905 that the number of keyword nodes is above a certain level and there are no category nodes, the topic entity selection unit 105 creates a topic entity selection prompt 1501 (step S1907).

[0081] In step S1907, the topic entity selection unit 105 sends a topic entity selection prompt 1501 to an LLM (not shown), obtains a topic entity selection result response 1502 from the LLM, and extracts the limited topic entity group 159.

[0082] Figure 20 is a flowchart showing an example of the steps in the response generation process. In step S2001, the category node-attached additional inference path selection unit 106 receives the limited topic entity group 159 as input.

[0083] In step S2002, the category node-equipped additional inference path selection unit 106 searches the integrated knowledge graph 155 stored in the graph DB 156 and extracts keyword nodes 511 and category nodes 1301 corresponding to the limited topic entity group 159.

[0084] In step S2003, the category node-attached additional inference path selection unit 106 collects the keyword node 511 extracted in step S2002, or the edge 512 around the keyword node at the end of the inference path extracted in step S2004, and the keyword nodes 511 connected by that edge, thereby extending the inference path.

[0085] In step S2004, the additional inference path selection unit 106 with category nodes creates an inference path selection prompt 1601 and sends it to the LLM, and retrieves an inference path selection result response 1602 from the LLM (not shown) to extract the inference path group 160.

[0086] In step S2005, the response generation feasibility determination unit 107 determines whether the difference in the relevance 1626 of the inference paths is below a certain value. If the response generation feasibility determination unit 107 determines in step S2005 that the difference in the relevance 1626 of the inference paths is below a certain value, it registers the difficult-to-select node information 162 in the similar path information 1802 (step S2006).

[0087] On the other hand, if in step S2005 it is determined that the difference in relevance 1626 of the inference paths is not below a certain value, the answer generation feasibility determination unit 107 sends an answer generation feasibility determination prompt 1701 to an LLM (not shown) and obtains an answer generation feasibility determination result response 1792 from the LLM (step S2007).

[0088] In step S2008, the response generation feasibility determination unit 107 determines whether or not the response text 161 has been obtained. If the response text 161 has been obtained, the response generation determination unit 107 terminates the response generation process; however, if the response text 161 has not been obtained, it repeatedly executes steps S1003 to S2008.

[0089] Figure 21 shows an example of difficult-to-select node information 163 with surrounding information. The difficult-to-select node information 163 with surrounding information includes a target node 2121, a surrounding edge 2122, and surrounding nodes 2123.

[0090] For example, the target node 2121 is "pcopy", the surrounding edge 2122 is "related command", and the surrounding node 2123 is "backup". The target node 2121 is "pcopy", the surrounding edge 2122 is "related error", and the surrounding node 2123 is "deadlock occurred". The target node 2121 is "pcopy", the surrounding edge 2122 is "command target component", and the surrounding node 2123 is "table storage area".

[0091] Figure 22 shows an example of a labeling prompt 2201 and a labeling result response 2202. The labeling prompt 2201 includes an instruction statement 2211 and target node information 2213.

[0092] The labeling result response 2202 includes labeled difficult-to-select node information 164. The labeled difficult-to-select node information 164 includes the target node 2221, the surrounding edge 2222, the surrounding node 2223, and the label 2224.

[0093] Figure 23 is a flowchart showing an example of the procedure for updating the knowledge graph. In step S2301, the difficult-to-select node surrounding information collection unit 109 receives the difficult-to-select node information 162 as input. In step S2302, the difficult-to-select node surrounding information collection unit 109 searches the integrated knowledge graph 155 stored in the graph DB 156, collects the surrounding edges and surrounding nodes that exist around the target node 2121 described in the difficult-to-select node information 162, and creates difficult-to-select node information with surrounding information 163.

[0094] In step S2303, the difficult-to-select node labeling unit 110 creates a labeling prompt 2201 and sends it to an LLM (not shown), obtains a labeling result response 2202 from the LLM, and extracts labeled difficult-to-select node information 164.

[0095] In step S2304, the difficult-to-select node labeling unit 110 updates the integrated knowledge graph 155 stored in the graph DB 156 according to the difficult-to-select node information 163 with surrounding information, creates a category node 1301 corresponding to label 2224, and connects it to the keyword node 511 corresponding to target node 2221 with an edge 512.

[0096] As described above, the knowledge graph extraction device according to this embodiment comprises: a knowledge graph extraction unit 101 that extracts some characters from the texts constituting the knowledge as keywords and connects the nodes of each keyword with edges to create a keyword knowledge graph 153 from an ontology definition file 151 in which an ontology of texts constituting knowledge is defined and a document file 152 in which the knowledge is described in text; a document structure / key topic extraction unit 102 that extracts the section hierarchy and key topics as structures related to the texts contained in the document file 152 and connects the nodes of each key topic with edges to create a section hierarchy / key topic knowledge graph 154; and a knowledge graph integration unit 103 that integrates the keyword knowledge graph 153, the section hierarchy / key topic knowledge graph 154, keywords, section hierarchy, and key topics and connects each node with edges to create an integrated knowledge graph 155.

[0097] With this configuration, when constructing the knowledge graph, the document structure is extracted, specifically the hierarchical structure of the sections. By extracting the key topics for each section and adding them to the knowledge graph, as well as extracting the relationships between sections and the keywords within those sections and adding them to the knowledge graph, the correspondence between key topics and keywords is extracted, making it less likely for information to be lost.

[0098] Furthermore, the knowledge graph extraction device according to this embodiment includes: a topic entity collection unit 104 that collects a group of topic entities 158 as an example of a candidate topic entity representing a candidate topic of a text from the input question text 157 and integrated knowledge graph 155; a topic entity selection unit 105 that selects a group of limited topic entities 159 as an example of a specific topic entity from the group of topic entities 158 as an example of a candidate topic entity; an additional inference path selection unit 106 with a category node that collects additional inference path candidates that can be identified by the group of limited topic entities 159 as an example of a topic entity; and an answer generation feasibility determination unit 107 that selects a group of inference paths 160 as an example of an additional inference path from the additional inference path candidates, determines whether an answer text can be generated from the group of inference paths 160 as an example of an additional inference path, and if an answer text cannot be generated, collects candidates for the group of inference paths 160 as an example of an additional inference path again, while if an answer text can be generated, generates an answer text 161. The topic entity selection unit 105 described above, when selecting a limited topic entity group 159 as an example of a specific topic entity from a group of topic entities 158 as an example of a topic entity candidate, refers to a category node connected to the topic entity group 158 as an example of a topic entity candidate, and selects the limited topic entity group 159 as an example of a topic entity by providing the information set of pairs between the category node and the topic entity group 158 as an example of a topic entity candidate to an LLM (not shown). Furthermore, the additional inference path selection unit 106 described above, when selecting an inference path group 160 as an example of an additional inference path from an additional inference path candidate, refers to a category node connected to the additional inference path candidate, and selects the inference path group 160 as an example of an additional inference path by providing the information set of pairs between the category node and the additional inference path candidate to an LLM (not shown).

[0099] In this way, by using groups of nodes that have many identical (or similar) names, and groups of nodes that were difficult to decide when selecting an inference path, i.e., groups of nodes that frequently had little difference in relevance to the question text compared to other candidates, it is possible to extract nodes that are likely to be difficult to select an inference path in advance. At the same time, surrounding nodes of the selected nodes are explored as described above, and the explored information is provided to an LLM (not shown) to categorize and label the node groups. This makes it possible to narrow down topic entities and inference paths using nodes and category nodes.

[0100] Furthermore, the knowledge graph extraction device according to this embodiment includes a selection-difficult-to-select node peripheral information collection unit 109 that, when selecting a limited topic entity group 159 as an example of a specific topic entity from a topic entity group 158 as an example of a topic entity candidate, detects a group of nodes consisting of multiple similar nodes and records the group of nodes in the selection-difficult-to-select node information 162, and when selecting an inference path group 160 as an example of an additional inference path from an additional inference path candidate, records nodes that were difficult to select in the selection-difficult-to-select node information 162, and outputs selection-difficult-to-select node information with peripheral information that is configured by collecting information on nodes and edges surrounding the nodes described in the selection-difficult-to-select node information 162, and a selection-difficult-to-select node peripheral information collection unit 109 that provides the selection-difficult-to-select node information with peripheral information 163 to a large-scale language model, performs clustering and cluster-based labeling on the nodes, connects the selection-difficult-to-select nodes and the labeled nodes, and reflects this in the integrated knowledge graph 155.

[0101] In this way, by using groups of nodes that have many identical (or similar) names, and groups of nodes that caused difficulty in selecting an inference path, i.e., groups of nodes that frequently showed little difference in relevance to the question text compared to other candidates, it is possible to extract nodes that are likely to be difficult to select an inference path in advance. At the same time, surrounding nodes of the selected nodes are explored as described above, and the explored information is provided to an LLM (not shown) to categorize and label the node groups. This allows for the narrowing down of topic entities and inference paths using nodes and category nodes.

[0102] In the above embodiment, the ontology definition file 151 includes entity information 201 containing information about entities which are nodes as described above, and relationship information 202 indicating the relationships between multiple entities. In this way, information loss can be made less likely to occur by using the entity information 201 and relationship information 202 included in the ontology definition file 151.

[0103] In the above embodiment, the knowledge is technical support knowledge consisting of section-structured sentences containing words related to the topic. By constructing a knowledge graph of technical support in this way, the correspondence between key topics and keywords can be extracted, making it less likely for information to be lost.

[0104] In the above embodiment, the document structure / key topic extraction unit 102 extracts chapter numbers and section numbers of the section hierarchy related to the text in the document file 152, and generates a section hierarchy knowledge graph 701 composed of edges connecting each node based on the extracted chapter numbers and section numbers. In this way, information loss can be made less likely to occur using the generated section hierarchy knowledge graph 701.

[0105] It should be noted that the present invention is not limited to the embodiments described above, but includes various modifications and equivalent configurations within the spirit of the attached claims. For example, the embodiments described above are described in detail for the purpose of clearly illustrating the present invention, and the present invention is not necessarily limited to having all the configurations described. Also, each element described in parallel in this embodiment may be configured such that at least one of each element is connected in series with respect to the other elements. [Industrial applicability]

[0106] This invention can be applied to a knowledge graph extraction device that constructs a knowledge graph. [Explanation of Symbols]

[0107] 100...Knowledge graph extraction device, 101...Knowledge graph extraction unit, 102...Document structure / key topic extraction unit, 103...Knowledge graph integration unit, 104...Topic entity collection unit, 105...Topic entity selection unit, 106...Additional inference path selection unit with category node, 107...Answer generation feasibility determination unit, 109...Information collection unit for nodes that are difficult to select, 110...Labeling unit for nodes that are difficult to select, 151...Ontology definition file, 152...Document file.

Claims

1. A knowledge graph extraction unit extracts some characters from the texts that constitute the knowledge as keywords from an ontology definition file that defines the ontology of the texts that constitute the knowledge, and a document file in which the knowledge is described in text, and connects the nodes of each keyword with edges to create a keyword knowledge graph. A document structure and key topic extraction unit extracts the section hierarchy and key topics as the structure of the text contained in the document file, and connects the nodes of each key topic with edges to create a section hierarchy and key topic knowledge graph. A knowledge graph integration unit creates an integrated knowledge graph by integrating the keywords, section hierarchy, and key topics from the keyword knowledge graph and the section hierarchy / key topic knowledge graph, and connecting each node with an edge. A knowledge graph extraction device characterized by comprising the following features.

2. A topic entity collection unit collects topic entity candidates representing candidate topics for a text from the input question text and the integrated knowledge graph, A topic entity selection unit that selects a specific topic entity from the aforementioned topic entity candidates, An additional inference path selection unit with category nodes that collects additional inference path candidates that can be identified by the aforementioned specific topic entity, The system includes: an answer generation feasibility determination unit that selects an additional inference path from the additional inference path candidates and determines whether an answer can be generated from the additional inference path, and if it is not possible to generate an answer, it collects the additional inference path candidates again, while if it is possible to generate an answer, it generates an answer. The aforementioned topic entity selection unit, When selecting a specific topic entity from the aforementioned topic entity candidates, the category node connected to the topic entity candidate is referenced, and the set of information on the pair between the category node and the topic entity candidate is provided to the large-scale language model to select the specific topic entity. The aforementioned additional inference path selection unit with category nodes, When selecting an additional inference path from the candidate additional inference path, the system references the category node connected to the candidate additional inference path and provides the large-scale language model with the information set of pairs between the category node and the candidate additional inference path to select the additional inference path. The knowledge graph extraction device according to feature 1.

3. When selecting a specific topic entity from the topic entity candidates, the unit detects a group of nodes consisting of multiple similar nodes and includes the group of nodes in the difficult-to-select node information; when selecting an additional inference path from the additional inference path candidates, it includes nodes that were difficult to select in the difficult-to-select node information; and the unit collects information about the surrounding nodes and edges of the nodes included in the difficult-to-select node information and outputs difficult-to-select node information with surrounding information. A difficult-to-select node labeling unit provides the aforementioned difficult-to-select node information with surrounding information to a large-scale language model, performs clustering and labeling of the nodes according to the cluster, connects the difficult-to-select nodes and the labeled nodes, and reflects this in the integrated knowledge graph. The knowledge graph extraction device according to claim 2, characterized by comprising the following:

4. The aforementioned ontology definition file is: Entity information including information about the entity which is the node, Relationship information that shows the relationships between multiple entities, The knowledge graph extraction device according to claim 1, characterized by having the following features.

5. The aforementioned knowledge is, This is technical support knowledge consisting of section-structured sentences containing vocabulary related to the topic. The knowledge graph extraction device according to feature 1.

6. The document structure and key topic extraction unit is: Extract the chapter numbers and section numbers of the section hierarchy for the text in the aforementioned document file, and generate a section hierarchy knowledge graph consisting of edges connecting each node based on the extracted chapter and section numbers. The knowledge graph extraction device according to feature 1.

7. The knowledge graph extraction unit performs a knowledge graph extraction step in which it extracts some characters from the texts that constitute the knowledge as keywords from an ontology definition file in which the ontology of the texts that constitute the knowledge is defined, and a document file in which the knowledge is described in text, and connects the nodes of each keyword with edges to create a keyword knowledge graph. The document structure and key topic extraction unit extracts section hierarchies and key topics as structures related to the text contained in the document file, and connects the nodes of each key topic with edges to create a section hierarchy and key topic knowledge graph. The knowledge graph integration unit performs a knowledge graph integration step in which it integrates the keyword knowledge graph, the section hierarchy / key topic knowledge graph, the keywords, the section hierarchy, and the key topics, and connects each node with an edge to create an integrated knowledge graph. A method for extracting knowledge graphs, characterized by having the following features.