Method and apparatus for constructing a thought chain
By extracting verification metadata and semantic information from historical verification data, and using generative language models to generate thought chains for financial data verification scenarios, the problem of high manual annotation costs is solved, and the reliability and interpretability of LLM reasoning are improved.
Patent Information
- Application Number
- CN202611316832.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-24
AI Technical Summary
In existing technologies, methods that rely on manual annotation to generate thought chains suffer from high annotation costs in the field of financial data governance, resulting in insufficient reliability and interpretability of LLM reasoning in high compliance and high-risk scenarios.
By acquiring historical verification data, determining verification metadata and semantic information, and using a pre-set generative language model to reverse deduce the thought chain of the data verification scenario, the explicit extraction of expert reasoning knowledge is achieved, avoiding manual annotation.
It improves the quality of thought chain generation, reduces the cost of manual annotation, and enhances the reasoning reliability and interpretability of LLM in financial data verification scenarios.
Smart Images

Figure CN123159533A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of artificial intelligence technology, and in particular to a method for constructing a thought chain and an electronic device. Background Technology
[0002] With the increasing application of Large Language Models (LLMs) in the field of financial data governance, improving the reliability and interpretability of their reasoning in high-compliance and high-risk scenarios (such as bank reconciliation and regulatory reporting verification) has become a key challenge for the industry. In related technical solutions, chain-of-thought (CoT) is generated through manual annotation to improve the reasoning reliability and interpretability of LLM. However, this technical solution suffers from high annotation costs for manually annotated CoTs.
[0003] The information in the background section is merely information known only to the inventor and does not imply that such information had entered the public domain before the filing date of this specification, nor does it imply that it can be considered prior art in this specification. Summary of the Invention
[0004] This specification provides a method for constructing thought chains and an electronic device that can reverse-engineer and generate thought chains for data verification scenarios based on historical verification data, enabling the explicit extraction of expert reasoning knowledge and avoiding the problem of high success rates associated with manual annotation.
[0005] Firstly, this specification provides a method for constructing thought chains, including: Acquire historical verification data for the target data verification scenario, wherein the historical verification data includes verification logic information; Determine the verification metadata corresponding to the verification logic information and the metadata semantic information corresponding to the verification metadata; and Based on the metadata semantic information and the verification logic information, a thought chain is generated for the target data verification scenario through a preset generative language model.
[0006] In some embodiments, based on the above scheme, the verification logic information includes a data verification script, the verification metadata includes a data table and data fields, and determining the verification metadata corresponding to the verification logic information includes: Parse the data verification script and extract the data table and data fields from the data verification script.
[0007] In some embodiments, based on the above scheme, determining the metadata semantic information corresponding to the verification metadata includes: Determine the table vector corresponding to the data table and the field vector corresponding to the data fields; and Based on the table vector and the field vector, the table semantic information corresponding to the data table and the field semantic information corresponding to the data field are retrieved from the preset metadata knowledge base.
[0008] In some embodiments, based on the above scheme, generating a thought chain for the target data verification scenario using a preset generative language model based on the metadata semantic information and the verification logic information includes: Determine the verification processing logic corresponding to the verification logic information, wherein the verification processing logic includes verification processing conditions and verification logic; Based on the metadata semantic information and the verification processing logic, the preset generative language model is guided to generate a thought chain for the target data verification scenario.
[0009] In some embodiments, based on the above scheme, the verification processing conditions include at least one of data filtering conditions, data association methods, and data aggregation strategies.
[0010] In some embodiments, based on the above scheme, the historical verification data further includes a description of verification rules, and before generating the thought chain for the target data verification scenario, the method further includes: Based on the verification rule description, the data verification target corresponding to the verification rule description is determined by a preset generative language model.
[0011] In some embodiments, based on the above scheme, generating a thought chain for the target data verification scenario using a preset generative language model based on the metadata semantic information and the verification logic information includes: Identify key verification entities from the data verification targets; Based on the key verification entities, the metadata semantic information, and the verification logic information, a target mind chain is generated to generate prompt words; The target thought chain generates prompts that guide the preset generative language model to generate a thought chain for the target data verification scenario.
[0012] In some embodiments, based on the above scheme, the method further includes: Obtain table metadata for multiple data tables for the target data verification scenario, wherein the table metadata includes the data fields of the data tables; Determine the table semantic information of the data table and the field semantic information of the data fields; A preset metadata knowledge base is established based on the table semantic information of each of the data tables and the field semantic information of the data fields.
[0013] In some embodiments, based on the above scheme, the method further includes: Construct a method call interface for executing the thought chain constructor, the method call interface being used to call the thought chain constructor in batches.
[0014] In some embodiments, based on the above scheme, the method further includes: By using preset quality control prompts, the pre-defined generative language model is guided to perform multi-dimensional quality checks on the generated thought chain.
[0015] In some embodiments, based on the above scheme, the multiple dimensions include completeness and accuracy.
[0016] Secondly, this specification also provides an electronic device, comprising: at least one storage medium storing at least one instruction set for evaluation processing; and at least one processor communicatively connected to the at least one storage medium, wherein, when the electronic device is running, the at least one processor reads the at least one instruction set and executes the thought chain construction method described in the first aspect of this specification according to the instructions of the at least one instruction set.
[0017] As can be seen from the above technical solutions, the thinking chain construction method and device provided in the embodiments of this specification, on the one hand, determine the verification metadata and semantic information corresponding to the verification metadata of historical verification data, and can automatically and accurately extract data knowledge information related to verification reasoning from the historical verification data; on the other hand, generate a thinking chain for the target data verification scenario based on the metadata semantic information and verification logic information, and can reverse deduce the generation of the thinking chain for the data verification scenario based on the historical verification data, realize the explicit extraction of expert reasoning knowledge, and avoid the problem of high success rate of manual annotation; furthermore, since the generated thinking chain contains the expert reasoning process in the historical verification data, the quality of the generated thinking chain is improved.
[0018] Other features of the mind chain construction methods and apparatus provided in this specification will be partially listed in the following description. The figures and examples described below will be readily apparent to those skilled in the art. The inventive aspects of the mind chain construction methods and apparatus provided in this specification can be fully understood through practice or use of the methods, apparatus, and combinations described in the detailed examples below. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this specification, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 A schematic diagram of the implementation environment of a thought chain construction method provided in an embodiment of this specification is shown; Figure 2 A hardware structure diagram of an electronic device 200 provided according to an embodiment of this specification is shown; Figure 3 A flowchart illustrating a method for constructing a thought chain according to some embodiments of this specification is shown; Figure 4 A flowchart illustrating another method for constructing thought chains according to some embodiments of this specification is shown; Figure 5 This document illustrates an architectural diagram of an implementation architecture for a thought chain construction method provided according to some embodiments of this specification; and Figure 6 A flowchart illustrating yet another method for constructing a thought chain according to some embodiments of this specification is shown. Detailed Implementation
[0021] The following description provides specific application scenarios and requirements for this specification, intended to enable those skilled in the art to make and use the contents of this specification. Various partial modifications to the disclosed embodiments will be apparent to those skilled in the art, and the general principles defined herein can be applied to other embodiments and applications without departing from the spirit and scope of this specification. Therefore, this specification is not limited to the embodiments shown, but rather to the widest scope consistent with the claims.
[0022] The terminology used herein is for the purpose of describing particular exemplary embodiments only and is not restrictive. For example, unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “the” used herein may also include the plural forms. When used in this specification, the terms “comprising,” “including,” and / or “containing” mean that the associated integers, steps, operations, elements, and / or components are present, but do not exclude the presence of one or more other features, integers, steps, operations, elements, components, and / or groups, or that other features, integers, steps, operations, elements, components, and / or groups may be added to the system / method.
[0023] Considering the following description, these and other features of this specification, as well as the operation and function of the related components of the structure, and the economy of assembly and manufacture of the parts, can be significantly improved. All of these form part of this specification with reference to the accompanying drawings. However, it should be clearly understood that the drawings are for illustrative and descriptive purposes only and are not intended to limit the scope of this specification. It should also be understood that the drawings are not drawn to scale.
[0024] The flowcharts used in this specification illustrate operations implemented according to some embodiments of this specification. It should be clearly understood that the operations in the flowcharts may not be implemented in a sequential order. Instead, the operations may be implemented in reverse order or simultaneously. Furthermore, one or more additional operations may be added to the flowcharts. One or more operations may be removed from the flowcharts.
[0025] First, the terms and concepts used in one or more embodiments of this specification will be explained.
[0026] Unstructured data refers to data without a fixed format or model, such as verification requirements, work orders, and emails described in natural language. In this article, it specifically refers to the description of verification requirements and verification scripts.
[0027] Chain-of-Thought (CoT): A large language model reasoning technique that improves the accuracy and interpretability of complex tasks by generating intermediate reasoning steps.
[0028] Historical verification data refers to the verification-related assets accumulated by the enterprise, including verification rule descriptions, executable scripts (SQL / Aviator, etc.), and verification-related metadata.
[0029] Reverse deduction: Starting from the existing verification script (result), reverse the process of reasoning (reasons and steps) when the expert wrote the script.
[0030] Pre-defined generative language models: These include large-scale or small-scale language models. They are general-purpose natural language processing models trained on massive amounts of data, possessing complex reasoning and contextual understanding capabilities. They can empower the decision-making and reflection processes of intelligent agents, such as Transformer-based neural network models, ChatGPT models, or DeepSeek models.
[0031] Financial reconciliation scenarios: Specifically refers to data verification tasks with high compliance requirements in industries such as banking, securities, and insurance, including reconciliation, regulatory reporting verification, and transaction consistency checks.
[0032] Prompt: A prompt or stimulus, typically used in large models to guide user input or elicit a specific program response. It is frequently used in large model programming and user interface design.
[0033] In related technical solutions, several thought chain (CoT) templates are predefined, and the corresponding thought chain templates are filled according to the task type. LLM then generates a thought chain based on the filled thought chain templates. However, in the above technical solutions, due to the lack of real expert reasoning paths as training data, key financial rules are often ignored, resulting in poor quality of the generated thought chains.
[0034] Based on the above, embodiments of this specification provide a method for constructing a thought chain and an electronic device. On the one hand, by determining the verification metadata and corresponding semantic information of historical verification data, it is possible to automatically and accurately extract data knowledge information related to verification reasoning from historical verification data. On the other hand, by generating a thought chain for a target data verification scenario based on the metadata semantic information and verification logic information, it is possible to reverse-derive the thought chain for the data verification scenario based on historical verification data, thereby achieving explicit extraction of expert reasoning knowledge and avoiding the problem of high success rate of manual annotation. Furthermore, since the generated thought chain contains the expert reasoning process in the historical verification data, the quality of the generated thought chain is improved.
[0035] The technical solutions of the embodiments of this specification will now be described in detail with reference to the accompanying drawings.
[0036] Figure 1 A schematic diagram of the implementation environment of a thought chain construction method provided in an embodiment of this specification is shown.
[0037] See Figure 1 As shown, the implementation environment 100 may include a terminal 110, a server 130, and a database 140.
[0038] Terminal 110 is connected to server 130 via wireless network or wired network 120. Terminal 110 can be a mobile phone, tablet computer, laptop computer, or desktop computer, but is not limited to these.
[0039] Terminal 110 may store data or instructions for executing the thought chain construction method described in this specification. Terminal 110 may include hardware devices with data processing capabilities and the necessary programs to drive the hardware devices.
[0040] Server 130 is a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. Server 230 provides background services for the applications running on terminal 110.
[0041] Server 130 is equipped with an integrated development platform (IDE). An IDE, also known as an integrated development environment, is an application that provides a program development environment, typically including tools such as a code editor, compiler, debugger, and graphical user interface. Developers can write program code (i.e., program development) on the IDE. The IDE server can be a computing device specifically designed to implement the thought process construction method. Server 130 can communicate with both terminal 110 and database 140.
[0042] Furthermore, server 130 may store data or instructions for executing the thought chain construction method described in this specification. Server 130 may include hardware devices with data processing capabilities and the necessary programs required to drive the hardware devices. Of course, server 130 may also be merely a hardware device with data processing capabilities, or simply a program running on the hardware device. In some embodiments, server 130 may also be deployed as a plug-in on terminal 110, in which case server 130 stores data or instructions for executing the thought chain construction method corresponding to terminal 110 described in this specification.
[0043] Database 140 may store data and / or instructions. In some embodiments, database 140 may store multi-source data and node operation logs, etc. In some embodiments, database 140 may store data and / or instructions executed by server 130 or used to execute the thought chain construction method described in this specification. Terminal 110 and server 130 have access to database 140, and terminal 110 and server 130 may access data or instructions stored in database 140 via a network. In some embodiments, database 140 may be directly connected to terminal 110 and server 130. In some embodiments, database 140 may be part of server 130. In some embodiments, database 140 may include mass storage, removable storage, volatile read-write memory, read-only memory (ROM), or similar content, or any combination thereof. Exemplary mass storage may include non-transitory storage medium such as disks, optical discs, solid-state drives, etc. Exemplary removable storage may include flash drives, floppy disks, optical discs, memory cards, zip disks, magnetic tapes, etc. Typical volatile read-write memory may include random access memory (RAM). Example RAMs may include dynamic RAM (DRAM), dual date rate synchronous dynamic RAM (DDRSDRAM), static RAM (SRAM), thyristor RAM (T-RAM), and zero-capacitance RAM (Z-RAM), etc. Exemplary ROMs may include mask ROM (MROM), programmable ROM (PROM), virtual programmable ROM (PEROM), electronically programmable ROM (EEPROM), optical disc ROM (CD ROM), and digital multifunction disk ROM, etc.
[0044] Those skilled in the art will understand that the number of terminals described above can be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or even more, in which case other terminals may also be included in the above implementation environment. This specification does not limit the number of terminals or the type of devices in the embodiments.
[0045] After introducing the implementation environment of the embodiments of this specification, the application scenarios of the embodiments of this specification will be described below in conjunction with the above implementation environment. In the following description, the terminal is the terminal 110 in the above implementation environment, and the server is the server 130 in the above implementation environment. The technical solutions provided by the embodiments of this specification can be applied in various data verification scenarios, such as financial data verification scenarios, e-commerce data verification, or bank data verification.
[0046] Taking the technical solution provided in the embodiments of this specification as an example in the financial data verification scenario, the terminal 110 obtains historical verification data for the financial data verification scenario, the historical verification data includes verification logic information; determines the verification metadata corresponding to the verification logic information and the metadata semantic information corresponding to the verification metadata; and generates a thought chain for the financial data verification scenario based on the metadata semantic information and the verification logic information through a preset generative language model.
[0047] It should be noted that the above description is based on the application of the technical solution provided in the embodiments of this specification to a financial data verification scenario. The technical solution provided in the embodiments of this specification can also be applied to other appropriate data verification scenarios, such as e-commerce data verification or insurance data verification evaluation scenarios. The implementation process is the same as the above description and belongs to the same inventive concept, so it will not be repeated here.
[0048] It should be noted that the steps in the thought chain construction method in the example embodiments of this specification may be partially executed by the terminal, partially executed by the server, or entirely executed by the server or entirely by the terminal. This specification does not impose any special limitations on this.
[0049] based on Figure 1 The implementation environment shown below will be combined with... Figures 2-6 This specification provides a detailed description of the thought chain construction method and electronic device provided in the embodiments. It should be noted that the above-described implementation environment is only shown to facilitate understanding of the spirit and principles of this specification, and the embodiments of this specification are not limited in any way. Rather, the embodiments of this specification can be applied to any applicable scenario.
[0050] Figure 2 This is a schematic diagram of an electronic device 200 provided according to some embodiments of this specification. The electronic device 200 can execute the thought chain construction method described in this specification. The thought chain construction method is described in other parts of this specification. The electronic device 200 can be a general-purpose computer or a special-purpose computer. For example, the electronic device 200 can be a server, a personal computer, a portable computer (such as a laptop computer, tablet computer, etc.), or other electronic devices with computing capabilities. Of course, the electronic device can be... Figure 1 The terminal 110 and / or server 130 can also be terminal devices used by multiple developers to develop programs on an integrated development platform.
[0051] The electronic device described in this specification may include one or more of the following components: processor 210, memory 220, input device 230, output device 240, and bus 250. The processor 210, memory 220, input device 230, and output device 240 may be connected to each other via bus 250.
[0052] Processor 210 may include one or more processing cores. Processor 210 connects various parts within the electronic device using various interfaces and lines, and executes the thought chain construction method described in this specification by running or executing instructions, programs, code sets, or instruction sets stored in memory 220, and by calling data stored in memory 220. Optionally, processor 210 may be implemented using at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). Processor 210 may integrate one or more of a central processing unit (CPU), graphics processing unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into processor 210, but may be implemented separately using a communication chip.
[0053] The memory 220 may include random access memory (RAM) or read-only memory (ROM). Optionally, the memory 220 may include non-transitory computer-readable storage medium. The memory 220 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., touch function, sound playback function, image playback function, etc.), instructions for implementing the various method embodiments described below, etc. The operating system may be an Android system, including systems deeply developed based on the Android system, an iOS system, including systems deeply developed based on the iOS system, or other systems.
[0054] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to establish data communication between the third-party applications and the operating system. This would allow the operating system to obtain the current scenario information of the third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.
[0055] The input device 230 is used to receive input instructions or data, and includes, but is not limited to, a keyboard, mouse, camera, microphone, or touch device. The output device 240 is used to output instructions or data, and includes, but is not limited to, a display device and a speaker. In one example, the input device 230 and the output device 240 can be combined, and both the input device 230 and the output device 240 can be a touch display screen.
[0056] In addition, those skilled in the art will understand that the structure of the electronic device shown in the above figures does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements. For example, the electronic device may also include radio frequency circuits, input units, sensors, audio circuits, Wireless Fidelity (WiFi) modules, power supplies, Bluetooth modules, etc., which will not be described in detail here.
[0057] Figure 3 A flowchart of a thought chain construction method according to an embodiment of this specification is shown. As previously described, the electronic device 200 can execute the thought chain construction method of the embodiment of this specification. Specifically, the processor 210 can read the instruction set stored in its local storage medium and then execute the thought chain construction method of the embodiment of this specification according to the instructions of the instruction set. Hereinafter, steps S310 to S330 of the thought chain construction method will be described in detail with reference to the accompanying drawings.
[0058] Reference Figure 3 As shown, in step S310, historical verification data for the target data verification scenario is obtained, and the historical verification data includes verification logic information.
[0059] In the example embodiment, the target data verification scenario refers to a data verification scenario that requires the construction of a thought chain, such as a financial data verification scenario or an e-commerce data verification scenario. Historical verification data represents the offline data set extracted from the data source for consistency comparison in the target data verification scenario. Historical verification data includes verification logic information, which refers to a series of rules, conditions, algorithms, or configuration information used to guide the data verification process.
[0060] For example, the verification logic information can include verification rules, such as "the billing account on platform X, and the credit elements of C-end and F-end must be consistent." The verification logic information can also include the data verification reasoning process, which can be in the form of a script or code; for example, the verification logic information can be a data verification script.
[0061] For example, the verification logic information includes data verification rules and data verification scripts. Electronic device 200 obtains historical verification data of the target data verification scenario from the data source, such as obtaining existing data verification rules and data verification scripts from the data verification platform, such as SQL scripts or Aviator scripts.
[0062] In step S320, the verification metadata corresponding to the verification logic information and the metadata semantic information corresponding to the verification metadata are determined.
[0063] In the example embodiment, the verification metadata represents data describing the verification data. The verification metadata includes information about the organization, data domains, and relationships of the verification data. For example, the verification metadata includes data from a data table and the corresponding field data. For instance, the verification logic information includes historically verified data tables and corresponding data fields. The electronic device 200 parses the verification logic information using a preset generative language model to determine the data table and corresponding data fields corresponding to the verification logic information.
[0064] Pre-defined generative language models can be Large Language Models (LLMs), such as those based on the Transformer architecture. A LLM is a natural language processing model based on deep learning techniques, typically with billions to hundreds of billions or even more parameters, possessing powerful language understanding and generation capabilities. LLMs can employ the Transformer architecture or its variants (such as GPT and BERT), which utilizes an attention mechanism to globally model sequential data, efficiently handling long-distance dependencies and thus performing well in natural language tasks. LLMs learn the statistical features and semantic relationships of language through pre-training on large-scale corpora, giving them good generalization capabilities. The core capabilities of LLMs include, but are not limited to: understanding contextual semantics, generating coherent and grammatically correct text, performing logical reasoning, and handling multi-task scenarios. Their usage typically includes two modes: direct inference and fine-tuning. In direct inference mode, the user guides the LLM to generate specific outputs by designing prompts. Cue words can be task descriptions or instructions in text form, used to stimulate the semantic understanding and generation capabilities of the large language model. In fine-tuning mode, the large language model is further trained on small-scale datasets in a specific domain to optimize its performance on specific tasks.
[0065] In some example embodiments, the verification logic information includes a data verification script. The electronic device 200 parses the data verification script using a preset generative language model to extract the data tables and data fields from the script. For example, if the data verification script is an SQL script, the electronic device 200 parses the SQL verification script using a preset generative language model to extract the data tables and data fields from the script.
[0066] Furthermore, verifying the semantic information of the metadata corresponding to the metadata represents the human-understandable meaning and contextual constraints assigned to each identifier in the metadata. For example, the "status" field is used to identify the user's credit status; if it is "FROZEN," it indicates that the user is frozen. In the example embodiment, a preset metadata knowledge base stores the semantic information corresponding to the metadata. The electronic device 200 determines the table vector corresponding to the data table and the field vector corresponding to the data field; and retrieves the table semantic information corresponding to the data table and the field semantic information corresponding to the data field from the preset metadata knowledge base based on the table vector and the field vector.
[0067] For example, electronic device 200 performs vectorized encoding on data tables and data fields to obtain table vectors corresponding to the data tables and field vectors corresponding to the data fields. Based on the table vectors and field vectors, it retrieves the corresponding semantic information from the vector database of a preset metadata knowledge base. For example, it calculates the similarity between the target field vector and the pre-built field vector index in the knowledge base, recalls the Top-K field vectors in descending order of similarity, and uses the semantic information corresponding to the first recalled field vector as the semantic information corresponding to the target field vector.
[0068] Furthermore, in the example embodiment, the electronic device 200 acquires metadata of multiple data tables for the target data verification scenario, the metadata including data tables and corresponding data fields; determines the table semantic information of the data tables and the field semantic information of the data fields; and establishes a preset metadata knowledge base based on the table semantic information of each data table and the field semantic information of the data fields.
[0069] For example, electronic device 200 obtains table metadata from relevant data tables in multiple historical verification data. The table metadata includes field names, comments, and other information. It converts the table metadata and field information into corresponding semantic information. For example, it converts the table structure and field comments into natural language descriptions (such as the "status" field used to identify the user's credit status; if it is 'FROZEN', it means the user is frozen). After vectorization, the table names and corresponding fields are stored in a vector database to support subsequent semantic retrieval.
[0070] In step S330, based on metadata semantic information and verification logic information, a thought chain for the target data verification scenario is generated through a preset generative language model.
[0071] In the example embodiment, the thought chain for a target data verification scenario refers to decomposing the reasoning process of data verification into a series of ordered and traceable logical steps, each step containing explicit inputs, processing logic, and outputs. For example, the thought chain for a target data verification scenario may include the following: Step 1: Determine the verification target, such as verifying the consistency between the order amount and the payment amount; Step 2: Locate the required data, such as verifying metadata including the order details table and the payment table, obtaining the order amount from the order details table and the actual payment amount from the payment table; Step 3: Perform data association, such as associating the two tables through the DingTalk ID; Step 4: Perform verification logic, such as comparing the consistency between the order amount and the payment amount; Step 5: Output the verification conclusion, such as "consistent / inconsistent," and mark the details of the difference.
[0072] In the example embodiment, the preset generative language model can be a Large Language Model (LLM), such as a large language model based on the Transformer architecture. The electronic device 200 generates target thought chain generation prompts based on metadata semantic information and verification logic information. Based on the target thought chain generation prompts, the preset generative language model generates a thought chain for the target data verification scenario.
[0073] For example, electronic device 200 can acquire a preset thought chain generation prompt template and fill it in based on metadata semantic information and verification logic information to form a target thought chain generation prompt. The target thought chain generation prompt is then input into a preset generative language model, which generates a thought chain tailored to the target data verification scenario based on the guidance in the target thought chain generation prompt. For example, the prompt template could be: 1. "You are a data verification expert. Please generate a structured data verification thought chain based on the following data table information and verification logic."; 2. "Data table information: [Table semantic information + Field semantic information]"; 3. "Verification logic: [Verification logic information]"; 4. "Please output the thought chain in the following format: Step 1 - Verification target; Step 2 - Data location; Step 3 - Data association; Step 4 - Verification logic; Step 5 - Conclusion output." In some example embodiments, the electronic device 200 determines the verification processing logic corresponding to the verification logic information; based on metadata semantic information and the verification processing logic, it guides a preset generative language model to generate a thought chain for the target data verification scenario. The verification processing logic includes verification processing conditions and verification logic. Verification processing conditions represent the pre-constraints for data verification, such as the scope and method of verifying which data. Verification logic represents the "judgment rules" for data verification, i.e., how to determine whether the data is correct. For example, verification logic could be comparing whether two field values in data table 1 and data table 2 are equal; or determining whether the difference between two field values in data table 1 and data table 2 is within the allowed threshold. Verification processing conditions include at least one of data filtering conditions, data association methods, and data aggregation strategies. Verification processing conditions may also include other appropriate conditions such as pre-conditions. Specifically, data filtering conditions are used to limit the range of data participating in the verification; data association methods are used to define the association relationships between multiple data tables; data aggregation is used to define the data aggregation method; and pre-constraints are used to limit whether the data is in a valid state.
[0074] For example, suppose the verification logic information includes a data verification script. Electronic device 200 parses the data verification script to determine the corresponding verification processing conditions and validation logic. Verification processing conditions include data filtering conditions, data association methods, and data aggregation strategies. For instance, this can be achieved through syntax parsing (such as AST abstract syntax tree parsing) or rule matching: extracting data filtering conditions from the WHERE clause; extracting data association methods from the JOIN clause; extracting data aggregation strategies from the GROUP BY clause; and extracting validation logic from the HAVING or CASE WHEN clauses. Furthermore, electronic device 200 assembles metadata semantic information (table semantics + field semantics) and verification processing logic (verification processing conditions + validation logic) into structured prompts, guiding the pre-defined generative language model to reason according to a pre-defined thought chain structure.
[0075] According to the technical solutions in the above example embodiments, on the one hand, by introducing metadata semantic information, a rich semantic context can be provided for LLM; on the other hand, through the dual constraints of "verification processing logic + metadata semantic information", the accuracy of the thought chain at both the logical and data levels is ensured.
[0076] In other example embodiments, the historical verification data also includes a verification rule description. Before generating a thought chain for the target data verification scenario, the electronic device 200 determines the data verification target corresponding to the verification rule description through a preset generative language model based on the verification rule description. Based on the data verification target, metadata semantic information, and verification processing logic, the preset generative language model is guided to generate a thought chain for the target data verification scenario.
[0077] The verification rule description refers to the original verification rule text written in natural language. For example, the verification rule description might be: "For cases where there are multiple credit records under the same customer name, the annual interest rate field of each record needs to be checked one by one. If the annual interest rate values of multiple records for the same customer are inconsistent, they are marked as abnormal data and require manual review." The electronic device 200 inputs the verification rule description into a preset generative language model to construct verification target generation prompts. These prompts guide the preset generative language model to determine the data verification target corresponding to the verification rule description. For example, after the LLM Agent refines the verification rule description, the following verification target is obtained: "Verify whether the annual interest rates of multiple credit records for a user are consistent."
[0078] According to the technical solution in the above example embodiment, by unifying the description of the verification rules into a standardized verification target format, precise "semantic tags" can be added to the verification rules, providing clear "task anchors" for the generation of downstream thought chains.
[0079] according to Figure 3 The technical solution in the example embodiment, on the one hand, determines the verification metadata and semantic information corresponding to the verification metadata of the historical verification data, which can automatically and accurately extract the data knowledge information related to verification reasoning from the historical verification data; on the other hand, it generates a thinking chain for the target data verification scenario based on the metadata semantic information and verification logic information, which can reversely deduce the thinking chain of the data verification scenario based on the historical verification data, realize the explicit extraction of the expert reasoning process, and avoid the problem of high success rate of manual annotation; furthermore, since the generated thinking chain contains the expert reasoning process in the historical verification data, the quality of the generated thinking chain is improved.
[0080] In the example embodiment, the electronic device 200 guides a preset generative language model to perform multi-dimensional quality checks on the generated thought chain using preset quality check prompts. The preset quality check prompts refer to pre-designed prompt templates used to guide the generative language model in reviewing the quality of the thought chain. The preset quality check prompts include information such as the evaluation role, evaluation dimensions, and output format.
[0081] In some embodiments, multiple dimensions include completeness and accuracy. The completeness dimension is used to check whether the thought chain is missing necessary steps, key fields, or filtering conditions, etc.; the accuracy dimension is used to check whether the logic of each reasoning step is correct, whether the table name and field name references are correct, and whether the validation is reasonable, etc.
[0082] For example, the prompt word template typically includes the following elements: role setting (such as "You are a data verification and quality inspection expert"), evaluation dimension definition (specific evaluation criteria for completeness and accuracy), and output format requirements (such as JSON format, including scores for each dimension and problem descriptions). The electronic device 200 assembles the thought chain text to be inspected with the preset quality inspection prompt word template to form a complete quality inspection prompt word; the assembled quality inspection prompt word is input into the preset generative language model to guide the model to perform completeness and accuracy quality inspection on the thought chain.
[0083] It should be noted that although the above-mentioned integrity and accuracy dimensions have been used as examples, those skilled in the art should understand that multi-dimensional verification can also include other appropriate dimensions such as logical coherence or factual dimensions, which are also within the scope of the embodiments in this specification.
[0084] According to the technical solution in the above example embodiment, by inserting a quality inspection stage after the thought chain generation stage, a closed loop of "generation → quality inspection → correction → re-quality inspection" is formed, intercepting quality problems at the source and preventing errors from spreading downstream.
[0085] Furthermore, in the example embodiment, the electronic device 200 constructs a method invocation interface for executing the thought chain construction method. This method invocation interface is used to invoke the thought chain construction method in batches. For example, this method invocation interface can be an application programming interface (API) for generating thought chains as agents. By invoking this method invocation interface in parallel, batch construction of thought chains for multiple scenarios can be performed.
[0086] According to the technical solutions in the above example embodiments, it is possible to construct corresponding thought chains in batches from the COT production end to the consumer end, and realize the industrialized production of financial-grade data verification of CoT.
[0087] Figure 4 A flowchart illustrating another method for constructing thought chains according to some embodiments of this specification is shown.
[0088] Reference Figure 4 As shown, in step S410, the data verification target corresponding to the verification rule description is determined by a preset generative language model based on the verification rule description.
[0089] In the example embodiment, a prompt word template for the verification target is pre-set. The prompt word template includes the following elements: role setting: telling the LLM that it is a "data verification rule analyst"; task instruction: requiring "summarize the verification target in one sentence"; format constraints: specifying the output structure, such as a JSON data structure.
[0090] Electronic device 200 inputs the verification rule description into a preset generative language model, assembles the verification rule description text with the verification target generation prompt word template, constructs the verification target generation prompt word, and guides the preset generative language model to determine the data verification target corresponding to the verification rule description. For example, if the verification rule description is "For cases where there are multiple credit records under the same customer name, it is necessary to check the annual interest rate field of each record one by one. If the annual interest rate values in multiple records of the same customer are inconsistent, they are marked as abnormal data and require manual review," then the resulting data verification target is "to verify whether the annual interest rates of multiple credit records of a user are consistent."
[0091] In step S420, key verification entities are identified from the data verification targets.
[0092] In the example embodiment, key verification entities refer to core elements with clear meaning in the data verification target. Electronic device 200 inputs the data verification target into a preset generative language model, such as an LLM Agent, guiding the preset generative language model to identify key verification entities from the data verification target.
[0093] For example, if the data verification target is "to verify whether the annual interest rates of multiple credit records of a user are consistent", the electronic device 200 guides the LLM to perform semantic parsing on the data verification target through preset prompt words, and identifies key verification entities in the data verification target, such as "credit record" and "annual interest rate".
[0094] In step S430, a target thought chain is generated based on key verification entities, metadata semantic information, and verification logic information to generate prompt words.
[0095] In the example embodiment, the verification logic information includes a data verification script. A prompt word template is generated in advance based on the corresponding thought chain set according to the data verification scenario. The prompt word template includes: (1) Role setting: You are a financial data verification expert; (2) Task description: Please generate a complete thought chain based on the following reference information to show the complete reasoning process from "understanding the verification target" to "executing the verification logic" and then to "drawing the verification conclusion". The reference information includes: [Verification target] {{check_target}}; [Key transaction entities] {{entities_description}}; [Metadata] {{metadata_description}}; [Verification logic rules] {{logic_description}}.
[0096] Electronic device 200 acquires key verification entities, metadata semantic information, and verification logic information, and fills the acquired key verification entities, metadata semantic information, and verification logic information into the above-mentioned mind chain generation prompt word template to obtain the target mind chain generation prompt word.
[0097] In step S440, the target thought chain is generated by prompting words to guide the preset generative language model to generate a thought chain for the target data verification scenario.
[0098] In the example embodiment, the electronic device 200 passes the target thought chain generated prompt text as the message parameter to the LLM API. Based on the reasoning ability obtained through pre-training, the LLM combines the context information provided in the prompt text to perform multi-step logical reasoning and gradually build a complete verification thought chain.
[0099] The verification logic information includes the data verification script. Under the guidance of the target thinking chain generated by the LLM Agent, the reasoning steps are organized according to the following logic: (1) The LLM Agent analyzes the verification purpose based on the data verification target and key verification entities, that is, performs verification target analysis and clarifies the transaction problem to be solved; (2) Based on the key verification entities of the verification target and the semantic information of metadata, locate the required tables and fields, and determine the tables and fields involved and their corresponding meanings; (3) Based on the data verification script, sort out the verification logic, combine the filtering conditions, association methods, aggregation strategies, etc. in the data verification script, restore the complete reasoning chain of the expert, and construct the verification thinking chain.
[0100] For example, assuming the key verification entities include "credit records" and "annual interest rate", the dim_credit_grant table and its corresponding annual_rate field in the metadata are identified as the tables and fields to be verified. The generated thought process includes the following steps: ["Step 1: Retrieve all corporate customer IDs from the dim_corporate_customer table", "Step 2: Using customer_id as the join key, query all credit records for each customer from the dim_credit_grant table", "Step 3: Group by customer_id and check whether the annual_rate of all credit records under the same customer is consistent", "Step 4: If there are multiple records for the same customer with different annual interest rates, mark them as abnormal".
[0101] according to Figure 4 The technical solution in the example embodiment analyzes the verification target during the generation of the thought chain, which can help LLM accurately filter out tables and fields related to the verification task from a large amount of metadata and reduce the interference of irrelevant information.
[0102] Figure 5 A schematic diagram of the implementation architecture of the mind chain construction method according to some embodiments of this specification is shown.
[0103] See Figure 5 As shown, the implementation architecture includes a data collection and preprocessing module 510, a key reasoning element preparation module 520, a thought chain generation module 530, and a batch automated generation and quality assurance module 540.
[0104] The data collection and preprocessing module 510 includes a historical data collection unit, a metadata collection unit, a low-quality data processing unit, and a missing data labeling / completion unit. The historical data collection unit retrieves existing historical verification rules, verification scripts, and contextual constraints such as transaction dates and filtering conditions from the verification platform. The metadata collection unit synchronously retrieves data such as the structure of relevant tables, field comments, and field value ranges from the metadata center or other data platforms. The low-quality data processing unit cleans and filters low-quality data, removing noisy, duplicate, erroneous, or incomplete data records. The missing data labeling / completion unit marks or completes missing values in the data.
[0105] The key reasoning element preparation module 520 includes a target extraction unit, a table data escaping unit, and a field data escaping unit. The target extraction unit automatically summarizes clear and concise verification targets based on the original verification rule description using the LLM Agent (e.g., "verify whether the annual interest rates of multiple credit records for a user are consistent"). The target data escaping unit converts the table structure into a natural language description. The field data escaping unit converts field information into a natural language description (e.g., the "status" field identifies the user's credit status; 'FROZEN' indicates a frozen user), and stores the table names and corresponding fields in a vector database after vectorization to support subsequent semantic retrieval.
[0106] The thought chain generation module 530 includes a keyword extraction unit, a data element retrieval unit, a data semantic matching unit, and a thought chain assembly unit. The keyword extraction unit uses an LLM Agent to identify key transaction entities (such as "annual interest rate," "temporary credit limit," and "credit status") from the verification target. The data element retrieval unit uses an LLM Agent to parse the verification script and extract the actual table names and fields used. The data semantic matching unit retrieves the corresponding semantic explanations from the constructed vector knowledge base based on the extraction results, achieving a mapping from "code" to "transaction meaning." The thought chain assembly unit is used to organize the reasoning steps according to the following logic under the guidance of the LLM Agent: (1) The LLM Agent analyzes the purpose of the verification based on the data verification target and key verification entities, that is, to conduct verification target analysis and clarify the transaction problem to be solved; (2) Based on the key verification entities of the verification target and the semantic information of metadata, locate the required tables and fields, and determine the tables and fields involved and their corresponding meanings; (3) Based on the data verification script, sort out the verification logic, and combine the filtering conditions, association methods, aggregation strategies, etc. in the data verification script to restore the complete reasoning chain of the expert and construct the verification thought chain.
[0107] The batch automated generation and quality assurance module 540 includes a batch generation tool unit, a mind chain batch generation unit, and a mind chain data quality inspection unit. The batch generation tool unit constructs a batch processing engine that can call the "mind chain generation agent" in parallel, such as the mind chain generation agent's method call interface API. This batch processing engine supports efficient processing of tens of thousands of tasks. The mind chain batch generation unit is used to automatically call the aforementioned batch processing engine to generate the corresponding mind chain CoT for the cleaned full historical verification task. The mind chain data quality inspection unit is used to perform multi-dimensional quality checks on the generated mind chains based on preset quality inspection prompts using LLM, such as completeness and accuracy checks.
[0108] according to Figure 5The technical solution in the example embodiment, through the full-process design of "data acquisition → knowledge construction → reverse reasoning → batch generation → quality closed loop", realizes the ability to automatically extract expert thinking from dormant historical verification scripts, and provides a high-quality training data foundation for training a highly reliable and interpretable intelligent verification assistant.
[0109] Figure 6 A flowchart illustrating yet another method for constructing a thought chain according to some embodiments of this specification is shown.
[0110] Reference Figure 6 As shown, in step S610, a data query is initiated.
[0111] In the example embodiment, the electronic device 200 initiates a data query to the offline data warehouse through the automatic data task unit to query historical verification data from the offline data warehouse, such as historical verification rules, verification scripts, context constraints such as transaction dates, filtering conditions, etc.
[0112] In step S620, the original data is returned.
[0113] In the example embodiment, the offline data warehouse returns the historical verification rules, verification scripts, and contextual constraints such as transaction dates and filtering conditions to the automated data task processing unit.
[0114] In step S630, data cleaning and filtering are performed.
[0115] In an example embodiment, electronic device 200 cleans and filters low-quality data, removing noisy, duplicate, erroneous, or incomplete data records.
[0116] In step S640, data completion is performed.
[0117] In an example embodiment, the electronic device 200 marks or completes missing values in the data.
[0118] In step S650, semantic conversion is initiated.
[0119] In the example embodiment, the electronic device 200 initiates semantic transformation to the LLM, identifies key transaction entities (such as "annual interest rate", "temporary credit limit", "credit status" etc.) from the verification target through the LLM Agent; the LLM Agent parses the verification script to extract the actual table names and fields used; based on the extraction results, the corresponding semantic explanations are retrieved from the constructed vector knowledge base to achieve the mapping of "code → transaction meaning".
[0120] In step S660, thought chain generation is performed using LLM.
[0121] In the embodiment, under the guidance of the LLM Agent, the electronic device 200 organizes the reasoning steps according to the following logic: (1) The LLM Agent analyzes the purpose of the verification based on the data verification target and key verification entities, that is, performs verification target analysis and clarifies the transaction problem to be solved; (2) Based on the key verification entities of the verification target and the semantic information of metadata, locate the required tables and fields, and determine the tables and fields involved and their corresponding meanings; (3) Based on the data verification script, sort out the verification logic, combine the filtering conditions, association methods, aggregation strategies, etc. in the data verification script, restore the complete reasoning chain of the expert, and construct the verification thinking chain.
[0122] In step S670, the semantic result of the thought chain is returned.
[0123] according to Figure 6 The technical solution in the example embodiment treats existing, production-verified historical verification data as "expert reasoning results," and uses automated means to reverse-engineer the complete thinking process experienced by human experts when writing the historical verification script, thereby generating high-quality, interpretable thought chain training data.
[0124] This specification, in another aspect, provides a non-transitory storage medium storing at least one set of executable instructions for performing evaluation processing. When these executable instructions are executed by a processor, they instruct the processor to implement the steps of the thought chain construction method described in this specification. In some possible embodiments, various aspects of this specification can also be implemented as a program product comprising program code. When the program product is run on an electronic device 200, the program code causes the electronic device 200 to perform the steps of the thought chain construction method described in this specification. The program product for implementing the above method may employ a portable compact disc read-only memory (CD-ROM) containing program code and may run on the electronic device 200. However, the program product of this specification is not limited thereto. In this specification, a readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system. The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. The aforementioned computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable storage medium may also be any readable medium other than a readable storage medium that can send, propagate, or transmit programs for use by or in connection with an instruction execution system, apparatus, or device. Program code contained on a readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof. Program code for performing the operations described herein can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on electronic device 200, partially on electronic device 200, as a standalone software package, partially on electronic device 200 and partially on a remote computing device, or entirely on a remote computing device.
[0125] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multiple evaluations and parallel processing are possible or may be advantageous.
[0126] In summary, after reading this detailed disclosure, those skilled in the art will understand that the foregoing detailed disclosure is presented by way of example only and is not restrictive. Although not explicitly stated herein, those skilled in the art will understand that this specification requires various reasonable changes, improvements, and modifications to the embodiments. These changes, improvements, and modifications are intended to be made by this specification and are within the spirit and scope of the exemplary embodiments described herein.
[0127] Furthermore, certain terms in this specification have been used to describe embodiments of this specification. For example, "an embodiment," "an embodiment," and / or "some embodiments" mean that a particular feature, structure, or characteristic described in connection with that embodiment may be included in at least one embodiment of this specification. Therefore, it is to be emphasized and understood that two or more references to "an embodiment" or "an embodiment" or "alternative embodiment" in various parts of this specification do not necessarily refer to the same embodiment. Moreover, specific features, structures, or characteristics may be suitably combined in one or more embodiments of this specification.
[0128] It should be understood that in the foregoing description of the embodiments in this specification, various features are combined in a single embodiment, drawing, or description for the purpose of simplifying the description and aiding in the understanding of a feature. However, this does not mean that the combination of these features is necessary, and those skilled in the art may readily identify some of the devices as separate embodiments when reading this specification. That is, the embodiments in this specification can also be understood as an integration of multiple secondary embodiments. It is also valid when each secondary embodiment contains fewer than all the features of a single foregoing disclosed embodiment.
[0129] Each patent, patent application, publication of a patent application, and other material such as articles, books, specifications, publications, documents, articles, etc., cited herein may be incorporated by reference, except for any identical content appearing in the related documents that may be inconsistent with or conflict with this document, or any identical document content that may have a limiting effect on the widest scope of the claims. For example, in the event of any inconsistency or conflict between the description, definition, and / or use of terms associated with any included material and those related to this document, the terminology herein shall prevail.
[0130] Finally, it should be understood that the embodiments disclosed herein are illustrative of the principles of the embodiments described in this specification. Other modified embodiments are also within the scope of this specification. Therefore, the embodiments disclosed in this specification are merely examples and not limitations. Those skilled in the art can implement the applications described in this specification using alternative configurations based on the embodiments in this specification. Therefore, the embodiments in this specification are not limited to the embodiments precisely described in the applications.
Claims
1. A method for constructing a thought chain, comprising: Acquire historical verification data for the target data verification scenario, wherein the historical verification data includes verification logic information; Determine the verification metadata corresponding to the verification logical information and the metadata semantic information corresponding to the verification metadata; as well as Based on the metadata semantic information and the verification logic information, a thought chain is generated for the target data verification scenario through a preset generative language model.
2. The method according to claim 1, wherein, The verification logic information includes a data verification script, and the verification metadata includes a data table and data fields. Determining the verification metadata corresponding to the verification logic information includes: Parse the data verification script and extract the data table and data fields from the data verification script.
3. The method according to claim 2, wherein, The step of determining the metadata semantic information corresponding to the verified metadata includes: Determine the table vector corresponding to the data table and the field vector corresponding to the data fields; and Based on the table vector and the field vector, the table semantic information corresponding to the data table and the field semantic information corresponding to the data field are retrieved from the preset metadata knowledge base.
4. The method according to claim 1, wherein, The step of generating a thought chain for the target data verification scenario based on the metadata semantic information and the verification logic information through a preset generative language model includes: Determine the verification processing logic corresponding to the verification logic information, wherein the verification processing logic includes verification processing conditions and verification logic; Based on the metadata semantic information and the verification processing logic, the preset generative language model is guided to generate a thought chain for the target data verification scenario.
5. The method according to claim 4, wherein, The verification processing conditions include at least one of the following: data filtering conditions, data association methods, and data aggregation strategies.
6. The method according to claim 1, wherein, The historical verification data also includes a description of verification rules. Before generating the thought process for the target data verification scenario, the method further includes: Based on the verification rule description, the data verification target corresponding to the verification rule description is determined by the preset generative language model.
7. The method according to claim 6, wherein, The step of generating a thought chain for the target data verification scenario based on the metadata semantic information and the verification logic information through a preset generative language model includes: Identify key verification entities from the data verification targets; Based on the key verification entities, the metadata semantic information, and the verification logic information, a target mind chain is generated to generate prompt words; The target thought chain generates prompts that guide the preset generative language model to generate a thought chain for the target data verification scenario.
8. The method according to claim 1, wherein, The method further includes: Obtain table metadata for multiple data tables for the target data verification scenario, wherein the table metadata includes the data fields of the data tables; Determine the table semantic information of the data table and the field semantic information of the data fields; A preset metadata knowledge base is established based on the table semantic information of each of the data tables and the field semantic information of the data fields.
9. The method according to claim 1, wherein, The method further includes: Construct a method call interface for executing the thought chain constructor, the method call interface being used to call the thought chain constructor in batches.
10. The method according to claim 1, wherein, The method further includes: The preset generative language model is guided by preset quality inspection prompts to perform multi-dimensional quality inspections on the generated thought chain.
11. The method according to claim 10, wherein, The multiple dimensions include completeness and accuracy.
12. An electronic device, comprising: At least one storage medium storing at least one instruction set for evaluation processing; as well as At least one processor is communicatively connected to the at least one storage medium. When the electronic device is running, the at least one processor reads the at least one instruction set and executes the thought chain construction method according to any one of claims 1-11 according to the instructions of the at least one instruction set.
