Single document consistency auditing method, device and equipment and storage medium
By automating the document consistency verification process through a multi-agent architecture, the problem of low efficiency in manual verification is solved, and efficient and reliable document consistency verification is achieved.
Patent Information
- Application Number
- CN202611362238.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-03
- Publication Date
- 2026-11-27
AI Technical Summary
The existing document consistency verification relies on manual serial processing, which results in low efficiency and insufficient reliability, making it difficult to cope with the business pressure during peak periods and ensure verification consistency.
A multi-agent architecture is adopted for document consistency verification. By classifying documents, extracting elements, and parsing clauses in a structured manner, verification tasks are generated and distributed in parallel to rule verification, numerical calculation, and semantic verification agents. Combined with preset routing rules, automated and intelligent verification is achieved.
It improves the efficiency and reliability of document consistency verification, reduces reliance on manual intervention, and enhances the ability to adapt to complex clause scenarios and process diverse documents.
Smart Images

Figure CN123180927A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of artificial intelligence technology, and in particular to a method, apparatus, device, and storage medium for document consistency verification. Background Technology
[0002] Document consistency verification is a core step in international trade settlement. It involves verifying whether the commercial documents submitted by the beneficiary (such as invoices, bills of lading, insurance policies, etc.) conform to the requirements of the letter of credit. This is a crucial basis for banks to determine whether to fulfill their payment obligations. With the continuous expansion of global trade, bank document centers need to process a massive number of incoming documents daily, leading to a surge in the workload of verification.
[0003] Currently, document consistency verification primarily relies on manual review. This method depends on reviewers meticulously comparing letter of credit terms with commercial documents, judging consistency based on their professional experience. However, as letter of credit terms become increasingly complex and document types more diverse, the drawbacks of manual review become increasingly apparent. First, manual comparison is a sequential process with long review cycles, making it difficult to handle peak-hour workloads and turning document processing efficiency into a bottleneck. Second, review quality is highly dependent on individual experience and easily affected by subjective factors such as fatigue and emotions; different reviewers may have different judgments on the same transaction, making it difficult to guarantee consistency. Therefore, it is clear that the existing document consistency verification methods are inefficient and unreliable.
[0004] Therefore, there is an urgent need for a document consistency verification method that can improve the efficiency and reliability of the verification process. Summary of the Invention
[0005] The main objective of this invention is to provide a method, apparatus, device, and storage medium for document consistency verification, aiming to solve the technical problem that existing document consistency verification relies on manual serial processing, resulting in insufficient efficiency and reliability.
[0006] To achieve the above objectives, the present invention provides a method for verifying the consistency of documents, the method comprising the following steps: Obtain the images of the documents to be reviewed and the corresponding letter of credit terms, classify the document images, and determine the document type corresponding to the document images; Based on the document type, document elements are extracted from the document image, and the terms in the letter of credit are parsed to obtain structured terms data. Based on the document elements and the structured terms data, an audit task is generated, and the audit task is distributed to multiple target audit agents according to a preset routing rule; The audit tasks are executed in parallel by each of the target audit agents to obtain the audit sub-results of each target audit agent, and an audit report is generated based on each audit sub-result.
[0007] Optionally, the step of generating an audit task based on the document elements and the structured terms data, and distributing the audit task to multiple target audit agents according to preset routing rules, includes: The document elements and structured clause data are associated and assembled through the clause submission intelligent agent to generate a review task; Based on the characteristics of the clauses in the review task, the clause submission agent matches the corresponding target review agent from the preset routing rule base. The target review agent includes at least one of the rule review agent, numerical calculation agent, and semantic review agent. Based on the matching results, the review tasks are distributed in parallel to each of the target review agents.
[0008] Optionally, the step of obtaining the review sub-results of each target review agent by executing the review task in parallel through each target review agent includes: The rule-reviewing intelligent agent performs rule verification on the deterministic clauses in the review task to obtain rule review sub-results; The numerical calculation agent performs numerical calculations and comparisons on the numerical clauses in the audit task to obtain numerical audit sub-results. The semantic auditing agent performs semantic consistency analysis and business intent identification on the textual clauses in the auditing task to obtain semantic auditing sub-results. The rule review sub-result, the numerical review sub-result, and the semantic review sub-result are taken as each review sub-result.
[0009] Optionally, after the step of obtaining the review sub-results of each of the target review agents by executing the review task in parallel, the method further includes: The audit sub-results are cross-compared to obtain the cross-comparison results; When the cross-comparison results indicate that there is a conflict among the audit sub-results, the conflict resolution process is performed on each audit sub-result based on the hierarchical conflict resolution mechanism to obtain the resolved audit sub-result.
[0010] Optionally, the step of performing conflict resolution processing on each of the audit sub-results based on the hierarchical conflict resolution mechanism to obtain the resolved audit sub-results includes: Determine the clause complexity attribute corresponding to the conflict in each of the aforementioned audit sub-results; When the complexity attribute of the clause is represented as a simple clause, the adjudication is made based on the priority order of each target review agent to obtain the resolved review sub-result. When the complexity attribute of the clause is represented as a complex clause, the expert rule base is queried to obtain a resolution suggestion that matches the current conflict characteristics, and the resolution sub-result is obtained based on the resolution suggestion; When the decision based on the priority order and the expert rule base fail to resolve the conflict, a manual review process is triggered. The result of the manual review is used as the resolved audit sub-result, and the result of the manual review is fed back to the expert rule base.
[0011] Optionally, the step of obtaining the document image to be reviewed and the corresponding letter of credit terms, classifying the document image, and determining the document type corresponding to the document image includes: Obtain images of the documents to be reviewed and the corresponding letter of credit terms; The document images are classified by a document classification intelligent agent, and the document type corresponding to the document images is determined based on the classification results; Accordingly, the step of extracting document elements from the document image according to the document type and parsing the terms in the letter of credit to obtain structured terms data includes: The document element extraction agent extracts information from the field area corresponding to the document type in the document image according to the document type to obtain document elements. The clause parsing agent parses the clauses in the letter of credit and identifies the clause session type and review point information based on the parsing results. Based on the session type of the clause and the review point information, structured clause data is generated.
[0012] Optionally, the method further includes: Record the processing logs of each target review agent during the execution of the review task, the processing logs including the input data, output data and decision basis information of each target review agent; Based on the processing log, an audit trail is generated, which is used to trace the attribution path of each audit sub-result.
[0013] Furthermore, to achieve the above objectives, the present invention also proposes a document consistency verification device, the device comprising: The document classification module is used to obtain the images of the documents to be reviewed and the corresponding letter of credit terms, classify the document images, and determine the document type corresponding to the document images. The terms parsing module is used to extract document elements from the document image according to the document type, and to parse the terms in the letter of credit to obtain structured terms data. The task distribution module is used to generate audit tasks based on the document elements and the structured terms data, and distribute the audit tasks to multiple target audit agents according to preset routing rules; The task review module is used to execute the review tasks in parallel through each of the target review agents, obtain the review sub-results of each target review agent, and generate a review report based on each of the review sub-results.
[0014] In addition, to achieve the above objectives, the present invention also proposes a document consistency verification device, the device comprising: a memory, a processor, and a document consistency verification program stored in the memory and executable on the processor, the document consistency verification program being configured to implement the steps of the document consistency verification method described above.
[0015] In addition, to achieve the above objectives, the present invention also proposes a storage medium storing a document consistency verification program, wherein the document consistency verification program, when executed by a processor, implements the steps of the document consistency verification method as described above.
[0016] This invention discloses a method for acquiring images of documents to be reviewed and corresponding letter of credit terms, classifying the document images to determine the document type, extracting document elements from the document images according to the document type, parsing the terms in the letter of credit terms to obtain structured term data, generating review tasks based on the document elements and the structured term data, and distributing the review tasks to multiple target review agents according to preset routing rules, executing the review tasks in parallel by each target review agent to obtain review sub-results for each target review agent, and generating review reports based on each review sub-result. Because this invention automates and intelligently reviews document consistency by classifying and recognizing document images, extracting document elements, and parsing structured terms, and by distributing review tasks to multiple agents for parallel execution using preset routing rules, it improves the efficiency and reliability of review compared to existing technologies. Attached Figure Description
[0017] Figure 1 This is a flowchart illustrating the first embodiment of the document consistency verification method of the present invention; Figure 2 This is a schematic diagram of the multi-agent architecture in the document consistency verification method of the present invention; Figure 3 This is a flowchart illustrating the second embodiment of the document consistency verification method of the present invention; Figure 4 This is a flowchart illustrating the third embodiment of the document consistency verification method of the present invention; Figure 5 This is a structural block diagram of the first embodiment of the document consistency verification device of the present invention; Figure 6 This is a schematic diagram of the structure of the document consistency verification device in the hardware operating environment involved in the embodiments of the present invention.
[0018] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0019] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0020] This invention provides a method for verifying document consistency, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the document consistency verification method of the present invention.
[0021] In this embodiment, the document consistency verification method includes steps S10 to S40: Step S10: Obtain the document image to be reviewed and the corresponding letter of credit terms, classify the document image, and determine the document type corresponding to the document image.
[0022] It should be noted that the executing entity in this embodiment can be a computer server device with data processing, network communication, and program execution functions applied in a document review scenario, such as a server, tablet computer, or personal computer, or an electronic device capable of performing the above functions (such as a document consistency review device). The following uses a system containing a document consistency review device (hereinafter referred to as the system) as an example to illustrate this embodiment and the following embodiments.
[0023] It is understood that the aforementioned document images can refer to electronic image files containing the content of commercial documents, such as images obtained by digitizing paper commercial documents using a scanner or document scanner, or image files directly generated from electronic documents. Commercial documents can include various documents involved in international trade settlements, such as invoices, bills of lading, insurance policies, packing lists, and drafts.
[0024] The aforementioned terms of a letter of credit may refer to the various requirements and conditions stipulated in the letter of credit, which is a written document issued by a bank upon application by an importer, promising to make payment on the condition that the documents comply.
[0025] It should be noted that the above document type can refer to the specific category of the commercial document corresponding to the document image, such as invoice type, bill of lading type, insurance policy type, packing list type, or draft type, etc.
[0026] To achieve automatic identification of document types, the steps of acquiring the document image to be reviewed and the corresponding letter of credit terms, classifying the document image, and determining the document type corresponding to the document image may include: acquiring the document image to be reviewed and the corresponding letter of credit terms; classifying the document image through a document classification agent, and determining the document type corresponding to the document image based on the classification result.
[0027] It should be explained that the aforementioned document classification agent can refer to an artificial intelligence agent module with image recognition and classification functions. This agent can receive document images as input, classify the document images through image classification algorithms or machine learning models, and output the corresponding document type classification results.
[0028] In its implementation, the system first acquires the image of the document to be reviewed and the corresponding letter of credit terms. Next, the system invokes a document classification agent, passing the acquired document image as input data. The document classification agent performs a classification operation on the received document image, determining its category by identifying layout features, text identifiers, or layout characteristics of specific field areas. After completing the classification operation, the agent outputs the classification result, and the system determines the document type corresponding to the document image based on this result.
[0029] To facilitate understanding, the following explanation uses examples, but does not impose specific limitations on this embodiment. For instance, in an export document review scenario under a letter of credit, the system obtains an image of a document and the corresponding letter of credit terms. The system inputs the document image into a document classification agent, which performs layout analysis on the image, identifies the presence of the word "INVOICE" at the top of the image, and recognizes invoice-specific fields such as invoice number, amount, and buyer / seller information. Therefore, the system classifies the document image as an invoice type and outputs the classification result. Based on this classification result, the system determines that the document type corresponding to the image is an invoice type.
[0030] Step S20: Extract document elements from the document image according to the document type, and parse the terms in the letter of credit to obtain structured terms data.
[0031] It should be understood that the aforementioned document elements can refer to the key field content extracted from the document image that corresponds to the document type. Different document types correspond to different document elements. For example, document elements for an invoice type may include invoice number, invoice amount, date, goods description, buyer and seller information, and transportation information; document elements for a bill of lading type may include bill of lading number, shipment date, consignee information, shipper information, goods description, and transportation information.
[0032] It should be noted that the aforementioned structured clause data refers to structured information obtained by formatting the unstructured clauses in the letter of credit according to a preset data structure. The structured information can be represented in JSON format and includes clause session identifiers, audit point information, and data fields required for auditing.
[0033] In specific implementation, a document element extraction agent can extract information from the field area corresponding to the document type in the document image to obtain document elements based on the document type; a clause parsing agent can parse the clause content in the letter of credit clauses and identify the clause session type and audit point information in the clause content based on the parsing results; and structured clause data can be generated based on the clause session type and the audit point information.
[0034] It should be explained that the aforementioned document element extraction intelligent agent can refer to an artificial intelligence agent module with information extraction function. This intelligent agent can call the corresponding extraction strategy or extraction template according to the document type to extract key field content from specific field areas in the document image.
[0035] Accordingly, the aforementioned clause parsing agent can refer to an artificial intelligence agent module with natural language processing capabilities, which can perform semantic analysis and information extraction on the unstructured text content in the letter of credit clauses.
[0036] It should be understood that the above-mentioned term type can refer to the term identifier corresponding to the letter of credit terms. The letter of credit terms follow the ISO standard format, and different terms correspond to different business semantics. For example, term 45A corresponds to the goods description terms, term 46A corresponds to the document terms, and term 47A corresponds to the additional conditions terms.
[0037] It should be noted that the above-mentioned audit point information may refer to specific items that need to be audited extracted from the terms and conditions, such as amount audit points, date audit points, document name audit points, transportation information audit points, etc.
[0038] In its implementation, after determining the document type corresponding to the document image through the document classification agent, the system calls the document element extraction agent and passes the document image and the determined document type to the document element extraction agent. The document element extraction agent, based on the received document type, matches the extraction strategy corresponding to the document type from a set of preset extraction strategies, and performs targeted information extraction on the field areas in the document image corresponding to the document type according to the matched extraction strategy, thus obtaining document elements. Simultaneously with obtaining the document elements, the system also calls the clause parsing agent to parse the clause content in the letter of credit. The clause parsing agent performs semantic analysis and information extraction on the received clause content, identifying the clause session type and the audit point information contained in the clause based on the parsing results. Subsequently, based on the identified clause session type and audit point information, the clause parsing agent converts the unstructured clause text into structured clause data according to a preset data structure and outputs the structured clause data.
[0039] Step S30: Generate an audit task based on the document elements and the structured terms data, and distribute the audit task to multiple target audit agents according to preset routing rules.
[0040] It is understood that the aforementioned audit task can refer to a task unit containing all the data information required for the audit. The aforementioned audit task is used for the auditing agent to perform specific audit operations, and typically includes the document element data to be audited, the structured clause data to be audited, and the related relationship information required for the audit.
[0041] It should be understood that the aforementioned preset routing rules may refer to a set of pre-defined rules used to determine the distribution path of review tasks. The aforementioned preset routing rules will guide review tasks to different target review agents according to the different characteristics of the clauses. For example, the corresponding combination of review agents can be determined according to the clause session type, keyword features, or complexity evaluation results.
[0042] It should be noted that the aforementioned target review agent can refer to an artificial intelligence agent module that receives review tasks and performs specific review operations. The target review agent can include at least one of rule review agent, numerical calculation agent, and semantic review agent.
[0043] To improve the adaptability of task distribution and review resource scheduling, the step of generating review tasks based on the document elements and the structured clause data, and distributing the review tasks to multiple target review agents according to preset routing rules, may include: associating and assembling the document elements and the structured clause data through the clause submission agent to generate review tasks; matching corresponding target review agents from a preset routing rule base through the clause submission agent based on the clause features in the review tasks, wherein the target review agents include at least one of rule review agents, numerical calculation agents, and semantic review agents; and distributing the review tasks in parallel to each of the target review agents based on the matching results.
[0044] It should be explained that the aforementioned intelligent agent for submitting clauses for review can refer to an artificial intelligence agent module with task assembly and routing functions. This agent can receive document elements and structured clause data as input, assemble the above data to generate review tasks, and distribute the review tasks to the corresponding review agents, i.e., target review agents, according to the characteristics of the clauses.
[0045] Furthermore, the aforementioned preset routing rule base can refer to a pre-built data set that stores multiple routing rules. Each routing rule in the preset routing rule base defines the correspondence between clause features and target review agents. The preset routing rule base is used by the clause submission agent to perform rule matching and querying when executing routing decisions.
[0046] In its implementation, after obtaining the document elements and structured clause data, the system invokes the clause submission agent and transmits the document elements and structured clause data to it. The clause submission agent then associates and assembles the received document elements and structured clause data to generate an audit task. Next, the agent retrieves a preset routing rule base and, based on the clause features in the generated audit task, matches a target audit agent from the preset routing rule base that corresponds to those features. The target audit agent includes at least one of a rule-based audit agent, a numerical calculation agent, and a semantic audit agent. After matching a target audit agent, the agent distributes the audit task in parallel to each matched target audit agent based on the matching result.
[0047] For ease of understanding, the following explanation uses examples, but does not impose specific limitations on this embodiment. For instance, suppose the aforementioned clause submission agent receives document elements of an invoice type (including the invoice amount "USD 100,000.00" and the goods description "ELECTRONIC COMPONENTS") and structured clause data for session 46A (including amount verification requirements and document name verification requirements). The clause submission agent associates and assembles the aforementioned document elements and structured clause data to generate a verification task. The clause submission agent obtains a preset routing rule base and detects that the clause features in the verification task include the keywords "session 46A" and "amount." It matches clauses involving amount calculation in the preset routing rule base, indicating that they need to be distributed to the numerical calculation agent, and clauses involving semantic understanding of session 46A need to be distributed to the semantic verification agent. Thus, the target verification agents are determined to be the numerical calculation agent and the semantic verification agent. The clause submission agent distributes the verification task in parallel to the numerical calculation agent and the semantic verification agent based on the matching results.
[0048] To improve the accuracy of clause feature recognition and matching with review agents, clause features of structured clause data can be input into a large model using prompt words. The large model then makes routing decisions based on preset routing rules to determine the target review agent that matches the clause features.
[0049] It should be added that the preset routing rules may include clause session classification rules, keyword matching rules, and clause complexity assessment rules.
[0050] The above-mentioned clause session classification rules can refer to the rules for preliminary classification of clauses based on the session identifier of the letter of credit clauses. The letter of credit clauses follow the ISO standard format, and different sessions have different semantic features and processing requirements. For example, session 45A corresponds to the goods description clause, session 46A corresponds to the document clause, and session 47A corresponds to the additional conditions clause.
[0051] The aforementioned keyword matching rules can refer to rules that further refine clauses based on the keyword characteristics in the clauses, on the basis of the clause session classification. Different keywords have an indicative role in routing decisions. For example, numerical related words such as "amount", "total", and "not exceeding" indicate that numerical calculation-type intelligent agents need to participate in the processing.
[0052] The aforementioned clause complexity assessment rules can refer to rules that comprehensively assess the complexity of clauses based on multiple dimensions of the clauses. The dimensions of complexity assessment include clause length, number of clauses, nesting level, whether multiple documents are associated, whether computational logic is included, and whether there are precondition judgments. All clauses assessed as complex need to be routed to the semantic review agent for processing.
[0053] In its implementation, upon receiving a review task, the aforementioned clause submission agent first identifies and categorizes the clauses within the review task according to the aforementioned clause session classification rules. Next, it detects and matches keywords in the clause text according to the aforementioned keyword matching rules. Subsequently, it comprehensively evaluates the complexity of the clauses according to the aforementioned clause complexity assessment rules. Finally, by combining the judgment results of these three types of rules, the clause submission agent matches the target review agent corresponding to the current review task from a preset routing rule base.
[0054] To facilitate understanding, the following example illustrates the concept, but does not impose specific limitations on this embodiment. For instance, suppose the clause submission agent receives a review task involving clause 46A. This clause text contains numerical keywords such as "amount" and "not exceeding," and the clause contains multiple clauses and involves various document associations. The clause submission agent first identifies the clause as clause 46A based on the clause classification rules; then, based on the keyword matching rules, it detects the keywords "amount" and "not exceeding," determining that a numerical calculation agent is needed; subsequently, based on the clause complexity assessment rules, it evaluates that the clause contains multiple clauses and involves multiple document associations, classifying it as a complex clause and requiring the participation of a semantic review agent. Combining the results of these three types of rules, the clause submission agent simultaneously distributes the review task to both the numerical calculation agent and the semantic review agent.
[0055] Step S40: The audit tasks are executed in parallel by each of the target audit agents to obtain the audit sub-results of each target audit agent, and an audit report is generated based on each audit sub-result.
[0056] It should be explained that the above-mentioned audit sub-results can refer to the audit conclusions output by each target audit agent after completing the audit task. The audit sub-results output by different target audit agents can contain different information content. For example, the audit sub-results output by the rule audit agent can include a description of the discrepancies and the reasons, the audit sub-results output by the numerical calculation agent can include the calculation process and the calculation results, and the audit sub-results output by the semantic audit agent can include a description of the discrepancies and the reasons.
[0057] Understandably, the aforementioned audit report may refer to a comprehensive output document generated after summarizing and organizing the audit sub-results, and may include a detailed list of discrepancies and an analysis of the reasons.
[0058] In its implementation, the system distributes review tasks in parallel to each target review agent through the clause submission agent. Each target review agent then executes the received review tasks in parallel. Each target review agent independently processes its review task and outputs its corresponding review sub-result upon completion. The system then obtains the review sub-results output by each target review agent. Next, based on these sub-results, the system uses a result aggregation agent to summarize and organize the sub-results, generating a review report.
[0059] To facilitate understanding, the following explanation uses examples, but does not impose specific limitations on this embodiment. For instance, assume that the clause submission agent distributes review tasks in parallel to the rule review agent, the numerical calculation agent, and the semantic review agent. After executing the review task, the rule review agent outputs a rule review sub-result; after executing the review task, the numerical calculation agent outputs a numerical review sub-result; and after executing the review task, the semantic review agent outputs a semantic review sub-result. After obtaining the three review sub-results respectively, the system performs deduplication and merging processing on the three review sub-results to generate a review report containing a complete list of discrepancies and an analysis of the reasons.
[0060] It should be noted that the step of obtaining the audit sub-results of each target audit intelligence by executing the audit task in parallel through each target audit intelligence may include: performing rule verification on the deterministic clauses in the audit task through the rule audit intelligence to obtain rule audit sub-results; performing numerical calculation and comparison verification on the numerical clauses in the audit task through the numerical calculation intelligence to obtain numerical audit sub-results; performing semantic consistency analysis and business intent identification on the textual clauses in the audit task through the semantic audit intelligence to obtain semantic audit sub-results; and using the rule audit sub-results, the numerical audit sub-results, and the semantic audit sub-results as each audit sub-result.
[0061] It should be explained that the aforementioned definitive clauses can refer to clauses with clear review standards that can be accurately judged through established rules, such as name consistency checks, date format checks, and mandatory field checks—review items that do not involve subjective judgment. The aforementioned rule checks can refer to the operation of comparing and verifying clause content item by item according to preset definitive rules. These rule checks include entity information consistency checks, format verification, mandatory field checks, and date logic checks.
[0062] Understandably, the aforementioned numerical clauses can refer to clauses involving numerical calculations or comparisons of amounts, quantities, volumes, etc., such as verifying the consistency between invoice amounts and letter of credit amounts, or the consistency between quantities and volumes. The aforementioned numerical calculations and comparisons can refer to performing precise mathematical operations on the numerical data in the numerical clauses and comparing the results with the expected values for verification.
[0063] It should be explained that the aforementioned textual terms refer to clauses expressed in natural language text that require understanding of semantics and business intent. These textual terms typically include the 46A section on document terms and the 47A section on additional conditions in letters of credit. The aforementioned semantic consistency analysis and business intent identification refer to using large-scale models to perform deep semantic understanding of the textual terms, analyzing whether the document content and the letter of credit terms are semantically consistent, and identifying the business intent and potential risks implied in the terms.
[0064] In its implementation, the rule-reviewing intelligent agent, upon receiving a review task, extracts deterministic clauses from the task and performs rule verification on these clauses. After completing rule verification, the agent outputs a rule-review sub-result containing descriptions and reasons for discrepancies. Simultaneously, the numerical calculation intelligent agent, upon receiving a review task, extracts numerical clauses from the task, performs mathematical calculations on the numerical data within these clauses, and compares the calculated results with the expected values. After completing numerical calculations and comparison verification, the agent outputs a numerical review sub-result containing the calculation process and results. Simultaneously, the semantic review intelligent agent, upon receiving a review task, extracts textual clauses from the task and uses a large model to perform semantic consistency analysis and business intent identification on these textual clauses. After completing semantic consistency analysis and business intent identification, the agent outputs a semantic review sub-result containing descriptions and reasons for discrepancies. The system uses the rule-review sub-result, the numerical review sub-result, and the semantic review sub-result as the respective review sub-results.
[0065] It should be understood that by having rule-reviewing agents, numerical calculation agents, and semantic review agents work in parallel to process deterministic clauses, numerical clauses, and textual clauses respectively, collaborative execution of review tasks is achieved. This not only ensures the accuracy of rule verification and the precision of numerical calculation, but also enhances the understanding of complex semantic clauses by leveraging large models. As a result, review efficiency is improved, the risk of missed reviews is reduced, and the adaptability to diverse clause scenarios is enhanced.
[0066] To achieve cross-validation of multiple documents and enhance the logical consistency verification capability in complex scenarios, the step of performing rule verification on deterministic clauses in the audit task through the rule auditing intelligence to obtain rule audit sub-results may include: when a deterministic clause involves cross-validation of multiple documents, retrieving verification rules matching the deterministic clause from a hierarchical rule base, which includes a basic rule layer, a standard rule layer, an industry rule layer, and an enterprise rule layer; executing each retrieved verification rule in parallel to obtain the execution results of each verification rule; summarizing each execution result to generate a cross-validation conclusion for cross-validation of multiple documents, and using the cross-validation conclusion as a rule audit sub-result.
[0067] It should be explained that the above-mentioned multi-document association verification can refer to the audit operation of simultaneously verifying the logical consistency between multiple commercial documents. The above-mentioned multi-document association verification is used to ensure that the associated fields between different documents are logically mutually corroborated and consistent, such as the consistency verification between the invoice amount and the bill of exchange amount, the logical consistency verification between the bill of lading quantity and the invoice quantity, and the consistency verification of the beneficiary in the invoice, bill of lading and insurance policy.
[0068] It should be noted that the aforementioned layered rule base refers to a database structure that organizes and stores verification rules according to different levels. The verification rules in this layered rule base are divided into multiple levels based on business importance and scope of application. The aforementioned basic rule layer refers to the level storing mandatory verification rules required by international practices. Rules in this basic rule layer have the highest priority and include mandatory verification rules stipulated by international practices such as UCP600 and ISBP. The aforementioned standard rule layer refers to the level storing general verification rules for letter of credit transactions. Rules in this standard rule layer have reasonable tolerance ranges set according to business practices. This standard rule layer includes rules for verifying the consistency between invoice amount and draft amount, and rules for verifying the logical consistency between bill of lading quantity and invoice quantity. The aforementioned industry rule layer refers to the level storing verification rules for specific industries or specific business types. Rules in this industry rule layer are customized according to industry characteristics. The aforementioned enterprise rule layer refers to the level storing special verification rules defined by banks or customers. Rules in this enterprise rule layer support flexible configuration to meet personalized business needs.
[0069] Furthermore, the aforementioned cross-validation conclusion can refer to the comprehensive judgment result obtained after performing correlation verification on multiple documents. The aforementioned cross-validation conclusion is used to indicate whether the documents are logically consistent with each other.
[0070] In its implementation, when the aforementioned rule-reviewing intelligent agent performs rule validation on deterministic clauses in the review task, it first determines whether the deterministic clauses involve multi-document association validation. If so, the intelligent agent retrieves validation rules matching the deterministic clauses from a hierarchical rule base. This hierarchical rule base includes a basic rule layer, a standard rule layer, an industry rule layer, and an enterprise rule layer. The intelligent agent retrieves matching validation rules from each of these layers according to the validation requirements of the deterministic clauses. Next, the intelligent agent executes each retrieved validation rule in parallel, obtaining the execution results for each rule. Finally, the intelligent agent summarizes the execution results, generates a cross-validation conclusion for multi-document association validation, and outputs this cross-validation conclusion as a rule review sub-result.
[0071] To facilitate understanding, the following example is provided for illustration, but it does not impose specific limitations on this embodiment. For example, suppose the letter of credit terms require that "the invoice amount shall not exceed USD 100,000, with a 5% over-shipment allowed," and the documents submitted by the beneficiary include an invoice (amount USD 105,000) and a bill of lading (quantity 3150 boxes, base quantity 3000 boxes). The rule review agent determines that this deterministic clause involves multi-document association verification between the invoice and the bill of lading, and retrieves matching verification rules from the hierarchical rule base, including the rule in the basic rule layer that "the insurance amount shall not be less than 110% of the invoice amount" is not applicable to the current scenario, the rule in the standard rule layer that "the bill of lading quantity and the invoice quantity are logically consistent," and the customer-defined rule in the enterprise rule layer that "the over-shipment ratio shall not exceed 5%." The aforementioned rule-reviewing agent executes each retrieved verification rule in parallel, and after obtaining each execution result, it summarizes and generates a cross-validation conclusion. The output includes the following cross-validation conclusion as a rule review sub-result: "The bill of lading quantity of 3150 boxes corresponds to the baseline quantity of 3000 boxes, and the over-shipment ratio is 5%, which is within the allowable range; the invoice amount of USD 105,000 corresponds to the letter of credit amount of USD 100,000, and the over-shipment ratio is 5%, which is within the allowable range."
[0072] It should be understood that by constructing a hierarchical rule library that includes a basic rule layer, a standard rule layer, an industry rule layer, and an enterprise rule layer, the hierarchical management and flexible configuration of verification rules are achieved, enabling the system to adapt to different business scenarios and personalized needs. At the same time, by executing matching rules in parallel and summarizing cross-validation conclusions, the efficiency and accuracy of multi-document association verification are improved, and the risk of missed verification in complex scenarios is reduced.
[0073] For example, refer to Figure 2 , Figure 2This diagram illustrates the multi-agent architecture of the document consistency verification method of this invention. First, the image of the document to be verified and the letter of credit terms are acquired. A document classification agent classifies the document image to determine the document type. Then, a document element extraction agent extracts document elements based on the document type. Simultaneously, a clause parsing agent parses the letter of credit terms, identifies the clause session type and verification point information, and generates structured clause data. Subsequently, the clause submission agent associates the document elements with the structured clause data to generate a verification task. Based on the clause characteristics in the verification task, it matches target verification agents from a preset routing rule base and distributes the verification task in parallel to the rule verification agent, numerical calculation agent, and semantic verification agent. Each target verification agent executes the verification task in parallel, obtaining rule verification sub-results, numerical verification sub-results, and semantic verification sub-results respectively. The result aggregation agent generates a verification report based on each verification sub-result.
[0074] This embodiment discloses a process for acquiring images of documents to be reviewed and corresponding letter of credit terms, classifying the document images to determine the document type, extracting document elements from the document images based on the document type, parsing the terms in the letter of credit terms to obtain structured term data, generating review tasks based on the document elements and the structured term data, and distributing the review tasks to multiple target review agents according to preset routing rules, executing the review tasks in parallel by each target review agent to obtain review sub-results for each target review agent, and generating review reports based on each review sub-result. Because this embodiment automates and intelligently reviews document consistency by classifying and recognizing document images, extracting document elements, and parsing structured terms, and by distributing review tasks to multiple agents in parallel using preset routing rules, this embodiment improves the efficiency and reliability of the review process compared to existing technologies.
[0075] refer to Figure 3 , Figure 3 This is a flowchart illustrating the second embodiment of the document consistency verification method of the present invention.
[0076] Based on the first embodiment described above, in this embodiment, after step S40, steps S401 to S402 are further included: Step S401: Cross-compare the audit sub-results to obtain cross-compare results.
[0077] Step S402: When the cross-comparison result indicates that there is a conflict among the audit sub-results, the conflict resolution process is performed on each audit sub-result based on the hierarchical conflict resolution mechanism to obtain the resolved audit sub-result.
[0078] Understandably, the aforementioned cross-comparison can refer to the operation of comparing and verifying the audit sub-results output by different audit agents. Through cross-comparison, it is possible to identify whether there are inconsistencies or contradictions among the audit sub-results.
[0079] Furthermore, the aforementioned cross-comparison results may refer to the comparison conclusions obtained after the cross-comparison operation. The aforementioned cross-comparison results are used to indicate whether there are conflicts between the various audit sub-results and the specific manifestations of the conflicts.
[0080] It should be explained that the aforementioned hierarchical conflict resolution mechanism refers to a mechanism that processes conflicts between audit sub-results step by step according to a preset priority order and rule hierarchy. This hierarchical conflict resolution mechanism is used to determine the final audit conclusion when the conclusions of multiple audit agents are inconsistent. The aforementioned resolved audit sub-result can refer to the consistent audit conclusion obtained after conflict resolution processing.
[0081] To facilitate understanding, the following explanation uses examples, but does not impose specific limitations on this embodiment. For instance, suppose the rule review agent outputs a rule review sub-result that determines a certain review point as "amount matches," while the numerical calculation agent outputs a numerical review sub-result that determines the same review point as "amount does not match." The system then cross-compares the rule review sub-result and the numerical review sub-result, and the cross-compare result indicates a conflict between the two. The system then uses a hierarchical conflict resolution mechanism to resolve the conflict between the two review sub-results, ultimately obtaining a resolved review sub-result.
[0082] To effectively balance the efficiency and accuracy of conflict handling, the step of resolving conflicts in each of the audit sub-results based on a hierarchical conflict resolution mechanism to obtain the resolved audit sub-results may include: determining the clause complexity attribute corresponding to the conflict in each audit sub-result; when the clause complexity attribute indicates a simple clause, making a decision based on the priority order of each target audit agent to obtain the resolved audit sub-result; when the clause complexity attribute indicates a complex clause, querying the expert rule base to obtain a resolution suggestion matching the current conflict feature, and obtaining the resolved audit sub-result based on the resolution suggestion; when the decision based on the priority order and the expert rule base fail to resolve the conflict, triggering a manual review process, using the manual review result as the resolved audit sub-result, and feeding the manual review result back to the expert rule base.
[0083] It is understandable that the above-mentioned clause complexity attributes can refer to attribute information used to characterize the complexity of clauses. The above-mentioned clause complexity attributes include two categories: simple clause attributes and complex clause attributes. The evaluation dimensions of clause complexity can include clause length, number of clauses, nesting level, whether it involves multiple document associations, whether it contains calculation logic, and whether there are precondition judgments.
[0084] Furthermore, the aforementioned simple clauses can refer to clauses that are assessed as having low complexity in the clause complexity attribute. These typically refer to clauses that are short in length, have few clauses, do not contain nested structures, and do not involve multiple document associations, such as clauses that only involve single name or date verification.
[0085] Correspondingly, the aforementioned complex clauses can refer to clauses that are assessed as having high complexity in the clause complexity attribute. These typically refer to clauses that exceed the preset character limit, contain multiple clauses, have nested clauses, involve multiple document associations, or contain calculation logic and precondition judgments.
[0086] It should be noted that the above priority order refers to the preset priority ranking order for the target review agents. This priority order is used to directly adopt the review conclusion of the review agent with the higher priority when simple clauses conflict. For example, the above priority order is arranged in the order of rule review agents taking precedence over numerical calculation agents, and numerical calculation agents taking precedence over semantic review agents.
[0087] It should be explained that the aforementioned expert rule base can refer to a pre-built dataset storing historical conflict cases and their corresponding resolution results. The cases in this expert rule base are stored in key-value pair format, with conflict features corresponding to resolution results. These conflict features include multiple dimensions such as clause type, conflict type, and involved fields. Alternatively, the aforementioned conflict features can refer to a set of information describing the multiple dimensions of a current conflict. These conflict features are used to match cases in the expert rule base and include clause session type, the type of review agent involved in the conflict, the field names involved in the conflict, and the specific manifestation of the conflict.
[0088] Understandably, the aforementioned manual review process can refer to the process of pushing conflict cases that the system cannot automatically resolve to human auditors for manual judgment and handling. The aforementioned manual review result can refer to the audit conclusion reached by the human auditor after judging the conflict cases in the manual review process.
[0089] In its implementation, after obtaining the cross-comparison results and determining the conflicts among the various review sub-results, the system first determines the clause complexity attribute corresponding to the conflict in each review sub-result. The system determines the complexity attribute of the currently conflicting clause based on multiple complexity evaluation dimensions and selects the corresponding conflict resolution path based on the determined clause complexity attribute. When the clause complexity attribute indicates a simple clause, the system makes a decision based on the priority order of each target review agent, i.e., according to the priority order of rule review agent, numerical calculation agent, and semantic review agent, directly adopting the review sub-result output by the review agent with the highest priority as the resolved review sub-result. When the clause complexity attribute indicates a complex clause, the system queries the expert rule base to obtain resolution suggestions matching the current conflict characteristics and obtains the resolved review sub-result based on these suggestions. When the decision based on the above priority order cannot determine the resolution result, and there is no resolution suggestion in the above expert rule base that matches the current conflict characteristics, or when neither of the above methods can successfully resolve the conflict, the system triggers a manual review process, pushes the conflict case to a human reviewer for processing, and uses the manual review result fed back by the human reviewer as the review sub-result after resolution. At the same time, the above manual review result is fed back to the expert rule base to update and expand the case data in the above expert rule base.
[0090] It should be understood that by differentiating the complexity of clauses and employing differentiated conflict resolution strategies: simple clauses are quickly adjudicated based on agent priority, ensuring processing efficiency; complex clauses leverage expert rule bases to match historical cases and obtain resolution suggestions, improving the rationality of decisions; when conflicts cannot be resolved automatically, manual review is triggered and feedback is provided to optimize the rule base, forming a closed-loop optimization mechanism. This embodiment effectively balances the efficiency and accuracy of conflict handling.
[0091] This embodiment discloses a method of cross-comparing the various audit sub-results to obtain a cross-comparison result. When the cross-comparison result indicates a conflict among the audit sub-results, a hierarchical conflict resolution mechanism is used to resolve the conflict in each audit sub-result, resulting in a resolved audit sub-result. Because this embodiment cross-compares the results of each audit agent, it can trigger a hierarchical conflict resolution mechanism when conclusions are inconsistent, effectively identifying and eliminating potential biases or errors that may arise from a single audit path. Compared to existing technologies, this embodiment ensures the rationality and reliability of conflict handling, improving the accuracy and robustness of the final audit conclusion.
[0092] refer to Figure 4 , Figure 4 This is a flowchart illustrating the third embodiment of the document consistency verification method of the present invention.
[0093] Based on the above embodiments, in this embodiment, the method further includes steps S50-S60: Step S50: Record the processing log of each target review agent during the execution of the review task. The processing log includes the input data, output data and decision basis information of each target review agent.
[0094] Step S60: Generate an audit trail based on the processing log. The audit trail is used to trace the attribution path of each audit sub-result.
[0095] It should be understood that the aforementioned processing logs may refer to the set of operational information recorded by the system during the execution of audit tasks by each target audit agent. These processing logs are used to achieve full-link traceability of the audit process.
[0096] Understandably, the aforementioned input data can refer to the input information received by each target review agent when performing the review task, such as deterministic clause content received by the rule review agent, numerical clause data received by the numerical calculation agent, and textual clause content received by the semantic review agent. The aforementioned output data can refer to the review sub-results output by each target review agent after performing the review task, such as rule review sub-results, numerical review sub-results, and semantic review sub-results.
[0097] It should be noted that the above-mentioned decision-making basis information may refer to the reasoning basis or judgment reasons on which each target review agent bases its review conclusions. For example, the specific rule number and rule content on which the rule review agent bases its conclusions, the calculation formula and calculation steps on which the numerical calculation agent bases its conclusions, and the semantic analysis logic or relevant international conventions on which the semantic review agent bases its conclusions.
[0098] It should be explained that the above-mentioned audit trajectory can refer to a traceability information chain organized in chronological order or processing flow to reflect the entire audit process path. The audit trajectory records the complete processing link from document classification to the output of audit sub-results by each audit agent.
[0099] It should be understood that the above-mentioned attribution path can refer to the traceability clues from the audit sub-result back to its cause and decision basis. The above-mentioned attribution path can be displayed through a visual interface to assist in quickly locating audit doubts during manual review.
[0100] In its implementation, the system records the processing logs of each target auditing agent as they execute auditing tasks in parallel. For each target auditing agent, the system records the input data received, the output data output, and the decision-making basis information used to reach audit conclusions during the execution of the auditing task. After obtaining the processing logs of each target auditing agent, the system generates an audit trajectory based on these logs. This audit trajectory connects the processing logs of each target auditing agent in sequence according to the audit process, forming a complete path record from the audit task input to the output of each audit sub-result. This audit trajectory allows human auditors or reviewers to trace the process of each audit sub-result, starting from each audit sub-result and following the audit trajectory to find the corresponding input data and decision-making basis information in the processing logs, thus reconstructing the generation process of each audit sub-result.
[0101] This embodiment discloses a processing log recording the process of each target review agent executing the review task. The processing log includes the input data, output data, and decision basis information of each target review agent. Based on the processing log, a review trajectory is generated, which is used to trace the attribution path of each review sub-result. Because this embodiment generates a complete review trajectory by recording the input, output, and decision basis of each review agent during execution, it achieves traceability and transparency across the entire review process. Compared to existing technologies, this embodiment transforms automated review into an auditable white-box process, facilitating rapid identification of the attribution path of review discrepancies and improving system credibility and compliance.
[0102] Furthermore, this embodiment of the invention also proposes a storage medium storing a document consistency verification program, which, when executed by a processor, implements the steps of the document consistency verification method described above.
[0103] Reference Figure 5 , Figure 5 This is a structural block diagram of the first embodiment of the document consistency verification device of the present invention.
[0104] like Figure 5 As shown, the document consistency verification device proposed in this embodiment of the invention includes: a document classification module 501, a clause parsing module 502, a task distribution module 503, and a task verification module 504.
[0105] The document classification module 501 is used to obtain the document image to be reviewed and the corresponding letter of credit terms, classify the document image, and determine the document type corresponding to the document image.
[0106] The clause parsing module 502 is used to extract document elements from the document image according to the document type, and parse the clause content in the letter of credit to obtain structured clause data.
[0107] The task distribution module 503 is used to generate audit tasks based on the document elements and the structured terms data, and distribute the audit tasks to multiple target audit agents according to preset routing rules.
[0108] The task review module 504 is used to execute the review task in parallel through each of the target review agents, obtain the review sub-results of each target review agent, and generate a review report based on each of the review sub-results.
[0109] The document classification module 501 is also used to obtain the document image to be reviewed and the corresponding letter of credit terms; classify the document image through the document classification agent, and determine the document type corresponding to the document image based on the classification result.
[0110] The clause parsing module 502 is further configured to: extract information from the field area corresponding to the document type in the document image using a document element extraction agent to obtain document elements; parse the clause content in the letter of credit clauses using a clause parsing agent; identify the clause session type and audit point information in the clause content based on the parsing results; and generate structured clause data based on the clause session type and audit point information.
[0111] The task distribution module 503 is further configured to associate and assemble the document elements and the structured clause data through the clause submission intelligent agent to generate an audit task; according to the clause features in the audit task, the clause submission intelligent agent matches the corresponding target audit intelligent agent from the preset routing rule base, the target audit intelligent agent including at least one of rule audit intelligent agent, numerical calculation intelligent agent and semantic audit intelligent agent; and according to the matching result, the audit task is distributed in parallel to each of the target audit intelligent agents.
[0112] The task review module 504 is further configured to: perform rule verification on deterministic clauses in the review task through the rule review agent to obtain rule review sub-results; perform numerical calculation and comparison verification on numerical clauses in the review task through the numerical calculation agent to obtain numerical review sub-results; perform semantic consistency analysis and business intent identification on textual clauses in the review task through the semantic review agent to obtain semantic review sub-results; and use the rule review sub-results, the numerical review sub-results, and the semantic review sub-results as each review sub-result.
[0113] This device embodiment discloses the following steps: acquiring images of documents to be reviewed and corresponding letter of credit terms; classifying the document images to determine the document type corresponding to the document images; extracting document elements from the document images according to the document type; parsing the content of the letter of credit terms to obtain structured term data; generating review tasks based on the document elements and the structured term data; distributing the review tasks to multiple target review agents according to preset routing rules; executing the review tasks in parallel by each target review agent to obtain review sub-results for each target review agent; and generating review reports based on each review sub-result. Because this device embodiment automates and intelligently reviews document consistency by classifying and recognizing document images, extracting document elements, and parsing structured terms, and by distributing review tasks to multiple agents for parallel execution using preset routing rules, it improves the efficiency and reliability of review compared to existing technologies.
[0114] Based on the first embodiment of the document consistency verification device of the present invention, a second embodiment of the document consistency verification device of the present invention is proposed.
[0115] In this embodiment, the task review module 504 is further configured to cross-compare each of the review sub-results to obtain a cross-compare result; when the cross-compare result indicates that there is a conflict among the review sub-results, the conflict resolution process is performed on each of the review sub-results based on a hierarchical conflict resolution mechanism to obtain a resolved review sub-result.
[0116] The task review module 504 is further configured to determine the clause complexity attribute corresponding to the conflict in each of the review sub-results; when the clause complexity attribute indicates a simple clause, a decision is made based on the priority order of each target review agent to obtain a resolved review sub-result; when the clause complexity attribute indicates a complex clause, an expert rule base is queried to obtain a resolution suggestion matching the current conflict feature, and a resolved review sub-result is obtained based on the resolution suggestion; when the decision based on the priority order and the expert rule base fail to resolve the conflict, a manual review process is triggered, the manual review result is used as the resolved review sub-result, and the manual review result is fed back to the expert rule base.
[0117] Other embodiments or specific implementations of the document consistency verification device of the present invention can be referred to the above-described method embodiments, and will not be repeated here.
[0118] This application provides a document consistency verification device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the document consistency verification method in the first embodiment described above.
[0119] The following is for reference. Figure 6 The diagram illustrates a structural schematic of a document conformity verification device suitable for implementing embodiments of this application. The document conformity verification device in embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The document conformity verification device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0120] like Figure 6 As shown, the document conformity verification device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the document conformity verification device. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows the document conformity verification device to communicate wirelessly or wiredly with other devices to exchange data. Although the figure shows document conformity verification devices with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0121] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0122] The document consistency verification device provided in this application, employing the document consistency verification method described in the above embodiments, can solve the technical problem of insufficient efficiency and reliability caused by the reliance on manual serial processing in existing document consistency verification. Compared with the prior art, the beneficial effects of the document consistency verification device provided in this application are the same as those of the document consistency verification method provided in the above embodiments, and other technical features in this document consistency verification device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0123] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0124] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0125] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0126] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0127] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory / random access memory, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0128] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A method for verifying the consistency of documents, characterized in that, The method includes: Obtain the images of the documents to be reviewed and the corresponding letter of credit terms, classify the document images, and determine the document type corresponding to the document images; Based on the document type, document elements are extracted from the document image, and the terms in the letter of credit are parsed to obtain structured terms data. Based on the document elements and the structured terms data, an audit task is generated, and the audit task is distributed to multiple target audit agents according to a preset routing rule; The audit tasks are executed in parallel by each of the target audit agents to obtain the audit sub-results of each target audit agent, and an audit report is generated based on each audit sub-result.
2. The document consistency verification method as described in claim 1, characterized in that, The step of generating an audit task based on the document elements and the structured terms data, and distributing the audit task to multiple target audit agents according to preset routing rules, includes: The document elements and structured clause data are associated and assembled through the clause submission intelligent agent to generate a review task; Based on the characteristics of the clauses in the review task, the clause submission agent matches the corresponding target review agent from the preset routing rule base. The target review agent includes at least one of the rule review agent, numerical calculation agent, and semantic review agent. Based on the matching results, the review tasks are distributed in parallel to each of the target review agents.
3. The document consistency verification method as described in claim 2, characterized in that, The step of obtaining the review sub-results of each target review agent by executing the review task in parallel through each target review agent includes: The rule-reviewing intelligent agent performs rule verification on the deterministic clauses in the review task to obtain rule review sub-results; The numerical calculation agent performs numerical calculations and comparisons on the numerical clauses in the audit task to obtain numerical audit sub-results. The semantic auditing agent performs semantic consistency analysis and business intent identification on the textual clauses in the auditing task to obtain semantic auditing sub-results. The rule review sub-result, the numerical review sub-result, and the semantic review sub-result are taken as each review sub-result.
4. The document consistency verification method as described in claim 1, characterized in that, After the step of obtaining the review sub-results of each target review agent by executing the review task in parallel through each target review agent, the method further includes: The audit sub-results are cross-compared to obtain the cross-comparison results; When the cross-comparison results indicate that there is a conflict among the audit sub-results, the conflict resolution process is performed on each audit sub-result based on the hierarchical conflict resolution mechanism to obtain the resolved audit sub-result.
5. The document consistency verification method as described in claim 4, characterized in that, The step of resolving conflicts in each of the audit sub-results based on a hierarchical conflict resolution mechanism to obtain the resolved audit sub-results includes: Determine the clause complexity attribute corresponding to the conflict in each of the aforementioned audit sub-results; When the complexity attribute of the clause is represented as a simple clause, the adjudication is made based on the priority order of each target review agent to obtain the resolved review sub-result. When the complexity attribute of the clause is represented as a complex clause, the expert rule base is queried to obtain a resolution suggestion that matches the current conflict characteristics, and the resolution sub-result is obtained based on the resolution suggestion; When the decision based on the priority order and the expert rule base fail to resolve the conflict, a manual review process is triggered. The result of the manual review is used as the resolved audit sub-result, and the result of the manual review is fed back to the expert rule base.
6. The document consistency verification method as described in claim 1, characterized in that, The steps of obtaining the image of the document to be reviewed and the corresponding letter of credit terms, classifying the document image, and determining the document type corresponding to the document image include: Obtain images of the documents to be reviewed and the corresponding letter of credit terms; The document images are classified by a document classification intelligent agent, and the document type corresponding to the document images is determined based on the classification results; Accordingly, the step of extracting document elements from the document image according to the document type and parsing the terms in the letter of credit to obtain structured terms data includes: The document element extraction agent extracts information from the field area corresponding to the document type in the document image according to the document type to obtain document elements. The clause parsing agent parses the clauses in the letter of credit and identifies the clause session type and review point information based on the parsing results. Based on the session type of the clause and the review point information, structured clause data is generated.
7. The document consistency verification method as described in claim 1, characterized in that, The method further includes: Record the processing logs of each target review agent during the execution of the review task, the processing logs including the input data, output data and decision basis information of each target review agent; Based on the processing log, an audit trail is generated, which is used to trace the attribution path of each audit sub-result.
8. A document consistency verification device, characterized in that, The device includes: The document classification module is used to obtain the images of the documents to be reviewed and the corresponding letter of credit terms, classify the document images, and determine the document type corresponding to the document images. The terms parsing module is used to extract document elements from the document image according to the document type, and to parse the terms in the letter of credit to obtain structured terms data. The task distribution module is used to generate audit tasks based on the document elements and the structured terms data, and distribute the audit tasks to multiple target audit agents according to preset routing rules; The task review module is used to execute the review tasks in parallel through each of the target review agents, obtain the review sub-results of each target review agent, and generate a review report based on each of the review sub-results.
9. A document consistency verification device, characterized in that, The device includes: a memory, a processor, and a document conformity verification program stored in the memory and executable on the processor, the document conformity verification program being configured to implement the steps of the document conformity verification method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that, The storage medium stores a document consistency verification program, which, when executed by a processor, implements the steps of the document consistency verification method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
An articulated rail car or similar article
USD100000S
USD105000S
