Credit message compliance verification method, system, device and medium
An automated compliance verification system using a large language model improves the accuracy and efficiency of irrevocable documentary credit message compliance checks by standardizing audits and reducing reliance on manual methods.
Patent Information
- Application Number
- CN202411052530.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-12-03
AI Technical Summary
The existing methods for verifying compliance with irrevocable documentary credit message standards are inefficient and prone to inconsistencies due to manual review, which relies heavily on human understanding, leading to low accuracy and variability in verification results.
A compliance verification method and system utilizing a large language model trained on a knowledge base of irrevocable documentary credit message samples to automate the verification process, ensuring compliance with national standards such as GB/T 32171-2015 and GB/T 32172-2015, and providing reasons for non-compliance.
The method enhances accuracy and efficiency by reducing missed detections and misjudgments, standardizes audits, and reduces operational costs by replacing manual review with automated verification.
Smart Images

Figure CN119067217A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, system, device and medium for verifying the compliance of a letter of credit message. Background Art
[0002] An irrevocable documentary credit message is a written document issued by a bank to an exporter (seller) at the request of an importer (buyer) to guarantee the payment of the goods. This document is irrevocable, which means that the issuing bank is bound by its terms and commitments from the date of opening the letter of credit. There are relevant standards for irrevocable documentary credit messages, including GB / T 32171-2015 Irrevocable documentary credit messages based on ebXML and GB / T 32172-2015 Irrevocable documentary credit application messages based on ebXML. However, there is a lack of compliance verification systems for irrevocable documentary credit message standards. The verification method is mainly through manual review, which is inefficient and limited by the auditors' understanding ability. There are differences in human understanding, which makes it difficult to ensure the consistency and accuracy of the verification results. Summary of the invention
[0003] The purpose of this application is to provide a letter of credit message compliance verification method, system, device and medium to solve the problems of low accuracy and efficiency of the compliance verification method of the irrevocable documentary credit message standard.
[0004] To achieve the above objectives, this application provides the following solutions:
[0005] In a first aspect, the present application provides a method for verifying compliance of a letter of credit message, the method comprising:
[0006] Get the target irrevocable documentary credit message;
[0007] The target irrevocable documentary letter of credit message is input into a compliance verification model to obtain a compliance verification result of the target irrevocable documentary letter of credit message; the compliance verification model is obtained by training a large language model using training samples; the training samples are determined based on a knowledge base; the knowledge base includes irrevocable documentary letter of credit message samples and corresponding compliance verification results.
[0008] Optionally, obtain the target irrevocable documentary credit message, including:
[0009] Obtain original irrevocable documentary credit message;
[0010] Convert the original irrevocable documentary credit message format to JSON format;
[0011] A check is performed to determine whether uppercase and lowercase writing of a target field in an original irrevocable documentary credit message in JSON format complies with specifications, and the original irrevocable documentary credit message in JSON format whose check result complies with specifications is used as the target irrevocable documentary credit message.
[0012] Optionally, the irrevocable documentary credit message sample includes: standard documents and relevant normative reference documents related to the irrevocable documentary credit; the compliance verification results in the training samples include: whether the irrevocable documentary credit message sample complies with the standard specifications and the reasons why the irrevocable documentary credit message sample does not comply with the specifications.
[0013] Optionally, after obtaining the compliance verification result of the target irrevocable documentary letter of credit message, the letter of credit message compliance verification method further comprises:
[0014] When the compliance verification result of the target irrevocable documentary credit message is in compliance with the standard specification, the current verification ends;
[0015] When the compliance verification result of the target irrevocable documentary credit message is not in compliance with standard specifications, the target irrevocable documentary credit message is adjusted according to the reasons for not being in compliance with standard specifications listed in the compliance verification result of the target irrevocable documentary credit message, so that the adjusted irrevocable documentary credit message complies with standard specifications, and the current verification is completed.
[0016] Optionally, the standard documents include documents with standard numbers GB / T 32171-2015 and GB / T 32172-2015.
[0017] Optionally, the relevant normative reference documents include documents with standard numbers GB / Z 25114.1-2010, GB / T2659.1-2022, GB / T 4880.1-2005 and GB / T 12406-2022.
[0018] Optionally, the reasons why the irrevocable documentary credit message sample does not comply with standard specifications include: the irrevocable documentary credit message sample does not contain necessary data types and the data filled in are non-mandatory items.
[0019] In a second aspect, the present application provides a letter of credit message compliance verification system, comprising:
[0020] A message acquisition module, used to acquire the target irrevocable documentary letter of credit message;
[0021] A compliance verification result determination module is used to input the target irrevocable documentary letter of credit message into a compliance verification model to obtain a compliance verification result of the target irrevocable documentary letter of credit message; the compliance verification model is obtained by training a large language model using training samples; the training samples are determined based on a knowledge base; the knowledge base includes irrevocable documentary letter of credit message samples and corresponding compliance verification results.
[0022] In a third aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any one of the above-mentioned methods for verifying the compliance of a letter of credit message.
[0023] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the above-mentioned methods for verifying the compliance of a letter of credit message.
[0024] According to the specific embodiments provided in this application, this application discloses the following technical effects:
[0025] The present application provides a method, system, device and medium for verifying the compliance of letter of credit messages. By adopting a compliance verification model based on a large language model to verify the compliance of the letter of credit message to be verified, the semantic understanding ability of the large language model is utilized, and the problems in the message can be more accurately identified, and missed detections and misjudgments can be reduced, thereby improving the accuracy of letter of credit message verification. An automated verification method is used to replace manual review, which greatly improves the speed and efficiency of compliance analysis of letter of credit messages. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 This is an application environment diagram of a method for verifying compliance of a letter of credit message in an embodiment of the present application;
[0028] Figure 2 A flowchart of a method for verifying compliance of a letter of credit message provided in one embodiment of the present application;
[0029] Figure 3 Another flowchart of a method for verifying compliance of a letter of credit message provided in one embodiment of the present application;
[0030] Figure 4 A schematic diagram of functional modules of a letter of credit message compliance verification system provided in one embodiment of the present application;
[0031] Figure 5 A schematic diagram of the structure of a computer device provided in one embodiment of the present application.
[0032] Reference numerals:
[0033] Terminal-102, server-104, message acquisition module-1, compliance verification result determination module-2. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0035] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0036] The letter of credit message compliance verification method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be set up separately, integrated on the server 104, or placed on the cloud or other servers. The terminal 102 can send the target irrevocable documentary credit message to the server 104. After the server 104 receives the target irrevocable documentary credit message, for the target irrevocable documentary credit message, the server 104 inputs the target irrevocable documentary credit message into the compliance verification model to obtain the compliance verification result of the target irrevocable documentary credit message; the compliance verification model is obtained by training the large language model with training samples; the training samples are determined based on a knowledge base; the knowledge base includes irrevocable documentary credit message samples and corresponding compliance verification results. The server 104 can feedback the compliance verification result to the terminal 102. In addition, in some embodiments, the letter of credit message compliance verification method can also be implemented independently by the server 104 or the terminal 102. For example, the terminal 102 can directly perform the letter of credit message compliance verification on the target irrevocable documentary letter of credit message, or the server 104 can obtain the target irrevocable documentary letter of credit message from the data storage system and perform the letter of credit message compliance verification on the target irrevocable documentary letter of credit message.
[0037] The terminal 102 may be, but is not limited to, various desktop computers, laptop computers, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart vehicle-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers, or may be a cloud server.
[0038] In an exemplary embodiment, Figure 2 As shown, a method for verifying the compliance of a letter of credit message is provided. The method is executed by a computer device, and can be executed by a computer device such as a terminal or a server alone, or by a terminal and a server together. In the embodiment of the present application, the method is applied to Figure 1 The server 104 in the example is used as an example to illustrate the method, which includes the following steps S1 to S2. Among them:
[0039] Step S1, obtaining a target irrevocable documentary credit message.
[0040] Step S2, inputting the target irrevocable documentary letter of credit message into a compliance verification model to obtain a compliance verification result of the target irrevocable documentary letter of credit message; the compliance verification model is obtained by training a large language model using training samples; the training samples are determined based on a knowledge base; the knowledge base includes irrevocable documentary letter of credit message samples and corresponding compliance verification results.
[0041] Specifically, the compliance verification model is used to process the input letter of credit message, analyze the information of the message, and compare it with the national standards in the knowledge base to determine whether it complies with the specifications, such as what data the letter of credit message should contain in the national standard, whether the data is a string, number or other type, and whether the data is a required item, etc. The compliance verification results will be displayed to the user. There will be multiple entries in the message, and each entry will be marked whether it complies with the national standards. For those that do not comply with the national standards, detailed descriptions will be provided, indicating the reasons and terms for non-compliance.
[0042] As an optional implementation, in step S1, obtaining the target irrevocable documentary letter of credit message specifically includes:
[0043] Step S11, obtaining the original irrevocable documentary credit message.
[0044] Step S12, converting the format of the original irrevocable documentary credit message into JSON format.
[0045] Step S13, checking whether the uppercase and lowercase writing of the target field in the original irrevocable documentary credit message in JSON format conforms to the specification, and taking the original irrevocable documentary credit message in JSON format whose check result conforms to the specification as the target irrevocable documentary credit message.
[0046] Specifically, the original irrevocable documentary letter of credit message is preprocessed, and messages in different formats such as XML and JSON are uniformly parsed into JSON format, and the case of necessary fields is checked to ensure that the format of the processed message is unified, which is convenient for subsequent large language model analysis and processing.
[0047] As an optional implementation, in step S2, the irrevocable documentary credit message sample includes: standard documents and relevant normative reference documents related to the irrevocable documentary credit; the compliance verification results in the training sample include: whether the irrevocable documentary credit message sample complies with the standard specifications and the reasons why the irrevocable documentary credit message sample does not comply with the specifications. The reasons why the irrevocable documentary credit message sample does not comply with the standard specifications include: the irrevocable documentary credit message sample does not contain the necessary data type and the filled data is non-mandatory.
[0048] Among them, Figure 3 As shown, standard documents and related normative reference files are stored in the vector database as the knowledge base for subsequent large language model analysis of messages. By using "letter of credit" as the query keyword, the national standard document library is regularly queried. If there is the latest document, it is actively downloaded and stored in the knowledge base to ensure that the content in the knowledge base is always up to date, thereby improving the accuracy and practicality of system processing.
[0049] Specifically, the standard document includes:
[0050] 1) GB / T 32171-2015 is based on ebXML irrevocable documentary credit messages.
[0051] 2) GB / T 32172-2015 Irrevocable Documentary Credit Application Message based on ebXML.
[0052] The relevant normative references include:
[0053] 1) GB / Z 25114.1-2010 Business messages based on ebXML Part 1: Trade items.
[0054] 2) GB / T 2659.1-2022 Codes for the names of countries and regions and their administrative divisions Part 1: Country and region codes.
[0055] 3) GB / T 4880.1-2005 Language name code Part 1: 2-letter code.
[0056] 4) GB / T 12406-2022 indicates the code for currency.
[0057] As an optional implementation, after step S2, the method further includes:
[0058] Step S3, when the compliance verification result of the target irrevocable documentary credit message is in compliance with the standard specification, the current verification is terminated.
[0059] Step S4, when the compliance verification result of the target irrevocable documentary credit message is not in compliance with the standard specifications, the target irrevocable documentary credit message is adjusted according to the reasons for not being in compliance with the standard specifications listed in the compliance verification result of the target irrevocable documentary credit message, so that the adjusted irrevocable documentary credit message complies with the standard specifications, and the current verification is completed.
[0060] Beneficial effects of this application:
[0061] 1) Improve audit efficiency: Replacing manual audit with automated verification methods greatly improves the speed and efficiency of compliance analysis of letter of credit messages.
[0062] 2) Enhanced accuracy: By leveraging the semantic understanding capabilities of large language models, problems in messages can be identified more accurately, reducing missed detections and misjudgments.
[0063] 3) Standardized audit: Audits are conducted based on a unified national standard vector database to ensure consistency and standardization of audit results, avoiding problems caused by differences in human understanding.
[0064] 4) Dynamic update: The vector database is updated at any time according to national standards to keep the system up to date and effective.
[0065] 5) Reduce costs: Reduce reliance on manual review and reduce the company's operating costs in letter of credit review.
[0066] Based on the same inventive concept, the embodiment of the present application also provides a letter of credit message compliance verification system for implementing the letter of credit message compliance verification method involved above. The implementation scheme for solving the problem provided by the system is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more letter of credit message compliance verification system embodiments provided below can refer to the limitations of the letter of credit message compliance verification method above, and will not be repeated here.
[0067] In an exemplary embodiment, Figure 4 As shown, a letter of credit message compliance verification system is provided, including:
[0068] The message acquisition module 1 is used to acquire the target irrevocable documentary letter of credit message.
[0069] The compliance verification result determination module 2 is used to input the target irrevocable documentary letter of credit message into the compliance verification model to obtain the compliance verification result of the target irrevocable documentary letter of credit message; the compliance verification model is obtained by training a large language model using training samples; the training samples are determined based on a knowledge base; the knowledge base includes irrevocable documentary letter of credit message samples and corresponding compliance verification results.
[0070] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 5As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for verifying the compliance of a letter of credit message is implemented.
[0071] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components. In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0072] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0073] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0074] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0075] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.
[0076] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0077] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.
Claims
1. A method for verifying compliance of a letter of credit message, characterized in that: The letter of credit message compliance verification method includes: Get the target irrevocable documentary credit message; The target irrevocable documentary letter of credit message is input into a compliance verification model to obtain a compliance verification result of the target irrevocable documentary letter of credit message; the compliance verification model is obtained by training a large language model using training samples; the training samples are determined based on a knowledge base; the knowledge base includes irrevocable documentary letter of credit message samples and corresponding compliance verification results.
2. The method for verifying compliance of a letter of credit message according to claim 1, characterized in that: Get the target irrevocable documentary credit message, including: Obtain original irrevocable documentary credit message; Convert the original irrevocable documentary credit message format to JSON format; A check is performed to determine whether uppercase and lowercase writing of a target field in an original irrevocable documentary credit message in JSON format complies with specifications, and the original irrevocable documentary credit message in JSON format whose check result complies with specifications is used as the target irrevocable documentary credit message.
3. The method for verifying compliance of a letter of credit message according to claim 1, characterized in that: The irrevocable documentary credit message sample includes: standard documents and relevant normative reference documents related to the irrevocable documentary credit; the compliance verification results in the training samples include: whether the irrevocable documentary credit message sample complies with the standard specifications and the reasons why the irrevocable documentary credit message sample does not comply with the specifications.
4. The method for verifying compliance of a letter of credit message according to claim 3, characterized in that: After obtaining the compliance verification result of the target irrevocable documentary letter of credit message, the letter of credit message compliance verification method further includes: When the compliance verification result of the target irrevocable documentary credit message is in compliance with the standard specification, the current verification ends; When the compliance verification result of the target irrevocable documentary credit message is not in compliance with standard specifications, the target irrevocable documentary credit message is adjusted according to the reasons for not being in compliance with standard specifications listed in the compliance verification result of the target irrevocable documentary credit message, so that the adjusted irrevocable documentary credit message complies with standard specifications, and the current verification is completed.
5. The method for verifying compliance of a letter of credit message according to claim 3, characterized in that: The standard documents include documents with standard numbers GB / T 32171-2015 and GB / T 32172-2015.
6. The method for verifying compliance of a letter of credit message according to claim 3, characterized in that: The relevant normative reference documents include documents with standard numbers GB / Z 25114.1-2010, GB / T 2659.1-2022, GB / T4880.1-2005 and GB / T12406-2022.
7. The method for verifying compliance of a letter of credit message according to claim 3, characterized in that: The reasons why the sample irrevocable documentary credit message does not comply with the standard specifications include: the sample irrevocable documentary credit message does not contain necessary data types and the data filled in are non-mandatory items.
8. A letter of credit message compliance verification system, characterized in that: The letter of credit message compliance verification system comprises: A message acquisition module, used to acquire the target irrevocable documentary letter of credit message; A compliance verification result determination module is used to input the target irrevocable documentary letter of credit message into a compliance verification model to obtain a compliance verification result of the target irrevocable documentary letter of credit message; the compliance verification model is obtained by training a large language model using training samples; the training samples are determined based on a knowledge base; the knowledge base includes irrevocable documentary letter of credit message samples and corresponding compliance verification results.
9. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the letter of credit message compliance verification method described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for verifying the compliance of a letter of credit message described in any one of claims 1 to 7 is implemented.
