Method and device for enhancing effect of large model
By providing a preset classification table for large language models and obtaining classification information layer by layer, target questions are generated, which solves the problem of inaccurate classification of user questions in the existing technology and improves the professionalism and accuracy of LLM's answers in professional fields.
Patent Information
- Application Number
- CN202410799094.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-01
AI Technical Summary
Existing large-scale language models are difficult to provide accurate and professional answers in professional fields, especially when there are insufficient multi-level labels or unpopular labels, resulting in inaccurate classification of user questions.
Provides a preset classification table, obtains the classification information of the original question layer by layer, generates target questions, and obtains more professional answers based on the target questions. Use the preset classification table to clarify the direction and enhance the professionalism of LLM.
It achieves accurate classification and professional answers to user questions, improves the accuracy and professionalism of LLM's answers in professional fields, and reduces manual participation and costs.
Smart Images

Figure CN118733729A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of large language models, and in particular to a method and device for enhancing the effect of large models. Background Art
[0002] In recent years, Large Language Models (LLMs) have been widely used to solve a variety of practical problems. How to optimize the response of LLMs through prompt engineering so that they can better meet user needs has become an important research direction. Different LLMs use different training data and methods, and may show different emphases in answering questions. Existing LLMs usually answer from the perspective of general values, but in professional fields, users expect answers that contain more professional knowledge.
[0003] In the prior art, the method of combining a pre-trained model with a graph neural network can give data multi-level labels, which helps to professionally classify user questions. There is also a method of embedding labels into text to form new vectors, which can improve the classification accuracy of user questions. However, these classification methods require a large number of labels, and each type of label requires sufficient data coverage. When there are too many labels and the labels are unpopular, it is difficult to accurately classify them using existing methods. Therefore, how to accurately classify user questions so that LLM can give more professional answers has become a problem that needs to be solved urgently. Summary of the invention
[0004] Based on the above problems, the present application provides a method and device for enhancing the effect of a large model, so as to accurately classify user questions so that the LLM can give more professional answers.
[0005] The present application discloses a method for enhancing the effect of a large model, the method comprising:
[0006] Provides preset classification tables for large language models (LLMs);
[0007] Based on the original question and the preset classification table, determining classification information of the original question through LLM;
[0008] Combining the classification information with the original question to generate a target question;
[0009] Based on the target question and the preset classification table, an answer to the target question is obtained through LLM.
[0010] Optionally, determining the classification information of the original question by LLM based on the original question and the preset classification table includes:
[0011] According to the levels in the preset classification table, the classification information of the original question is obtained layer by layer by querying LLM; the levels include insurance type, business type and business sub-process.
[0012] Optionally, the obtaining classification information of the original question layer by layer by querying LLM according to the levels in the preset classification table includes:
[0013] Ask the LLM about the type of insurance policy in the original question;
[0014] Based on the insurance type returned by LLM, ask LLM about the business type of the original question;
[0015] Based on the insurance type and business type returned by LLM, ask the business sub-process of the original question mentioned by LLM;
[0016] The insurance type, business type and business sub-process returned by LLM are used as the classification information.
[0017] Optionally, the insurance type of the original question asked by the LLM includes:
[0018] Use the first prompt to ask the LLM the type of insurance policy stated in the original question;
[0019] Get the insurance type answer returned by LLM;
[0020] Using the first confirmation prompt, the LLM is asked whether the insurance type of the original question is the insurance type answer;
[0021] If yes, the answer to the insurance type is used as the insurance type of the original question;
[0022] If not, the LLM is repeatedly asked about the insurance type of the original question until the insurance type of the original question is the insurance type answer, and the insurance type answer is used as the insurance type of the original question.
[0023] Optionally, based on the insurance type returned by LLM, asking LLM about the business type of the original question includes:
[0024] Based on the insurance type returned by the LLM, a second prompt is used to ask the LLM the business type of the original question;
[0025] Get the business answer returned by LLM;
[0026] Using a second confirmation prompt, asking the LLM whether the business type of the original question is the business answer;
[0027] If yes, the business answer is used as the business type of the original question;
[0028] If not, repeatedly ask the LLM about the business type of the original question until the business type of the original question is the business answer, and use the business answer as the business type of the original question.
[0029] Optionally, the business sub-process of asking LLM the original question based on the insurance type and business type returned by LLM includes:
[0030] Based on the insurance type returned by the LLM, a business sub-process is used to ask the LLM the original question using the third prompt;
[0031] Get the subprocess answer returned by LLM;
[0032] Using a third confirmation prompt, asking the LLM whether the business sub-process of the original question is the sub-process answer;
[0033] If yes, the sub-process answer is used as the business sub-process of the original question;
[0034] If not, the LLM is repeatedly asked about the business sub-process of the original question until the business sub-process of the original question is the sub-process answer, and the sub-process answer is used as the business sub-process of the original question.
[0035] Optionally, obtaining an answer to the target question through LLM based on the target question and the preset classification table includes:
[0036] Ask for answers to the LLM's stated objective questions;
[0037] The LLM gives an answer to the target question based on the preset classification table and according to the original question and the classification information in the target question.
[0038] Based on the above method for enhancing the effect of a large model, the present application also discloses a device for enhancing the effect of a large model, including: a classification table providing unit, a classification information determining unit, a target question generating unit and an answering unit;
[0039] The classification table providing unit is used to provide a preset classification table for the large language model LLM;
[0040] The classification information determining unit is used to determine the classification information of the original question through LLM based on the original question and the preset classification table;
[0041] The target question generating unit is used to combine the classification information with the original question to generate the target question;
[0042] The answering unit is used to obtain an answer to the target question through LLM based on the target question and the preset classification table.
[0043] Optionally, the classification information determining unit includes:
[0044] The layer-by-layer acquisition subunit is used to acquire the classification information of the original question layer by layer by querying LLM according to the levels in the preset classification table; the levels include insurance type, business type and business sub-process.
[0045] Optionally, the layer-by-layer acquisition subunit includes:
[0046] Insurance type inquiry subunit, used to inquire about the insurance type of the original question stated in the LLM;
[0047] A business inquiry subunit is used to inquire about the business type of the original question in the LLM based on the insurance type returned by the LLM;
[0048] The process inquiry subunit is used to inquire about the business subprocess of the original question stated in the LLM based on the insurance type and business type returned by the LLM;
[0049] The classification information acquisition subunit is used to use the insurance type, business type and business sub-process returned by LLM as the classification information.
[0050] Optionally, the insurance type inquiry subunit is used to:
[0051] Use the first prompt to ask the LLM the type of insurance policy stated in the original question;
[0052] Get the insurance type answer returned by LLM;
[0053] Using the first confirmation prompt, the LLM is asked whether the insurance type of the original question is the insurance type answer;
[0054] If yes, the answer to the insurance type is used as the insurance type of the original question;
[0055] If not, the LLM is repeatedly asked about the insurance type of the original question until the insurance type of the original question is the insurance type answer, and the insurance type answer is used as the insurance type of the original question.
[0056] Optionally, the service inquiry subunit is used to:
[0057] Based on the insurance type returned by the LLM, a second prompt is used to ask the LLM the business type of the original question;
[0058] Get the business answer returned by LLM;
[0059] Using a second confirmation prompt, asking the LLM whether the business type of the original question is the business answer;
[0060] If yes, the business answer is used as the business type of the original question;
[0061] If not, repeatedly ask the LLM about the business type of the original question until the business type of the original question is the business answer, and use the business answer as the business type of the original question.
[0062] Optionally, the process inquiry subunit is used to:
[0063] Based on the insurance type returned by the LLM, a business sub-process is used to ask the LLM the original question using the third prompt;
[0064] Get the subprocess answer returned by LLM;
[0065] Using a third confirmation prompt, asking the LLM whether the business sub-process of the original question is the sub-process answer;
[0066] If yes, the sub-process answer is used as the business sub-process of the original question;
[0067] If not, the LLM is repeatedly asked about the business sub-process of the original question until the business sub-process of the original question is the sub-process answer, and the sub-process answer is used as the business sub-process of the original question.
[0068] Optionally, the answering unit includes:
[0069] A target inquiry subunit is used to inquire about the answer to the target question of the LLM;
[0070] The answer acquisition subunit is used for LLM to give an answer to the target question based on the preset classification table, the original question and the classification information in the target question.
[0071] The present application discloses a method and device for enhancing the effect of a large model. A preset classification table is provided for a large language model LLM, which is designed around the entire business process, and provides a specific and professional knowledge framework for LLM, which helps to generate more professional answers. Based on the original question and the preset classification table, the classification information of the original question is determined by LLM. The classification information is combined with the original question to generate a target question, which provides a clear direction for LLM and enhances the professionalism of its answer. Finally, based on the target question and the preset classification table, the answer to the target question is obtained through LLM. The present application realizes the supplement of professional knowledge, accurately classifies user questions, enhances the answer effect of LLM, and improves the professionalism of LLM's answers. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] 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.
[0073] Figure 1 A flow chart of a method for enhancing the effect of a large model disclosed in an embodiment of the present application;
[0074] Figure 2a A flow chart of another method for enhancing the effect of a large model disclosed in an embodiment of the present application;
[0075] Figure 2b This is a schematic diagram of the large model answer obtained by directly inputting the original question;
[0076] Figure 2c A schematic diagram of a large model answer obtained by inputting a target question disclosed in an embodiment of the present application;
[0077] Figure 3 This is a schematic diagram of the structure of a device for enhancing large model effects disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0078] This application aims to automatically generate multi-level classification labels for questions from users, and use these labels to rewrite the questions. After rewriting and supplementing the questions with these labels, LLM can provide more accurate and professional answers. This operation process is mainly applied to the reasoning link of LLM. Among them, it is necessary to supplement the knowledge framework of LLM with specific prompts of professional terms and business processes based on the preset classification table, so as to optimize its output. In order to obtain sufficient and clear target questions, it is first necessary to provide LLM with sufficiently detailed terms. For example, if LLM is only instructed to answer questions based on claims knowledge without clarifying the specific business scope of the user's question, it may not be possible to effectively guide LLM to make professional answers. Secondly, accurate prompts need to be given, because inaccurate professional terms may mislead LLM and deviate from the correct answer direction.
[0079] In summary, this application rewrites the original question through precise and detailed professional terminology prompts, thereby guiding LLM to provide more professional and accurate answers in professional fields and improving the professional effect of LLM on business issues. This helps to improve the practicality of LLM and promotes its application effect in specific fields.
[0080] 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.
[0081] Embodiment 1: This application discloses a method for enhancing the effect of a large model.
[0082] For details, please refer to Figure 1 A method for enhancing the large model effect disclosed in this embodiment includes the following steps:
[0083] Step 101: Provide a preset classification table for the large language model LLM.
[0084] In the early business combing stage of the method described in this embodiment, it is first necessary to describe the structural relationship of the business process in detail. Taking into account the various problems that different types of insurance may encounter in the underwriting and claims settlement stages, it is necessary to distinguish various types of insurance. Then further refine the business types under each type of insurance, and then for each business type, subdivide the specific business sub-processes to obtain a preset classification table. Among them, insurance types include life insurance, auto insurance, property insurance, health insurance, endowment insurance and accident insurance. Business types include marketing, underwriting, preservation and claims settlement. After determining the business type, further identify the business sub-processes under each business type. For example, if the business type is preservation, the business sub-processes may include preservation application, preservation acceptance, preservation processing, preservation confirmation and preservation completion.
[0085] Step 102: Based on the original question and the preset classification table, the classification information of the original question is determined through LLM.
[0086] In the method described in this embodiment, the classification information of the original question is obtained layer by layer by querying LLM according to the hierarchy in the preset classification table. The hierarchy includes insurance type, business type and business sub-process. As an optional method, LLM can be queried for the insurance type of the original question, and based on the insurance type returned by LLM, LLM can be queried for the business type of the original question. Based on the insurance type and business type returned by LLM, LLM is queried for the business sub-process of the original question, and finally the insurance type, business type and business sub-process returned by LLM are used as classification information.
[0087] When asking LLM about the insurance type of the original question, the first prompt can be used to ask LLM about the insurance type of the original question and obtain the insurance type answer returned by LLM. Then the first confirmation prompt is used to ask LLM whether the insurance type of the original question is the insurance type answer. If so, the insurance type answer is used as the insurance type of the original question. If not, repeatedly ask LLM about the insurance type of the original question until the insurance type of the original question is the insurance type answer, and the insurance type answer is used as the insurance type of the original question.
[0088] Specifically, it can be to use the preset first prompt to ask ChatGPT-3.5 about the type of insurance in the original question. For example, the first prompt can be: You are asked to choose what type of insurance the original question is from the following: life insurance, car insurance, property insurance, health insurance, endowment insurance and accident insurance. Please make a choice directly without additional explanation. When ChatGPT-3.5 gives an answer to the insurance type, use the preset first confirmation prompt to verify whether the original question really meets the insurance type answer given by ChatGPT-3.5. For example, the first confirmation prompt can be: Please answer whether this original question is a life insurance type question, please say yes or no directly, without additional explanation.
[0089] When asking LLM about the business type of the original question, you can use the second prompt to ask LLM about the business type of the original question based on the insurance type returned by LLM, and obtain the business answer returned by LLM. Then use the second confirmation prompt to ask LLM whether the business type of the original question is the business answer. If so, the business answer is used as the business type of the original question. If not, repeatedly ask LLM about the business type of the original question until the business type of the original question is the business answer, and use the business answer as the business type of the original question.
[0090] Specifically, the preset second prompt may be used to ask the business type of the original question of ChatGPT-3.5. For example, the second prompt may be: You are asked to select the business type of the original question from the following: marketing, underwriting, preservation, and claims. Please make a selection directly without additional instructions. When ChatGPT-3.5 gives a business answer, the preset second confirmation prompt is used to confirm whether the original question really meets the business answer given by ChatGPT-3.5.
[0091] When asking LLM about the business sub-process of the original question, you can use the third prompt to ask LLM about the business sub-process of the original question based on the insurance type returned by LLM, and obtain the sub-process answer returned by LLM. Then use the third confirmation prompt to ask LLM whether the business sub-process of the original question is the sub-process answer. If so, the sub-process answer is used as the business sub-process of the original question. If not, repeatedly ask LLM about the business sub-process of the original question until the business sub-process of the original question is the sub-process answer, and use the sub-process answer as the business sub-process of the original question.
[0092] Specifically, it can be to use the preset third prompt to ask the business sub-process of the original question of ChatGPT-3.5. For example, the third prompt can be: You are asked to select what business sub-process the original question is from the following: registration scanning-business delivery, registration scanning-order acceptance preliminary review, registration scanning-new order registration, registration scanning-new order scanning, recording order recording order-first recording order, recording order-material verification, review review review-second recording order, review-material review, review-final underwriting, underwriting underwriting-sales risk control, underwriting-physical examination risk control, underwriting-survival risk control, underwriting-underwriting risk control, underwriting-reinsurance arrangement, underwriting-underwriting conclusion, underwriting-notice issuance, issuing order-signing contract, issuing order-payment, issuing order-issuing policy. Please make a choice directly, no additional explanation is needed. When ChatGPT-3.5 gives the answer to the sub-process, use the preset third confirmation prompt to confirm whether the original question really meets the sub-process answer given by ChatGPT-3.5.
[0093] In the method described in this embodiment, the prompt content can be written according to actual needs, and no specific limitation is made here, as long as the prompt content can be understood by the LLM.
[0094] Step 103: Combine the classification information with the original question to generate a target question.
[0095] In the method described in this embodiment, a specific prompt can be used to combine the original question with the classified information to inject more professional and specific content into the original question. For example, the specific prompt can be: Please give an answer to this original question based on the professional insurance knowledge of life insurance-underwriting-underwriting-occupational risk control.
[0096] Step 104: Based on the target question and the preset classification table, an answer to the target question is obtained through LLM.
[0097] In the method described in this embodiment, the LLM is asked the answer to the target question, and the LLM gives the answer to the target question based on the preset classification table, the original question and the classification information in the target question. As an optional method, the newly generated target question can be re-queried through ChatGPT-3.5, thereby injecting deeper business knowledge into the user's question, enhancing the LLM effect, and improving the accuracy and professionalism of the answer.
[0098] The method described in this embodiment designs a preset classification table based on the entire business process, covering all key business nodes from major insurance categories to specific business sub-processes. This provides LLM with specific, professional guidance and a clear knowledge framework, enhances the professionalism of its answers, and helps guide it to generate answers that are more in line with professional standards. In addition, the design concept of the method described in this embodiment reduces manual participation and achieves high-quality business process knowledge supplementation in an automated manner. No additional labeling work is required, ensuring the integrity, diversity and professionalism of business process supplementary knowledge. It not only significantly improves the value of business knowledge, but also improves the professionalism of LLM answers, and effectively controls costs, giving it a significant competitive advantage in practical applications. The method described in this embodiment performs well in the three key dimensions of domain knowledge integration, business guidance and cost-effectiveness, providing an innovative and powerful automation construction tool for future insurance business processes.
[0099] Embodiment 2: This application discloses another method for enhancing the effect of large models, please refer to Figure 2a The method described in this embodiment introduces the whole process of asking LLM questions.
[0100] Step 201: Enter the original question.
[0101] In the method described in this embodiment, the original question is: Recently, a life insurance application was received from a middle-aged customer. The customer's occupation is a high-risk sports coach engaged in extreme sports training. Please explain in detail how you will conduct occupational underwriting to ensure that his occupational characteristics are comprehensively considered when assessing risks.
[0102] Step 202: Obtain the insurance type of the original question through the first prompt.
[0103] In the method described in this embodiment, the first prompt is: You are asked to select the type of insurance from the following: life insurance, auto insurance, property insurance, health insurance, endowment insurance and accident insurance. Please make a selection directly without additional instructions.
[0104] Step 203: Confirm the insurance type of the original question through the first confirmation prompt.
[0105] In the method described in this embodiment, the first confirmation prompt is: Please answer whether this original question is a life insurance type question, please directly say yes or no, no additional explanation is required.
[0106] Step 204: Obtain the business type of the original question through the second prompt.
[0107] In the method described in this embodiment, the second prompt is: You are asked to select the business type of the original question from the following: marketing, underwriting, preservation, and claims. Please make a selection directly without additional instructions.
[0108] Step 205: Confirm the business type of the original question through a second confirmation prompt.
[0109] In the method described in this embodiment, the second confirmation prompt is: Please answer whether this original question is an underwriting type question. Please directly say yes or no without additional explanation.
[0110] Step 206: Obtain the sub-business process of the original question through the third prompt.
[0111] In the method described in this embodiment, the third prompt is: You are asked to select what sub-business process the original question is from the following contents: registration scanning-business delivery, registration scanning-order acceptance preliminary review, registration scanning-new order registration, registration scanning-new order scanning, recording order recording order-first recording order, recording order-material verification, review review review-second recording order, review-material review, review-final underwriting, underwriting underwriting-sales risk control, underwriting-physical examination risk control, underwriting-survival risk control, underwriting-underwriting risk control, underwriting-reinsurance arrangement, underwriting-underwriting conclusion, underwriting-notice issuance, issuing order-signing contract, issuing order-payment, issuing order-issuing policy. Please make a selection directly without additional instructions.
[0112] Step 207: Confirm the sub-business process of the original question through a third confirmation prompt.
[0113] In the method described in this embodiment, the third confirmation prompt is: Please answer whether this original question is an underwriting-occupational risk control question. Please directly say yes or no, and no additional explanation is required.
[0114] Step 208: Combine the insurance type, business type and sub-business process of the original question to obtain classification information of the original question.
[0115] In the method described in this embodiment, the classified information is: life insurance-underwriting-underwriting-occupational risk control.
[0116] Step 209: Combine the classification information of the original question with the original question to generate a target question.
[0117] In the method described in this embodiment, the target question can be: I recently received a life insurance application from a middle-aged customer. The customer's occupation is a high-risk sports coach who is engaged in extreme sports training. Please explain in detail how you will conduct professional underwriting to ensure that his professional characteristics are comprehensively considered when assessing risks. Please give the answer to the above question based on the professional insurance knowledge of life insurance-underwriting-underwriting-occupational risk control
[0118] Step 210: Ask ChatGPT-3.5 the target question again to obtain a more professional answer.
[0119] As a feasible example, the answer obtained by directly inputting ChatGPT-3.5 questions is as follows Figure 2b As shown, the answer obtained by inputting the ChatGPT-3.5 target question through the method described in this embodiment is as follows Figure 2c By comparison, it can be seen that the LLM answer obtained by the method described in this embodiment shows higher professionalism.
[0120] Based on the method for enhancing the effect of a large model disclosed in the above embodiment, this embodiment correspondingly discloses a device for enhancing the effect of a large model. Figure 3 , the device for enhancing the effect of a large model comprises: a classification table providing unit 301, a classification information determining unit 302, a target question generating unit 303 and an answering unit 304;
[0121] The classification table providing unit 301 is used to provide a preset classification table for the large language model LLM;
[0122] The classification information determining unit 302 is used to determine the classification information of the original question through LLM based on the original question and the preset classification table;
[0123] The target question generating unit 303 is used to combine the classification information with the original question to generate the target question;
[0124] The answering unit 304 is used to obtain an answer to the target question through LLM based on the target question and the preset classification table.
[0125] Optionally, the classification information determining unit 302 includes:
[0126] The layer-by-layer acquisition subunit is used to acquire the classification information of the original question layer by layer by querying LLM according to the levels in the preset classification table; the levels include insurance type, business type and business sub-process.
[0127] Optionally, the layer-by-layer acquisition subunit includes:
[0128] Insurance type inquiry subunit, used to inquire about the insurance type of the original question stated in the LLM;
[0129] A business inquiry subunit is used to inquire about the business type of the original question in the LLM based on the insurance type returned by the LLM;
[0130] The process inquiry subunit is used to inquire about the business subprocess of the original question stated in the LLM based on the insurance type and business type returned by the LLM;
[0131] The classification information acquisition subunit is used to use the insurance type, business type and business sub-process returned by LLM as the classification information.
[0132] Optionally, the insurance type inquiry subunit is used to:
[0133] Use the first prompt to ask the LLM the type of insurance policy stated in the original question;
[0134] Get the insurance type answer returned by LLM;
[0135] Using the first confirmation prompt, the LLM is asked whether the insurance type of the original question is the insurance type answer;
[0136] If yes, the answer to the insurance type is used as the insurance type of the original question;
[0137] If not, the LLM is repeatedly asked about the insurance type of the original question until the insurance type of the original question is the insurance type answer, and the insurance type answer is used as the insurance type of the original question.
[0138] Optionally, the service inquiry subunit is used to:
[0139] Based on the insurance type returned by the LLM, a second prompt is used to ask the LLM the business type of the original question;
[0140] Get the business answer returned by LLM;
[0141] Using a second confirmation prompt, asking the LLM whether the business type of the original question is the business answer;
[0142] If yes, the business answer is used as the business type of the original question;
[0143] If not, repeatedly ask the LLM about the business type of the original question until the business type of the original question is the business answer, and use the business answer as the business type of the original question.
[0144] Optionally, the process inquiry subunit is used to:
[0145] Based on the insurance type returned by the LLM, a business sub-process is used to ask the LLM the original question using the third prompt;
[0146] Get the subprocess answer returned by LLM;
[0147] Using a third confirmation prompt, asking the LLM whether the business sub-process of the original question is the sub-process answer;
[0148] If yes, the sub-process answer is used as the business sub-process of the original question;
[0149] If not, the LLM is repeatedly asked about the business sub-process of the original question until the business sub-process of the original question is the sub-process answer, and the sub-process answer is used as the business sub-process of the original question.
[0150] Optionally, the answering unit 304 includes:
[0151] A target inquiry subunit is used to inquire about the answer to the target question of the LLM;
[0152] The answer acquisition subunit is used for LLM to give an answer to the target question based on the preset classification table, the original question and the classification information in the target question.
[0153] The embodiments in this specification are described in a progressive manner. As for the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the methods.
[0154] It should also 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 "include", "comprise" 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, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0155] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module 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.
[0156] The features described in the embodiments of this specification can be replaced or combined with each other, so that professional and technical personnel in this field can implement or use the present application.
[0157] 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.
Claims
1. A method for enhancing the effect of a large model, characterized in that: include: Provides a preset classification table for the Large Language Model (LLM); Based on the original question and the preset classification table, determining classification information of the original question through LLM; Combining the classification information with the original question to generate a target question; Based on the target question and the preset classification table, an answer to the target question is obtained through LLM.
2. The method according to claim 1, characterized in that The determining, based on the original question and the preset classification table, classification information of the original question by LLM includes: According to the hierarchy in the preset classification table, the classification information of the original question is obtained layer by layer by querying the LLM; the hierarchy includes insurance type, business type and business sub-process.
3. The method according to claim 2, characterized in that The step of obtaining the classification information of the original question layer by layer by querying the LLM according to the hierarchy in the preset classification table includes: Ask the LLM about the type of insurance policy mentioned in the original question; Based on the insurance type returned by the LLM, ask the LLM about the business type of the original question; Based on the insurance type and business type returned by LLM, ask the business sub-process of the original question mentioned by LLM; The insurance type, business type and business sub-process returned by LLM are used as the classification information.
4. The method according to claim 3, characterized in that The types of insurance that the LLM asked the original question about include: Use the first prompt to ask the LLM about the type of insurance policy stated in the original question; Get the insurance type answer returned by LLM; Using the first confirmation prompt, ask the LLM whether the insurance type of the original question is the insurance type answer; If so, the answer to the insurance type is used as the insurance type of the original question; If not, the LLM is repeatedly asked about the insurance type of the original question until the insurance type of the original question is the insurance type answer, and the insurance type answer is used as the insurance type of the original question.
5. The method according to claim 3, characterized in that Based on the insurance type returned by the LLM, the business type of the original question in the LLM is asked, including: Based on the insurance type returned by the LLM, use the second prompt to ask the LLM about the business type of the original question; Get the business answer returned by LLM; Using a second confirmation prompt, asking the LLM whether the business type of the original question is the business answer; If yes, use the business answer as the business type of the original question; If not, repeatedly ask the LLM about the business type of the original question until the business type of the original question is the business answer, and use the business answer as the business type of the original question.
6. The method according to claim 3, characterized in that The business sub-process of asking the LLM the original question based on the insurance type and business type returned by the LLM includes: Based on the insurance type returned by the LLM, a business sub-process is used to ask the LLM the original question using the third prompt; Get the sub-process answer returned by LLM; Using a third confirmation prompt, ask the LLM whether the business sub-process of the original question is the sub-process answer; If so, the sub-process answer is used as the business sub-process of the original question; If not, repeatedly ask the LLM about the business sub-process of the original question until the business sub-process of the original question is the sub-process answer, and use the sub-process answer as the business sub-process of the original question.
7. The method according to claim 1, characterized in that The step of obtaining an answer to the target question through the LLM based on the target question and the preset classification table includes: Ask for answers to the LLM's stated objectives; The LLM gives an answer to the target question based on the preset classification table and the original question and the classification information in the target question.
8. A device for enhancing the effect of a large model, characterized in that: include: Classification table providing unit, classification information determining unit, target question generating unit and answering unit; The classification table providing unit is used to provide a preset classification table for the large language model LLM; The classification information determining unit is configured to determine the classification information of the original question through LLM based on the original question and the preset classification table; The target question generating unit is configured to combine the classification information with the original question to generate a target question; The answering unit is configured to obtain an answer to the target question through LLM based on the target question and the preset classification table.
9. The device according to claim 8, characterized in that The classification information determining unit includes: The layer-by-layer acquisition sub-unit is used to obtain the classification information of the original question layer by layer by querying the LLM according to the levels in the preset classification table; the levels include insurance type, business type and business sub-process.
10. The device according to claim 9, characterized in that The layer-by-layer acquisition subunit includes: Insurance type inquiry subunit, used to inquire about the insurance type of the original question stated in the LLM; The business inquiry subunit is used to inquire about the business type of the original question in the LLM based on the insurance type returned by the LLM; The process inquiry subunit is used to inquire about the business subprocess of the original question stated in the LLM based on the insurance type and business type returned by the LLM; The classification information acquisition subunit is used to use the insurance type, business type and business sub-process returned by the LLM as the classification information.
