Method and system for answering financial query question based on large language model

By analyzing and fine-tuning financial query questions, large language models can provide accurate answers in the financial field, solving the shortcomings of existing models in complex financial queries, achieving precise answers to financial questions and applicability in vertical fields.

CN118551006APending Publication Date: 2024-08-27NEW IDEA TECH (HARBIN) CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410608764.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In the financial field, although existing large language models have strong generalization capabilities when dealing with complex financial query problems, they are difficult to provide accurate answers in specific scenarios, and have insufficient computing power when interacting with databases, making them unable to satisfy vertical fields. professional needs.

Method used

By analyzing financial query questions, constructing fine-tuned data, fine-tuning large language models, and controlling its output results to call calculator tools, you can achieve accurate answers to financial questions. Specific steps include aggregating financial question steps, constructing fine-tuning data, fine-tuning the large language model, and controlling the output results to generate financial query answers.

Benefits of technology

It achieves accurate answers to financial query questions using large language models, lowers the threshold for financial knowledge, is suitable for corporate financial management, and can be extended to answer methods for a variety of questions, and is suitable for fine-tuning in vertical fields in the financial field.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118551006A
    Figure CN118551006A
Patent Text Reader

Abstract

The invention discloses a method and system for answering financial query questions based on a large language model, and relates to the field of artificial intelligence. The problem that although an existing general model can process general tasks, data features and task requirements in a specific vertical field may be greatly different from those in a general field, and a customized large model needs to meet the requirements is solved. According to the scheme, the method comprises the following steps of 1, summarizing financial query questions, analyzing the financial query questions, and summarizing the financial query questions; 2, according to the summarized steps of the financial query questions, constructing fine adjustment data of the financial question answering process; 3, according to the constructed fine tuning data, performing fine tuning on the large language model; and step 4, controlling an output result of the large language model to achieve a result of answering a financial query question. The method is also suitable for the fine tuning field of the large language model in the vertical field, such as the financial field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of artificial intelligence. Background Art

[0002] The development of large models is an important progress in the field of artificial intelligence in recent years. With the increase in hardware computing power and the improvement of algorithms, researchers have developed larger and larger neural network models with more parameters. These large models perform well in tasks such as natural language processing (NLP) and computer vision (CV), providing powerful tools for solving complex problems. The application needs of vertical fields are becoming more and more urgent for customized and personalized solutions. Although traditional general models can handle general tasks, in specific vertical fields, such as healthcare, finance, law, etc., more refined and specialized models are often required to handle complex problems in the field. The data characteristics and task requirements in these fields may be very different from those in general fields, so customized large models are needed to meet the needs.

[0003] Especially in the financial field, it is often necessary to interact with the database, so the large language model in the financial field has high requirements for computing power and the ability to call the database. Although the large language model itself has a certain computing power, it involves complex calculation expressions and needs to be solved by calling the calculator tool. The large language model has strong generalization ability, but it still cannot answer questions well in special scenarios. Summary of the invention

[0004] The present invention aims to solve the problem that although the general models in the prior art can handle general tasks, in specific vertical fields, the data characteristics and task requirements of specific vertical fields may be very different from those of general fields, so customized large-scale models are needed to meet the needs. To solve the above technical problems, the present invention is implemented through the following technical solutions:

[0005] Solution 1: The present invention proposes a method for answering financial query questions based on a large language model, the method comprising the following steps:

[0006] Step 1: Summarize the financial inquiry questions, analyze the financial inquiry questions, and summarize the steps of the financial inquiry questions;

[0007] Step 2: Based on the steps of the financial query problem summarized in step 1, construct fine-tuning data for the financial problem-solving process;

[0008] Step 3: Fine-tune the large language model based on the fine-tuning data constructed in step 2;

[0009] Step 4: Control the output result of the large language model to realize the function of calling the tool and achieve the result of answering the financial query question.

[0010] Furthermore, a preferred implementation is provided, wherein the summary of financial query questions in step one is obtained by calculating three major financial statements.

[0011] Furthermore, a preferred implementation is provided, in which the fine-tuning data for constructing the financial problem solving process in step 2 is implemented through the React framework.

[0012] Furthermore, a preferred implementation is provided, wherein step 2 also includes a step of preprocessing the fine-tuning data for constructing the financial problem solving process.

[0013] Further, a preferred implementation manner is provided, in which the method for controlling the output result of the large language model in step 4 is:

[0014] S4.1. Input the user's question into the large language model, and the large language model answers the question according to the financial question answering process constructed in step 2;

[0015] S4.2, after the large language model detects the calling tool, it pauses the output and calls the tool, i.e., performs text recall on the formula information;

[0016] S4.3, the large language model continues to output after querying the formula information, and generates a tool name for querying specific values ​​according to the queried formula information;

[0017] S4.4, after the large language model completes the query operation, the specific value queried is filled back into the formula, and the calculator tool is called to complete the calculation operation;

[0018] S4.5. The large language model integrates the calculation results with the financial query questions and outputs the results that answer the financial query questions.

[0019] Furthermore, a preferred implementation is provided, wherein step one also includes a step of expanding the financial answer question, and the step is used to generate chart data.

[0020] Further, a preferred implementation is provided, wherein the step of expanding the financial answer question and the method for generating chart data are:

[0021] S5.1. Steps to summarize financial inquiry questions;

[0022] S5.2. Construct fine-tuning data based on the steps of summarizing the financial query problem, wherein the fine-tuning data includes the idea of ​​solving the problem by the large model, the tool to be called, and the parameters passed to the tool;

[0023] S5.3, use the constructed fine-tuning data to perform instruction fine-tuning on the large language model;

[0024] S5.4. The output of the large language model is output in the form of data generated from the fine-tuning data into a chart.

[0025] Solution 2: A system for answering financial query questions based on a large language model, the system comprising:

[0026] A summary module is used to summarize financial query problems, analyze the financial query problems, and summarize the steps of solving the financial query problems;

[0027] A construction module is used to construct fine-tuning data of the financial problem solving process according to the steps of the financial query problem summarized in the summary module;

[0028] A fine-tuning module, used to fine-tune the large language model according to the fine-tuning data constructed in the building module;

[0029] The control module is used to control the output result of the large language model, and to realize the function of calling the tool to achieve the result of answering the financial query question.

[0030] Solution three: A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes any one of the methods described in Solution one.

[0031] Solution 4: A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of Solution 1.

[0032] The present invention is beneficial in that:

[0033] The present invention describes a method for answering financial query questions based on a large language model. By sorting out the process of answering financial questions, a set of problem-solving processes is constructed. Through the present invention, the large language model can answer such questions involving accurate data.

[0034] The present invention can be applied to corporate financial management. Even people who do not understand financial knowledge can get the answers they want, thus lowering the threshold for understanding financial status.

[0035] The method described in the present invention can also be expanded. According to the idea of ​​this method, a large language model can learn solutions to a variety of problems.

[0036] The present invention is also applicable to the fine-tuning of large language models in vertical fields, such as the financial field. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is a flow chart of a method for answering financial query questions based on a large language model according to the first embodiment of the present invention.

[0038] Figure 2 This is a flow chart of processing financial query questions with a large language model in answering financial query questions based on a large language model according to the first embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solutions and advantages of the implementation methods of the present application clearer, the technical solutions in the implementation methods of the present application will be clearly and completely described below in conjunction with the drawings in the implementation methods of the present application. Obviously, the described implementation methods are only part of the implementation methods of the present application, not all of the implementation methods.

[0040] Implementation method 1: This implementation method provides a method for answering financial query questions based on a large language model, the method comprising the following steps:

[0041] Step 1: Summarize the financial inquiry questions, analyze the financial inquiry questions, and summarize the steps of the financial inquiry questions;

[0042] Step 2: Based on the steps of the financial query problem summarized in step 1, construct fine-tuning data for the financial problem-solving process;

[0043] Step 3: Fine-tune the large language model based on the fine-tuning data constructed in step 2;

[0044] Step 4: Control the output result of the large language model to realize the function of calling the tool and achieve the result of answering the financial query question.

[0045] Implementation method 2: This implementation method further limits the method for answering financial query questions based on a large language model described in implementation method 1. The summary of financial query questions in step 1 is obtained by calculating the three major financial statements.

[0046] Implementation method three: This implementation method is a further limitation of the method for answering financial query questions based on a large language model described in implementation method one. The fine-tuning data for constructing the financial question answering process in step two is implemented through the React framework.

[0047] Implementation method 4: This implementation method is a further limitation of the method for answering financial query questions based on a large language model described in implementation method 1, and step 2 also includes a step of preprocessing the fine-tuning data for constructing a financial question answering process.

[0048] Implementation mode 5: This implementation mode further limits the method for answering financial query questions based on a large language model described in implementation mode 1. The method for controlling the output result of the large language model in step 4 is:

[0049] S4.1. Input the user's question into the large language model, and the large language model answers the question according to the financial question answering process constructed in step 2;

[0050] S4.2, after the large language model detects the calling tool, it pauses the output and calls the tool, i.e., performs text recall on the formula information;

[0051] S4.3, the large language model continues to output after querying the formula information, and generates a tool name for querying specific values ​​according to the queried formula information;

[0052] S4.4, after the large language model completes the query operation, the specific value queried is filled back into the formula, and the calculator tool is called to complete the calculation operation;

[0053] S4.5. The large language model integrates the calculation results with the financial query questions and outputs the results that answer the financial query questions.

[0054] Implementation method 6: This implementation method further limits the method for answering financial query questions based on a large language model described in implementation method 1. Step 1 also includes a step of expanding the financial answer question, and the step is used to output chart data.

[0055] Implementation 7: This implementation is a further limitation of the method for answering financial query questions based on a large language model described in Implementation 6. The step of expanding the financial answer question and the method for outputting chart data are as follows:

[0056] S5.1. Steps to summarize financial inquiry questions;

[0057] S5.2. Construct fine-tuning data based on the steps of summarizing the financial query problem, wherein the fine-tuning data includes the idea of ​​solving the problem by the large model, the tool to be called, and the parameters passed to the tool;

[0058] S5.3, use the constructed fine-tuning data to perform instruction fine-tuning on the large language model;

[0059] S5.4. The output of the large language model is output in the form of data generated from the fine-tuning data into a chart.

[0060] Embodiment 8: This embodiment proposes a system for answering financial query questions based on a large language model, the system comprising:

[0061] A summary module is used to summarize financial query problems, analyze the financial query problems, and summarize the steps of solving the financial query problems;

[0062] A construction module is used to construct fine-tuning data of the financial problem solving process according to the steps of the financial query problem summarized in the summary module;

[0063] A fine-tuning module, used to fine-tune the large language model according to the fine-tuning data constructed in the building module;

[0064] The control module is used to control the output result of the large language model, and to realize the function of calling the tool to achieve the result of answering the financial query question.

[0065] Embodiment 9: A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the method described in any one of embodiments 1 to 7.

[0066] Embodiment 10: A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of embodiments 1 to 7 are implemented.

[0067] Implementation eleven: This implementation provides an example, which is used to explain the above implementations one to ten. The specific example is as follows:

[0068] See also Figure 1 and Figure 2 To illustrate this implementation method, step 1, summarize the financial inquiry questions;

[0069] In real life, the three major financial statements are prepared in accordance with accounting standards, and are accounting statements that reflect the financial status and operations of the accounting entity to the owners, creditors, the government, other relevant parties, and the public. Financial statements can reflect the operating conditions of the enterprise, but the three major financial statements are based on the accounting management of the enterprise and require a series of calculations. Among them, the three major financial statements include the balance sheet, income statement, and cash flow statement.

[0070] This step is one of the preliminary steps, which aims to summarize the general solutions to financial problems. Summarizing the general solutions makes it easier for the large language model to learn this method and automate the processing flow. In addition, it can greatly facilitate subsequent related processing.

[0071] Step 2. Construct financial problem-solving process data for fine-tuning large language model instructions;

[0072] This step is one of the prerequisite steps. Use the financial problem-solving process summarized in step one, process it, and fine-tune the data according to the React framework construction instructions, so that the large language model can learn the financial data solution ideas and get accurate results through tool calls. The above information will be applied in steps three and four.

[0073] Step 3: Use the data constructed in step 2 to fine-tune the large language model;

[0074] This step is one of the keys to the large language model solving financial query problems. It preprocesses the instruction fine-tuning data in step 2 and adds an end token and prompt so that the large language model can learn key information more accurately.

[0075] Step 4. Control the output of the large language model to achieve the function of calling the tool and finally get specific results;

[0076] This step is one of the keys to using large language models to solve financial query problems. After fine-tuning the large language model, the data needs to be controlled to achieve the function of tool calling.

[0077] Specific implementation method 2: Combination Figure 2 To illustrate, this implementation method provides a method for controlling the output process of a large model.

[0078] S4.1. Input the user's question into the big model. The big model will answer the question according to the data flow constructed in step 2. The first thing to answer is to identify the key information contained in the user's question and identify the report information to be queried. For the report information, the tool name to be called is generated, and the parameter information is the name of the data to be queried.

[0079] S4.2. After the large model detects that the tool is called, it pauses the output, calls the tool, and performs text recall of the formula information.

[0080] S4.3. After the large model has found the formula information, it continues to output and generates the tool name for querying specific values ​​according to the found formula. The parameters are time information and formula information. In the tool for querying values, fill the parameter information into the SQL template to complete the query.

[0081] S4.4. After the large model completes the query operation, it fills the queried value back into the formula and calls the calculator tool to complete the calculation operation.

[0082] S4.5. The large model integrates the calculation results with the problem and gives the final answer.

[0083] Specific implementation method three is to expand the financial answer questions so that it can provide data for generating charts in a certain format based on user questions.

[0084] S5.1. Summarize the general solution process for financial related tables.

[0085] S5.2. According to the summarized process, construct SFT fine-tuning data. The fine-tuning data contains the ideas for solving the problem of the large model, as well as the tools to be called and the parameters passed to the tools.

[0086] S5.3. Use the constructed data to fine-tune the instructions of the large model.

[0087] S5.4. The output of the large model is processed according to the solution process of the output table.

[0088] Example

[0089] According to the above steps, this embodiment can allow the big model to learn how to answer financial questions, and can allow the big model to be applied to finance-related fields. The specific beneficial effects of the invention are as follows:

[0090] This embodiment follows Figure 1 To proceed with the process shown in the figure, we first need to summarize the problems to be solved, and then construct the problem-solving process data according to the general rules summarized, and use this data to fine-tune the instructions of the large model. At the same time, the output of the large model is controlled according to the process. After the user asks the large model a question, the large model will give an accurate answer according to the established process.

[0091] The following is the specific process of asking questions about the three major financial statements in Implementation Method 1, the large language model processing process and the final answer:

[0092] For example, how much did it cost during March 2018?

[0093] Thought: According to the question, the key information extracted is the period cost, and we need to find the complete formula.

[0094] Action: find_formula [period cost]

[0095] Observation: Period expenses = Level 1 reinsurance expenses + Level 1 sales expenses + Level 1 management expenses + Level 1 financial expenses +

[0096] First-level subject exploration fee

[0097] Thought: Based on the formula information found, we need to know the specific value of the formula in March 2018.

[0098] Action: get_values[March 2018,[First-level subject reinsurance expenses, First-level subject sales expenses, First-level subject management expenses, First-level subject finance

[0099] Cost, first-level subject exploration costs]]

[0100] Observation:{'First-level subject reinsurance expenses': 0,'First-level subject sales expenses': 214563.35,'First-level subject management expenses': 756960.7,'First-level

[0101] Subject financial expenses': 534665.95, 'First-level subject exploration expenses': 0}

[0102] Thought: After getting the specific value, you need to substitute it into the formula: Period cost = Level 1 reinsurance cost + Level 1 sales cost + Level 1

[0103] Project management expenses + first-level financial expenses + first-level exploration expenses, and then calculate using a calculator.

[0104] Action:calculate[0+214563.35+756960.7+534665.95+0]

[0105] Observation:1506190.0

[0106] Thought: According to the calculation results, the period cost is 1506190.0, so the period cost for March 2018 is 1506190.0

[0107] Action:Finish[The period cost for March 2018 is 1506190.0]

[0108] That is, it can be seen that according to this method, the large language model is able to correctly answer the question according to the established method.

[0109] In the sixth implementation method, questions are asked about the three major financial statements, and the specific process of generating a table result example is as follows:

[0110] Other long-term assets for the first quarter of 2017, total assets expressed as a bar chart?

[0111] Thought: According to the user's question, the time information we extracted is 2017, the first quarter, the keywords are other long-term assets, total assets, and the result representation method required by the user is a bar chart.

[0112] Action:search_by_keywords[2017,first quarter,[other long-term assets,total assets],bar chart]

[0113] Observation:{'chart':{'type':'bar','data':{'xaxis':[1,2,3],'yaxis':[{'Other long-term assets':[0,0,0]},{'Total assets':[395825425.14,163153606.82,73271955.07]}]}}}

[0114] Action:Finish[The bar chart obtained according to the calculation is {'chart':{'type':'bar','data':{'xaxis':[1,2,3],'yaxis':[{'Other long-term assets':[0,0,0]},{'Total assets':[395825425.14,163153606.82,73271955.07]}]}}}]

[0115] That is, the method of using large language models to answer financial questions can be applied to solving other problems.

[0116] Figure 1Any process or method description in the flowchart described in or otherwise described herein can be understood as representing a module, fragment or portion of a code including one or more executable instructions for implementing the steps of a custom logic function or process, and the scope of the preferred embodiment of the present invention includes other implementations, in which the functions may be performed in a substantially simultaneous manner or in a reverse order according to the functions involved, which should be understood by a person skilled in the art of the present invention. The logic and / or steps represented in the flowchart or otherwise described herein illustrate the possible implementation architecture, functions and operations of the apparatus and methods according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for implementing the specified logic function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It is also noted that each block in the block diagram or flowchart, and combinations of blocks in the block diagram or flowchart, may be implemented by a dedicated hardware-based system that performs the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions. For example, what may be considered as an ordered list of executable instructions for implementing a logical function may be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from and execute instructions in an instruction execution system, apparatus, or device).

[0117] For the purposes of the present specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use with an instruction execution system, device or equipment or in conjunction with these instruction execution systems, devices or equipment. More specific examples of computer-readable media (non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program may be printed, because the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting or processing in other suitable ways as necessary, and then stored in a computer memory. It should be understood that the various parts of the present invention may be implemented in hardware, software, firmware or a combination thereof. In the above embodiments, the N steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0118] Those skilled in the art will appreciate that the above are only preferred embodiments of the present invention, and the various embodiments of the present disclosure and / or the features described in the claims may be combined or combined in various ways, even if such combinations or combinations are not explicitly described in the present disclosure. It is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art may still modify the technical solutions described in the aforementioned embodiments, or perform equivalent substitutions on some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention.

[0119] Although preferred embodiments of the present invention have been described, additional changes and modifications may be made to these embodiments by those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention. Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for answering financial query questions based on a large language model, characterized in that: The method comprises the following steps: Step 1: Summarize the financial inquiry questions, analyze the financial inquiry questions, and summarize the steps of the financial inquiry questions; Step 2: Based on the steps of the financial query problem summarized in step 1, construct fine-tuning data for the financial problem-solving process; Step 3: Fine-tune the large language model based on the fine-tuning data constructed in step 2; Step 4: Control the output result of the large language model to realize the function of calling the tool and achieve the result of answering the financial query question.

2. The method for answering financial query questions based on a large language model according to claim 1, characterized in that: The summary financial query questions in step one are obtained by calculating the three major financial statements.

3. The method for answering financial query questions based on a large language model according to claim 1, characterized in that: The fine-tuning data for constructing the financial problem-solving process in step 2 is implemented through the React framework.

4. The method for answering financial query questions based on a large language model according to claim 1, characterized in that: Step 2 also includes the step of pre-processing the fine-tuning data for constructing the financial problem-solving process.

5. The method for answering financial query questions based on a large language model according to claim 1, characterized in that: The method for controlling the output result of the large language model in step 4 is: S4.

1. Input the user's question into the large language model, and the large language model answers the question according to the financial question answering process constructed in step 2; S4.2, after the large language model detects the calling tool, it pauses the output and calls the tool, i.e., performs text recall on the formula information; S4.3, the large language model continues to output after querying the formula information, and generates a tool name for querying specific values ​​according to the queried formula information; S4.4, after the large language model completes the query operation, the specific value queried is filled back into the formula, and the calculator tool is called to complete the calculation operation; S4.

5. The large language model integrates the calculation results with the financial query questions and outputs the results that answer the financial query questions.

6. The method for answering financial query questions based on a large language model according to claim 1, characterized in that: Step one also includes a step of expanding the financial answer questions, which is used to generate chart data.

7. The method for answering financial query questions based on a large language model according to claim 6, characterized in that: The step of expanding the financial answer question, the method for generating chart data in the step is: S5.

1. Steps to summarize financial inquiry questions; S5.

2. Construct fine-tuning data based on the steps of summarizing the financial query problem, wherein the fine-tuning data includes the idea of ​​solving the problem by the large model, the tool to be called, and the parameters passed to the tool; S5.3, use the constructed fine-tuning data to perform instruction fine-tuning on the large language model; S5.

4. The output of the large language model is output in the form of data generated from the fine-tuning data into a chart.

8. A system for answering financial query questions based on a large language model, characterized in that: The system comprises: A summary module is used to summarize financial query problems, analyze the financial query problems, and summarize the steps of solving the financial query problems; A construction module is used to construct fine-tuning data of the financial problem solving process according to the steps of the financial query problem summarized in the summary module; A fine-tuning module, used to fine-tune the large language model according to the fine-tuning data constructed in the building module; The control module is used to control the output result of the large language model, and to realize the function of calling the tool to achieve the result of answering the financial query question.

9. A computer device comprising a memory and a processor, characterized in that A computer program is stored in the memory. When the processor runs the computer program stored in the memory, the processor executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Method and system for improving accuracy of large language model on financial query problem based on external retrieval

    CN119377261A

  • Method and system for improving accuracy of large language model on financial query questions based on external retrieval

    CN119377261B