Document index evaluation method based on large model

The document index review method combined with vector database and OpenAI model solves the problems of low efficiency and insufficient resource utilization in the traditional document review process, achieves fast and accurate document review, reduces manual processing burden and optimizes the review process. Evaluation results.

CN118608084APending Publication Date: 2024-09-06GUANGZHOU UNIVERSITY +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410762549.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The traditional document indicator review process is inefficient and resources are underutilized, resulting in long time and high costs, a heavy burden on reviewers, and a lack of automation technology to alleviate repetitive work.

Method used

Using a large model-based document index review method, through the vector database and OpenAI review model, the smallest unit relationship between the document to be inspected and the national standard document is retrieved one by one, the review results are output, and secondary review optimization is performed to ultimately form an accurate Review report.

Benefits of technology

It improves the accuracy and consistency of the review, reduces the time users spend searching for documents, enables fine-grained document review, optimizes the initial review results, and reduces the burden of manual processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608084A
    Figure CN118608084A
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and provides a document index evaluation method based on a large model, which comprises the following steps: S10: collecting a national standard file; s20, performing unification processing on the national standard file and storing the national standard file in a vector database; s30, searching a corresponding national standard file in the vector database based on a to-be-detected document; s40, retrieving a title and a text of the to-be-detected document one by one; s50, an evaluation result is output based on an evaluation model of OpenAI, the to-be-detected document serves as input of the evaluation model, the corresponding national standard file serves as evidence of the evaluation model, and the evaluation result is output; s60, performing feedback judgment on the review result, and performing secondary review on the review result which does not accord with the feedback judgment to replace the review result; and S70, sorting review results and forming a fine tuning data set. According to the method and the device, the review mode is standardized, each step is traceable, each step of review can be traced, and the effect is more outstanding and convenient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of data processing, and in particular relates to a document index review method based on a large model. Background Art

[0002] With the rapid development of artificial intelligence technology, the application of natural language processing (NLP) technology in the medical field is gradually deepening, especially in the field of document indicator review. The introduction of natural language models means that the review efficiency will be significantly improved, and people no longer need to do this repetitive work, collect and find relevant information before reviewing. However, how to effectively apply these models and algorithms in the review of indicator documents is still a challenging problem.

[0003] In the traditional document indicator review process, enterprises and individuals, as submitters, are responsible for uploading relevant indicator documents to the officially designated review unit. After receiving these documents, the review unit will first conduct a preliminary review, file a case and conduct a formal review process. In this process, the review unit will reasonably allocate review resources according to the priority and complexity of the review task to ensure the efficient conduct of the review work. After the reviewer takes over the case, he will assign it to a reviewer with relevant professional background and experience according to the content and nature of the document. These professionals will conduct a comprehensive and detailed review of the indicators in the document based on national or industry standards, laws and regulations, and relevant policies. Finally, the review unit will combine the opinions and suggestions of all reviewers to form a final review report. This report will record the review results, existing problems and improvement suggestions of the document indicators in detail, providing valuable feedback for enterprises and individuals.

[0004] Although the traditional document indicator review process has established good standards in terms of rigor and reliability, it has significant limitations in terms of efficiency and resource utilization. From an efficiency perspective, the traditional review process is often time-consuming because it involves manual processing of large amounts of document materials, including collection, organization, analysis, and evaluation. From a resource perspective, training a qualified professional reviewer requires long-term education and training, which not only consumes a lot of time but also involves high economic costs. In addition, the workload of reviewers is usually very heavy. They need to process a large amount of documents and often perform repetitive tasks, such as data verification and standardization, which could have been reduced through automation technology. Summary of the invention

[0005] In view of the above-mentioned defects of the prior art, the present invention proposes a document index review method based on a large model. The technical solution steps designed by the present invention include:

[0006] S10: Collect national standard documents;

[0007] S20: performing unified processing on the national standard file and storing it in a vector database;

[0008] S30: searching for a corresponding national standard file in the vector database based on the document to be detected;

[0009] S40: Searching the title and text of the document to be detected one by one, with title retrieval as priority and text retrieval as auxiliary, splitting the text blocks from large to small for retrieval, aiming to retrieve the text correspondence relationship of the smallest unit of the document to be detected and the corresponding national standard file;

[0010] S50: outputting a review result based on the review model of OpenAI, wherein the document to be tested is used as input of the review model, and the corresponding national standard document is used as evidence of the review model, and the review result is output;

[0011] S60: Feedback the review results, and conduct a second review to replace the review results that do not meet the feedback judgment;

[0012] S70: Organize the review results and form a fine-tuning dataset.

[0013] Preferably, S10 includes using a web crawler program to crawl national standard documents from the official website of national standards.

[0014] Preferably, the S10 further includes performing PDF to image watermark removal processing and layout recovery document restoration processing on the national standard document;

[0015] The PDF to image watermark removal process includes using image conversion technology to convert the PDF file of the national standard document into a PNG format image page by page, and using pixel modification technology to identify the PNG format image and remove the official red watermark.

[0016] Preferably, the layout recovery document restoration process includes using optical OCR technology to accurately locate, restore the layout and extract the structure of the text content in the PNG format image, identifying and reconstructing the original layout of the document based on deep learning technology, including the position and hierarchical relationship of the image elements in the PNG format, and converting it into an editable DOCX format document.

[0017] Preferably, the S20 includes: extracting the indicators in the national standard file, forming an indicator tree text in json format according to the title level distinction, embedding the text content using the embedding model, and storing the position information and parent-child information association of the vector and the document tree in the ES vector database, wherein the input parameter dims is the vector length, which is 768 dimensions, and the field is of text type for configuring the bm25 algorithm retrieval.

[0018] Preferably, the S60 includes the following steps:

[0019] S601: Calculate the similarity ISREL between the input and the evidence, and calculate the support ISSUP between the input of the review model, the review results and the evidence;

[0020] S602: Determine whether the similarity ISREL and the support LSSUP are greater than or equal to a preset threshold. If yes, feedback is given as a pending review result and step S6003 is executed; if no, feedback is given as an incorrect review result;

[0021] S603: Calculate the applicability ISUSE of the input and review results and determine whether it is greater than or equal to the preset threshold. If yes, the pending review results are further fed back as accurate review results; if not, full-text retrieval is used for secondary review to replace the pending review results.

[0022] Preferably, the ISREL, ISSUP and ISUSE are judgments written in the model prompt.

[0023] Preferably, if Figure 3 As shown, the use of full-text search for secondary review to replace the pending review results includes the following steps:

[0024] S6001: Perform sliding window search on the input and evidence of the review model, and join the previous and next texts of the retrieved text block together to form a large text;

[0025] S6002: Split the large text into text sentences, text keywords and text summaries, and create an index to the large text;

[0026] S6003: Text sentences, text keywords and text summaries are used to form tree nodes and perform cosine similarity retrieval, and the same-level and / or parent-child nodes of the tree nodes are returned as supplementary information according to the rules;

[0027] S6004: Based on the supplementary information returned, the review results are updated and output.

[0028] Beneficial effects: The present invention proposes a document index review method based on a large model. Through the combination of a vector database and a large model, it can quickly match the document to be tested with the national standard file; using a large model (OpenAI's model) for review can more accurately determine whether the document meets the national standard, thereby improving the accuracy and consistency of the review; by retrieving titles and texts one by one, and splitting text blocks from large to small, fine-grained document review can be achieved to ensure that each text unit is carefully checked. For parts that are not satisfactory with the initial review results, the system can conduct a secondary review, gradually optimize the review results, and ensure that the final output results are more in line with expectations. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a flow chart of a preferred embodiment of the present invention;

[0030] Figure 2 This is a schematic diagram of one-by-one retrieval in a preferred embodiment of the present invention;

[0031] Figure 3 It is a schematic diagram of full-text retrieval of a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0032] The embodiments of the present invention are described in detail below. The following embodiments are implemented on the premise of the technical solution of the present invention, and detailed implementation methods and specific operation processes are given, but the protection scope of the present invention is not limited to the following embodiments.

[0033] The present invention designs a document index review method based on a large model, and the technical solution comprises the following steps, specifically including:

[0034] S10: Collect national standard documents;

[0035] S20: Unify the national standard documents and store them in the vector database;

[0036] S30: searching for a corresponding national standard file in a vector database based on the document to be detected;

[0037] S40: Searching the titles and texts of the documents to be tested one by one, with title search being the priority and text search being the auxiliary, and searching by dividing the text blocks from large to small, with the goal of searching for the text correspondence between the smallest unit of the document to be tested and the corresponding national standard document;

[0038] S50: The review model based on OpenAI outputs the review results. The document to be tested is used as the input of the review model, and the corresponding national standard document is used as the evidence of the review model to output the review results.

[0039] S60: Provide feedback and judgment on the review results, and conduct a second review and replace the review results if they do not meet the feedback judgment;

[0040] S70: Organize the review results and form a fine-tuning dataset.

[0041] Preferably, S10 includes using a web crawler program to crawl national standard documents from the official website of national standards.

[0042] Preferably, S10 also includes performing PDF to image watermark removal processing and layout recovery document restoration processing on the national standard document;

[0043] The PDF to image watermark removal process includes using image conversion technology to convert the PDF file of the national standard document into PNG format images page by page, and using pixel modification technology to identify the PNG format images and remove the official red watermark.

[0044] Preferably, the layout recovery document restoration process includes using optical OCR technology to accurately locate, restore the layout and extract the structure of the text content in the PNG format image, and based on deep learning technology to identify and reconstruct the original layout of the document, including the position and hierarchical relationship of the image elements in the PNG format, and convert it into an editable DOCX format document.

[0045] Preferably, S20 includes: extracting indicators from the national standard document, forming an indicator tree text in json format according to the title level distinction, embedding the text content using an embedding model, and storing the position information and parent-child information associations of the vector and the document tree in the ES vector database, wherein the input parameter dims is the vector length, which is 768 dimensions, and the field is of text type for configuring the bm25 algorithm retrieval.

[0046] Specifically, after obtaining a set of enterprise performance indicators to be tested, S30 searches the entire vector database for each document content one by one, and expands the text-level search to the document-level search by calculating the number of document names that reach the threshold for each text block. Then, some potentially relevant documents will be obtained, and the user can manually select or lock the document with the highest score by default. This method greatly reduces the time users spend searching for documents, which is equivalent to a full knowledge base document search function.

[0047] In addition, S40 Figure 2 As shown, the title search in S40 is a hybrid search, which uses cosine similarity search combined with bm25 word frequency search. The reason why text search is a separate cosine similarity search is that bm25 is difficult to calculate the degree of compliance with the threshold.

[0048] Preferably, S60 includes the following steps:

[0049] S601: Calculate the similarity ISREL between the input and the evidence, and calculate the support ISSUP between the input of the review model, the review results and the evidence;

[0050] S602: Determine whether the similarity ISREL and the support LSSUP are greater than or equal to a preset threshold. If yes, feedback is given as a pending review result and step S6003 is executed; if no, feedback is given as an incorrect review result;

[0051] S603: Calculate the applicability ISUSE of the input and review results and determine whether it is greater than or equal to the preset threshold. If yes, the pending review results are further fed back as accurate review results; if not, full-text retrieval is used for secondary review to replace the pending review results.

[0052] Preferably, ISREL, ISSUP, and ISUSE are judgments written in the model prompt, as shown in the following table:

[0053]

[0054]

[0055] Preferably, if Figure 3 As shown in the figure, the second review using full-text search to replace the pending review results includes the following steps:

[0056] S6001: Perform sliding window search on the input and evidence of the review model, and join the previous and next texts of the retrieved text block together to form a large text;

[0057] S6002: Split the large text into text sentences, text keywords and text summaries, and create an index to the large text;

[0058] S6003: Text sentences, text keywords and text summaries are used to form tree nodes and perform cosine similarity retrieval, and the same-level and / or parent-child nodes of the tree nodes are returned as supplementary information according to the rules;

[0059] S6004: Based on the supplementary information returned, the review results are updated and output.

[0060] Specifically, the model is used to calculate ISREL and ISSUP. Determine whether the sum of the similarity score and the support score is greater than or equal to 4. If it is, it means that there is no problem with the retrieval standard content. Then determine the applicability ISUSE of the content to be tested and the review results, and determine whether the size of the applicability is greater than or equal to 4. If it is greater than or equal to the threshold, it is an accurate or relatively accurate output. If it is less than the threshold, repeat this operation three times. (Due to the temperature of the model, the return of each call is different, so it can be executed repeatedly.) When the similarity score and the support score are less than the threshold, it means that the retrieved evidence is incorrect, and full-text search is used for review.

[0061] In addition, S70 includes review results, re-search, re-examination and review result modification opinions written by professional reviewers based on the above indicator documents. A data set file that conforms to the large model fine-tuning format is generated using a python automation script. This file will contain all processed medical device indicators and review results, providing accurate and standardized data input for the fine-tuning of the large model.

[0062] The preferred specific embodiments of the present invention are described in detail above. It should be understood that ordinary technicians in the field can make many modifications and changes based on the concept of the present invention without creative work. Therefore, all technical solutions that can be obtained by technicians in the technical field based on the concept of the present invention through logical analysis, reasoning or limited experiments on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. A document index review method based on a large model, It is characterized in that The following steps are involved: S10: Collect national standard documents; S20: performing unified processing on the national standard file and storing it in a vector database; S30: searching for a corresponding national standard file in the vector database based on the document to be detected; S40: Searching the title and text of the document to be detected one by one, with title retrieval as priority and text retrieval as auxiliary, splitting the text blocks from large to small for retrieval, aiming to retrieve the text correspondence relationship of the smallest unit of the document to be detected and the corresponding national standard file; S50: outputting a review result based on the review model of OpenAI, wherein the document to be tested is used as input of the review model, and the corresponding national standard document is used as evidence of the review model, and the review result is output; S60: Feedback the review results, and conduct a second review to replace the review results that do not meet the feedback judgment; S70: Organize the review results and form a fine-tuning dataset.

2. According to the document index review method based on the big model described in claim 1, It is characterized in that The S10 includes using a web crawler program to crawl national standard documents from the official website of national standards.

3. According to the document index review method based on the big model described in claim 2, It is characterized in that The S10 also includes performing a PDF to image watermark removal process and a layout recovery document restoration process on the national standard document; The PDF to image watermark removal process includes using image conversion technology to convert the PDF file of the national standard document into a PNG format image page by page, and using pixel modification technology to identify the PNG format image and remove the official red watermark.

4. According to the document index review method based on the big model described in claim 3, It is characterized in that The layout recovery document restoration process includes using optical OCR technology to accurately locate, restore the layout and extract the structure of the text content in the PNG format image, and based on deep learning technology to identify and reconstruct the original layout of the document, including the position and hierarchical relationship of the image elements in the PNG format, and convert it into an editable DOCX format document.

5. According to the document index review method based on the big model as described in claim 1, It is characterized in that The S20 includes: extracting the indicators in the national standard document, forming an indicator tree text in json format according to the title level distinction, using the embedding model to embed the text content, and storing the position information and parent-child information association of the vector and the document tree in the ES vector database, wherein the input parameter dims is the vector length, which is 768 dimensions, and the field is of text type for configuring the bm25 algorithm retrieval.

6. According to the document index review method based on the big model described in claim 1, It is characterized in that The S60 includes the following steps: S601: Calculate the similarity ISREL between the input and the evidence, and calculate the support ISSUP between the input of the review model, the review results and the evidence; S602: Determine whether the similarity ISREL and the support LSSUP are greater than or equal to a preset threshold. If yes, feedback is given as a pending review result and step S6003 is executed; if no, feedback is given as an incorrect review result; S603: Calculate the applicability ISUSE of the input and review results and determine whether it is greater than or equal to the preset threshold. If yes, the pending review results are further fed back as accurate review results; if not, full-text retrieval is used for secondary review to replace the pending review results.

7. According to the document index review method based on the big model of claim 6, It is characterized in that The ISREL, ISSUP, and ISUSE are judgments written in the model prompt.

8. According to the document index review method based on the big model as described in claim 7, It is characterized in that The use of full-text search to conduct a second review to replace the pending review results includes the following steps: S6001: Perform sliding window search on the input and evidence of the review model, and join the previous and next texts of the retrieved text block together to form a large text; S6002: Split the large text into text sentences, text keywords and text summaries, and create an index to the large text; S6003: Text sentences, text keywords and text summaries are used to form tree nodes and perform cosine similarity retrieval, and the same level and / or parent-child nodes of the tree nodes are returned as supplementary information according to the rules; S6004: Based on the supplementary information returned, the review results are updated and output.

Citation Information

Cited By

  • Project document data processing method and system for intelligent review

    CN119293248A

  • Engineering document index consistency proofreading method and system based on multi-modal large model

    CN121145835A

  • Intelligent text evaluation system based on artificial intelligence

    CN121786178A