Call-out report generation method and device, electronic equipment, storage medium and product
Through information retrieval algorithms and large language models, enterprise due diligence reports are automatically generated, solving the problems of low generation efficiency and accuracy in the existing technology, and achieving efficient and accurate report generation.
Patent Information
- Application Number
- CN202410838444.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-11-05
AI Technical Summary
In the prior art, the generation efficiency and accuracy of enterprise due diligence reports are low, and manual production requires a lot of time, which affects the accuracy of analysis and report quality.
By obtaining the query request information of the enterprises to be due diligence, using the information retrieval algorithm to obtain due diligence data from the pre-constructed enterprise knowledge base, and generating due diligence reports based on the pre-constructed report standard format, and using a large language model for automatic generation.
It realizes automatic retrieval and automatic generation of enterprise due diligence reports, improves generation efficiency and accuracy, reduces manual work burden, and improves the quality and accuracy of reports.
Smart Images

Figure CN118897873A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of text generation, and in particular to a due diligence report generation method, device, electronic device, storage medium and product. Background Art
[0002] A corporate due diligence report is a report designed to evaluate and compare the competitiveness and market position of different companies. The length of this type of report is 20,000 to 30,000 words, and it contains the following text structure: research background, purpose, macro-environment overview, industry overview, company overview, product analysis, operation analysis, technical analysis, financial analysis, and research summary.
[0003] The traditional method of preparing a corporate due diligence report is to manually read, organize and analyze the corporate information related to the company to prepare a corporate due diligence report. However, manually preparing a corporate due diligence report takes a lot of time, which affects the efficiency of generating the due diligence report. Summary of the invention
[0004] Based on the above needs, the present application proposes a due diligence report generation method, device, electronic device, storage medium and product, which can realize the automatic generation of the due diligence report of the enterprise and improve the generation efficiency of the due diligence report.
[0005] To achieve the above objectives, this application proposes the following technical solutions:
[0006] According to a first aspect of an embodiment of the present application, a method for generating a due diligence report is provided, comprising:
[0007] Obtain the query request information of the enterprise to be investigated;
[0008] Based on the query request information, using an information retrieval algorithm, obtaining due diligence data of the enterprise to be due diligenced from a pre-built enterprise knowledge base;
[0009] A due diligence report on the enterprise to be due diligenceed is generated based on the due diligence data of the enterprise to be due diligenceed and a pre-constructed standard format of a due diligence report.
[0010] Optionally, based on the query request information, using an information retrieval algorithm, obtaining due diligence data of the enterprise to be due diligenced from a pre-built enterprise knowledge base, including:
[0011] According to the retrieval process in the information retrieval algorithm, by calling the retrieval tool, the due diligence data of the enterprise to be investigated corresponding to the query request information is obtained from the pre-built enterprise knowledge base.
[0012] Optionally, the due diligence report of the enterprise to be due diligence includes due diligence data corresponding to at least one information type of the enterprise to be due diligence;
[0013] According to the retrieval process in the information retrieval algorithm, by calling the retrieval tool, the due diligence data of the enterprise to be investigated corresponding to the query request information is obtained from the pre-built enterprise knowledge base, including:
[0014] According to the search process corresponding to the first information type, by calling the search tool corresponding to the first information type, the due diligence data corresponding to the first information type of the enterprise to be due diligenced is obtained from the pre-built enterprise knowledge base, and the search process statement corresponding to the first information type is determined;
[0015] Based on the retrieval process statement corresponding to the first information type, in accordance with the retrieval process corresponding to the second information type, by calling the retrieval tool corresponding to the second information type, the due diligence data corresponding to the second information type of the enterprise to be due diligence is obtained from the pre-built enterprise knowledge base, and the retrieval process statement corresponding to the second information type is determined.
[0016] Optionally, the retrieval process includes: determining a query purpose, determining a query requirement, determining a query action, determining a query parameter, and determining a query result;
[0017] According to the search process corresponding to the first information type, by calling the search tool corresponding to the first information type, obtaining the due diligence data corresponding to the first information type of the enterprise to be due diligenced from the pre-built enterprise knowledge base, and determining the search process statement corresponding to the first information type, including:
[0018] Determine the query purpose, query requirement, query action and query parameters corresponding to the first information type; the query parameters include: the first information type and the enterprise to be investigated;
[0019] Based on the query action and the query parameters, by calling a search tool corresponding to the first information type, obtaining due diligence data corresponding to the first information type of the enterprise to be due diligenced from a pre-built enterprise knowledge base;
[0020] Taking the due diligence data corresponding to the first information type of the enterprise to be due diligenced as the query result;
[0021] Based on the query purpose, query requirement, query action, query parameter and query result corresponding to the first information type, a retrieval process statement corresponding to the first information type is determined.
[0022] Optionally, obtain the query request information of the company to be investigated, including:
[0023] The acquired human-computer dialogue information is analyzed, and the query request information of the enterprise to be investigated is extracted from the human-computer dialogue information.
[0024] Optionally, based on the query request information, using an information retrieval algorithm, obtaining due diligence data of the enterprise to be investigated from a pre-built enterprise knowledge base, and generating a due diligence report on the enterprise to be investigated based on the due diligence data of the enterprise to be investigated and a pre-built due diligence report standard format, including:
[0025] Inputting the query request information of the enterprise to be investigated into a pre-trained due diligence report generation model to obtain a due diligence report of the enterprise to be investigated;
[0026] Among them, the due diligence report generation model is based on the query request information and uses information retrieval algorithm to obtain the due diligence data of the company to be investigated from a pre-built enterprise knowledge base, and generates a due diligence report on the company to be investigated based on the due diligence data of the company to be investigated and a pre-built due diligence report standard format; the due diligence report generation model is a large language model.
[0027] Optionally, the training process of the due diligence report generation model includes:
[0028] Inputting the pre-acquired training samples into the pre-built due diligence report generation model to obtain the predicted text corresponding to the training samples; the training samples include: sample retrieval process statements and sample text corresponding to the sample retrieval process statements;
[0029] Based on the difference between the sample text in the training sample and the predicted text corresponding to the training sample, the model parameters of the due diligence report generation model are adjusted.
[0030] Optionally, the training sample includes: a sample search process statement corresponding to the information type of the first sample due diligence enterprise and a sample text of sample due diligence data corresponding to the information type of the first sample due diligence enterprise;
[0031] The process of obtaining the training samples includes:
[0032] Obtaining sample query request information of the first sample due diligence enterprise, and extracting sample due diligence data corresponding to at least one information type of the first sample due diligence enterprise from a pre-built enterprise knowledge base based on the sample query request information;
[0033] According to the format of the retrieval process statement corresponding to the retrieval process, determine the sample retrieval process statement corresponding to at least one information type of the first sample due diligence enterprise, and use the sample text of the sample due diligence data corresponding to the information type as the sample text corresponding to the sample retrieval process statement corresponding to the information type.
[0034] Optionally, the training sample includes: a sample retrieval process statement of the second sample due diligence enterprise and a sample text of a sample due diligence report of the second sample due diligence enterprise;
[0035] The process of obtaining the training samples includes:
[0036] According to the format of the retrieval process statement corresponding to the retrieval process, determine the retrieval process statements corresponding to all information types of the second sample due diligence enterprise, and combine the retrieval process statements corresponding to all information types of the second sample due diligence enterprise with the due diligence report generation statement into a sample retrieval process statement for the second sample due diligence enterprise, and use the sample due diligence report of the second sample due diligence enterprise as the sample text.
[0037] According to a second aspect of an embodiment of the present application, a due diligence report generating device is provided, including:
[0038] The first acquisition module is used to obtain the query request information of the enterprise to be investigated;
[0039] A second acquisition module is used to acquire the due diligence data of the enterprise to be investigated from a pre-built enterprise knowledge base based on the query request information and using an information retrieval algorithm;
[0040] The report generation module is used to generate a due diligence report on the enterprise to be investigated based on the due diligence data of the enterprise to be investigated and a pre-constructed due diligence report standard format.
[0041] According to a third aspect of an embodiment of the present application, there is provided an electronic device, including: a memory and a processor;
[0042] The memory is connected to the processor and is used to store programs;
[0043] The processor is used to implement the above-mentioned due diligence report generation method by running the program in the memory.
[0044] According to a fourth aspect of an embodiment of the present application, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned due diligence report generation method is implemented.
[0045] According to a fifth aspect of the embodiments of the present application, a computer program product is provided, including computer program instructions, which, when executed by a processor, enable the processor to implement the above-mentioned due diligence report generation method.
[0046] The due diligence report generation method proposed in this application obtains the query request information of the enterprise to be due diligenced; based on the query request information, the information retrieval algorithm is used to obtain the due diligence data of the enterprise to be due diligenced from a pre-built enterprise knowledge base; based on the due diligence data of the enterprise to be due diligenced and the pre-built due diligence report standard format, a due diligence report of the enterprise to be due diligenced is generated. The technical solution of this application can realize the automatic retrieval of the due diligence data of the enterprise to be due diligenced and the automatic generation of the due diligence report, thereby improving the generation efficiency of the due diligence report. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0048] Figure 1 A flowchart of a method for generating a due diligence report provided in an embodiment of the present application;
[0049] Figure 2 A schematic diagram of a processing flow for obtaining due diligence data and retrieving process statements provided in an embodiment of the present application;
[0050] Figure 3 A schematic diagram of a processing flow for training a due diligence report generation model provided in an embodiment of the present application;
[0051] Figure 4 A schematic diagram of a processing flow for obtaining training samples provided in an embodiment of the present application;
[0052] Figure 5 A schematic diagram of another processing flow for obtaining training samples provided in an embodiment of the present application;
[0053] Figure 6 A schematic diagram of the structure of a due diligence report generating device provided in an embodiment of the present application;
[0054] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] The technical solution of the embodiment of the present application is applicable to the application scenario of text generation, and is specifically used in the application scenario of enterprise due diligence report generation. The technical solution of the embodiment of the present application can realize the automatic generation of the enterprise's due diligence report, thereby improving the generation efficiency of the due diligence report.
[0056] A corporate due diligence report (corporate due diligence report) is a report that analyzes all aspects of the target company in detail. It is a summary of the results of a comprehensive and in-depth investigation of the company. Its main purpose is to help investors or other stakeholders accurately understand the fundamentals of the company through a detailed analysis of all aspects of the company. It is usually used in investment decisions, mergers and acquisitions, financing and other commercial activities. The length of a corporate due diligence report is usually 20,000 to 30,000 words. The text structure includes: research background, purpose, macro-environment overview, industry overview, company overview, product analysis, operation analysis, technical analysis, financial analysis and research summary.
[0057] The existing method of preparing a corporate due diligence report is to manually read, organize and analyze the corporate information related to the company to prepare the corporate due diligence report. However, manually preparing a corporate due diligence report takes a lot of time, which affects the efficiency of the due diligence report generation. In addition, the due diligence report preparation personnel spend a lot of time reading, organizing and analyzing the corporate information related to the company, which makes the due diligence report preparation personnel's workload heavy, thereby affecting the accuracy of the analysis of the corporate information, and thus affecting the accuracy of the generation of the corporate due diligence report.
[0058] Based on this, the present application proposes a due diligence report generation method, which can realize the automatic generation of a company's due diligence report, thereby solving the problem of low efficiency and accuracy in the generation of due diligence reports in the prior art.
[0059] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0060] Exemplary Methods
[0061] See also Figure 1 As shown, the embodiment of the present application proposes a method for generating a due diligence report. The method includes:
[0062] S101. Obtain query request information of the enterprise to be investigated.
[0063] In this embodiment, the enterprise that needs to prepare a due diligence report is regarded as the enterprise to be investigated, and the query request information of the enterprise to be investigated is obtained, and the query request information may carry the identification of the enterprise to be investigated. Among them, obtaining the query request information of the enterprise to be investigated requires analyzing the user's needs based on the sentence spoken by the user. When the sentence spoken by the user has the need to generate a due diligence report, the query request information of the enterprise to be investigated is extracted from the sentence spoken by the user. For example, when the sentence spoken by the user means that a due diligence report related to Company A is desired to be generated, it means that there is a need to generate a due diligence report for Company A. At this time, Company A is regarded as the enterprise to be investigated, and the query request information of the enterprise to be investigated is obtained as the query sentence Query of "Generate a due diligence report for Company A to be investigated".
[0064] This step specifically includes: analyzing the acquired human-computer dialogue information, and extracting the query request information of the enterprise to be investigated from the human-computer dialogue information.
[0065] The user can input his needs to the interactive terminal in the form of human-computer dialogue. This embodiment obtains the user's human-computer dialogue information, and then analyzes the obtained human-computer dialogue information to determine whether the user has the need to generate a due diligence report. If the analysis shows that the user has the need to generate a due diligence report, the query request information of the enterprise to be due diligence is extracted according to the obtained human-computer dialogue information. The user may have multiple rounds of human-computer dialogue with the interactive terminal to extract the final and accurate query request information of the enterprise to be due diligence. Therefore, after each round of human-computer dialogue, it is necessary to analyze all the currently obtained human-computer dialogue information to determine the current query statement Query, that is, after the first round of human-computer dialogue, analyze the current round of human-computer dialogue information to determine the query statement Query corresponding to the first round of human-computer dialogue. After the second round of human-computer dialogue, analyze the current two rounds of human-computer dialogue information, rewrite the query statement Query corresponding to the first round of human-computer dialogue, and obtain the query statement Query corresponding to the second round of human-computer dialogue. By analogy, the query statement Query finally rewritten is used as the query request information of the enterprise to be due diligence.
[0066] For example, the human-computer dialogue information is:
[0067] Q: What exactly is Company A?
[0068] A: Company A is a xxxxxxx company (where "xxxxxxx" represents the specific information of Company A, and no specific examples are given here).
[0069] Q:Please generate a due diligence report for this company.
[0070] In the above human-computer dialogue information, Q represents the dialogue information input by the user, and A represents the dialogue information fed back by the interactive terminal, which includes two rounds of human-computer dialogue. Through these two rounds of human-computer dialogue, the final query statement Query is determined to be the query statement Query of "generate a due diligence report on Company A", that is, the query request information of the company to be due diligenced is the query statement Query of "generate a due diligence report on Company A".
[0071] S102. Based on the query request information, using information retrieval algorithms, obtain due diligence data of the enterprise to be investigated from a pre-built enterprise knowledge base.
[0072] This embodiment pre-constructs an enterprise knowledge base, which stores relevant information of several enterprises, wherein the relevant information of the enterprises includes enterprise information from various information sources such as industry reports, news, and social media comments. This embodiment also pre-trains an information retrieval algorithm, which can retrieve the due diligence data of the enterprise to be due diligenced from the pre-constructed enterprise knowledge base according to the query request information. The due diligence data of the enterprise to be due diligenced includes due diligence data corresponding to at least one information type of the enterprise to be due diligenced. Among them, the information types include: macro-environmental conditions, industry conditions, enterprise conditions, and various aspects of enterprise details. The information types for various aspects of enterprise details include enterprise product details, enterprise operation details, enterprise technology details, and enterprise financial details. It can be seen from this that the due diligence data of the company to be due diligence includes: due diligence data corresponding to the macro-environment of the company to be due diligence, due diligence data corresponding to the industry situation of the company to be due diligence, due diligence data corresponding to the company's own situation, and due diligence data corresponding to various details of the company to be due diligence. Among them, the due diligence data corresponding to various details of the company to be due diligence include: due diligence data corresponding to the product details of the company to be due diligence, due diligence data corresponding to the operation details of the company to be due diligence, due diligence data corresponding to the technical details of the company to be due diligence, and due diligence data corresponding to the financial details of the company to be due diligence, etc.
[0073] Specifically, the information retrieval algorithm in this embodiment includes a pre-trained retrieval process and a pre-trained retrieval tool calling function. This step specifically includes: according to the retrieval process in the information retrieval algorithm, by calling the retrieval tool, obtaining the due diligence data of the enterprise to be due diligence corresponding to the query request information from the pre-built enterprise knowledge base.
[0074] In this embodiment, according to the retrieval process in the information retrieval algorithm, the query analysis of generating a due diligence report for the enterprise to be investigated corresponding to the query request information is performed, and the due diligence data required to be retrieved for generating the due diligence report is analyzed, and the retrieval tool in the information retrieval algorithm is used to call the function to call the retrieval tool, and the called retrieval tool is used to retrieve the due diligence data required to generate the due diligence report from the pre-built enterprise knowledge base as the due diligence data of the enterprise to be investigated corresponding to the query request information. Among them, the retrieval process in the information retrieval algorithm is preferably a retrieval process instruction, for example, a pre-trained prompt structure, and specifically, a pre-trained COT form prompt structure is preferably used, wherein "COT" is the abbreviation of "Chain of Thought", which can be translated into Chinese as "thinking chain" or "thinking process". Its core idea is to guide the model (i.e., information retrieval algorithm) to demonstrate its reasoning ability by gradually revealing the logical steps to solve the problem, rather than directly giving the final answer. The retrieval tool calling function in the information retrieval algorithm is the function-call function, which can be inserted into the model (i.e., information retrieval algorithm) as a subsystem and called when the model (i.e., information retrieval algorithm) is running. In this way, users can reuse their own defined functions in the model (i.e., information retrieval algorithm) to achieve specific functions.
[0075] Furthermore, the due diligence report of the enterprise to be due diligence includes due diligence data corresponding to at least one information type of the enterprise to be due diligence. When the due diligence report of the enterprise to be due diligence includes due diligence data corresponding to multiple information types, it is necessary to obtain the due diligence data corresponding to each information type of the enterprise to be due diligence from the pre-built enterprise knowledge base by calling the retrieval tool according to the retrieval process in the information retrieval algorithm for each information type. For example, when the information types of the enterprise to be investigated include: macro-environmental conditions, industry conditions, enterprise conditions, and enterprise details, first, according to the retrieval process in the information retrieval algorithm, by calling the retrieval tool, the due diligence data corresponding to the macro-environmental conditions of the enterprise to be investigated corresponding to the query request information is obtained from the pre-built enterprise knowledge base by calling the retrieval tool, and then according to the retrieval process in the information retrieval algorithm, by calling the retrieval tool, the due diligence data corresponding to the industry conditions of the enterprise to be investigated corresponding to the query request information is obtained from the pre-built enterprise knowledge base, and then according to the retrieval process in the information retrieval algorithm, by calling the retrieval tool, the due diligence data corresponding to the enterprise conditions of the enterprise to be investigated corresponding to the query request information is obtained from the pre-built enterprise knowledge base, and finally, according to the retrieval process in the information retrieval algorithm, by calling the retrieval tool, the due diligence data corresponding to the enterprise details of the enterprise to be investigated corresponding to the query request information (i.e., enterprise product details, enterprise operation details, enterprise technology details, enterprise financial details, etc.) is obtained from the pre-built enterprise knowledge base by calling the retrieval tool. Among them, the order of obtaining the due diligence data corresponding to the four information types of macro-environmental conditions, industry conditions, enterprise conditions, and enterprise details is not limited in this embodiment.
[0076] Further, when the due diligence report of the enterprise to be due diligence includes due diligence data corresponding to the first information type of the enterprise to be due diligence and due diligence data corresponding to the second information type of the enterprise to be due diligence, obtaining the due diligence data corresponding to the first information type and the due diligence data corresponding to the second information type specifically includes the following steps:
[0077] First, according to the search process corresponding to the first information type, by calling the search tool corresponding to the first information type, the due diligence data corresponding to the first information type of the enterprise to be due diligence is obtained from the pre-built enterprise knowledge base, and the search process statement corresponding to the first information type is determined.
[0078] In this embodiment, the search processes corresponding to various information types are the same, and the search tools corresponding to various information types are also the same. After obtaining the query request information of the enterprise to be investigated, according to the search process corresponding to the first information type, the search tool corresponding to the first information type is called by using the search tool call function in the search process. By calling the search tool corresponding to the first information type, the due diligence data corresponding to the first information type of the enterprise to be investigated corresponding to the query request information is obtained from the pre-built enterprise knowledge base. In addition, the search process corresponding to the first information type needs to generate a search process statement, that is, a statement that executes the search process instruction.
[0079] Second, based on the search process statement corresponding to the first information type, in accordance with the search process corresponding to the second information type, by calling the search tool corresponding to the second information type, the due diligence data corresponding to the second information type of the company to be due diligenced is obtained from the pre-built enterprise knowledge base, and the search process statement corresponding to the second information type is determined.
[0080] After determining the search process statement corresponding to the first information type, based on the search statement corresponding to the first information type, according to the search process corresponding to the second information type, the search tool corresponding to the second information type is called by using the search tool call function in the search process, and the search tool corresponding to the second information type is called to obtain the due diligence data corresponding to the second information type of the enterprise to be investigated corresponding to the query request information from the pre-built enterprise knowledge base. In addition, it is necessary to generate a search process statement from the search process corresponding to the second information type, that is, a statement that executes the search process instruction. Before obtaining the due diligence data corresponding to the second information type, the information retrieval algorithm will learn the search statement corresponding to the first information type, so as to learn the execution process of the search process instruction when obtaining the due diligence data corresponding to the first information type (that is, the reasoning process of the search process), improve the execution accuracy of the search process instruction for obtaining the due diligence data corresponding to the second information type, and then improve the accuracy of the due diligence data corresponding to the second information type obtained.
[0081] Specifically, when the information types of the enterprise to be due diligence include four types: macro-environmental conditions, industry conditions, enterprise's own conditions, and enterprise details in various aspects, first, according to the search process corresponding to the macro-environmental conditions, by calling the search tool corresponding to the macro-environmental conditions, obtain the due diligence data corresponding to the macro-environmental conditions of the enterprise to be due diligence from the enterprise knowledge base, and determine the search process statement corresponding to the macro-environmental conditions; then, based on the search process statement corresponding to the macro-environmental conditions, according to the search process corresponding to the industry conditions, by calling the search tool corresponding to the industry conditions, obtain the due diligence data corresponding to the industry conditions of the enterprise to be due diligence from the enterprise knowledge base, and determine the search process statement corresponding to the industry conditions; then, based on the search process statement corresponding to the industry conditions, according to the search process corresponding to the enterprise's own conditions, by calling the search tool corresponding to the enterprise's own conditions, obtain the due diligence data corresponding to the enterprise's own conditions of the enterprise to be due diligence from the enterprise knowledge base, and determine the search process statement corresponding to the enterprise's own conditions; finally, based on the search process statement corresponding to the enterprise's own conditions, according to the search process corresponding to the enterprise details in various aspects, by calling the search tool corresponding to the enterprise details in various aspects, obtain the due diligence data corresponding to the enterprise details in various aspects of the enterprise to be due diligence from the enterprise knowledge base, and determine the search process statement corresponding to the enterprise details in various aspects.
[0082] S103. Generate a due diligence report on the enterprise to be investigated based on the due diligence data of the enterprise to be investigated and a pre-constructed due diligence report standard format.
[0083] After obtaining the due diligence data of the company to be investigated through the above steps, it is necessary to splice the due diligence data of the company to be investigated to obtain the total due diligence data containing due diligence data of various information types of the company to be investigated, and then generate the basic content data of the company to be investigated by performing data analysis on the total due diligence data of the company to be investigated and / or based on pre-set fixed sentences. Among them, the basic content data of the company to be investigated includes: research background, research purpose and research summary, etc.
[0084] This embodiment pre-constructs a standard format for a due diligence report. According to the standard format for due diligence report, the due diligence data of the enterprise to be due diligenceed and the basic content data of the enterprise to be due diligenceed are sorted and spliced, so as to obtain a due diligence report for the enterprise to be due diligenceed. Among them, the pre-constructed standard format for due diligence report includes: 1. Research background; 2. Research purpose; 3. Overview of the macro environment; 4. Industry overview; 5. Company overview; 6. Product analysis; 7. Operation analysis; 8. Technical analysis; 9. Financial analysis; 10. Research summary. Among them, 1. Research background, 2. Research purpose, and 10. Research summary are data extracted from the basic content data of the enterprise to be due diligenceed; 3. Overview of the macro environment, 4. Industry overview, 5. Company overview, 6. Product analysis, 7. Operation analysis, 8. Technical analysis, and 9. Financial analysis are data extracted from the total due diligence data of the enterprise to be due diligenceed.
[0085] In this embodiment, the due diligence report standard format can be personalized to achieve personalization and style diversification of the generated due diligence report.
[0086] Specifically, in this embodiment, the information retrieval algorithm includes not only a retrieval process for obtaining the due diligence data of the enterprise to be due diligenced, but also a due diligence report generation process for generating a due diligence report of the enterprise to be due diligenced based on the due diligence data of the enterprise to be due diligenced and a pre-constructed due diligence report standard format.
[0087] From the above introduction, it can be seen that the due diligence report generation method proposed in the embodiment of the present application obtains the query request information of the enterprise to be due diligenced; based on the query request information, the information retrieval algorithm is used to obtain the due diligence data of the enterprise to be due diligenced from the pre-built enterprise knowledge base; based on the due diligence data of the enterprise to be due diligenced and the pre-built due diligence report standard format, a due diligence report of the enterprise to be due diligenced is generated. The technical solution of this embodiment can realize the automatic retrieval of the due diligence data of the enterprise to be due diligenced and the automatic generation of the due diligence report, thereby improving the generation efficiency of the due diligence report, and the automatic retrieval and automatic generation of the due diligence report using the information retrieval algorithm can avoid the influence of the manual workload on the accuracy when the due diligence report is manually prepared, thereby improving the generation accuracy of the due diligence report.
[0088] As an optional implementation, see Figure 2 As shown, in another embodiment of the present application, according to the search process corresponding to the first information type, by calling the search tool corresponding to the first information type, obtaining the due diligence data corresponding to the first information type of the enterprise to be due diligenced from the pre-built enterprise knowledge base, and determining the search process statement corresponding to the first information type, specifically includes the following steps:
[0089] S201. Determine a query purpose, query requirement, query action, and query parameter corresponding to a first information type.
[0090] In this embodiment, the retrieval process in the information retrieval algorithm includes: determining the query purpose (Question), determining the query requirement (Thought), determining the query action (Action), determining the query parameters (Action Input), and determining the query result (Observation). Among them, the query purpose is the question that needs to be answered based on the query request information of the company to be investigated; the query requirement is the requirement to achieve the query purpose, that is, what needs to be done to answer the above question; the query action is the action that needs to be performed to achieve the query purpose, for example, querying the enterprise knowledge base; the query parameter is the parameter that needs to be input when executing the query action, that is, the value passed into the search tool; the query result is the value output by the search tool after the query action is executed. In this embodiment, the query parameters include: the first information type and the company to be investigated.
[0091] After obtaining the query request information of the enterprise to be investigated, this embodiment determines the query purpose, query requirement, query action and query parameters corresponding to the first information type based on the query request information, that is, uses the information retrieval algorithm to infer the query purpose, query requirement, query action and query parameters corresponding to the first information type.
[0092] In a specific embodiment, if the first information type is macro-environmental conditions, the query purpose corresponding to the first information type is "I want to generate a due diligence report on the company to be due diligenceed", the query requirement corresponding to the first information type is "to answer the above question, I need to query the macro-environmental conditions of the company to be due diligenceed", the query action corresponding to the first information type is "query the enterprise knowledge base", and the query parameters corresponding to the first information type are "macro-environmental conditions, companies to be due diligenceed". If the first information type is industry conditions, the query purpose corresponding to the first information type is "I want to generate a due diligence report on the company to be due diligenceed", the query requirement corresponding to the first information type is "to answer the above question, I need to query the industry conditions of the company to be due diligenceed", the query action corresponding to the first information type is "query the enterprise knowledge base", and the query parameters corresponding to the first information type are "industry conditions, companies to be due diligenceed".
[0093] S202: Based on the query action and the query parameters, by calling a search tool corresponding to the first information type, obtaining due diligence data corresponding to the first information type of the enterprise to be due diligenced from a pre-built enterprise knowledge base.
[0094] After determining the query action and query parameters of the first information type through the above steps, the query action is executed based on the query parameters, wherein the query action is "query enterprise knowledge base" and the query parameters are "first information type, company to be due diligence". Therefore, based on the query action and query parameters, it is possible to execute a query action by calling a search tool corresponding to the first information type to obtain due diligence data corresponding to the first information type of the company to be due diligence from the pre-built enterprise knowledge base.
[0095] S203. Taking the due diligence data corresponding to the first information type of the enterprise to be due diligenced as the query result.
[0096] Through the above steps, by calling the search tool corresponding to the first information type, after obtaining the due diligence data corresponding to the first information type of the enterprise to be due diligence from the pre-built enterprise knowledge base, the search tool will feed back the due diligence data corresponding to the first information type of the enterprise to be due diligence to the information retrieval algorithm, and the information retrieval algorithm directly uses the due diligence data corresponding to the first information type of the enterprise to be due diligence as the query result in the retrieval process, that is, the due diligence data corresponding to the first information type of the enterprise to be due diligence is inserted into the query result in the retrieval process.
[0097] S204: Determine a search flow statement corresponding to the first information type based on the query purpose, query requirement, query action, query parameter and query result corresponding to the first information type.
[0098] After executing the search process corresponding to the first information type through the above steps, there are corresponding statements for the query purpose, query requirements, query actions, query parameters and query results in the search process, and the query purpose statement, query requirement statement, query action statement, query parameter statement and query result statement corresponding to the first information type are combined into the search process statement corresponding to the first information type. For example, when the first information type is the macro-environmental situation, the query purpose statement is "Question: I want to generate a due diligence report for the company to be investigated\n", the query requirement statement is "Thought: Answer the above question, I need to query the macro-environmental situation of the company to be investigated\n", the query action statement is "Action: Answer the above question and select operation: Query the enterprise knowledge base\n", the query parameter statement is "Action Input:{["key":"Macro-environmental situation","company":"Company to be investigated"]}\n", and the query result statement is "Observation: The macro-environmental situation of the company to be investigated is...\n". Among them, the first part of the search process statement corresponding to the first information type can also add the instruction formalization statement of the search process, such as "input:{{ReAct instruction structure}}\n", where the ReAct instruction structure is the structure of the search process. Finally, when the first information type is the macro-environment situation, the corresponding search process statement is "input:{{ReAct instruction structure}}\nQuestion: I want to generate a due diligence report on the company to be investigated\nThought: To answer the above question, I need to query the macro-environment situation of the company to be investigated\nAction: To answer the above question, select an operation: Query the enterprise knowledge base\nAction Input:{["key":"Macro-environment situation","company":"Company to be investigated"]}\nObservation: The macro-environment situation of the company to be investigated is...\n".
[0099] Among them, the method for obtaining the due diligence data and search process statements corresponding to each information type can adopt steps S201 to S204 of the above embodiment, and this embodiment will not go into details about other information types.
[0100] Furthermore, the information retrieval algorithm includes not only a retrieval process for obtaining due diligence data of the company to be investigated, but also a due diligence report generation process for generating a due diligence report of the company to be investigated based on the due diligence data of the company to be investigated and a pre-constructed due diligence report standard format, wherein the due diligence report generation process includes: determining the generation requirement (Thought) and determining the final answer (Final answer). After the retrieval process of each information type of the company to be investigated is completed, the process of determining the generation requirement and determining the final answer is executed. Among them, the statement of the generation requirement can be "Thought: I will answer it\n", and the statement of the final answer can be "Final answer:..." Among them, the content corresponding to the Final answer is the due diligence report of the company to be investigated output according to the pre-constructed due diligence report standard format.
[0101] As an optional implementation, another embodiment of the present application discloses that step S102 and step S103 specifically include the following steps:
[0102] The query request information of the enterprise to be investigated is input into the pre-trained due diligence report generation model to obtain the due diligence report of the enterprise to be investigated.
[0103] After obtaining the query request information of the enterprise to be investigated, this embodiment inputs the query request information of the enterprise to be investigated into the pre-trained due diligence report generation model to obtain the due diligence report of the enterprise to be investigated. Among them, the pre-trained due diligence report generation model can execute the information retrieval algorithm, which is specifically used to obtain the due diligence data of the enterprise to be investigated from the pre-built enterprise knowledge base based on the query request information and the information retrieval algorithm, and generate the due diligence report of the enterprise to be investigated based on the due diligence data of the enterprise to be investigated and the pre-built due diligence report standard format. Specifically, the due diligence report generation model is a large language model, preferably a large language model that supports 128K token input, such as the Spark large model that supports 128K token input. The large language model can use KV-cache optimization technology to optimize the model reasoning resource consumption, thereby improving the response efficiency and first response time. And the large language model can not only cover short text data, but also adapt to the report generation scenario of 20,000 to 30,000 words, thereby improving the generation accuracy of the due diligence report.
[0104] As an optional implementation, see Figure 3 As shown, in another embodiment of the present application, it is disclosed that the training process of the due diligence report generation model includes:
[0105] S301: Input the pre-acquired training samples into the pre-built due diligence report generation model to obtain the predicted text corresponding to the training samples.
[0106] This embodiment requires pre-acquisition of training samples, which include: sample retrieval process statements and sample texts corresponding to the sample retrieval process statements, wherein the sample texts corresponding to the sample retrieval process statements are the texts expected to be obtained by executing the sample retrieval process statements. The training samples are input into the pre-built due diligence report generation model, and the due diligence report generation model executes the sample retrieval process statements to obtain the predicted texts corresponding to the training samples. The due diligence report generation model can learn the retrieval process by executing the sample retrieval process statements, so that the trained due diligence report generation model can realize accurate execution and reasoning of the retrieval process, that is, accurate execution according to the prompt structure.
[0107] In this embodiment, the training samples include training samples corresponding to the information type of the sample due diligence enterprise and / or training samples corresponding to the due diligence report of the sample due diligence enterprise. Among them, the training samples corresponding to the information type of the sample due diligence enterprise include the sample retrieval process statement corresponding to the information type of the due diligence enterprise and the sample text of the sample due diligence data corresponding to the information type of the sample due diligence enterprise. The training samples corresponding to the due diligence report of the sample due diligence enterprise include the sample retrieval process statement of the sample due diligence enterprise and the sample text of the sample due diligence report of the sample due diligence enterprise.
[0108] The training samples in this embodiment preferably set the number ratio between the training samples corresponding to the information type of the sample due diligence enterprise and the training samples corresponding to the due diligence report of the sample due diligence enterprise to 1:3, and then train the due diligence report generation model after mixing all the training samples.
[0109] S302: Adjust model parameters of the due diligence report generation model based on the difference between the sample text in the training sample and the predicted text corresponding to the training sample.
[0110] This embodiment adjusts the model parameters of the due diligence report generation model based on the difference between the sample text in the training sample and the predicted text corresponding to the training sample output by the due diligence report generation model, so as to minimize the difference between the sample text in the training sample and the predicted text corresponding to the training sample output by the due diligence report generation model. This embodiment can pre-set a loss function representing the difference between the sample text and the predicted text, and adjust the model parameters of the due diligence report generation model with the goal of minimizing the loss function.
[0111] Specifically, in this embodiment, the loss function is preferably set to:
[0112]
[0113] Among them, LOSS represents the loss function, p i represents the probability of the i-th element in the true distribution, qi represents the probability of the i-th element in the model prediction distribution, p i log(q i ) is the cross entropy part, which is used to measure the difference between the predicted distribution and the true distribution. is the length penalty term, which measures the length influencing factor by setting the ratio coefficient between the predicted text length and the sample text length. L represents the actual length of the data, that is, the sample text length, which needs to be obtained by observing the data. ′ It represents the sequence length in the training sample mini-batch, α represents the hyperparameter, which is used to measure the influence of the length penalty factor. The i-th element is the i-th token.
[0114] During the training process of the due diligence report generation model, the longer the text is, the more difficult it is to generate, which leads to a sharp increase in the difficulty of instruction alignment under long text data. In order to mitigate the negative impact of text length, a length penalty item is set in the above loss function, which can improve the accuracy of the loss function and thus improve the training accuracy of the due diligence report generation model.
[0115] As an optional implementation, see Figure 4 As shown, in another embodiment of the present application, it is disclosed that, in the case where the training sample includes: a sample retrieval process statement corresponding to the information type of the first sample due diligence enterprise and a sample text of the sample due diligence data corresponding to the information type of the first sample due diligence enterprise, the process of obtaining the training sample includes the following steps:
[0116] S401. Obtain sample query request information of a first sample due diligence enterprise, and based on the sample query request information, extract sample due diligence data corresponding to at least one information type of the first sample due diligence enterprise from a pre-built enterprise knowledge base.
[0117] This embodiment pre-generates sample query request information of the first sample due diligence enterprise and pre-acquires the sample due diligence report of the first sample due diligence enterprise, wherein GPT4 can be used to generate the sample query request information of the first sample due diligence enterprise. This embodiment manually compiles and organizes the sample due diligence report of the first sample due diligence enterprise and stores it in a pre-built enterprise knowledge base, so that when the sample due diligence data corresponding to at least one information type of the first sample due diligence enterprise is extracted from the pre-built enterprise knowledge base based on the sample query request information, the accuracy of the sample due diligence data can be improved.
[0118] This embodiment extracts sample due diligence data corresponding to at least one information type of a first sample due diligence enterprise from a pre-built enterprise knowledge base based on sample query request information, using an existing database retrieval method.
[0119] S402. Determine a sample retrieval process statement corresponding to at least one information type of the first sample due diligence enterprise according to the format of the retrieval process statement corresponding to the retrieval process, and use the sample text of the sample due diligence data corresponding to the information type as the sample text corresponding to the sample retrieval process statement corresponding to the information type.
[0120] In the above embodiment, the retrieval process statement corresponding to the retrieval process is determined. In this embodiment, according to the format of the retrieval process statement corresponding to the retrieval process, the sample due diligence data corresponding to the information type of the first sample due diligence enterprise is constructed into a corresponding sample retrieval process statement, and the sample text of the sample due diligence data corresponding to the information type is used as the sample text corresponding to the sample retrieval process statement corresponding to the information type. For example, if the information type is the macro-environmental situation, then the sample retrieval process statement corresponding to the macro-environmental situation of the first sample due diligence enterprise is "input:{{ReAct instruction structure}}\nQuestion: I want to generate a due diligence report for the first sample due diligence company\nThought: To answer the above question, I need to query the macro-environmental situation of the first sample due diligence company\nAction: To answer the above question, select an operation: Query the enterprise knowledge base\nAction Input:{["key":"Macro-environmental situation","company":"First sample due diligence company"]}\nObservation: The macro-environmental situation of the first sample due diligence company is...\n". The final training sample is:
[0121] {“input:{{ReAct instruction structure}}\nQuestion:I want to generate a due diligence report for the first sample due diligence company\nThought:To answer the above question, I need to query the macro-environment of the first sample due diligence company\nAction:To answer the above question, select an operation: Query the enterprise knowledge base\nAction Input:{[“key”:“Macro-environment”,“company”:“First sample due diligence company”]}\nObservation: The macro-environment of the first sample due diligence company is…\n”
[0122] "target": "{'name':'Search_company', 'arguments':'{\n"key":"Macro environment",\n"company":"First sample due diligence company"\n}'} <end>”
[0123] }
[0124] Among them, the content corresponding to target represents the sample text.
[0125] As an optional implementation, see Figure 5 As shown, in another embodiment of the present application, it is disclosed that, when the training sample includes: a sample retrieval process statement of the second sample due diligence enterprise and a sample text of the sample due diligence report of the second sample due diligence enterprise, the process of obtaining the training sample includes the following steps:
[0126] S501. Determine the retrieval process statements corresponding to all information types of the second sample due diligence enterprise according to the format of the retrieval process statement corresponding to the retrieval process, and combine the retrieval process statements corresponding to all information types of the second sample due diligence enterprise with the due diligence report generation statement into a sample retrieval process statement for the second sample due diligence enterprise, and use the sample due diligence report of the second sample due diligence enterprise as the sample text.
[0127] This embodiment pre-generates sample query request information of the second sample due diligence enterprise and pre-acquires the sample due diligence report of the second sample due diligence enterprise, wherein GPT4 can be used to generate the sample query request information of the second sample due diligence enterprise. This embodiment manually collects and organizes the sample due diligence report of the second sample due diligence enterprise and stores it in a pre-constructed enterprise knowledge base. Based on the sample query request information, this embodiment extracts the sample due diligence data corresponding to each information type of the second sample due diligence enterprise from the pre-constructed enterprise knowledge base, and constructs the sample due diligence data corresponding to each information type of the second sample due diligence enterprise into a retrieval process statement corresponding to each information type of the second sample due diligence enterprise according to the format of the retrieval process statement corresponding to the retrieval process, and combines the retrieval process statements corresponding to all information types of the second sample due diligence enterprise with the due diligence report generation statement into a sample retrieval process statement of the second sample due diligence enterprise, and uses the sample due diligence report of the second sample due diligence enterprise as the sample text.
[0128] For example, if the information types include macro-environmental conditions, industry conditions, enterprise conditions and various details of the enterprise, the final training samples are:
[0129] {"input:{{ReAct instruction structure}}\nQuestion:I want to generate a due diligence report for the second sample due diligence company\nThought:To answer the above question, I need to query the macro-environment of the second sample due diligence company\nAction:To answer the above question, select an operation:Query the enterprise knowledge base\nAction Input:{["key":"Macro-environment","company":"Second sample due diligence company"]}\nObservation:The macro-environment of the second sample due diligence company is...\nThought:To answer the above question, I need to query the industry situation of the second sample due diligence company\nAction:To answer the above question, select an operation:Query the enterprise knowledge base\nAction Input:{["key":"Industry situation","company":"Second sample due diligence company"]}\nObservation:The industry situation of the second sample due diligence company is...\nThought:To answer the above question, I need to query the enterprise situation of the second sample due diligence company\nAction:To answer the above question, select an operation:Query the enterprise knowledge base\nAction Input:{["key":"Enterprise's own situation","company":"Second sample due diligence company"]}\nObservation: The enterprise's own situation of the second sample due diligence company is...\nThought: To answer the above question, I need to query the enterprise product details, enterprise operation details, enterprise technology details and enterprise financial details of the second sample due diligence company\nAction: To answer the above question, select the operation: Query the enterprise knowledge base\nAction Input:{["key":"Enterprise product details, enterprise operation details, enterprise technology details and enterprise financial details","company":"Second sample due diligence company"]}\nObservation: The enterprise product details, enterprise operation details, enterprise technology details and enterprise financial details of the second sample due diligence company are...\nThought: I will answer it\nFinalanswer:..."
[0130] "target": "{{Due diligence report of the second sample due diligence company}} <end>”
[0131] }
[0132] Among them, the content corresponding to target represents the sample text. Since the query purposes corresponding to each information type are the same, the query purpose statement is only added to the search process statement corresponding to the first information type, and the query purpose statement can be omitted in the search process statements corresponding to other information types. That is, "input:{{ReAct instruction structure}}\nQuestion:I want to generate a due diligence report for the second sample due diligence company" is added at the beginning of the training sample.
[0133] As an optional implementation, another embodiment of the present application discloses that the retrieval tool calling function in the information retrieval algorithm can be Format the arguments as a JSON object.Parameters:[{"name":"Search_company","key":{"type":"string","description":"Query operation field name, such as macro-environment conditions, industry conditions, company conditions, company product details, company operation details, company technology, company financial details and other fields."},"company":{"type":"string","description":"Company to be due diligence."}}].
[0134] The search tool call function can also be a function-call function. Some examples are as follows:
[0135]
[0136]
[0137] Exemplary Devices
[0138] Accordingly, the present application also provides a due diligence report generation device, see Figure 6 As shown, the device comprises:
[0139] The first acquisition module 100 is used to obtain the query request information of the enterprise to be investigated;
[0140] The second acquisition module 110 is used to acquire due diligence data of the enterprise to be investigated from a pre-built enterprise knowledge base based on the query request information and using an information retrieval algorithm;
[0141] The report generation module 120 is used to generate a due diligence report on the enterprise to be investigated based on the due diligence data of the enterprise to be investigated and a pre-constructed due diligence report standard format.
[0142] From the above introduction, it can be seen that the due diligence report generation device proposed in the embodiment of the present application can realize the automatic retrieval of due diligence data of the due diligence enterprise and the automatic generation of due diligence reports, thereby improving the generation efficiency of due diligence reports, and the automatic retrieval and automatic generation of due diligence reports using information retrieval algorithms can avoid the impact of manual workload on accuracy when manually preparing due diligence reports, thereby improving the generation accuracy of due diligence reports.
[0143] As an optional implementation, another embodiment of the present application discloses that the second acquisition module 110 is specifically used for:
[0144] According to the retrieval process in the information retrieval algorithm, by calling the retrieval tool, the due diligence data of the company to be investigated corresponding to the query request information is obtained from the pre-built enterprise knowledge base.
[0145] As an optional implementation, another embodiment of the present application discloses that the due diligence report of the enterprise to be due diligence includes due diligence data corresponding to at least one information type of the enterprise to be due diligence. The second acquisition module 110 includes: a first acquisition unit and a second acquisition unit;
[0146] A first acquisition unit is used to acquire due diligence data corresponding to the first information type of the enterprise to be due diligenced from a pre-built enterprise knowledge base according to a search process corresponding to the first information type by calling a search tool corresponding to the first information type, and determine a search process statement corresponding to the first information type;
[0147] The second acquisition unit is used to obtain the due diligence data corresponding to the second information type of the enterprise to be due diligence from a pre-built enterprise knowledge base based on the retrieval process statement corresponding to the first information type and in accordance with the retrieval process corresponding to the second information type by calling the retrieval tool corresponding to the second information type, and determine the retrieval process statement corresponding to the second information type.
[0148] As an optional implementation, another embodiment of the present application discloses that the retrieval process includes: determining a query purpose, determining a query requirement, determining a query action, determining a query parameter, and determining a query result; a first acquisition unit is specifically used to:
[0149] Determine the query purpose, query requirement, query action and query parameters corresponding to the first information type; the query parameters include: the first information type and the enterprise to be investigated;
[0150] Based on the query action and the query parameters, by calling a search tool corresponding to the first information type, obtaining due diligence data corresponding to the first information type of the enterprise to be due diligenced from a pre-built enterprise knowledge base;
[0151] The due diligence data corresponding to the first information type of the enterprise to be due diligenceed is used as the query result;
[0152] Based on the query purpose, query requirement, query action, query parameter and query result corresponding to the first information type, a retrieval process statement corresponding to the first information type is determined.
[0153] As an optional implementation, another embodiment of the present application discloses that a first acquisition module 100 is specifically used to analyze the acquired human-computer dialogue information and extract the query request information of the enterprise to be investigated from the human-computer dialogue information.
[0154] As an optional implementation, another embodiment of the present application discloses that the second acquisition module 110 and the report generation module 120 are specifically used for:
[0155] Input the query request information of the enterprise to be investigated into the pre-trained due diligence report generation model to obtain the due diligence report of the enterprise to be investigated;
[0156] Among them, the due diligence report generation model is based on the query request information and uses information retrieval algorithms to obtain the due diligence data of the company to be investigated from the pre-built enterprise knowledge base, and generates a due diligence report on the company to be investigated based on the due diligence data of the company to be investigated and the pre-built due diligence report standard format; the due diligence report generation model is a large language model.
[0157] As an optional implementation, another embodiment of the present application discloses that the due diligence report generating device also includes: an input module and an adjustment module.
[0158] An input module is used to input the pre-acquired training samples into the pre-built due diligence report generation model to obtain the predicted text corresponding to the training samples; the training samples include: sample retrieval process statements and sample text corresponding to the sample retrieval process statements;
[0159] The adjustment module is used to adjust the model parameters of the due diligence report generation model based on the difference between the sample text in the training sample and the predicted text corresponding to the training sample.
[0160] As an optional implementation, another embodiment of the present application discloses that the training sample includes: a sample retrieval process statement corresponding to the information type of the first sample due diligence enterprise and a sample text of the sample due diligence data corresponding to the information type of the first sample due diligence enterprise; the due diligence report generation device also includes: a first sample acquisition module. The first sample acquisition module is used to:
[0161] Obtaining sample query request information of the first sample due diligence enterprise, and extracting sample due diligence data corresponding to at least one information type of the first sample due diligence enterprise from a pre-built enterprise knowledge base based on the sample query request information;
[0162] According to the format of the retrieval process statement corresponding to the retrieval process, determine the sample retrieval process statement corresponding to at least one information type of the first sample due diligence enterprise, and use the sample text of the sample due diligence data corresponding to the information type as the sample text corresponding to the sample retrieval process statement corresponding to the information type.
[0163] As an optional implementation, another embodiment of the present application discloses that the training sample includes: a sample retrieval process statement of a second sample due diligence enterprise and a sample text of a sample due diligence report of the second sample due diligence enterprise; and the due diligence report generation device further includes: a second sample acquisition module. The second sample acquisition module is used to:
[0164] According to the format of the retrieval process statement corresponding to the retrieval process, determine the retrieval process statements corresponding to all information types of the second sample due diligence enterprise, and combine the retrieval process statements corresponding to all information types of the second sample due diligence enterprise with the due diligence report generation statement into a sample retrieval process statement for the second sample due diligence enterprise, and use the sample due diligence report of the second sample due diligence enterprise as the sample text.
[0165] The due diligence report generation device provided in this embodiment belongs to the same application concept as the due diligence report generation method provided in the above embodiments of this application, and can execute the due diligence report generation method provided in any of the above embodiments of this application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in this embodiment, please refer to the specific processing content of the due diligence report generation method provided in the above embodiments of this application, and will not be repeated here.
[0166] Exemplary Electronic Devices
[0167] Another embodiment of the present application also provides an electronic device, see Figure 7 As shown, the device includes:
[0168] Memory 200 and processor 210;
[0169] The memory 200 is connected to the processor 210 and is used to store programs;
[0170] The processor 210 is used to implement the due diligence report generation method disclosed in any of the above embodiments by running the program stored in the memory 200.
[0171] Specifically, the electronic device may further include: a bus, a communication interface 220 , an input device 230 and an output device 240 .
[0172] The processor 210, the memory 200, the communication interface 220, the input device 230 and the output device 240 are connected to each other via a bus.
[0173] A bus may include a pathway that transfers information between components of a computer system.
[0174] The processor 210 may be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the scheme of the present invention. It may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0175] The processor 210 may include a main processor, and may also include a baseband chip, a modem, and the like.
[0176] The memory 200 stores a program for executing the technical solution of the present invention, and may also store an operating system and other key services. Specifically, the program may include a program code, and the program code includes a computer operation instruction. More specifically, the memory 200 may include a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), other types of dynamic storage devices that can store information and instructions, a disk storage, a flash, and the like.
[0177] The input device 230 may include a device for receiving data and information input by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, a pedometer, or a gravity sensor.
[0178] Output device 240 may include devices that allow information to be output to a user, such as a display screen, printer, speaker, etc.
[0179] The communication interface 220 may include any transceiver or the like to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.
[0180] The processor 210 executes the program stored in the memory 200 and calls other devices, which can be used to implement each step of any due diligence report generation method provided in the above embodiments of the present application.
[0181] Exemplary computer program products and storage media
[0182] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the due diligence report generation method according to various embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.
[0183] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user computing device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0184] In addition, an embodiment of the present application may also be a storage medium on which a computer program is stored, and the computer program is executed by a processor to execute the steps in the due diligence report generation method according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.
[0185] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0186] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0187] The steps in the methods of each embodiment of the present application can be adjusted in order, combined and deleted according to actual needs, and the technical features recorded in each embodiment can be replaced or combined.
[0188] The modules and sub-modules in the devices and terminals of the various embodiments of the present application can be combined, divided and deleted according to actual needs.
[0189] In the several embodiments provided in the present application, it should be understood that the disclosed terminals, devices and methods can be implemented in other ways. For example, the terminal embodiments described above are only schematic, for example, the division of modules or submodules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple submodules or modules can be combined or integrated into another module, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0190] The modules or submodules described as separate components may or may not be physically separated, and the components of the modules or submodules may or may not be physical modules or submodules, that is, they may be located in one place, or they may be distributed on multiple network modules or submodules. Some or all of the modules or submodules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0191] In addition, each functional module or submodule in each embodiment of the present application may be integrated into one processing module, or each module or submodule may exist physically separately, or two or more modules or submodules may be integrated into one module. The above-mentioned integrated modules or submodules may be implemented in the form of hardware or in the form of software functional modules or submodules.
[0192] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0193] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly by hardware, software units executed by a processor, or a combination of the two. The software units may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0194] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0195] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.< / end> < / end>
Claims
1. A method for generating a due diligence report, characterized in that: include: Obtain the query request information of the enterprise to be investigated; Based on the query request information, using an information retrieval algorithm, obtaining due diligence data of the enterprise to be due diligenced from a pre-built enterprise knowledge base; A due diligence report on the enterprise to be due diligenceed is generated based on the due diligence data of the enterprise to be due diligenceed and a pre-constructed standard format of a due diligence report.
2. The method according to claim 1, characterized in that Based on the query request information, using an information retrieval algorithm, obtaining due diligence data of the enterprise to be investigated from a pre-built enterprise knowledge base, including: According to the retrieval process in the information retrieval algorithm, by calling the retrieval tool, the due diligence data of the enterprise to be investigated corresponding to the query request information is obtained from the pre-built enterprise knowledge base.
3. The method according to claim 2, characterized in that The due diligence report of the enterprise to be due diligence includes due diligence data corresponding to at least one information type of the enterprise to be due diligence; According to the retrieval process in the information retrieval algorithm, by calling the retrieval tool, the due diligence data of the enterprise to be investigated corresponding to the query request information is obtained from the pre-built enterprise knowledge base, including: According to the search process corresponding to the first information type, by calling the search tool corresponding to the first information type, the due diligence data corresponding to the first information type of the enterprise to be due diligenced is obtained from the pre-built enterprise knowledge base, and the search process statement corresponding to the first information type is determined; Based on the retrieval process statement corresponding to the first information type, in accordance with the retrieval process corresponding to the second information type, by calling the retrieval tool corresponding to the second information type, the due diligence data corresponding to the second information type of the enterprise to be due diligence is obtained from the pre-built enterprise knowledge base, and the retrieval process statement corresponding to the second information type is determined.
4. The method according to claim 3, characterized in that The retrieval process includes: determining the query purpose, determining the query requirements, determining the query action, determining the query parameters, and determining the query results; According to the search process corresponding to the first information type, by calling the search tool corresponding to the first information type, obtaining the due diligence data corresponding to the first information type of the enterprise to be due diligenced from the pre-built enterprise knowledge base, and determining the search process statement corresponding to the first information type, including: Determine the query purpose, query requirement, query action and query parameters corresponding to the first information type; the query parameters include: the first information type and the enterprise to be investigated; Based on the query action and the query parameters, by calling a search tool corresponding to the first information type, obtaining due diligence data corresponding to the first information type of the enterprise to be due diligenced from a pre-built enterprise knowledge base; Taking the due diligence data corresponding to the first information type of the enterprise to be due diligenced as the query result; Based on the query purpose, query requirement, query action, query parameter and query result corresponding to the first information type, a retrieval process statement corresponding to the first information type is determined.
5. The method according to claim 1, characterized in that Obtain the query request information of the company to be investigated, including: The acquired human-computer dialogue information is analyzed, and the query request information of the enterprise to be investigated is extracted from the human-computer dialogue information.
6. The method according to claim 1, characterized in that Based on the query request information, using an information retrieval algorithm, obtaining due diligence data of the enterprise to be investigated from a pre-built enterprise knowledge base, and generating a due diligence report on the enterprise to be investigated based on the due diligence data of the enterprise to be investigated and a pre-built due diligence report standard format, including: Inputting the query request information of the enterprise to be investigated into a pre-trained due diligence report generation model to obtain a due diligence report of the enterprise to be investigated; Among them, the due diligence report generation model is based on the query request information and uses information retrieval algorithm to obtain the due diligence data of the company to be investigated from a pre-built enterprise knowledge base, and generates a due diligence report on the company to be investigated based on the due diligence data of the company to be investigated and a pre-built due diligence report standard format; the due diligence report generation model is a large language model.
7. The method according to claim 6, characterized in that The training process of the due diligence report generation model includes: Inputting the pre-acquired training samples into the pre-built due diligence report generation model to obtain the predicted text corresponding to the training samples; the training samples include: sample retrieval process statements and sample text corresponding to the sample retrieval process statements; Based on the difference between the sample text in the training sample and the predicted text corresponding to the training sample, the model parameters of the due diligence report generation model are adjusted.
8. The method according to claim 7, characterized in that The training samples include: a sample search process statement corresponding to the information type of the first sample due diligence enterprise and a sample text of sample due diligence data corresponding to the information type of the first sample due diligence enterprise; The process of obtaining the training samples includes: Obtaining sample query request information of the first sample due diligence enterprise, and extracting sample due diligence data corresponding to at least one information type of the first sample due diligence enterprise from a pre-built enterprise knowledge base based on the sample query request information; According to the format of the retrieval process statement corresponding to the retrieval process, determine the sample retrieval process statement corresponding to at least one information type of the first sample due diligence enterprise, and use the sample text of the sample due diligence data corresponding to the information type as the sample text corresponding to the sample retrieval process statement corresponding to the information type.
9. The method according to claim 7, characterized in that: The training samples include: a sample search process statement of the second sample due diligence enterprise and a sample text of a sample due diligence report of the second sample due diligence enterprise; The process of obtaining the training samples includes: According to the format of the retrieval process statement corresponding to the retrieval process, determine the retrieval process statements corresponding to all information types of the second sample due diligence enterprise, and combine the retrieval process statements corresponding to all information types of the second sample due diligence enterprise with the due diligence report generation statement into a sample retrieval process statement for the second sample due diligence enterprise, and use the sample due diligence report of the second sample due diligence enterprise as the sample text.
10. A due diligence report generating device, characterized in that: include: The first acquisition module is used to obtain the query request information of the enterprise to be investigated; A second acquisition module is used to acquire the due diligence data of the enterprise to be investigated from a pre-built enterprise knowledge base based on the query request information and using an information retrieval algorithm; The report generation module is used to generate a due diligence report on the enterprise to be investigated based on the due diligence data of the enterprise to be investigated and a pre-constructed due diligence report standard format.
11. An electronic device, characterized in that: include: Memory and processor; The memory is connected to the processor and is used to store programs; The processor is used to implement the due diligence report generation method as described in any one of claims 1 to 9 by running the program in the memory.
12. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the due diligence report generation method as described in any one of claims 1 to 9 is implemented.
13. A computer program product, characterized in that The method comprises computer program instructions, which, when executed by a processor, enable the processor to implement the due diligence report generation method as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Data acquisition-based defaulting survey method and deviceapparatus, and terminal device
CN110264222A
Investigation report automatic generation method and device
CN112116274A
Analysis report generation method and device, electronic equipment and storage medium
CN117743566A
Interactive generation type financial survey report generation method and system based on large model
CN117952075A
Cited By
Defective asset complete dispatching method, device and equipment and medium
CN119624621A
AI dialogue-driven asset exhaustion scheduling process arrangement method and system
CN122264067A
