Solution retrieval method applied to multi-path question-answering system in field of electric power design

Through the multi-path question and answer system in the field of power design, using knowledge graphs and deep learning models for entity recognition and hybrid retrieval, it solves the shortcomings of traditional systems in semantic understanding and information retrieval efficiency, and achieves efficient and effective processing of complex power design problems. Answering accurately increases the reliability and depth of the answer.

CN118568236APending Publication Date: 2024-08-30NANJING ELECTRIC POWER ENG DESIGN +2

Patent Information

Application Number
CN202410757052.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Traditional question answering systems have problems with insufficient semantic understanding and low information retrieval efficiency when dealing with complex professional terminology and large-scale unstructured data in the field of power design, making it difficult to provide fast, accurate and in-depth answers.

Method used

A multi-path question and answer system based on knowledge graphs is used, combined with deep learning models and domain-specific dictionaries for named entity recognition, solutions are generated through entity linking and hybrid retrieval (vector retrieval and full-text retrieval), and large language models are used to generate answers.

Benefits of technology

It achieves efficient and accurate understanding and answers to questions in the complex power design field, reduces misunderstandings and ambiguities, provides faster and more in-depth information retrieval results, and enhances the reliability and authority of answers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568236A
    Figure CN118568236A
Patent Text Reader

Abstract

The invention discloses a solution retrieval method applied to a multi-path question-answering system in the field of electric power design, which comprises the following steps of: 1) based on query of a knowledge graph, performing named entity recognition by utilizing a deep learning model and combining a specific field dictionary, and performing similarity calculation on the recognized entity and a candidate entity to obtain a candidate entity; obtaining an entity linking result; step 2), mixed retrieval: firstly, searching the query of a user by using a two-way recall mode, and respectively carrying out vectorization and similarity calculation and full-text retrieval based on word segmentation on query statements and documents; according to the retrieved result, combining and sorting with set logic to obtain a final retrieved result set; and 3) adding the entity linking result and the retrieval result set into the cue word as the input of the large language model, and generating a solution of text description. The method has the beneficial effects that through the high efficiency of vector retrieval and the flexibility of keyword retrieval, quicker, more accurate and more diversified retrieval results are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of artificial intelligence and natural language processing, and in particular to a solution retrieval method applied to a multi-path question-answering system in the field of electric power design. Background Art

[0002] Question answering systems have always been an important research direction in the field of artificial intelligence and natural language processing. These systems are designed to understand users' natural language questions and provide accurate and relevant answers. With the rapid development of information technology, users expect fast, accurate and in-depth answers, especially in specific fields such as power design. However, traditional question answering systems face challenges such as understanding the deep meaning of complex queries, processing large-scale unstructured data, and generating natural and accurate answers.

[0003] The complexity of the power design field is increasing, and designers and engineers often need to quickly obtain accurate information and solutions. Traditional question-answering systems have limitations in understanding complex professional terms in the power field, processing large-scale unstructured data, and generating accurate and practical answers. In order to solve these problems, the present invention proposes a multi-path intelligent question-answering method for the power design field. This method aims to provide fast, accurate and in-depth question-answering services through in-depth semantic understanding, efficient information retrieval and precise model guidance.

[0004] On the one hand, traditional rule-based question answering systems are often insufficient in processing semantically rich queries, as they rely on limited semantic rules and preset templates, which limits their ability to handle complex natural language and deep meaning of questions. This is particularly prominent in the field of power design, where the complexity of professional terms and concepts requires the system to have more advanced semantic understanding capabilities.

[0005] On the other hand, the emergence of large language models in recent years has provided a new approach to solving complex natural language understanding problems. However, despite the remarkable achievements of these models in understanding natural language, they still face challenges in quickly and accurately retrieving information from massive unstructured data. Summary of the invention

[0006] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a multi-dimensional evaluation method for inertia of a power grid with high penetration of new energy. The method aims to solve the problems of low accuracy, large data demand, poor robustness and only applicable to post-analysis of large disturbances in the existing inertia level evaluation method. The method is specifically implemented by the following technical solutions:

[0007] The solution retrieval method applied to the multi-path question-answering system in the field of power design comprises the following steps:

[0008] Step 1) Based on the query of the knowledge graph, a deep learning model is used in combination with a specific domain dictionary to perform named entity recognition, and the recognized entities are calculated by similarity with the candidate entities to obtain entity linking results;

[0009] Step 2) Hybrid search: First, the user's query is searched using a two-way recall method, and the query statement and document are vectorized and similarity calculated, as well as full-text search based on word segmentation; according to the search results, they are merged and sorted in combination with the set logic to obtain a final search result set;

[0010] Step 3) Add the entity linking results and the retrieval result set to the prompt as input to the large language model to generate a text description solution.

[0011] The solution retrieval method applied to the multi-path question-answering system in the field of power design is further designed in that the step 1) specifically includes the following steps:

[0012] Step 1-1) training a named entity recognition model in the electric power design field based on a deep learning model, and adding an entity dictionary in the electric power design field to the model;

[0013] Step 1-2) obtaining a natural query statement, inputting it into a named entity recognition model, and outputting the power equipment identified from the user query statement;

[0014] Step 1-3) Entity Linking: First, organize the power equipment entity dictionary, perform embedding calculation on the power equipment dictionary, store it in a Pickle file, use the Sentence-BERT model to perform embedding calculation on the entity recognition results, perform semantic similarity calculation, select the top 20 candidate entities with the highest scores, sort the candidate entities according to the overlap of entity words, and select the entity with the highest overlap as the final result;

[0015] Steps 1-4) Based on the results of entity linking, write a graph language to query the domain knowledge graph that has been constructed in the graph database to obtain the subgraph related to the entity and the corresponding clause specifications.

[0016] The solution retrieval method applied to the multi-path question-answering system in the field of power design is further designed in that the step 2) specifically includes the following steps:

[0017] Step 2-1) Full-text search based on words: first, configure the synonym dictionary and business word dictionary in the field of power design, then perform full-text search on the text data stored in the index, and output the top 20 texts ranked by BM25 algorithm scores according to the BM25 algorithm;

[0018] Step 2-2) Based on vector search, first, use the Sentence-BERT model to convert text data into vector form and store it in the index. When a question is input, the question is converted into a vector, and the text vector matching the question is searched in the vector database. The top 20 texts with high similarity are calculated based on the cosine similarity.

[0019] Step 2-3) The scores of the word-based full-text search and vector-based search results are normalized and weighted summed, and the top 20 texts are output as the final output result of the hybrid search.

[0020] The solution retrieval method applied to the multi-path question-answering system in the field of power design is further designed in that the step 3) specifically includes the following steps:

[0021] Step 3-1) Using a large language model, the professional provisions and specifications in the electric power field output by the hybrid search are disassembled and reorganized into a language that is easier for machines to understand to form background knowledge;

[0022] Step 3-2) The graph query result and the background knowledge are spliced ​​after the user question in a set format to form a complete prompt, and the prompt is used as the input of the large language model to generate an answer through the large language model.

[0023] The present invention also provides an electronic device, comprising a memory, a processor and a computer program, wherein the computer program is stored in the memory and is configured to be executed by the processor to implement the solution retrieval method applied to the multi-path question and answer system in the field of power design.

[0024] The present invention also provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is executed by a processor to implement the solution retrieval method for the multi-path question-and-answer system applied to the field of electric power design.

[0025] The advantages of the present invention are as follows:

[0026] The hybrid search adopted by the solution retrieval method of the multi-path question-answering system applied to the field of power design of the present invention is a retrieval method that combines vector retrieval and keyword retrieval. Through the high efficiency of vector retrieval and the flexibility of keyword retrieval, faster, more accurate and more diverse retrieval results are achieved.

[0027] This method uses knowledge graph query to enable machines to understand and process complex concepts and relationships in human language, especially in special professional fields. Due to the structured characteristics of the knowledge graph, the question-answering system can extract accurate information points from it to answer users' questions, reducing the possibility of misunderstanding and ambiguity. In addition, since the information in the knowledge graph is carefully planned and verified, the answers retrieved from the graph are usually more reliable and authoritative.

[0028] In the question-answering system, this method can create highly customized and information-rich prompts by integrating entities and relations in the knowledge graph and mixing relevant information retrieved, so that the large language model can generate more accurate and in-depth answers. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 The present invention is a flow chart of a solution retrieval method for a multi-path question-answering system in the field of electric power design. DETAILED DESCRIPTION

[0030] The technical solution of the present invention is described in detail below.

[0031] like Figure 1 ,The solution retrieval method applied to the multi-path question-answering system in the field of power design in this embodiment includes the following steps:

[0032] Step 1) Based on the query of the knowledge graph, a deep learning model is used in combination with a domain-specific dictionary to perform named entity recognition, and the recognized entities are calculated by similarity with the candidate entities to obtain entity linking results.

[0033] Step 2) Hybrid retrieval: First, the user's query is retrieved using a two-way recall method, and the query statement and document are vectorized and similarity calculated, as well as full-text retrieval based on word segmentation; based on the retrieval results, they are merged and sorted in combination with the set logic to obtain a final retrieval result set.

[0034] Step 3) Add the entity linking results and the retrieval result set to the prompt as input to the large language model to generate a text description solution.

[0035] The further design is that step 1) specifically includes the following steps:

[0036] Step 1-1) Train a named entity recognition model in the power design field based on a deep learning model, and add an entity dictionary in the power design field to the model.

[0037] Step 1-2) Obtain a natural query statement, input it into a named entity recognition model, and output the power equipment identified from the user query statement.

[0038] Step 1-3) Entity linking, first, organize the power equipment entity dictionary, perform embedding calculation on the power equipment dictionary, store it in a Pickle file, use the Sentence-BERT model to perform embedding calculation on the entity recognition result, perform semantic similarity calculation, select the top 20 candidate entities with the highest scores, sort the candidate entities according to the overlap of entity words, and select the entity with the highest overlap as the final result.

[0039] Steps 1-4) Based on the results of entity linking, write a graph language to query the domain knowledge graph that has been constructed in the graph database to obtain the subgraph related to the entity and the corresponding clause specifications.

[0040] Step 2) specifically includes the following steps:

[0041] Step 2-1) Full-text search based on words: first, configure the synonym dictionary and business word dictionary in the field of power design, then perform full-text search on the text data stored in the index, and output the top 20 texts ranked by BM25 algorithm scores according to the BM25 algorithm;

[0042] Step 2-2) Based on vector search, first, use the Sentence-BERT model to convert text data into vector form and store it in the index. When a question is input, the question is converted into a vector, and the text vector matching the question is searched in the vector database. The top 20 texts with high similarity are calculated based on the cosine similarity.

[0043] Step 2-3) The scores of the word-based full-text search and vector-based search results are normalized and weighted summed, and the top 20 texts are output as the final output result of the hybrid search.

[0044] The final set of search candidate texts in step 2 of this embodiment is as follows (top 10):

[0045] DL / T 5218-2012 "Technical Specifications for Design of 220KV-750KV Substations" - 5.1.6: 220kV distribution devices in 220kV substations, when they play an important role in the system and the number of outgoing line circuits is 4 or more, double busbar connection should be adopted; when the total number of connecting elements such as outgoing lines and transformers is 10 to 14, a section circuit breaker can be installed on one busbar, and when the number is 15 or more, a section circuit breaker can be installed on two busbars; the busbar can also be segmented according to system needs. 220kV distribution devices of general 220kV substations, when the number of outgoing line circuits is 4 or less, other simple main connections can be adopted. The distribution devices of 220kV terminal substations, under the premise of meeting the operating requirements, should adopt wiring with fewer circuit breakers or no circuit breakers, such as line transformer groups or bridge wiring. When the relay protection of the power system can meet the requirements, line branch wiring can also be adopted.

[0046] DL / T 5218-2012 "Technical Specifications for 220KV-750KV Substation Design" - 5.1.7: For 110kV and 66kV distribution devices in 220kV substations, when the number of outgoing line circuits is less than 6, single busbar or single busbar segmented wiring should be adopted; when the number of outgoing line circuits is 6 or more, double busbar or double busbar segmented wiring can be adopted. Single busbar wiring should be adopted for 35kV and 10kV distribution devices, and the number of busbar segments should be determined according to the number of main transformers.

[0047] DL / T 5218-2012 "Technical Specifications for Design of 220KV-750KV Substations" - 5.1.5: 220kV or 110kV power distribution devices in 330kV~750kV substations can adopt double busbar wiring, and one and a half circuit breaker wiring can also be adopted when it is technically and economically reasonable. When double busbar wiring is adopted, and the total number of connection elements such as outgoing lines and transformers is 10 to 14, a section circuit breaker can be installed on one busbar: when there are 15 or more, a section circuit breaker can be installed on 2 busbars; when in order to limit the short-circuit current of the 220kV busbar or meet the requirements of system decoupling operation, the busbar can be segmented as needed.

[0048] DL / T 5218-2012 "Technical Specifications for 220KV-750KV Substation Design" -5.1.2: The final wiring method of 500kV and 750kV distribution devices, when the total number of connected components such as lines and transformers is 6 or more, and the substation plays an important role in the system, it is advisable to use one and a half circuit breakers for wiring. When the system flow control or the limitation of short-circuit current requires segmented operation, the busbar can be segmented. When using one and a half circuit breakers for wiring, the power circuit and the load circuit should be paired in series. Circuits with the same name should not be configured in the same series, but can be connected to the busbar on the same side: when there are more than two transformers, two of them are connected in series, and the other transformers do not need to be connected in series, and can be directly connected to the busbar through the circuit breaker.

[0049] Technical Specification for Power Design of 220kV~1000kV Substations DLT 5155-2016-3.6.4: The non-stop power supply system can adopt single busbar or single busbar segmented wiring.

[0050] Technical Specification for Power Design of 220kV~1000kV Substation DLT 5155-2016-3.4.2: The rated voltage of the low-voltage system for power supply of the substation is 220V / 380V. The power supply busbar of the substation adopts a single busbar connection divided by the working transformer, and the two adjacent working busbars are powered and operated separately at the same time. No automatic switching device should be installed between the two working busbars. When any working transformer loses power and exits, the standby transformer should be able to automatically and quickly switch to the working busbar section that loses power to continue supplying power.

[0051] DL / T 5218-2012 "220KV-750KV Substation Design Technical Specification" -5.1.3: 330kV power distribution equipment can adopt one and a half circuit breaker connection or double bus connection. When the system flow control or short-circuit current limitation requires segmented operation, the bus can be segmented.

[0052] DL / T 5218-2012 "Technical Code for Design of 220KV-750KV Substations" -5.1.4: When the total number of final connection components of the 330kV~750kV distribution device is not more than 6, and the substation is a terminal substation, on the premise of meeting the operating requirements, line transformer group, bridge type, single bus or line with 2 circuit breakers, "transformer bus group" and other connections can be adopted.

[0053] GB 50545-2010 "110kV ~ 750kV Overhead Transmission Line Design Code" 7.0.2 In areas below 1000m above sea level, the minimum number of insulators for suspension insulator strings required for switching overvoltage and lightning overvoltage shall comply with the provisions of Table 7.0.2 (see Table G.1). The number of insulators for tension insulator strings shall be increased on the basis of Table 7.0.2 (see Table G.1), and 1 piece shall be added for 110kV ~ 330kV transmission lines, 2 pieces shall be added for 500kV transmission lines, and no additional pieces are required for 750kV transmission lines.

[0054] GB 50061-2010 "Design Code for Overhead Power Lines 66kV and Below" 7.0.7 For lines with 66kV and 10kV on the same tower, the vertical distance between conductors of different voltage levels should not be less than 3.5m; for lines with 35kV and 10kV on the same tower, the vertical distance between conductors of different voltage levels should not be less than 2m.

[0055] Step 3) specifically includes the following steps:

[0056] Step 3-1) Use a large language model to disassemble and reorganize the professional regulations and specifications in the power field output by the hybrid search into a language that is easier for machines to understand to form background knowledge. For example: "When the 220kV distribution device in a 220kV substation occupies an important position in the system and the number of outgoing line circuits is 4 or more, double busbar connection should be adopted; when the total number of connecting elements such as outgoing lines and transformers is 10-14, a section circuit breaker can be installed on one bus, and when it is 15 or more, a section circuit breaker can be installed on two busbars; the busbar can also be segmented according to system needs." It is broken down into the following contents: ① When the number of outgoing line circuits of the 220kV distribution device is 4 or more, double busbar connection is adopted; ② When the number of outgoing line circuits of the 220kV distribution device is 10-14, a section circuit breaker can be installed on one busbar; ③ When the number of outgoing line circuits of the 220kV distribution device is 15, a section circuit breaker can be installed on two busbars; ④ Installing a section circuit breaker on one bus is referred to as double bus single segmentation; ⑤ Installing a section circuit breaker on two busbars is referred to as double bus double segmentation.

[0057] Step 3-2) The graph query result and the background knowledge are spliced ​​after the user question in a set format to form a complete prompt, and the prompt is used as the input of the large language model to generate an answer through the large language model.

[0058] The following is a specific question and answer example. The solution given by the question and answer system is as follows:

[0059] Q: When a 220kV substation has more than a few 220kV outgoing lines, does the main connection use double busbars with a single section?

[0060] A: According to the provisions of DL / T 5218-2012 "Technical Code for Design of 220KV-750KV Substation", when the 220kV outgoing lines of a 220kV substation are 10 to 14, the main connection can adopt a double busbar single-section connection method.

[0061] This embodiment also provides an electronic device, including a memory, a processor, and a computer program, wherein the computer program is stored in the memory and is configured to be executed by the processor to implement the solution retrieval method applied to the multi-path question and answer system in the field of power design.

[0062] This embodiment also provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is executed by a processor to implement the solution retrieval method applied to the multi-path question-and-answer system in the field of power design.

[0063] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A solution retrieval method for a multi-path question-answering system in the field of power design, characterized in that The method includes the following steps: Step 1) based on the query of the knowledge graph, a deep learning model is used in combination with a specific domain dictionary to perform named entity recognition, and the recognized entity is calculated by similarity calculation with the candidate entity to obtain the entity linking result; Step 2) Hybrid search: First, the user's query is searched using a two-way recall method, and the query statement and document are vectorized and similarity calculated, as well as full-text search based on word segmentation; according to the search results, they are merged and sorted in combination with the set logic to obtain a final search result set; Step 3) Add the entity linking results and the retrieval result set to the prompt as input to the large language model to generate a text description solution.

2. The solution retrieval method for a multi-path question-answering system in the field of electric power design according to claim 1, characterized in that: The step 1) specifically comprises the following steps: Step 1-1) training a named entity recognition model in the electric power design field based on a deep learning model, and adding an entity dictionary in the electric power design field to the model; Step 1-2) obtaining a natural query statement, inputting it into a named entity recognition model, and outputting the power equipment identified from the user query statement; Step 1-3) Entity Linking: First, organize the power equipment entity dictionary, perform embedding calculation on the power equipment dictionary, store it in a Pickle file, use the Sentence-BERT model to perform embedding calculation on the entity recognition results, perform semantic similarity calculation, select the top 20 candidate entities with the highest scores, sort the candidate entities according to the overlap of entity words, and select the entity with the highest overlap as the final result; Steps 1-4) Based on the results of entity linking, write a graph language to query the domain knowledge graph that has been constructed in the graph database to obtain the subgraph related to the entity and the corresponding clause specifications.

3. The solution retrieval method for a multi-path question-answering system in the field of electric power design according to claim 1, characterized in that: The step 2) specifically comprises the following steps: Step 2-1) Full-text search based on words: first configure the synonym dictionary and business word dictionary in the field of power design, then perform full-text search on the text data stored in the index, and output the top 20 texts ranked by the BM25 algorithm score according to the BM25 algorithm; Step 2-2) Vector search: first, use the Sentence-BERT model to convert the text data into vector form and store it in the index. When a question is input, convert the question into a vector, search for a text vector matching the question in the vector database, and calculate the top 20 texts with high similarity based on the cosine similarity; Step 2-3) The scores of the word-based full-text search and vector-based search results are normalized and weighted summed, and the top 20 texts are output as the final output result of the hybrid search.

4. The solution retrieval method for a multi-path question-answering system in the field of electric power design according to claim 1, characterized in that: The step 3) specifically comprises the following steps: Step 3-1) Using a large language model, the professional provisions and specifications in the electric power field output by the hybrid search are disassembled and reorganized into a language that is easier for machines to understand to form background knowledge; Step 3-2) The graph query result and the background knowledge are spliced ​​after the user question in a set format to form a complete prompt, and the prompt is used as the input of the large language model to generate an answer through the large language model.

5. An electronic device, characterized in that: It includes a memory, a processor and a computer program, wherein the computer program is stored in the memory and is configured to be executed by the processor to implement the solution retrieval method applied to the multi-path question-answering system in the field of power design as described in any one of claims 1 to 4.

6. A computer-readable storage medium, characterized in that The storage medium stores a computer program, and the computer program is executed by a processor to implement the solution retrieval method applied to a multi-path question-and-answer system in the field of electric power design as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Extraction type intelligent question-answering method and system introducing agricultural domain knowledge

    CN112527999A

  • Knowledge graph question-answering method for sub-graph retrieval optimization

    CN117149974A

  • Steel industry intelligent question and answer method and device based on large model and medium

    CN118051587A

  • System and method for querying questions and answers

    US20170228372A1

Cited By

  • Method and system for automatically generating SQL (Structured Query Language) in power field based on retrieval enhancement generation

    CN119201984A

  • Mode linking method and system in large-scale database scene

    CN119377455A

  • Langchain-based building specification graphical representation multi-modal question and answer method and equipment

    CN120849547A