A project document review system and method based on artificial intelligence technology

Through the artificial intelligence-based project document review system, combined with machine learning and large language models, it solves the shortcomings of existing technologies in semantic understanding and transparency, achieves efficient and accurate document review, and improves user trust and work standardization. .

CN116703337BActive Publication Date: 2024-09-03金现代信息产业股份有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310986410.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-08
Publication Date
2024-09-03
Estimated Expiration
2043-08-08

AI Technical Summary

Technical Problem

Existing intelligent document review technology has limitations in semantic understanding, which can easily lead to misunderstandings and misjudgments, especially when processing complex or ambiguous documents. The review results lack transparency and interpretability, resulting in reduced user trust and acceptability.

Method used

Adopt a project document review system based on artificial intelligence, and combine it with machine learning technology through the configuration module, management module and service module to enhance the understanding of document context and semantics, realize intelligent review, and conduct automatic review through large language models to generate interpretability Report.

Benefits of technology

It improves review efficiency and accuracy, reduces interference from human subjective factors, ensures document compliance and industry standards, and enhances user trust and work standardization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116703337B
    Figure CN116703337B
Patent Text Reader

Abstract

The present invention discloses a project document review system and method based on artificial intelligence technology, and relates to the field of document review technology. The system includes: a configuration module, a management module, and a service module. The present invention adopts artificial intelligence algorithms and natural language processing technology training models, which can quickly identify problems and defects in project documents, help users better discover and solve potential risks, improve the quality and reliability of projects, and realize automated review of project documents, which can effectively improve review efficiency, improve review quality and accuracy. The document review system of the present invention also has the characteristics of normalization and standardization, and can perform intelligent review according to user-defined review rules and standards to help ensure the compliance of documents and meet industry standards. This helps enterprises establish a unified project review process, improve the level of work standardization, and reduce errors and omissions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of document review technology, and in particular to a project document review system and method based on artificial intelligence technology. Background Art

[0002] At present, in order to inspect project materials, it is necessary to organize personnel to review documents at various stages of project planning, reserve, and planning. There are many inspection items with high repetitiveness and strong mechanical characteristics, such as field consistency verification, signature and seal inspection, and naming standardization inspection, which consumes high personnel costs.

[0003] Current document intelligent review technologies have certain limitations in semantic understanding. Although they can understand and parse the grammar and vocabulary in the text, there are still challenges in the deep understanding of context and semantics. In particular, it can lead to some misunderstandings and wrong judgments when dealing with complex, ambiguous or domain-specific documents. In addition, existing document reviews are usually reviewed based on predefined rules and standards. However, these standards are highly subjective and flexible because they may vary from industry to industry, region to region or organization to organization. But existing technologies often have difficulty accurately capturing and understanding these subjective standards, resulting in inconsistent review results. In addition, existing document intelligent review technologies are usually black box models, and their internal working mechanisms and decision-making processes lack transparency and explanation. This makes it difficult for users to understand and explain the basis of the review results, thereby reducing user trust and acceptability. Therefore, how to achieve efficient and accurate automatic review of interactive project documents has become a problem that needs to be solved by existing technologies. Summary of the invention

[0004] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a project document review system and method based on artificial intelligence technology, which realizes intelligent review of various documents through flexible configuration of document review rules and standards, and uses machine learning methods to enhance the deep understanding of document context and semantics. Users can participate in the review process, and machine learning is integrated with user configuration to truly realize efficient and accurate interactive project document review.

[0005] In order to achieve the above object, the present invention is implemented through the following technical solutions:

[0006] The first aspect of the present invention provides a project document review system based on artificial intelligence technology, comprising:

[0007] Configuration module, management module and service module, among which,

[0008] The configuration module includes a database configuration module, which is used to perform resource configuration on the project data source;

[0009] Project document configuration module, used to configure project types and project-related document types;

[0010] The document review rule configuration module is used to configure the review points and review items of the document according to the different review task configurations and project types to form different review rules;

[0011] Intelligent configuration module, used to configure the parameters of the automatic review module;

[0012] The management module includes a knowledge base management module for managing review-related knowledge documents;

[0013] The project knowledge graph module is used to build a project knowledge graph based on project document configuration by mining potential association information between projects, and use the built project knowledge graph to query and retrieve projects;

[0014] The service module includes a document information extraction module for extracting key information from the document according to the review task requirements;

[0015] The large language model module is used to train the large language model using machine learning methods according to the review rules corresponding to the review tasks;

[0016] The automatic review module is used to automatically review the extracted key information using a large language model according to the parameters configured by the automatic review module.

[0017] Furthermore, configuring resources for the project data source includes configuring data source information or data interface information in the database, and based on the configured data source, configuring a data collection method and a mapping relationship between the data to be collected and the target database.

[0018] Furthermore, the configuration module also includes a text prompt configuration module for configuring prompt content during the model training process.

[0019] Furthermore, in the configuration module described in the text, the specific process of configuring the prompt content during the training model is as follows:

[0020] Define initial prompts that describe the goals and requirements of the document review task;

[0021] Define document content hints to guide the large language model to understand document content and review rules;

[0022] Define review rule prompts to convert configured document review rules into prompts to guide the large language model to perform automatic review.

[0023] Furthermore, the document information extraction module adopts different extraction methods to extract key information according to the classification of document formats.

[0024] Furthermore, the document information extraction module extracts key information by training an information extraction model.

[0025] Furthermore, it also includes a storage module for storing information in the system;

[0026] The storage module includes a document storage module for storing documents according to the configuration type;

[0027] A rule storage module is used to store configured rules;

[0028] The model storage module is used to store the trained model.

[0029] Furthermore, it also includes a report generation module, which is used to batch export the review reports of the projects according to the results obtained by the automatic review module.

[0030] Furthermore, it also includes a visualization module for visually displaying the review process of each module on the client.

[0031] A second aspect of the present invention provides a project document review method based on artificial intelligence technology, comprising the following steps:

[0032] Configure project documents, including resource configuration of project data sources, configuration of project types and project-related document types, configuration of review rules, and configuration of parameters for the automatic review process;

[0033] Based on the project document configuration, the project knowledge graph is constructed by mining the potential association information between projects, and the constructed project knowledge graph is used to query and retrieve projects;

[0034] Extract key information from documents according to review task requirements;

[0035] Use machine learning methods to train large language models based on the review rules corresponding to the review tasks;

[0036] The extracted key information is automatically reviewed using a large language model according to the parameters configured in the automatic review module.

[0037] One or more of the above technical solutions have the following beneficial effects:

[0038] The present invention discloses a project document review system and method based on artificial intelligence technology, which can effectively improve the review efficiency, quality and accuracy of the review. The present invention adopts artificial intelligence algorithm and natural language processing technology training model, which can quickly identify problems and defects in project documents, such as non-compliant content, inconsistent data, missing information, etc., which helps users better discover and solve potential risks, improve the quality and reliability of projects, and realize the automated review of project documents.

[0039] The document review system of the present invention has the characteristics of normalization and standardization, and can perform intelligent review according to the review rules and standards defined by the user, helping to ensure the compliance of the document and meet industry standards. This helps enterprises establish a unified project review process, improve the level of work standardization, and reduce errors and omissions.

[0040] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0042] Figure 1 This is a framework diagram of a project document review system based on artificial intelligence technology in Embodiment 1 of the present invention;

[0043] Figure 2 This is a flow chart of a project document review method based on artificial intelligence technology in Embodiment 2 of the present invention. DETAILED DESCRIPTION

[0044] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0045] It should be noted that in the embodiments of the present invention, data related to project documents, etc. are involved. When the above embodiments of the present invention are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0046] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "include" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or their combinations;

[0047] Terminology explanation:

[0048] 1.LLM: Large Language Model (LLM), also known as Large Language Model, is an artificial intelligence model designed to understand and generate human language.

[0049] 2.OCR: OCR (optical character recognition) text recognition refers to the process in which an electronic device (such as a scanner or digital camera) checks the characters printed on paper and then uses character recognition methods to translate the shapes into computer text.

[0050] 3.NLP: NLP (Natural Language Processing) is a discipline that studies the interaction between computers and human natural language. It involves methods and techniques for using computers to understand, process, generate and manipulate human language.

[0051] 4. Prompt: In large language model technology, "prompt" refers to a text snippet or question input to the model to guide the model to generate the corresponding output. Prompt can be a complete sentence, a question, a descriptive beginning, or even just some keywords.

[0052] Embodiment 1:

[0053] Embodiment 1 of the present invention provides a project document review system based on artificial intelligence technology, such as Figure 1 As shown, it includes a configuration module, a management module, a service module, a storage module, a report generation module and a visualization module.

[0054] Among them, the configuration module includes a database configuration module, a project document configuration module, a document review rule configuration module, an intelligent configuration module and a text prompt configuration module.

[0055] The database configuration module is used to configure resources for the project data source; specifically, configuring resources for the project data source includes configuring data source information or data interface information in the database to implement data source configuration for project information collection.

[0056] In a specific implementation, it can support adding, editing and deleting data sources, and support configuring the connection address, port, user name and password information of databases such as mysql, oracle, pgsql, as well as request parameters and response formats of get / post interfaces.

[0057] Based on the configured data source, configure the data collection method and the mapping relationship between the data to be collected and the target database.

[0058] In a specific implementation, it supports retrieving the project information that needs to be synchronized from the source database by writing SQL online, supports the creation, editing and deletion of data collection tasks, supports the online writing, previewing and running of SQL codes, and can export the query result set.

[0059] The project document configuration module is used to configure project types and project-related document types.

[0060] In a specific implementation, it supports configuration of project types and document types associated with projects. Document formats support doc, docx, wps documents, excel tables and PDF scans. According to the configured project document type, select the project and upload the corresponding project information. It supports uploading, previewing, downloading and deleting project documents.

[0061] The document review rule configuration module is used to configure the review points and review items of the document according to different review task configurations and project types to form different review rules.

[0062] In a specific implementation, it supports configuration of review points and review items of documents according to project types. It supports custom configuration of rule bases to meet the review requirements of different types of project materials.

[0063] It provides a visual rule arrangement engine, supports the configuration of detailed judgment conditions of review items by dragging the canvas, supports AND and OR logic, supports the operation logic configuration of project attributes and document key information such as "equal", "not equal", "contains", "greater than", "less than", and supports the non-empty verification rules of the above content.

[0064] In addition to applying the rule engine to the above-mentioned document review rule configuration module, users can configure the prompt of the large language model in the text prompt configuration module according to their own document review rules to achieve automatic review function.

[0065] Intelligent configuration module, used to configure the parameters of the automatic review module.

[0066] The text prompt configuration module is used to configure the prompt content during the training model and define the document review rules, including format requirements, compliance requirements, content requirements, etc. For different types of documents, corresponding review rule sets can be configured to meet different review requirements.

[0067] In a specific implementation, the specific process of configuring the prompt content in the training model process is:

[0068] Define an Initial Prompt that describes the goals and requirements of the document review task.

[0069] Define Document Content Prompt to guide the large language model to understand document content and review rules.

[0070] Define Review Rule Prompt, which is used to convert the configured document review rules into prompts to guide the large language model to perform automatic review.

[0071] The management module includes the knowledge base management module and the project knowledge graph module.

[0072] The knowledge base management module is used to manage review-related knowledge documents.

[0073] In a specific implementation, it supports the management of review-related knowledge documents such as project management regulations, guidelines, review points, etc., and supports document uploading, reviewing, downloading, deleting, full-text retrieval, and online preview functions.

[0074] The project knowledge graph module is used to construct a project knowledge graph by mining the potential correlation information between projects, and use the constructed project knowledge graph to query and retrieve projects.

[0075] In a specific implementation, potential related information between projects is mined, such as profession, scale effect, project establishment basis, related equipment, etc. It supports similarity comparison of project contents and assists in finding duplicate projects.

[0076] The service module includes a document information extraction module, a large language model module and an automatic review module. The document information extraction module extracts key information from the document.

[0077] The document information extraction module can extract key information from documents according to the review task requirements in two ways:

[0078] Method 1: The document information extraction module uses different extraction methods to extract key information according to the classification of document formats.

[0079] In a specific implementation, for project documents in word (doc, docx, wps) format, it supports extracting chapter, text, value, date and other information through online configuration. Through the similarity of chapter names and short text matching settings, chapter information in the document can be extracted; through regular expressions, table element configuration, algorithm model call and other methods, key information such as text, value, date and other key information can be extracted and stored.

[0080] In a specific implementation, taking the extraction of the "Project Necessity" chapter as an example, it is necessary to maintain in advance a batch of short texts similar to the target chapter names, such as "Necessity", "Necessity Analysis", "Project Necessity", etc. When performing the chapter extraction task, first use tools such as python-docx to convert the word document into plain text, removing special formats, punctuation marks and marks. Based on these short texts maintained in the configuration, use text matching methods or Word2Vec, FastText models to calculate text similarity, extract words or short sentences with high similarity, and then extract the required chapter names by formulating rule constraints (such as filtering out words or short sentences that do not contain uppercase or lowercase numbers).

[0081] For project documents in excel (xls, xlsx) format, it supports extracting sheet pages, text, values, dates and other information through online configuration. The target sheet page can be located through sheet page name matching or sequence matching; the target cell information can be extracted through row locator, column locator and offset configuration.

[0082] For documents that are scanned PDF documents, you can extract signatures, stamps, text, values, dates, tables, and other information from the document by configuring the background OCR service and returning key values.

[0083] Method 2: The document information extraction module extracts key information by training the information extraction model:

[0084] In addition to the traditional document information extraction method in method 1, this embodiment also includes configuring a prompt for a large language model, defining the output parameter format, and implementing the document information extraction function. Specific functions include:

[0085] 1. Input processing: Receive the document content or document path provided by the user and format it into an input format acceptable to the model.

[0086] 2. Prompt generation: Configure according to user needs and tasks. Specifically, generate a complete prompt according to the prompt configuration rules, including the initial prompt, input document prompt, extraction target prompt and context prompt.

[0087] 3. Large language model call: pass the generated prompt as input to the configured large language model, and call the model to extract document information. You can use the characteristics of the generative model, such as conditional generation or text classification, to generate structured output results.

[0088] 4. Output parsing: Parse the output results of the large language model according to the pre-defined output parameter format, and extract the extracted entities, key information, related information and additional information.

[0089] 5. Result return: Return the parsed results to the user in an appropriate format, such as JSON format, table format, or a custom data structure.

[0090] The large language model module can support interactive query and feedback between users and review results. The large language model used in the present invention is the ChatGLM-6B model open sourced by Tsinghua University. ChatGLM-6B is a conversational language model that supports both Chinese and English. It is based on GLM (General Language Model) and has 6.2 billion parameters. The model adopts an encoder-decoder architecture and has the following features:

[0091] (1) Sufficient bilingual pre-training in Chinese and English: ChatGLM-6B is trained with 1 TB of tokens on Chinese and English materials in a 1:1 ratio, and has bilingual capabilities.

[0092] (2) Optimized model architecture and size: Based on the training experience of GLM-130B, the two-dimensional RoPE position encoding implementation was modified and the traditional FFN structure was used. The 6B (6.2 billion) parameter size also makes it possible for researchers and individual developers to fine-tune and deploy ChatGLM-6B themselves.

[0093] (3) Lower deployment threshold: Under FP16 half-precision, ChatGLM-6B requires at least 13GB of video memory for inference. Combined with model quantization technology, this requirement can be further reduced to 10GB (INT8) and 6GB (INT4), allowing ChatGLM-6B to be deployed on consumer-grade graphics cards.

[0094] (4) Longer sequence length: Compared with GLM-10B (sequence length 1024), ChatGLM-6B has a sequence length of 2048, supporting longer conversations and applications.

[0095] (5) Human intention alignment training: Supervised fine-tuning, feedback bootstrap, and reinforcement learning from human feedback are used to enable the model to initially understand the intention of human instructions. The output format is markdown for easy display.

[0096] Therefore, ChatGLM-6B has good conversation and question-answering capabilities under certain conditions. Users can ask specific questions to the model and request further explanation of the model's decision-making basis. The model can generate corresponding explanatory text or display relevant evidence based on the user's query. In this way, users can actively participate in the explanation process and obtain more accurate and targeted explanations. Compared with traditional manual review methods, this method can greatly improve the review speed and efficiency and save a lot of human resources.

[0097] The automatic review module is used to automatically review the extracted key information using a large language model according to the parameters configured by the automatic review module. This embodiment forms a specialized automatic review algorithm by training a machine learning model and combining the propmt and fine-tuning of a large language model. The present invention adopts the LORA (Low-Rank Adaptation) fine-tuning method. The implementation principle is to freeze the pre-trained model weights and inject the trainable rank decomposition matrix into each weight of the Transformer layer, which greatly reduces the number of trainable parameters for downstream tasks.

[0098] In a specific implementation, the evaluation of the "equipment status" content in the project proposal is taken as an example. First, the description of the "equipment status" is obtained from a large number of historical documents, and the text is annotated as "high quality" or "low quality" through manual annotation or rule constraints, and a training data set and a validation set are constructed; a machine learning algorithm for text classification, such as a naive Bayes classifier, is used to train the model using the training set, and the model performance is evaluated and tuned on the validation set; the trained model is used to automatically evaluate the new "equipment status" description, and the text data is input into the model, and the model will output the evaluation result, such as "high quality" or "low quality".

[0099] In the specific fine-tuning implementation method, taking the evaluation of the equipment status as an example, it is necessary to collect business-related text data, such as project proposals, feasibility studies, etc., and clean and annotate the original text data to form a dialogue or question data set with relevant prompts. The example is as follows:

[0100] (1) Text: "The model of the 1101 circuit breaker on the high-voltage side of the No. 1 main transformer is LW250, manufactured by Xi'an High Voltage Switch Factory, and put into operation in 2000."

[0101] Q: “Does the above content describe the manufacturer of the equipment as specified?”

[0102] Answer: "Yes, the manufacturer of the 1101 circuit breaker on the high-voltage side of the No. 1 main transformer is Xi'an High Voltage Switch Factory."

[0103] (2) Text: "The model of the 1101 circuit breaker on the high-voltage side of the No. 1 main transformer is LW250, and the manufacturer is Xi'an High Voltage Switch Factory."

[0104] Q: "Does the above content describe the commissioning time of the equipment as specified?"

[0105] Answer: "The above content does not describe the commissioning time of the 1101 circuit breaker on the high-voltage side of the No. 1 main transformer, so it does not comply with regulations."

[0106] Through the above steps, combined with the application of the LORA algorithm to large model fine-tuning, the performance and effectiveness of the model in content review can be improved.

[0107] In a specific implementation, the generated prompt is input into a configured large language model, and the model is called to automatically review the document content. The model analyzes potential problems, errors or violations in the document based on the guidance of the prompt, the document content and the review rules. Finally, the output of the large language model is parsed to identify problems, errors or violations in the document. According to the configuration of the review rules, information such as the type, location and detailed description of the problem is extracted.

[0108] More specifically, users can select a single project and intuitively query the system's automatic review results for the project document according to the configured review points and review items. The list data can be filtered by review item type and review result, and the list will display all review item information under the currently selected review point, including whether the review is passed and the specific reasons.

[0109] Users can preview the documents associated with the project online through the document preview view. They can switch the document directory in the list on the left. The right side displays the key information and related review results automatically extracted from the document by the system, showing the reasons for passing or failing the review. Users can click on keywords (hyperlinks) to automatically locate the corresponding paragraph of the document.

[0110] The storage module is used to store information in the system; the storage module includes a document storage module, a rule storage module and a model storage module.

[0111] A document storage module is used to store documents according to the configuration type;

[0112] A rule storage module is used to store configured rules;

[0113] The model storage module is used to store the trained model.

[0114] The report generation module is used to batch export the review reports of the projects based on the results obtained by the automatic review module.

[0115] In a specific implementation, the review report is in Excel or PDF format, and includes review points, review items, review item types (must be changed, suspected, prompt), review content, review results (passed, failed), and rectification suggestions.

[0116] The visualization module is used to visualize the review process of each module on the client.

[0117] This embodiment uses OCR, NLP, and LLM technologies to quickly and accurately extract key information from documents and intelligently analyze and judge. This reduces the interference of human subjective factors and improves the consistency, reliability, and accuracy of the review results. The large language model can generate explanatory text to explain the review results. When there are compliance issues in the content of a document, the model can generate an explanatory text to explain why the document is judged to be problematic and provide relevant regulations, policies, or specifications as support. Such explanations can help users understand the decision-making process of the model and increase credibility and acceptability.

[0118] Embodiment 2:

[0119] Embodiment 2 of the present invention provides a project document review method based on artificial intelligence technology, such as Figure 2 As shown in the figure, it includes configuring the project documents, building the project knowledge graph, extracting key information from the documents according to the review task requirements, training the large language model, and using the trained large language model for automatic review, and finally generating an evaluation report based on the review results. The specific steps include:

[0120] Step 1: Configure the project documents, including resource configuration of the project data source, configuration of the project type and the document type associated with the project, configuration of the review rules, and configuration of the parameters of the automatic review process.

[0121] By dynamically configuring the data synchronization service interface, the basic attributes and file information of the project can be automatically synchronized from the running project management system. By configuring the scheduled tasks, regular incremental updates of project-related information can be achieved to ensure the timeliness of the automatic review results. While synchronizing project information, the project knowledge graph is automatically constructed based on the project ontology library, and the association information between projects is generated.

[0122] Step 2: Based on the project document configuration, build a project knowledge graph by mining the potential correlation information between projects, and use the constructed project knowledge graph to query and retrieve projects.

[0123] Step 3: Extract key information from the document according to the review task requirements.

[0124] According to the background configuration logic, key information to be reviewed is obtained from the document, including text (values, dates), titles, paragraphs, pictures, etc. Traditional methods for extracting key information from documents include: similarity matching, entity recognition, regular matching, OCR target detection, contextual positioning, etc. However, these methods have limitations, such as insufficient semantic understanding, limited accuracy, and slow processing speed. Therefore, a new method is needed to optimize and improve the document information extraction process. This embodiment is an improvement on the above extraction method, and effectively realizes the extraction of key information in professional documents through a large-scale pre-trained language model.

[0125] The specific steps are:

[0126] 1. Document representation learning: First, use the pre-trained large language model to learn the representation of the input document. By converting the document into word embedding or sentence embedding representation, the large language model can capture the rich semantic information in the text.

[0127] 2. Contextual understanding and association: Use the contextual understanding ability of the large language model to understand and associate sentences, paragraphs, or entire documents in the document. By considering contextual information, the large language model can better grasp the relationship between entities, the development of events, and background knowledge in specific fields.

[0128] 3. Entity recognition and key information extraction: After obtaining the semantic representation and contextual understanding of the document, the large language model is used for entity recognition and key information extraction. By annotating the document or training the generative model, the large language model can accurately identify the key entities in the document, such as people, places, events, etc., and extract the important information associated with the entity. For example, for the text "Two 220kV main transformers are installed in a certain substation, each with a capacity of 180MVA, and both were put into operation in 2018", it is necessary to extract key information such as substation, equipment, capacity, and commissioning time. The large language model can extract these key information at one time, not only limited to entity recognition, but also related attributes and contextual information. In contrast, traditional methods require entity recognition and attribute extraction separately, which may require additional rules and steps, require manual annotation of a large amount of training data, and cannot easily adapt to new data sets or text types. In addition, the accuracy and adaptability of the large language model can be improved by continuously adjusting and improving the configuration of the prompt. Traditional methods require manual adjustment and optimization of rules or models, which is a large and cumbersome task.

[0129] 4. Domain adaptation and transfer learning: In order to adapt to the characteristics of different fields and professional documents, this method also introduces domain adaptation and transfer learning technology. By fine-tuning the large language model on a dataset in a specific field, it can better understand and extract professional terms, phrases and contextual relationships in that field, thereby improving the accuracy and adaptability of document information extraction.

[0130] In a specific implementation, the model of the 1101 circuit breaker on the high-voltage side of the No. 1 main transformer is LW250, and the manufacturer is Xi'an High Voltage Switch Factory, which was put into operation in 2000. If you want to extract key information such as the equipment model, years of operation, and manufacturer from this text, you can do this by building a suitable prompt. Build a question template containing keywords to guide the model to answer questions correctly, for example: "What is the model, years of operation, and manufacturer of this equipment?" Or let the model return the result in a structured format such as json and xml to facilitate data parsing.

[0131] In order to improve the completeness and accuracy of the large model in extracting these key information, the present invention adopts a large model fine-tuning method based on LORA (Low-Rank Adaptation) to collect relevant text data containing equipment information, such as equipment manuals, technical specifications, etc., and clean and annotate the original text data, and annotate key information such as equipment model, years of operation and manufacturer with specific tags to form a format similar to the following:

[0132] Input text: The model of the 1101 circuit breaker on the high-voltage side of the No. 1 main transformer is LW250, manufactured by Xi'an High Voltage Switch Factory, and put into operation in 2000.

[0133] Annotation text: The device model is <lw250>The manufacturer is <Xi'an High Voltage Switch Factory> and it was put into operation in <2000>.

[0134] Then, through the Q&A dataset construction tool, the annotated text is organized into a dialogue or question dataset with relevant prompts. The dialogue or question dataset form is as follows:

[0135] (1) Text: "The model of the 1101 circuit breaker on the high-voltage side of the No. 1 main transformer is LW250, manufactured by Xi'an High Voltage Switch Factory, and put into operation in 2000."

[0136] Q: "What is the device model?"

[0137] Answer: "The 1101 circuit breaker on the high voltage side of the No. 1 main transformer is model LW250."

[0138] (2) Text: "The model of the 1101 circuit breaker on the high-voltage side of the No. 1 main transformer is LW250, manufactured by Xi'an High Voltage Switch Factory, and put into operation in 2000"

[0139] Q: "When was the equipment put into operation?"

[0140] Answer: "The equipment was put into operation in 2000."

[0141] Through the above steps, combined with the application of the LORA algorithm to large model fine-tuning, the performance and effect of the model on the device information extraction task can be improved.

[0142] 5. Result generation and evaluation: Based on actual application requirements, large language models are used to generate extraction results. Generative models, such as conditional language models or generative adversarial networks (GANs), can be used in combination with the generative capabilities of large language models to generate extraction results with a certain structure, making them more suitable for actual application scenarios. At the same time, methods such as manual annotation or domain expert evaluation can also be used to evaluate and optimize the extraction results.

[0143] Step 4: Use machine learning methods to train a large language model based on the review rules corresponding to the review task, and use the large language model to automatically review the extracted key information based on the parameters configured in the automatic review module.

[0144] For the structured information extracted from the document, the traditional method is based on the rule engine, applying the corresponding rule expression or logic to verify whether the field meets the requirements; or applying machine learning technology to classify, mark or score the document to be reviewed, and give the automatic review result of the document based on the evaluation score given by the model and specific post-processing rules (human intervention). Based on the above traditional methods, this embodiment provides the idea of ​​using a large language model for content review:

[0145] First, define the evaluation object and prompt, determine the document content or semantic requirements of a specific field that needs to be evaluated, define the relevant features, attributes or requirements of the evaluation object, and design the prompt, that is, the instructions or questions provided to the language model to guide it to analyze and evaluate the document content; use the document content as input data, call the API or corresponding library function, and pass it to the large language model for semantic understanding and analysis; obtain the output results generated by the language model, parse and process the output results, and extract information related to the evaluation object and semantic understanding results.

[0146] The following is a specific implementation method: when configuring the document review rules in the program, choose to call the review method of the large language model, and configure the input instruction parameters and output parameter protocol, for example, "Please help me output the equipment status, existing problems and solution scale described in the project content in the specified JSON format", after segmenting the preprocessed document, input the "project content" part that needs to be reviewed into the model, and call the model's generation function. The following is an example of the large model output:

[0147] "Equipment Status": "The model of the 1101 circuit breaker on the high-voltage side of the No. 1 main transformer is LW250, manufactured by Xi'an High Voltage Switch Factory, and put into operation in 2000",

[0148] "There are problems", "The equipment has been in operation for a long time, the components are aging, and there are safety hazards",

[0149] "Scheme size", "None"

[0150] Based on the results output by the large language model, the rule engine can be used to determine whether the key information items are empty or contain keywords. The semantic understanding ability of the large language model can also be used to call the model again to input the review requirements for key content, such as "Please analyze the 'existing problems' extracted from the above content to see whether they contain quantitative descriptions such as specific commissioning time, rather than vague descriptions such as 'long commissioning time'". The large model will respond to the results based on the input content. The response content can be used as a supplementary prompt for the intelligent review rule engine and displayed to users on the front end together with the rule review content.

[0151] Step 5: Generate an assessment report based on the review results.

[0152] For structured data such as review content, review items and review results stored in the system, data packaging is performed and review reports are generated using template generation or dynamic organization language.

[0153] The steps involved in the above embodiment 2 correspond to those in the method embodiment 1. For the specific implementation method, please refer to the relevant description part of the embodiment 1.

[0154] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A project document review system based on artificial intelligence technology, characterized in that: include: Configuration module, management module and service module, among which, The configuration module includes a database configuration module, which is used to perform resource configuration on the project data source; Project document configuration module, used to configure project types and project-related document types; The document review rule configuration module is used to configure the review points and review items of the document according to the different review task configurations and project types to form different review rules; Intelligent configuration module, used to configure the parameters of the automatic review module; The management module includes a knowledge base management module for managing review-related knowledge documents; The project knowledge graph module is used to build a project knowledge graph based on project document configuration by mining potential association information between projects, and use the built project knowledge graph to query and retrieve projects; The service module includes a document information extraction module for extracting key information from the document according to the review task requirements; The large language model module is used to train the large language model using machine learning methods according to the review rules corresponding to the review tasks; An automatic review module, used for automatically reviewing the extracted key information using a large language model according to the parameters configured in the automatic review module; The resource configuration of the project data source includes configuring the data source information or data interface information in the database, and configuring the data collection method and the mapping relationship between the data to be collected and the target database based on the configured data source; The document review rule configuration module supports the configuration of review points and review items of documents according to project types; supports custom configuration of rule bases to meet the review requirements of different types of project materials; provides a visual rule arrangement engine, supports the configuration of detailed judgment conditions of review items by dragging the canvas, supports AND and OR logic, supports the operation logic configuration of "equal", "not equal", "contains", "greater than", "less than" and other operation logic configurations of project attributes and key document information, and supports non-empty verification rules for the above content; The configuration module also includes a text prompt configuration module, which is used to configure the prompt content during the training model process; In the configuration module, the specific process of configuring the prompt content during the training model is as follows: Define initial prompts that describe the goals and requirements of the document review task; Define document content hints to guide the large language model to understand document content and review rules; Define review rule prompts to convert configured document review rules into prompts to guide the large language model to perform automatic review; The document information extraction module extracts key information by training an information extraction model; The large-scale pre-trained language model is used to effectively extract key information from professional documents; The specific steps are: Document representation learning: Use a pre-trained large language model to learn the representation of the input document; Contextual understanding and association: Use the contextual understanding capabilities of large language models to understand and associate sentences, paragraphs, or entire documents in a document; Entity recognition and key information extraction: After obtaining the semantic representation and contextual understanding of the document, a large language model is used to perform entity recognition and key information extraction; Domain adaptation and transfer learning: In order to adapt to the characteristics of different fields and professional documents, domain adaptation and transfer learning technologies are also introduced; The automatic review module, combined with the LORA fine-tuning method, inputs the generated prompt into the configured large language model and calls the model to automatically review the document content; Based on the prompts, the model analyzes potential problems, errors, or violations in the document in combination with the document content and review rules. Finally, it parses the output of the large language model to identify the problems, errors, or violations in the document. Based on the configuration of the review rules, it extracts the type, location, and detailed description of the problem. Users can select a single project and intuitively query the system's automatic review results for the project's documents based on the configured review points and review items.

2. The project document review system based on artificial intelligence technology as claimed in claim 1, characterized in that: The document information extraction module adopts different extraction methods to extract key information according to the classification of document formats.

3. The project document review system based on artificial intelligence technology as claimed in claim 1, characterized in that: It also includes a storage module for storing information in the system; The storage module includes a document storage module for storing documents according to the configuration type; A rule storage module is used to store configured rules; The model storage module is used to store the trained model.

4. The project document review system based on artificial intelligence technology as claimed in claim 1, characterized in that: It also includes a report generation module for batch exporting the review reports of the projects based on the results of the automatic review by the automatic review module.

5. The project document review system based on artificial intelligence technology as claimed in claim 1, characterized in that: It also includes a visualization module for visually displaying the review process of each module on the client.

6. The method of the project document review system based on artificial intelligence technology according to any one of claims 1 to 5, characterized in that: The following steps are involved: Configure project documents, including resource configuration of project data sources, configuration of project types and project-related document types, configuration of review rules, and configuration of parameters for the automatic review process; Based on the project document configuration, the project knowledge graph is constructed by mining the potential association information between projects, and the constructed project knowledge graph is used to query and retrieve projects; Extract key information from documents according to review task requirements; Use machine learning methods to train large language models based on the review rules corresponding to the review tasks; The extracted key information is automatically reviewed using a large language model according to the parameters configured in the automatic review module.

Citation Information

Cited By

  • Regional difference-oriented purchase plan dynamic configuration method and system

    CN121903219A