A financial data query method and system based on a general large language model

By using a financial data query method based on a general large language model, the system automatically converts and executes SQL scripts, solving the problem of low efficiency in Chinese-to-SQL conversion models in the financial industry. This enables efficient, secure, and personalized data query processing for commercial banks, and improves the automation level of data analysis and decision support.

CN117349303BActive Publication Date: 2026-11-24CHINA CITIC BANK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311392654.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-25
Publication Date
2026-11-24
Estimated Expiration
2043-10-25

AI Technical Summary

Technical Problem

Existing Chinese-to-SQL script models face challenges in the financial industry, including semantic understanding, syntax conversion, entity recognition, relational identification, query optimization, and multilingual support. This results in limited practicality for complex data processing, particularly inefficient data statistics and analysis in commercial banks.

Method used

A financial data query method based on a general large language model is adopted. Through a pre-trained recognition model and a reinforcement learning model, Chinese query requirements are automatically converted into SQL scripts, and security verification and result feedback are performed to realize automatic script generation and execution, reducing manual intervention.

Benefits of technology

It improves the efficiency and accuracy of data retrieval for commercial banks, supports real-time data processing and personalized services, meets data security and privacy protection requirements, has high scalability and robustness, and automates data analysis and decision support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117349303B_ABST
    Figure CN117349303B_ABST
Patent Text Reader

Abstract

The application relates to a financial data query method and system based on a general large language model, which converts a natural language query request into a corresponding digital vector, converts the digital vector into a query script using a preset recognition model, and finally executes the query request and sends the result to the person who proposes the requirement, can directly export the SQL script and execute the result for the business personnel of the commercial bank, reduces the work of analyzing the requirement and writing the SQL script for the data analysis personnel, greatly reduces the artificial workload, and improves the data efficiency of the business personnel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of automated data processing and big data processing technology, and in particular to a financial data query method and system based on a general big language model. Background Technology

[0002] The financial sector routinely processes massive amounts of data and extracts specific data content based on business needs. For commercial banks' internal data usage and retrieval, the main specific requirements include: data analysis needs—commercial banks need to collect, organize, and analyze massive amounts of data, including user information, transaction records, and market dynamics, to understand customer needs, risk profiles, market trends, etc., to support business decisions; data management needs—commercial banks need to establish a comprehensive data management system, including data standards, data quality management, and data security, to ensure data standardization, accuracy, and security; and data sharing needs—internal departments within commercial banks need to share data to support collaboration and decision-making. Simultaneously, commercial banks also need to share data with other financial institutions and regulatory agencies to achieve cross-platform data sharing. The needs of commercial banks include: cooperation and regulation; data visualization requirements—commercial banks need to present data analysis results to management and employees in an intuitive and easy-to-understand format to support their better understanding of data, discovery of patterns, and decision support; real-time data processing requirements—commercial banks need real-time data processing capabilities to promptly process transaction data, risk data, etc., to support real-time risk management and decision support; multi-dimensional data analysis requirements—commercial banks need to support multi-dimensional data analysis, including time, region, and indicator dimensions, to support complex data analysis needs; and intelligent data analysis requirements—commercial banks need to support intelligent data analysis, including machine learning and data mining, to achieve automated analysis and prediction. To meet these needs, commercial banks need to establish a comprehensive data processing platform, including data collection, storage, processing, and analysis, and adopt advanced technologies and tools, such as big data technology, data mining technology, and visualization technology, to improve data processing efficiency and quality, supporting business decision-making and competitiveness.

[0003] To achieve the above functional requirements, a system for converting between natural language and data query statements is needed, such as a Chinese-to-SQL script model that converts Chinese natural language query statements into SQL query statements. However, existing Chinese-to-SQL script models still face the following technical challenges: semantic understanding, as understanding Chinese sentences is a major hurdle. Chinese sentences contain various expressions, each with potentially different semantic meanings, thus requiring accurate semantic understanding; syntax conversion, as the syntax of Chinese sentences differs significantly from that of SQL query statements, necessitating syntax conversion that considers tone, context, and other information within the Chinese sentence to ensure correct SQL query conversion; entity recognition, as Chinese sentences may contain various types of entities, such as names of people, places, and organizations, requiring identification and conversion into table names or column names in SQL query statements; and relationship recognition, as Chinese sentences may contain relationships between multiple entities, such as "What is the position of so-and-so?" or "What is the relationship between so-and-so company and so-and-so company?" Relationships need to be identified through entity recognition and relation extraction techniques to correctly implement relational queries in SQL statements. Query optimization is also crucial; the Chinese-to-SQL script model needs to consider factors such as index usage and join order to improve query efficiency while avoiding Cartesian product problems to prevent excessive redundant data in the query results. Multilingual support is also essential; the model needs to support multilingual input, including Chinese, English, and French, requiring multilingual processing to correctly identify and understand the semantics and syntax of different languages. Finally, scalability and robustness are critical; as Chinese statements and SQL queries continue to evolve and expand, the Chinese-to-SQL script model needs to be scalable and robust to adapt to new changes and expansions.

[0004] Therefore, most current Chinese-to-SQL script models adopt a machine translation-like approach, such as using a BERT pre-trained model architecture. This model converts Chinese words one by one into SQL keywords or table and field names. If joins are needed, it cannot automatically generate complex joins and nested query statements. Furthermore, in the financial industry, especially in commercial banking, data statistics often involve large time spans and multiple table joins, resulting in large datasets and complex calculations. Therefore, traditional Chinese-to-SQL script models are not very practical for the daily work of the financial industry. Summary of the Invention

[0005] To address the shortcomings of existing technologies, this invention proposes a financial data query method and system based on a general large language model. Using this model as a foundation, it automatically generates SQL scripts that can understand Chinese requirements, automatically performs script and data security checks, and finally executes the scripts and sends the results to the requester. This allows for the direct export of SQL scripts from data usage requirement documents of frontline business personnel in commercial banks, reducing the workload of data analysts in analyzing requirements and writing SQL scripts. This significantly reduces manual workload while improving the efficiency of data usage for business personnel.

[0006] To achieve the above objectives, the technical solution adopted by the present invention includes:

[0007] A financial data query method based on a general large language model, characterized by comprising:

[0008] S1. Obtain the first query request, convert the first query request into a first numeric vector, and save the first query request and the first numeric vector; the first query request includes Chinese natural language query requests.

[0009] S2. Use a pre-trained first recognition model to convert the first digit vector into a first query script; the first recognition model is a recognition model trained based on a general large language model.

[0010] S3. Perform a first evaluation operation on the first recognition model according to the first query script, and correct the first recognition model according to the result of the first evaluation operation to obtain a second recognition model. Use the second recognition model to convert the first digital vector into a second query script.

[0011] S4. Determine whether the second query script conforms to the preset script security rules;

[0012] S5. When it is determined that the second query script conforms to the preset script security rules, the second query script is executed to obtain the first query result;

[0013] S6. Perform a second evaluation operation on the second recognition model based on the first query result, and modify the second recognition model based on the second evaluation operation result to obtain a third recognition model. Use the third recognition model to convert the first digital vector into a third query script.

[0014] S7. Determine whether the similarity between the second query script and the third query script is lower than a preset threshold. When the similarity between the second query script and the third query script is not lower than the preset threshold, use the first query result as the output result feedback.

[0015] S8. When the similarity between the second query script and the third query script is determined to be lower than a preset threshold, the third query script is executed to obtain the second query result, and the second query result is used as the output result feedback.

[0016] Furthermore, the pre-trained first recognition model includes a pre-trained recognition model based on the GPT architecture language generation model.

[0017] Furthermore, the first evaluation operation includes using a reinforcement learning model to match a first query script with a human feedback score weighted to evaluate the first recognition model.

[0018] Furthermore, the script security rules include any one or more combinations of the following rules:

[0019] Specific keyword blocking;

[0020] Specific query fields are hidden;

[0021] Data output length limit;

[0022] Query execution time limit.

[0023] Furthermore, the second evaluation operation includes evaluating the second identification model based on the number of keyword modifications made by the second query script compared to the production script.

[0024] Furthermore, step S4 also includes:

[0025] When it is determined that the second query script does not comply with the preset script security rules, the system stops responding to the first query request and outputs a prompt message according to the script security rules.

[0026] This invention also relates to a financial data query system based on a general large language model, characterized in that it includes:

[0027] The data requirement management module is used to obtain the first query requirement and convert the first query request into a first numeric vector;

[0028] The model training module is used to train and adjust the recognition model based on a general large language model.

[0029] The script conversion module is used to convert the first numeric vector into a query script using the recognition model.

[0030] The first evaluation module is used to perform a first evaluation operation on the first recognition model based on the first query script.

[0031] The script security module is used to determine whether the query script conforms to the preset script security rules;

[0032] The script execution module is used to execute query scripts and obtain query results;

[0033] The second evaluation module is used to perform a second evaluation operation on the second recognition model based on the first query result;

[0034] The data feedback module is used to provide feedback on the output results.

[0035] The present invention also relates to a computer-readable storage medium, characterized in that the storage medium stores a computer program, which, when executed by a processor, implements the above-described method.

[0036] The present invention also relates to an electronic device, characterized in that it includes a processor and a memory;

[0037] The memory is used to store the first query request, the first numeric vector, and the script security rules;

[0038] The processor is configured to execute the above method by invoking a first query request, a first numeric vector, and a script security rule.

[0039] The present invention also relates to a computer program product, including a computer program and / or instructions, characterized in that the computer program and / or instructions, when executed by a processor, implement the steps of the above-described method.

[0040] The beneficial effects of this invention are as follows:

[0041] The financial data query method and system based on a general large language model, as described in this invention, uses this model to automatically generate SQL scripts that can understand Chinese requirements. It automatically performs script and data security checks, executes the scripts, and sends the results to the requester. This allows commercial bank frontline staff to directly export data requirement documents into SQL scripts and execute them, reducing the workload of data analysts in analyzing requirements and writing SQL scripts. This significantly reduces manual workload and improves the efficiency of data use for business personnel. Financial data query based on the general large language model can directly convert financial data into a usable format, avoiding the tedious process of manually organizing data for commercial banks, saving time and costs. It also avoids the cumbersome input and operation processes of traditional methods, improving the efficiency of data query. Furthermore, financial data query based on the general large language model can provide personalized data services and recommendations based on the commercial bank's historical query records and preferences, improving the accuracy and efficiency of data services. It can also ensure data privacy and security as needed, preventing data leakage and misuse, thus meeting the data privacy and security requirements of commercial banks. Compared to existing query methods, financial data querying based on a general large language model can update financial data and query results in real time while ensuring the accuracy of the results. This improves the accuracy and real-time performance requirements of commercial banks' data and can be expanded and upgraded as the internal data usage and retrieval needs of commercial banks grow and change, exhibiting high scalability and robustness. In contrast to the traditional independent state of commercial bank demand management, data analysis, and database query systems, the method of this invention unifies these three modules, enabling fully intelligent and automated completion of functions such as demand analysis, script analysis, and security auditing. This provides 24 / 7 data demand support for commercial bank staff, significantly improving the efficiency of internal data usage and retrieval within commercial banks. Attached Figure Description

[0042] Figure 1 This is a schematic diagram of the financial data query method based on a general large language model according to the present invention.

[0043] Figure 2 This is a schematic diagram of the financial data query system based on a general large language model according to the present invention. Detailed Implementation

[0044] To better understand the content of this invention, it will be described in detail with reference to the accompanying drawings and embodiments.

[0045] The first aspect of this invention relates to a process flow as follows: Figure 1 The financial data query method based on the general large language model shown includes:

[0046] S1. Obtain the first query request, convert the first query request into a first numeric vector, and save the first query request and the first numeric vector; the first query request includes Chinese natural language query requests.

[0047] Specifically, it can provide a platform for frontline business staff of commercial banks to write, review, and submit data usage requests. Business staff can write Chinese descriptions of the required data according to business needs, and after review by their business supervisors, the data will be transferred to the subsequent model execution process.

[0048] Preferably, the first query request can be converted into a first numeric vector by deploying the Word2Vec embedding module.

[0049] S2. Use a pre-trained first recognition model to convert the first digit vector into a first query script; the first recognition model is a recognition model trained based on a general large language model.

[0050] Specifically, the first pre-trained recognition model includes pre-trained recognition models based on the GPT architecture language generation model, such as GPT-2, GPT-3, ChatGLM-6B, or MOSS. The model training is conducted on pre-trained models using Chinese text and SQL script language data from the financial industry. Annotated data corresponding to Chinese requirements in SQL scripts is generated using existing business data application and execution records, and the model is then fine-tuned to refine the final results. After the model training is complete, the parameters are saved to a large language model data storage unit and are invoked during model execution.

[0051] S3. Perform a first evaluation operation on the first recognition model according to the first query script, and modify the first recognition model according to the result of the first evaluation operation to obtain a second recognition model. Use the second recognition model to convert the first digital vector into a second query script.

[0052] Preferably, the first evaluation operation includes using a reinforcement learning model to match the first query script with a human feedback score for weighted evaluation of the first recognition model. Specifically, human feedback reinforcement learning (RLHF) is used to evaluate and improve the performance of Chinese text to SQL script. Simultaneously, the reinforcement learning model needs to be weighted with the human feedback evaluation score, ultimately completing the correction and improvement of the model's performance.

[0053] S4. Determine whether the second query script conforms to the preset script security rules. The preferred script security rules include any one or more combinations of the following: specific keyword blocking (e.g., the script cannot contain keywords such as delete, drop, create, update); specific query field blocking (e.g., the output results cannot include fields beyond the user's permissions, and sensitive information is partially blocked with an asterisk); data output length limits (if the query data length exceeds the set maximum length, such as 1 million records, only the maximum length of query entries is displayed, and the user is informed that manual operation is required to query all data); query execution time limits (if the query time exceeds the set threshold, such as 10 minutes, the query task is automatically interrupted, and the user is prompted to optimize the SQL script; if continued execution is required, manual operation is required).

[0054] Preferably, when it is determined that the second query script does not conform to the preset script security rules, the feedback of the first query request is stopped and a prompt message is output according to the script security rules.

[0055] S5. When it is determined that the second query script conforms to the preset script security rules, the second query script is executed to obtain the first query result.

[0056] Preferably, the query script execution can be set to automatic or manual execution. When the manual execution model is set, the operator can manually check and modify the SQL script before execution. If the final executed script is modified compared to the automatically generated script, the script generation effect score is calculated according to the scoring rules of the script effect evaluation unit and fed back to the reinforcement learning unit.

[0057] S6. Perform a second evaluation operation on the second recognition model based on the first query result, and modify the second recognition model based on the second evaluation operation result to obtain a third recognition model. Use the third recognition model to convert the first digital vector into a third query script.

[0058] The second evaluation operation includes evaluating the second identification model based on the number of keyword modifications made by the second query script compared to the production script.

[0059] S7. Determine whether the similarity between the second query script and the third query script is lower than a preset threshold. When the similarity between the second query script and the third query script is not lower than the preset threshold, use the first query result as the output result feedback.

[0060] S8. When the similarity between the second query script and the third query script is determined to be lower than a preset threshold, the third query script is executed to obtain the second query result, and the second query result is used as the output result feedback.

[0061] Another aspect of this invention relates to a financial data query system based on a general large language model, the structure of which is as follows: Figure 2 As shown, it includes:

[0062] The data requirement management module is used to obtain the first query requirement and convert the first query request into a first numeric vector;

[0063] The model training module is used to train and adjust the recognition model based on a general large language model.

[0064] The script conversion module is used to convert the first numeric vector into a query script using the recognition model.

[0065] The first evaluation module is used to perform a first evaluation operation on the first recognition model based on the first query script.

[0066] The script security module is used to determine whether the query script conforms to the preset script security rules;

[0067] The script execution module is used to execute query scripts and obtain query results;

[0068] The second evaluation module is used to perform a second evaluation operation on the second recognition model based on the first query result;

[0069] The data feedback module is used to provide feedback on the output results.

[0070] Preferably, it may also include an independent data storage unit for storing business requirement documents, text vectors, model scripts, model parameters, model intermediate variables, model performance evaluation scores, script security rules, generated SQL scripts, and other data.

[0071] By using this system, the aforementioned computational processing methods can be executed and the corresponding technical effects can be achieved.

[0072] Embodiments of the present invention also provide a computer-readable storage medium capable of implementing all the steps of the methods in the above embodiments, wherein the computer-readable storage medium stores a computer program that, when executed by a processor, implements all the steps of the methods in the above embodiments.

[0073] Embodiments of the present invention also provide an electronic device for performing the above-described method. As an implementation device for the method, the electronic device includes at least a processor and a memory. In particular, the memory stores data and related computer programs required for performing the method, such as a first query requirement, a first digital vector, and script security rules. The processor calls the data and programs in the memory to execute all steps of the method and obtain the corresponding technical effect.

[0074] Preferably, the electronic device may include a bus architecture, which may include any number of interconnected buses and bridges. The bus will include various circuits linked together by one or more processors and memories. The bus may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface between the bus and the receiver and transmitter. The receiver and transmitter may be the same element, i.e., a transceiver, providing a unit for communicating with various other systems over a transmission medium. The processor is responsible for managing the bus and general processing, while the memory may be used to store data used by the processor during operation.

[0075] Additionally, the electronic device may further include components such as a communication module, an input unit, an audio processor, a display, and a power supply. The processor (or controller, operating control) used may include a microprocessor or other processor device and / or logic device, which receives input and controls the operation of various components of the electronic device; the memory may be one or more of a buffer, flash memory, hard drive, removable media, volatile memory, non-volatile memory, or other suitable devices, which can store the aforementioned data information, and may also store programs for executing the information, and the processor can execute the program stored in the memory to achieve information storage or processing, etc.; the input unit is used to provide input to the processor, for example, it can be a button or touch input device; the power supply is used to provide power to the electronic device; the display is used to display images and text, for example, it can be an LCD display. The communication module is a transmitter / receiver that transmits and receives signals via an antenna. The communication module (transmitter / receiver) is coupled to the processor to provide input signals and receive output signals, which can be the same as in conventional mobile communication terminals. Based on different communication technologies, multiple communication modules can be incorporated into the same electronic device, such as cellular network modules, Bluetooth modules, and / or wireless LAN modules. The communication module (transmitter / receiver) is also coupled to a speaker and microphone via an audio processor to provide audio output through the speaker and receive audio input from the microphone, thereby enabling typical telecommunications functions. The audio processor can include any suitable buffer, decoder, amplifier, etc. Furthermore, the audio processor is coupled to a central processing unit, enabling on-device recording via the microphone and on-device playback of stored sound via the speaker.

[0076] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0077] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A system that specifies functions in one or more boxes.

[0078] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including an instruction set implemented in a process. Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0079] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the functions specified in one or more boxes. Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the invention.

[0080] The above description is merely a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for querying financial data based on a general large language model, characterized in that, include: S1. Obtain the first query request, convert the first query request into a first numeric vector, and save the first query request and the first numeric vector; the first query request includes Chinese natural language query requests. S2. Use the pre-trained first recognition model to convert the first digit vector into a first query script; The first recognition model is a recognition model trained based on a general large language model; S3. Perform a first evaluation operation on the first recognition model according to the first query script, and correct the first recognition model according to the result of the first evaluation operation to obtain a second recognition model. Use the second recognition model to convert the first digital vector into a second query script. S4. Determine whether the second query script conforms to the preset script security rules; S5. When it is determined that the second query script conforms to the preset script security rules, the second query script is executed to obtain the first query result; S6. Perform a second evaluation operation on the second recognition model according to the second query script used to obtain the first query result, and modify the second recognition model according to the result of the second evaluation operation to obtain a third recognition model. Use the third recognition model to convert the first digital vector into a third query script. S7. Determine whether the similarity between the second query script and the third query script is lower than a preset threshold. When the similarity between the second query script and the third query script is not lower than the preset threshold, use the first query result as the output result feedback. S8. When the similarity between the second query script and the third query script is determined to be lower than a preset threshold, the third query script is executed to obtain the second query result, and the second query result is used as the output result feedback.

2. The method of claim 1, wherein, The first pre-trained recognition model includes a pre-trained recognition model based on the GPT architecture language generation model.

3. The method of claim 1, wherein, The first evaluation operation includes using a reinforcement learning model to match a first query script with human feedback scores to evaluate the first identification model.

4. The method of claim 1, wherein, The script security rules include any one or more combinations of the following rules: Specific keyword blocking; Specific query fields are hidden; Data output length limit; Query execution time limit.

5. The method of claim 1, wherein, The second evaluation operation includes evaluating the second identification model based on the number of keyword modifications made by the second query script used to obtain the first query result compared to the production script, wherein the production script is the final execution script after manual inspection and modification.

6. The method of claim 4, wherein, Step S4 further includes: When it is determined that the second query script does not comply with the preset script security rules, the system stops responding to the first query request and outputs a prompt message according to the script security rules. 7.A general large language model-based financial data query system, characterized in that, include: The data requirement management module is used to obtain the first query requirement, convert the first query request into a first numeric vector, and save the first query requirement and the first numeric vector; the first query requirement includes Chinese natural language query requirements; The model training module is used to train a first recognition model based on a general large language model; it is also used to correct the first recognition model based on the result of the first evaluation operation to obtain a second recognition model; and it is also used to correct the second recognition model based on the result of the second evaluation operation to obtain a third recognition model. The script conversion module is used to convert a first digit vector into a first query script using a pre-trained first recognition model; it is also used to convert the first digit vector into a second query script using a second recognition model; and it is also used to convert the first digit vector into a third query script using a third recognition model. The first evaluation module is used to perform a first evaluation operation on the first recognition model based on the first query script. The script security module is used to determine whether the second query script conforms to the preset script security rules; The script execution module is used to execute the second query script to obtain the first query result when it is determined that the second query script meets the preset script security rules; The second evaluation module is used to perform a second evaluation operation on the second recognition model based on the second query script used to obtain the first query result; The data feedback module is used to determine whether the similarity between the second query script and the third query script is lower than a preset threshold. When the similarity between the second query script and the third query script is not lower than the preset threshold, the first query result is used as the output result feedback. It is also used to execute the third query script to obtain the second query result when the similarity between the second query script and the third query script is determined to be lower than a preset threshold, and to use the second query result as the output result feedback.

8. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the method of any one of claims 1 to 6.

9. An electronic device, comprising: Including processor and memory; The memory is used to store the first query request, the first numeric vector, and the script security rules; The processor is configured to execute the method of any one of claims 1 to 6 by invoking a first query request, a first numeric vector, and a script security rule.

10. A computer program product comprising computer programs and / or instructions, characterized in that, When the computer program and / or instructions are executed by a processor, they implement the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method for establishing pre-training language model and semantic analysis method and device

    CN114547329A

  • Generative large language model training method and model-based search method

    CN116127020A