Resume analysis method and device based on RAG model, equipment and medium
Through the resume parsing method based on the RAG model, resumes in different formats are processed, which solves the problems of low parsing accuracy and efficiency in the existing technology, realizes efficient and flexible resume information extraction, adapts to multiple languages and formats, and reduces maintenance costs.
Patent Information
- Application Number
- CN202411240494.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-10-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing resume parsing technology has low parsing accuracy and efficiency when faced with resumes with diverse formats and complex content, and relies on rule matching and natural language processing, which suffers from insufficient flexibility and high maintenance costs.
The resume parsing method based on the RAG model is used to process resumes in different formats through the format recognition and conversion module, layout recognition model, and partition model to extract key information and improve parsing accuracy and efficiency.
It improves the accuracy and efficiency of resume parsing, reduces computing resource consumption, supports multiple languages and formats, enhances the adaptability and versatility of the system, and lowers maintenance costs.
Smart Images

Figure CN118761382A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of resume parsing, and in particular to a resume parsing method, device, equipment and medium based on a RAG model. Background Art
[0002] With the development of informatization and digitalization, resume parsing technology plays an increasingly important role in recruitment management, human resource management and other fields. Existing resume parsing technology is usually based on rule matching, natural language processing (NLP) and machine learning methods to achieve automatic extraction, analysis and structured processing of electronic resume content. However, there are still many problems and shortcomings in existing resume parsing technology, mainly as follows: 1. Poor resume format compatibility: In the face of resumes with diverse formats and complex contents, the effect of existing resume parsing software is poor and the parsing error rate is high; 2. Using pdfminer or pdfplumber or OCR technology to parse resumes, the accuracy and efficiency of parsing are low; 3. Relying on rule matching and natural language processing technology for information extraction has certain limitations, for example, the flexibility of rule matching is insufficient and the maintenance cost is high, while natural language processing technology. Summary of the invention
[0003] The embodiments of the present invention provide a resume parsing method, device, equipment and medium based on the RAG model, aiming to solve the problem of low accuracy and efficiency of existing resume parsing.
[0004] In a first aspect, an embodiment of the present invention provides a resume parsing method based on a RAG model, which includes: Extracting a resume to be parsed from a resume database and identifying the format of the resume to be parsed; If the format of the resume to be parsed is the first preset format, the resume to be parsed is processed by the first format conversion module and the RAG model to obtain the first resume information; If the format of the resume to be parsed is the second preset format, the resume to be parsed is processed by the second format conversion module, the layout recognition model, the partition model and the RAG model to obtain the second resume information.
[0005] In a second aspect, an embodiment of the present invention further provides a resume parsing device based on a RAG model, which includes: An extraction unit, used to extract the resume to be parsed from the resume database and identify the format of the resume to be parsed; A first processing unit, configured to process the resume to be parsed through a first format conversion module and a RAG model to obtain first resume information if the format of the resume to be parsed is a first preset format; The second processing unit is used to process the resume to be parsed through the second format conversion module, the layout recognition model, the partition model and the RAG model to obtain the second resume information if the format of the resume to be parsed is the second preset format.
[0006] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.
[0007] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.
[0008] The embodiment of the present invention provides a resume parsing method, device, equipment and medium based on the RAG model. The method includes: extracting the resume to be parsed from the resume database, and identifying the format of the resume to be parsed; if the format of the resume to be parsed is the first preset format, the resume to be parsed is processed by the first format conversion module and the RAG model to obtain the first resume information; if the format of the resume to be parsed is the second preset format, the resume to be parsed is processed by the second format conversion module, the layout recognition model, the partition model and the RAG model to obtain the second resume information. The technical solution of the embodiment of the present invention is that for the resume to be parsed in the first preset format, the first resume information is obtained by processing it through the first format conversion module and the RAG model; for the resume to be parsed in the second preset format, the second resume information is obtained by processing it through the second format conversion module, the layout recognition model, the partition model and the RAG model, that is, different processing is performed on resumes to be parsed in different formats, thereby improving the accuracy and efficiency of resume parsing. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technical users in the field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0010] Figure 1 A schematic diagram of a resume parsing method based on a RAG model provided in an embodiment of the present invention; Figure 2 A sub-process diagram of a resume parsing method based on a RAG model provided in an embodiment of the present invention; Figure 3A sub-process diagram of a resume parsing method based on a RAG model provided in an embodiment of the present invention; Figure 4 A sub-process diagram of a resume parsing method based on a RAG model provided in an embodiment of the present invention; Figure 5 A sub-process diagram of a resume parsing method based on a RAG model provided in an embodiment of the present invention; Figure 6 A sub-process diagram of a resume parsing method based on a RAG model provided in an embodiment of the present invention; Figure 7 A schematic block diagram of a resume parsing device based on a RAG model provided by an embodiment of the present invention; Figure 8 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0011] 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 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 technical users in the field without creative work are within the scope of protection of the present invention.
[0012] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0013] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0014] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0015] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0016] See also Figure 1 , Figure 1 1 is a flow chart of a resume parsing method based on a RAG model provided by an embodiment of the present invention. The resume parsing method based on a RAG model in an embodiment of the present invention can be applied to a computer device, for example, the resume parsing method based on a RAG model can be implemented by a software program configured on the computer device. Figure 1 As shown, the method includes the following steps S110-S130.
[0017] S110, extracting a resume to be parsed from a resume database, and identifying the format of the resume to be parsed.
[0018] In the embodiment of the present invention, resumes in various formats are first imported into a resume database, and then the resume to be parsed is extracted from the resume database, and the format of the resume to be parsed is identified. It should be noted that in this embodiment, the format of the resume in the resume database includes but is limited to any one of Html (HyperText Markup Language, Hypertext Markup Language), Word, PDF, and Eml (email format file).
[0019] S120. If the format of the resume to be parsed is a first preset format, the resume to be parsed is processed by a first format conversion module and a RAG model to obtain first resume information.
[0020] In an embodiment of the present invention, if the format of the resume to be parsed is identified as a first preset format, the resume to be parsed is processed by a first format conversion module and a RAG model to obtain first resume information, wherein the first preset format is a Word format, and the first format conversion module is a "Python-Docx" module. The Python-Docx module is a Python library for creating and updating Word files, which allows the use of the Python programming language to operate Word documents, thereby parsing the resume to be parsed and extracting the text content in the resume to be parsed.
[0021] Specifically, Figure 2As shown, step S120 includes steps S121-S122: S121. If the format of the resume to be parsed is the Word format, the resume to be parsed is parsed by the first format conversion module to extract the text content in the resume to be parsed; S122. The key information in the text content is extracted by the RAG model to obtain the first resume information. It should be noted that, in the present embodiment, the RAG (Retrieval-Augmented Generation) model is a natural language processing model that combines information retrieval and text generation technology. It should also be noted that, in the present embodiment, the following steps are also included before step S122: detecting whether there is a table in the text content; if the table exists in the text content, detecting whether the table is a merged cell; If the table is the merged cell, the merged cell in the text content is split into basic cells. Understandably, if the table is not the merged cell, there is no need to split the table.
[0022] S130. If the format of the resume to be parsed is the second preset format, the resume to be parsed is processed by a second format conversion module, a layout recognition model, a partition model and the RAG model to obtain second resume information.
[0023] In an embodiment of the present invention, if the format of the resume to be parsed is identified as the second preset format, the resume to be parsed is processed by the second format conversion module, the layout recognition model, the partition model and the RAG model to obtain the second resume information, wherein the second preset format is the PDF format, and the second format conversion module is the "LayoutParser" module. The "LayoutParser" module is an open source Python library for parsing and extracting layout information in PDF documents. It uses a deep learning model to identify text, tables and other graphic elements on PDF pages, and converts them into structured data formats, such as JSON or XML data formats. Understandably, in this embodiment, if the format of the resume to be parsed is not the first preset format and the second preset format, indicating that the format of the resume to be parsed is the Html format or the Eml format, the resume to be parsed is parsed according to the existing resume parsing method.
[0024] Specifically, Figure 3As shown, step S130 includes steps S131-S132: S131, if the format of the resume to be parsed is the PDF format, the resume to be parsed is processed by the second format conversion module and the layout recognition model to obtain the target layout; S132, the target layout is processed by the partition model and the RAG model to obtain the second resume information. It should be noted that, in this embodiment, the layout recognition model is a model obtained by training and verifying the Detectron2 algorithm model through a sample PDF format resume set, wherein the Detectron2 algorithm model provides a very wide range of visual task model libraries including target detection, instance segmentation, panoptic segmentation, etc. Specifically, the training and verification steps are as follows: divide the sample resume set in PDF format into a training data set and a verification data set; input the training data set into the Detectron2 algorithm model for training; input the verification data set into the trained Detectron2 algorithm model for verification to output a verification layout analysis result; determine whether the trained Detectron2 algorithm model can be used as the layout recognition model based on the verification layout analysis result and the layout analysis result in the verification data set. It should also be noted that in this embodiment, the layout analysis accuracy is calculated based on the verification layout analysis result and the layout analysis result in the verification data set. If the layout analysis accuracy is greater than the preset layout analysis accuracy, the trained Detectron2 algorithm model is used as the layout recognition model; conversely, if the layout analysis accuracy is not greater than the preset layout analysis accuracy, the Detectron2 algorithm model is continuously trained after modifying the training parameters until the layout analysis accuracy is greater than the preset layout analysis accuracy.
[0025] Furthermore, if Figure 4As shown, step S131 includes steps S1311-S1313: S1311, parsing the resume to be parsed through the second format conversion module to extract the text content in the resume to be parsed and the text coordinate position corresponding to the text content; S1312, cutting the resume to be parsed into pictures to be parsed by page, and performing layout analysis on the pictures to be parsed through the layout recognition model to identify the layout elements in the pictures to be parsed, wherein the layout elements include text blocks; S1313, restoring the text blocks to the layout elements according to the text coordinate positions to generate the target layout. It should be noted that, in this embodiment, the resume to be parsed is parsed through the second format conversion module, and in addition to extracting the text content in the resume to be parsed and the text coordinate position corresponding to the text content, the document page number and the document image are also extracted; the layout elements also include tables and images. It should also be noted that, in this embodiment, the text blocks, tables and images in the target layout all correspond to their coordinate positions.
[0026] Furthermore, the partition model is a model obtained by training and verifying the BERT (Bidirectional Encoder Representations from Transformers) model through manually annotated layout partition sets. The core of the BERT model is based on the Transformer architecture and is implemented through a multi-layer Transformer encoder. It uses bidirectional context to pre-train the model so that it can better understand and capture contextual information in sentences. Figure 5As shown, step S132 includes steps S1321-S1322: S1321, classifying the target layout through the BERT model to obtain a plurality of different layout partitions; S1322, for each of the layout partitions, extracting the key information in the layout partition through the RAG model to obtain the second resume information. It should be noted that, in this embodiment, the plurality of different layout partitions may be partitions such as personal information area, educational background area, work experience area, and academic achievement area. The steps of training and verifying the BERT model according to the manually annotated layout partition set are as follows: dividing the manually annotated layout partition set into a training data set and a verification data set; inputting the training data set into the BERT model for training; inputting the verification data set into the trained BERT model for verification to output the verification partition result; judging whether the trained BERT model can be used as the partition model according to the verification partition result and the partition result in the verification data set. It should also be noted that, in this embodiment, the classification accuracy is calculated based on the verification partition result and the partition result in the verification data set. If the classification accuracy is greater than the preset classification accuracy, the trained BERT model is used as the layout recognition model; otherwise, if the classification accuracy is not greater than the preset classification accuracy, the BERT model is continuously trained after the training parameters are modified until the classification accuracy is greater than the preset classification accuracy. It should also be noted that, in this embodiment, for each of the layout partitions, the key information in the layout partition is extracted through the RAG model to obtain the second resume information. Specifically, if it is a personal information area, the name, contact information, address and other key information are extracted through the RAG model; if it is an education background area, the education, school name, major, graduation time and other information are extracted through the RAG model; if it is a work experience area, the company name, position, working hours, job description and other information are extracted through the RAG model. It can be understood that the layout partition can be regarded as primary information, and the key information extracted from the layout partition can be regarded as secondary information.
[0027] Figure 6 A schematic diagram of a resume parsing method based on a RAG model provided in another embodiment of the present invention is shown in FIG. Figure 6 As shown, in this embodiment, the method includes steps S110-S160. That is, in this embodiment, after step S130 of the above embodiment, the method further includes steps S140-S160.
[0028] S140, saving the first resume information and / or the second resume information in a preset structure form to the resume database; S150, querying the first resume information and the second resume information in the resume database through a preset query interface; S160: If it is detected that a resume in the resume database has changed, the changed resume is used as the resume to be parsed, and the step of identifying the format of the resume to be parsed is performed.
[0029] In an embodiment of the present invention, after generating the first resume information and / or the second resume information, the first resume information and / or the second resume information are saved in the resume database in a preset structure format, wherein the preset result format is in JSON format, and the resume database is a relational database, such as MySQL. An external system can query the first resume information and the second resume information in the resume database through a preset query interface to perform resume analysis; it can be understood that the resume database is monitored in real time, and if it is detected that the resume in the resume database has changed, the changed resume is used as the resume to be parsed, and the step of identifying the format of the resume to be parsed is performed to timely update the resume parsing information to ensure the real-time and accuracy of the data.
[0030] In summary, the resume parsing method based on the RAG model provided by this embodiment has the following advantages: 1. Improved accuracy and efficiency of resume parsing: The layout recognition model can be used to identify the layout of the PDF document, the partition model can be used to partition the layout, and the RAG model can be used to extract key information, which improves the accuracy and efficiency of parsing PDF resumes with complex content, and reduces the consumption of computing resources during the parsing process; 2. It can accurately parse resumes in multiple languages including Chinese and English, and supports resumes in multiple formats (such as PDF, Word, etc.). This multi-language and multi-format support capability enhances the adaptability and versatility of the system and can meet the needs of different application scenarios; 3. Improved flexibility and scalability, through modular design and adjustment of various model parameters, supports the processing of cross-industry and cross-regional resumes, and has good scalability and flexibility; 4. Low maintenance cost. It should be noted that the implementation of the resume parsing method based on the RAG model provided in this embodiment also requires high-performance computer equipment and large-capacity storage equipment. The close cooperation of hardware facilities and software methods ensures efficient operation when processing large amounts of resume data.
[0031] Figure 7 FIG. 2 is a schematic block diagram of a resume parsing device 200 based on a RAG model provided by an embodiment of the present invention. Figure 7As shown, corresponding to the resume parsing method based on the RAG model, the present invention also provides a resume parsing device 200 based on the RAG model. The resume parsing device 200 based on the RAG model includes a unit for executing the resume parsing method based on the RAG model. Figure 7 The resume parsing device 200 based on the RAG model includes an extraction unit 201, a first processing unit 202 and a second processing unit 203.
[0032] Among them, the extraction unit 201 is used to extract the resume to be parsed from the resume database and identify the format of the resume to be parsed; the first processing unit 202 is used to process the resume to be parsed through the first format conversion module and the RAG model to obtain the first resume information if the format of the resume to be parsed is the first preset format; the second processing unit 203 is used to process the resume to be parsed through the second format conversion module, the layout recognition model, the partition model and the RAG model to obtain the second resume information if the format of the resume to be parsed is the second preset format.
[0033] In some embodiments, such as this embodiment, the first processing unit 202 includes a first parsing and extracting unit and a first extracting unit.
[0034] Among them, the first parsing and extraction unit is used to parse the resume to be parsed through the first format conversion module if the format of the resume to be parsed is the Word format, so as to extract the text content in the resume to be parsed; the first extraction unit is used to extract key information in the text content through the RAG model to obtain the first resume information.
[0035] In some embodiments, such as the present embodiment, the first extraction unit also includes a first detection unit, a second detection unit and a splitting unit.
[0036] Among them, the first detection unit is used to detect whether there is a table in the text content; the second detection unit is used to detect whether the table is a merged cell if the table exists in the text content; and the splitting unit is used to split the merged cell in the text content into basic cells if the table is the merged cell.
[0037] In some embodiments, such as this embodiment, the second processing unit 203 includes a first processing sub-unit and a second processing sub-unit.
[0038] Among them, the first processing sub-unit is used for processing the resume to be parsed through the second format conversion module and the layout recognition model to obtain the target layout if the format of the resume to be parsed is the PDF format; the second processing sub-unit is used for processing the target layout through the partition model and the RAG model to obtain the second resume information.
[0039] In some embodiments, such as the present embodiment, the first processing sub-unit includes a second parsing and extraction unit, a cutting and analysis unit, and a restoration and generation unit.
[0040] Among them, the second parsing and extraction unit is used to parse the resume to be parsed through the second format conversion module to extract the text content in the resume to be parsed and the text coordinate position corresponding to the text content; the cutting and analysis unit is used to simultaneously cut the resume to be parsed into pages to be parsed, and perform layout analysis on the picture to be parsed through the layout recognition model to identify the layout elements in the picture to be parsed, wherein the layout elements include text blocks; the restoration generation unit is used to restore the text block to the layout element according to the text coordinate position to generate the target layout.
[0041] In some embodiments, such as the present embodiment, the second processing subunit includes a classification unit and an extraction unit.
[0042] Among them, the classification unit is used to classify the target layout through the BERT model to obtain multiple different layout partitions; the extraction unit is used to extract key information in the layout partition through the RAG model for each of the layout partitions to obtain the second resume information.
[0043] In some embodiments, such as the present embodiment, the resume parsing device 200 based on the RAG model further includes a storage unit, a query unit, and a monitoring execution unit.
[0044] Among them, the saving unit is used to save the first resume information and / or the second resume information in a preset structure form to the resume database; the query unit is used to query the first resume information and the second resume information in the resume database through a preset query interface; the detection execution unit is used to monitor that the resume in the resume database has changed, then use the changed resume as the resume to be parsed, and execute the step of identifying the format of the resume to be parsed.
[0045] It should be noted that technical users in the relevant field can clearly understand that the specific implementation process of the above-mentioned resume parsing device 200 based on the RAG model and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and conciseness of the description, it will not be repeated here.
[0046] The resume parsing device based on the RAG model can be implemented in the form of a computer program. The computer program can be used in Figure 8 Runs on the computer device shown.
[0047] See also Figure 8 , Figure 8 900 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 900 is a device having a resume parsing function based on a RAG model.
[0048] See also Figure 8 The computer device 900 includes a processor 902 , a memory and an interface 905 connected via a system bus 901 , wherein the memory may include a storage medium 903 and an internal memory 904 .
[0049] The storage medium 903 may store an operating system 9031 and a computer program 9032. When the computer program 9032 is executed, the processor 902 may execute the resume parsing method based on the RAG model.
[0050] The processor 902 is used to provide computing and control capabilities to support the operation of the entire computer device 900 .
[0051] The internal memory 904 provides an environment for the operation of the computer program 9032 in the storage medium 903. When the computer program 9032 is executed by the processor 902, the processor 902 can execute a resume parsing method based on the RAG model.
[0052] The interface 905 is used to communicate with other devices. A user skilled in the art will appreciate that Figure 8 The structure shown in the figure is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device 900 to which the solution of the present application is applied. The specific computer device 900 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0053] The processor 902 is used to run a computer program 9032 stored in the memory to implement any embodiment of the resume parsing method based on the RAG model.
[0054] It should be understood that in the embodiment of the present application, the processor 902 may be a central processing unit (CPU), and the processor 902 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0055] A user of ordinary skill in the art can understand that all or part of the processes in the method for implementing the above embodiment can be completed by instructing related hardware through a computer program. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the wireless communication system to implement the process steps of the embodiment of the above method.
[0056] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program. When the computer program is executed by a processor, the processor executes any embodiment of the resume parsing method based on the RAG model.
[0057] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.
[0058] A user of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, wireless communication software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical users can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0059] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0060] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0061] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technical user familiar with the technical field can easily think of various equivalent modifications or substitutions within the technical scope disclosed by the present invention, and these modifications or substitutions should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A resume parsing method based on the RAG model, characterized in that: include: Extracting a resume to be parsed from a resume database and identifying the format of the resume to be parsed; If the format of the resume to be parsed is the first preset format, the resume to be parsed is processed by the first format conversion module and the RAG model to obtain the first resume information; If the format of the resume to be parsed is the second preset format, the resume to be parsed is processed by the second format conversion module, the layout recognition model, the partition model and the RAG model to obtain the second resume information.
2. The resume parsing method based on the RAG model according to claim 1, characterized in that: The first preset format is a Word format. If the format of the resume to be parsed is the first preset format, the resume to be parsed is processed by a first format conversion module and a RAG model to obtain first resume information, including: If the format of the resume to be parsed is the Word format, the resume to be parsed is parsed by the first format conversion module to extract text content in the resume to be parsed; The key information in the text content is extracted through the RAG model to obtain the first resume information.
3. The resume parsing method based on the RAG model according to claim 2 is characterized in that: Before extracting the key information in the text content by the RAG model to obtain the first resume information, the method further includes: Detecting whether there is a table in the text content; If the table exists in the text content, detecting whether the table is a merged cell; If the table is the merged cell, the merged cell in the text content is split into basic cells.
4. The resume parsing method based on the RAG model according to claim 1, characterized in that: The second preset format is a PDF format. If the format of the resume to be parsed is the second preset format, the resume to be parsed is processed by a second format conversion module, a layout recognition model, a partition model and the RAG model to obtain second resume information, including: If the format of the resume to be parsed is the PDF format, the resume to be parsed is processed by the second format conversion module and the layout recognition model to obtain a target layout; The target layout is processed by the partition model and the RAG model to obtain the second resume information.
5. The resume parsing method based on the RAG model according to claim 4 is characterized in that: The step of processing the resume to be parsed by the second format conversion module and the layout recognition model to obtain a target layout includes: Parsing the resume to be parsed by the second format conversion module to extract text content in the resume to be parsed and text coordinate positions corresponding to the text content; At the same time, the resume to be parsed is cut into pages and converted into images to be parsed, and the image to be parsed is subjected to layout analysis by the layout recognition model to identify layout elements in the image to be parsed, wherein the layout elements include text blocks; The text block is restored to the layout element according to the text coordinate position to generate the target layout.
6. The resume parsing method based on the RAG model according to claim 4 is characterized in that: The partition model is a model obtained by training and verifying the BERT model through a manually annotated layout partition set, and the second resume information is obtained by processing the target layout through the partition model and the RAG model, including: Classifying the target layout by the BERT model to obtain a plurality of different layout partitions; For each of the layout partitions, the key information in the layout partition is extracted through the RAG model to obtain the second resume information.
7. The resume parsing method based on the RAG model according to any one of claims 1 to 6, characterized in that: The method further comprises: Saving the first resume information and / or the second resume information in a preset structure form to the resume database; Query the first resume information and the second resume information in the resume database through a preset query interface; If it is monitored that the resume in the resume database has changed, the changed resume will be used as the resume to be parsed, and the step of identifying the format of the resume to be parsed will be performed.
8. A resume parsing device based on the RAG model, characterized in that: include: An extraction unit, used to extract the resume to be parsed from the resume database and identify the format of the resume to be parsed; A first processing unit, configured to process the resume to be parsed through a first format conversion module and a RAG model to obtain first resume information if the format of the resume to be parsed is a first preset format; The second processing unit is used to process the resume to be parsed through the second format conversion module, the layout recognition model, the partition model and the RAG model to obtain the second resume information if the format of the resume to be parsed is the second preset format.
9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 can be implemented.
Citation Information
Patent Citations
Method and device for deriving data
CN106777290A
Document information analysis method and device, computer equipment and storage medium
CN117095422A
Model file analysis method and device, electronic equipment and storage medium
CN118246434A
File layout analysis and picture information extraction method for big language model RAG questions and answers
CN118364785A
Cited By
Automatic recruitment robot system based on large model RAG and fine tuning
CN119048040A
PDF file parsing method and apparatus, electronic device, and storage medium
WO2026081575A1
