Intelligent question answering system and method for mechanical equipment maintenance

By introducing the AI ​​large language model and Prompt project into the intelligent question and answer system, combined with the vector database and permission management, the problem of low answer accuracy of the equipment maintenance question and answer system in the existing technology has been solved, and efficient and accurate maintenance manual documents have been realized. Processing and Q&A services, reducing labor costs.

CN118822504AInactive Publication Date: 2024-10-22河钢数字技术股份有限公司
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411034159.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-22
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing intelligent question and answer system in the field of equipment maintenance in the steel industry relies on the design of a recall sorting architecture, which requires the artificial construction of a question and answer library, resulting in reduced answer accuracy and a large consumption of manpower and material resources, and cannot cope with the infinity and diversity of questions.

Method used

An intelligent question and answer system based on the AI ​​large language model is designed, including a knowledge base management module, a vector knowledge base management module, a question and answer process management module and a rights management module. Through document parsing, vectorization, information storage, vector database indexing, user Input and retrieval, Prompt project and model answers and lineage analysis realize efficient maintenance manual document switching and accurate answers.

Benefits of technology

Without the need for large model fine-tuning training, the system can efficiently switch maintenance manual documents, provide more accurate answers, reduce labor costs, and improve the efficiency of Q&A for mechanical equipment maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118822504A_ABST
    Figure CN118822504A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of mechanical equipment maintenance, and provides a mechanical equipment maintenance-oriented intelligent question and answer system, which comprises a knowledge base management module, a vector knowledge base management module, a question and answer process management module, a large model management module and an authority management module, the large model management module is used for managing a large language model, the question and answer process management module is used for managing question and answer dialogues, the large model management module is used for processing questions input by the question and answer process management module, and the authority management module has the capability of managing document access authorities of different users. The large-model-based generation type intelligent question and answer for maintenance of mechanical equipment in the steel industry can provide convenient and fast questions and answers for front-line workers, technicians, managers and the like of enterprises, help the enterprises to improve efficiency and reduce labor cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of mechanical equipment maintenance, and specifically to an intelligent question-answering system and method for mechanical equipment maintenance. Background Art

[0002] With the further development of artificial intelligence technology, especially the advent of large language models represented by ChatGPT, it has brought exciting text generation capabilities, so that the current intelligent question-answering system has abandoned the original recall-ranking architecture model and chosen a more natural generative question-answering system that does not require the prior construction of an answer library. In the field of equipment maintenance question-answering in the steel industry, the question-answering system is still based on the original recall-ranking architecture design, which requires artificial construction of a question-answering library. The infinity and diversity of the questions make it impossible to build a complete answer library in advance, which greatly reduces the accuracy of the answers; and it also requires a lot of manpower and material resources.

[0003] The present invention provides an intelligent question-answering system and method for mechanical equipment maintenance based on an AI large language model; it does not require fine-tuning training of the large model, and can efficiently switch maintenance manual documents, and rewrite the user's input in combination with the prompt project of the AI ​​large model to obtain a more accurate answer. Summary of the invention

[0004] In view of the shortcomings of the prior art, the present invention provides an intelligent question-answering system and method for mechanical equipment maintenance, which does not require fine-tuning training of a large model, can efficiently switch maintenance manual documents, and combines the prompt project of the AI ​​large model to rewrite the user's input to obtain more accurate answers.

[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions: an intelligent question and answer system for mechanical equipment maintenance, including a knowledge base management module, a vector knowledge base management module, a question and answer process management module, a large model management module and a permission management module. The knowledge base management module is used to manage the document knowledge base, the large model management module is used to manage the large language model, the question and answer process management module is used to manage the question and answer dialogue, the large model management module is used to process the questions input by the question and answer process management module, and the permission management module has the ability to manage the access rights of different users to documents.

[0006] Preferably, the knowledge base management module includes function buttons such as upload, delete, download, edit, go online, and go offline, and has the functions of users uploading knowledge documents to the system knowledge base, deleting uploaded documents in the system, editing online system documents online, and downloading documents from the system to the local. The online and offline buttons are used to process vectorized documents in the vector database.

[0007] Preferably, the large model management module has the function of selecting the large language model of the system, cooperates with the knowledge base management module to perform operations such as going online and offline, and further manages the number of clusters, concurrency, response time, etc. deployed by the large language model.

[0008] Preferably, the question-and-answer process management module includes functions such as user question input, large model answers, multi-round dialogue styles, user history questions, and display of hot questions. After obtaining the model answers, it performs lineage analysis, original document retrieval, and paragraph flow to accurately locate the paragraph position of the original maintenance manual that depends on the answer.

[0009] Preferably, the authority management module classifies and sets authorities according to different types of work and original documents of different confidentiality levels. Personnel without authority cannot access documents outside the authority. The large model limits the access scope according to authority to prevent persons without authority from inducing leaks through model dialogues.

[0010] The intelligent question-answering method for mechanical equipment maintenance includes the following steps:

[0011] Step 1: Document parsing and extraction: Parse the maintenance knowledge document into XML format and extract paragraph-level text data;

[0012] Step 2: Text vectorization: Use the text2vec component and the selected model to vectorize the paragraph text;

[0013] Step 3: Information storage: Store the detailed information of the text and its MD5 encoding in the MySQL database;

[0014] Step 4: Vector database indexing: store the MD5 code and vector representation of the paragraph into the Faiss vector database to create an index;

[0015] Step 5: User input and retrieval: Receive user questions, vectorize them, and retrieve the top N most relevant paragraphs in Faiss;

[0016] Step 6: Prompt Engineering and Model Answers: Combine the search results, adjust the user input through prompt engineering, and then use the big model to generate answers;

[0017] Step 7: Lineage analysis and result display: Perform lineage analysis on the model's answer, display the original paragraph information on which it is based, and display this information to the user.

[0018] Preferably, the specific steps of document parsing and extraction in step one are: first parse the original maintenance manual and other documents obtained, and cut the original document into paragraphs, divide the original document into individual paragraphs, record the location information of the original document for each paragraph, and then perform MD5 encoding on the extracted paragraph text.

[0019] Preferably, the vectorization in step 2 can select any one of the models BERT and word2vec in the text2vec package for vectorized representation.

[0020] Preferably, the answer content generated after the prompt project is adjusted in step six includes: the answer and reference document generated by the prompt project based on the provided reference file.

[0021] Preferably, the specific steps of the lineage analysis in step seven are: first, segment the topN original paragraph documents output by the large model and input by the model, and then make a judgment to confirm the document to be used and obtain it, search for the original document information recorded in mysql according to the corresponding MD5 code, and complete the lineage analysis.

[0022] The present invention provides an intelligent question-answering system and method for mechanical equipment maintenance. It has the following beneficial effects:

[0023] The invention provides intelligent Q&A on maintenance of mechanical equipment in the steel industry based on a large model, which can provide convenient and fast Q&A for front-line workers, technicians, managers, etc. of the enterprise, helping the enterprise to improve efficiency and reduce labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 This is a principle block diagram of the intelligent question-answering system for maintenance of mechanical equipment in the steel industry according to the present invention;

[0025] Figure 2 It is a schematic diagram of the intelligent question-answering system and method for the maintenance of mechanical equipment in the steel industry of the present invention;

[0026] Figure 3 This is a prompt engineering flow chart of the intelligent question-answering system for maintenance of mechanical equipment in the steel industry of the present invention;

[0027] Figure 4 This is a blood relationship analysis flow chart of the intelligent question-answering system for maintenance of mechanical equipment in the steel industry of the present invention;

[0028] Figure 5This is a vector database retrieval flow chart of the intelligent question-answering system for maintenance of mechanical equipment in the steel industry according to the present invention. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] Example:

[0031] As one aspect of this application, please refer to the attached Figure 1 , an intelligent question-answering system for mechanical equipment maintenance, including a knowledge base management module, a vector knowledge base management module, a question-answering process management module, a large model management module and a permission management module. The knowledge base management module is used to manage the document knowledge base, the large model management module is used to manage the large language model, the question-answering process management module is used to manage the question-answering dialogue, the large model management module is used to process the questions input by the question-answering process management module, and the permission management module has the ability to manage the access rights of different users to documents.

[0032] The knowledge base management module includes function buttons such as upload, delete, download, edit, go online, and go offline. It has the functions of users uploading knowledge documents to the system knowledge base, deleting uploaded documents in the system, editing online system documents, and downloading documents from the system to the local. The online and offline buttons are used to process vectorized documents in the vector database. The online button is to cut and vectorize the document, store the cut and vectorized document paragraphs through the vectorized database module, and create an index; the offline button can delete the knowledge document in the vector database, and the large model will not use this document in the future. The implementation logic of the online button includes the following steps: document parsing, paragraph-level cutting, paragraph vectorization, original document information storage MySQL, paragraph text MD5 encoding, and entering the Fa i ss vector database.

[0033] The large model management module has the function of selecting the large language model of the system, cooperating with the knowledge base management module to perform operations such as online and offline, and further managing the number of clusters, concurrency, response time, etc. deployed by the large language model.

[0034] The question-answering process management module includes functions such as user question input, large model answers, multi-round dialogue styles, user history questions, and display of hot questions. After obtaining the model answer, it performs lineage analysis, original document retrieval, and paragraph flow to accurately locate the paragraph position of the original maintenance manual that depends on the answer.

[0035] The permission management module classifies and sets permissions according to different types of work and original documents with different confidentiality levels. People without permission cannot access documents outside the permission scope. The large model limits the access scope according to permissions to prevent people without permission from inducing leaks through model dialogues.

[0036] Based on the above-mentioned intelligent question-answering system for mechanical equipment maintenance, as another aspect of this application, please refer to the attached Figure 2 - Attachment Figure 5 , the intelligent question-answering method for mechanical equipment maintenance includes the following steps:

[0037] Step 1: Document parsing and extraction: Parse the original maintenance manual and other documents into XML format, and cut the original document into paragraphs, divide the original document into individual paragraphs, record the location information of the original document for each paragraph, and then perform MD5 encoding on the extracted paragraph text;

[0038] Step 2: Text vectorization: Use the text2vec component and the selected model to vectorize the paragraph text. You can choose any of the BERT and word2vec models in the text2vec package for vector representation.

[0039] Step 3, information storage: store the detailed information of the text and its MD5 code in the MySQL database, including the original document name, the position of the current paragraph in the original document, the MD5 code, etc., and store the MD5 code generated in step 2 and its corresponding vector representation in the Faiss vector database;

[0040] Step 4: Vector database index: Store the MD5 code and vector representation of the paragraph into the Faiss vector database to create an index, call the Faiss search engine, and output the top N document paragraph MD5 codes that are most relevant to the question. Faiss supports multiple index structures, including but not limited to:

[0041] - Planar index: An index structure based on product quantization, suitable for searching high-dimensional vectors.

[0042] -Inverted file index: Accelerates search by building an inverted file, which is suitable for searching sparse vectors.

[0043] -Quantized index: Use vector quantization technology to compress and encode vectors to reduce storage and computing overhead.

[0044] Depending on the user's choice and needs, cosine similarity or Euclidean distance can be used as the similarity measure.

[0045] Step 5: User input and retrieval: Receive user questions, vectorize them, and retrieve the top N most relevant paragraphs in Faiss;

[0046] Step 6: Prompt Engineering and Model Answers: Combine the search results, adjust the user input through prompt engineering, and then use the big model to generate answers. The generated answers include: answers and reference documents generated by prompt engineering based on the provided reference documents;

[0047] Step 7: Lineage analysis and result display: First, perform word segmentation on the output of the large model and the topN original paragraph documents of the model input, and use the final Jaccard coefficient to determine which reference document the large model actually uses. The Jaccard coefficient is defined as follows: Given two sets A and B, the Jaccard coefficient is defined as the ratio of the size of the intersection of A and B to the size of the union of A and B to confirm the document used and obtain it. According to the corresponding MD5 code, the original document information recorded in mysql is searched to complete the lineage analysis, display the original paragraph information on which it is based, and display this information to the user.

[0048] The following is a specific embodiment:

[0049] The prompt project set in the present invention is also called the prompt project. It is a kind of prompt project, which is to modify the user's question accordingly to make the model better understand the user's question and guide the model to output the correct conclusion. This method does not require training or fine-tuning the model, and is more flexible to use and suitable for scenarios where the knowledge base changes frequently. The following is an example of a non-prompt project.

[0050] For example, the Q&A of the No Prompt Project

[0051] User: What are the maintenance procedures for rolling mill reducers?

[0052] Large model input: What are the maintenance procedures for rolling line reducers?

[0053] Large model output: The maintenance process of the rolling mill reducer is generally

[0054] 1. Check the working condition of bolts, bearings, etc.

[0055] 2. Observe the device temperature

[0056] 3. Apply lubricating oil, etc.

[0057] In summary, the maintenance procedures for different models are generally different.

[0058] For details, please refer to the maintenance manual of the equipment you need to consult

[0059] The following is an example of adding a prompt project, and in particular, an example of a prompt project is shown below. This example is only a part of the many examples of this application. As follows:

[0060] User: What are the maintenance procedures for rolling mill reducers?

[0061] Prompt the large model input after the project: "Please read the following Q&A sample. The user asks "What are the steps for the maintenance of the coil weighing machine?" The reference documents that can be provided are {Document 1}, {Document 2}, {Document 3}, and the answer is {The steps for the maintenance of the coil weighing machine are as follows: 1. Regularly lubricate the hydraulic cylinder rotating bearing, the connecting rod U-shaped clamp bearing, and the bearings of all support seats with dry oil. 2. Check and tighten the connecting bolts every shift to prevent loosening or damage. 3. Check and clean the pallet every shift. If the wear-resistant plate on the pallet is severely worn or damaged, it must be repaired or replaced in time; 4. Regularly check the pins and bushings of the hydraulic cylinder, spherical connecting rod head, and U-shaped clamp. If there is severe wear, it should be replaced in time. 5. Regularly check whether the weighing frame moves smoothly and vertically. 6. Regularly test the accuracy of the weighing device.}, the above documents are from the first section of Chapter 2 of the "Coil Weighing Machine Maintenance Regulations". The above is an example. The answer logic is to select the output in the reference document that matches the user's question based on the user's question and the reference questions and answers provided. Please refer to the above example and answer "What are the maintenance procedures for the wire rolling reducer?" based on the reference documents {Document 4}, {Document 5}, and {Document 6}.

[0062] Large model output:

[0063] "The following is the maintenance process of the rolling mill reducer

[0064] 1. Check the bolts of each part to ensure the connection is firm and reliable.

[0065] 2. Regularly observe the working condition of the thin oil lubricating oil flow indicator to ensure that the oil circuit is unobstructed, the oil pressure and flow are sufficient, and there is no leakage in the pipeline, valves, seals and joint surfaces.

[0066] 3. Check the working condition of the bearing regularly. There should be no heat, looseness, severe wear, or abnormal noise. If any problem is found, deal with it in time.

[0067] 4. Check the working condition of the gears to keep the transmission smooth. Open the observation cover frequently to check whether the tooth contact and wear are normal, whether each flat groove on the lubricating oil nozzle is unobstructed, and deal with any problems in a timely manner.

[0068] 5. Check the oil flow through the oil flow indicator at the inlet of each lubrication point. The on-site setting value is as follows:

[0069] Rough rolling reducer: The pressure of the pressure relay is normal if it is ≥0.15MPa.

[0070] Medium rolling reducer: The pressure of the pressure relay is normal if it is ≥0.15MPa.

[0071] Pre-finishing rolling reducer: The pressure of the pressure relay is normal if it is ≥0.15MPa.

[0072] 6. Check the bearing (wafer) temperature by touch. If you touch the bearing seat or end cover for about 3 seconds and do not feel hot, it is normal. If the temperature is too high, report it to the workshop immediately.

[0073] 7. Use a needle to touch the bearing (tile) seat to listen to the movement sound. If there is no abnormal noise, it is normal. If the sound is abnormal, it should be reported to the upper workshop immediately. "Reference document "Rolling reducer maintenance regulations" Section 4;

[0074] It can be seen that after the prompt project, the output of the large model is not fanciful, but based on the reference documents provided, the answers are more accurate, and finally, blood relationship analysis can be provided for users to verify by themselves.

[0075] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. An intelligent question-answering system for mechanical equipment maintenance, characterized by: It includes a knowledge base management module, a vector knowledge base management module, a question and answer process management module, a large model management module and a permission management module. The knowledge base management module is used to manage the document knowledge base, the large model management module is used to manage the large language model, the question and answer process management module is used to manage the question and answer dialogue, the large model management module is used to process the questions input by the question and answer process management module, and the permission management module has the ability to manage the document access permissions of different users.

2. The intelligent question-answering system for mechanical equipment maintenance according to claim 1 is characterized in that: The knowledge base management module includes function buttons such as upload, delete, download, edit, go online, and go offline. It has the functions of users uploading knowledge documents to the system knowledge base, deleting uploaded documents in the system, editing online system documents, and downloading documents from the system to the local. The online and offline buttons are used to process vectorized documents in the vector database.

3. The intelligent question-answering system for mechanical equipment maintenance according to claim 2 is characterized in that: The large model management module has the function of selecting the large language model of the system, cooperating with the knowledge base management module to perform operations such as online and offline, and further managing the number of clusters, concurrency, response time, etc. deployed by the large language model.

4. The intelligent question-answering system for mechanical equipment maintenance according to claim 1 is characterized in that: The question-and-answer process management module includes functions such as user question input, large model answers, multi-round dialogue styles, user history questions, and display of hot questions. After obtaining the model answer, it performs lineage analysis, original document retrieval, and paragraph flow to accurately locate the paragraph position of the original maintenance manual that depends on the answer.

5. The intelligent question-answering system for mechanical equipment maintenance according to claim 1 is characterized in that: The authority management module classifies and sets authorities according to different types of work and original documents of different confidentiality levels. Personnel without authority cannot access documents outside the authority. The large model limits the access scope according to authority to prevent personnel without authority from inducing leaks through model dialogues.

6. An intelligent question-answering method for mechanical equipment maintenance, using the intelligent question-answering system for mechanical equipment maintenance as claimed in any one of claims 1 to 5, characterized in that: The following steps are involved: Step 1: Document parsing and extraction: Parse the maintenance knowledge document into XML format and extract paragraph-level text data; Step 2: Text vectorization: Use the text2vec component and the selected model to vectorize the paragraph text; Step 3: Information storage: Store the detailed information of the text and its MD5 encoding in the MySQL database; Step 4: Vector database indexing: store the MD5 encoding and vector representation of the paragraph into the Faiss vector database to create an index; Step 5: User input and retrieval: Receive user questions, vectorize them, and retrieve the top N most relevant paragraphs in Faiss; Step 6: Prompt Engineering and Model Answers: Combine the search results, adjust the user input through prompt engineering, and then use the big model to generate answers; Step 7: Lineage analysis and result display: Perform lineage analysis on the model's answer, display the original paragraph information on which it is based, and display this information to the user.

7. The intelligent question-answering method for mechanical equipment maintenance according to claim 6 is characterized in that: The specific steps of document parsing and extraction in step one are: first parse the original maintenance manual and other documents obtained, and cut the original document into paragraphs, divide the original document into individual paragraphs, record the location information of the original document for each paragraph, and then perform MD5 encoding on the extracted paragraph text.

8. The intelligent question-answering method for mechanical equipment maintenance according to claim 6 is characterized in that: The vectorization in step 2 may select any one of the models BERT and word2vec in the text2vec package for vectorization representation.

9. The intelligent question-answering method for mechanical equipment maintenance according to claim 6 is characterized in that: The answer content generated after the prompt project is adjusted in step six includes: the answer and reference document generated by the prompt project based on the provided reference file.

10. The intelligent question-answering method for mechanical equipment maintenance according to claim 6, characterized in that: The specific steps of the lineage analysis in step seven are: first, segment the topN original paragraph documents output by the large model and input by the model, then make a judgment to confirm the document to be used and obtain it, search the original document information recorded in mysql according to the corresponding MD5 code, and complete the lineage analysis.

Citation Information

Cited By

  • Data sharing open platform data resource searching method and system based on large language model

    CN119357316A

  • Method and device for constructing field consanguinity tree, storage medium and terminal

    CN120780710A