System and method for generating verbal skill based on causal large model, and electronic equipment
The causal large model system identifies user intentions, obtains business causal solutions and product related information, and generates target words. This solves the problem of intelligent customer service being unable to accurately identify user intentions, and improves the accuracy of product recommendations and user experience.
Patent Information
- Application Number
- CN202410886501.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-03
AI Technical Summary
Existing intelligent customer service robots cannot accurately identify user intentions, resulting in lack of pertinence and value in reply content, inability to provide effective product selection suggestions, and poor user experience.
Using a system based on a large causal model, the user identification module identifies user problems and situational information, the solution matching module obtains matching business causal solutions, the product processing module obtains product related information, and the utterance generation module generates target utterances to accurately locate user intentions. and provide high-quality product recommendations.
It achieves precise positioning of user intentions, improves the accuracy of product recommendations and user experience, provides high-quality auxiliary information, and enhances the response quality of intelligent customer service.
Smart Images

Figure CN118820428A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent customer service technology, and more specifically, to a system, method and electronic device for generating speech based on a causal big model. Background Art
[0002] With the continuous development of artificial intelligence, intelligent customer service robots are widely used in various business fields.
[0003] Currently, when users want to consult or learn about product information in a specific business field, they can usually interact with intelligent customer service robots. Intelligent customer service robots can recognize the text information entered by users, and then use the preset reply content deployed in them to find the reply content that is closest to the user's text information as the reply text. However, this method can only mechanically reply to users' questions, and it cannot truly recognize the user's intentions, and thus cannot provide users with valuable product selection suggestions.
[0004] Therefore, how to provide a technical solution for a method of generating speech with higher accuracy has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] The purpose of some embodiments of the present application is to provide a system, method and electronic device for generating speech based on a causal big model. Through the technical solutions of the embodiments of the present application, it is possible to accurately locate the user's intention, and thus provide the user with effective and high-quality speech content containing business product suggestions, provide the user with valuable auxiliary information, and enhance the user experience.
[0006] In a first aspect, some embodiments of the present application provide a system for generating speech based on a causal big model, comprising: a user identification module for identifying basic information of a user, wherein the basic information includes: user questions and contextual information related to the user; a solution matching module for obtaining a business causal solution that matches the basic information; a product processing module for obtaining product-related information based on the contextual information and the business causal solution, wherein the product-related information includes: product explanation text, product business data and product demand forecast information; a speech generation module for obtaining target speech corresponding to the basic information, the business causal solution and the product-related information.
[0007] The system provided by some embodiments of the present application identifies the user's user question and the user's context information, matches them to obtain a business causal solution, then obtains product association information based on the context information and the business causal solution, and finally obtains the corresponding target speech through the above content. The present application can accurately locate the user's intention, and then can provide users with effective and high-quality speech content containing business product suggestions, provide users with valuable auxiliary information, and improve user experience.
[0008] In some embodiments, the solution matching module is used to: retrieve multiple product solution causal chains that match the user problem from a preset solution document; annotate the multiple product solution causal chains through user information and product configuration documents to obtain multiple annotated product solution causal chains; and obtain the business causal solution based on the multiple annotated product solution causal chains, the user problem and the target solution matching model.
[0009] Some embodiments of the present application retrieve solutions that match the user's problem from the preset solution document, annotate them in combination with the user information and product configuration document, and finally output the target recommended product through the target solution matching model. Some embodiments of the present application can accurately locate the user's intention and improve the accuracy of product recommendations, thereby allowing users to easily understand product information, improving user experience and marketing accuracy.
[0010] In some embodiments, the solution matching module is used to: calculate the matching degree with the three stage documents in the preset solution document based on the contextual information, and obtain multiple matching values; use the solutions corresponding to the matching values before the preset positions in the multiple matching values as the multiple product solution causal chains; wherein the first stage document in the preset solution document includes: product type and product planning; the second stage document includes: product parameters of each product in the product type; the third stage document includes: product name and product application scenario of each product and product core terms.
[0011] Some embodiments of the present application perform a matching analysis between the contextual information of the user's question and the three-stage documents to obtain multiple product solution causal chains, which can be closer to user needs and improve the accuracy of user intent positioning.
[0012] In some embodiments, the solution matching module is used to: if it is confirmed that the product name of each product solution causal chain in the multiple product solution causal chains and the user information are consistent with the product elements in the product configuration document, then mark it as a valid solution; if it is confirmed that the product name of each product solution causal chain in the multiple product solution causal chains and the user information are inconsistent with the product elements in the product configuration document, then mark it as an invalid solution and generate invalid reason text information; wherein the valid solution and the invalid solution constitute the multiple marked product solution causal chains.
[0013] Some embodiments of the present application compare the product names, user information and product configuration documents of the product solution causal chain for consistency, and then label multiple product solution causal chains to obtain accurate product information and improve the accuracy of product recommendations.
[0014] In some embodiments, the solution matching module is used to: generate prompt text corresponding to the multiple labeled product solution causal chains and the user question; input the prompt text into the target solution matching model to obtain the business causal solution; wherein the target solution matching model is obtained by training a large language model.
[0015] Some embodiments of the present application generate prompt text that meets the target solution matching model and then input it into the model to obtain a business causal solution, thereby ensuring the accuracy of product solution causal chain recommendations.
[0016] In some embodiments, the product processing module includes: a product explanation submodule, a data processing submodule and a demand prediction submodule; wherein the product explanation submodule is used to determine the standard question corresponding to the user question; retrieve the product terms content matching the standard question from the product terms document; generate the product explanation text according to the standard question, the product terms content and the target large language model; the data processing submodule is used to calculate the product business data corresponding to the business causal scheme when confirming that the user needs the product business data; the demand prediction submodule is used to predict the product demand prediction information associated with the user's conversation data.
[0017] Some embodiments of the present application can achieve accurate positioning of users by generating and predicting relevant needs of users through sub-modules in the product processing module, so as to subsequently provide users with valuable speech content information.
[0018] In some embodiments, the product explanation submodule is used to: use a trained semantic vector model to calculate the user question and preset standard sentences to obtain a vector distance set; obtain a target sentence in the vector distance set that is less than a set threshold; and use the sentence corresponding to the minimum value in the vector distance in the target sentence as the standard question.
[0019] Some embodiments of the present application process and analyze user questions and preset standard sentences through a trained semantic vector model to determine corresponding standard questions, so as to accurately retrieve product terms and content related to user needs.
[0020] In some embodiments, the product explanation submodule is used to: confirm that the vector distances in the vector distance set are not less than the set threshold, then record the user question; set a standard sentence corresponding to the user question, and iteratively update the trained semantic vector model.
[0021] Some embodiments of the present application record user questions and update the semantic vector model to improve the accuracy and breadth of the semantic vector model.
[0022] In some embodiments, the product explanation submodule is used to: input preset standard sentences and original product terms content into a large language model to obtain actual reference product terms; verify and annotate the actual reference product terms to determine the product terms reference content; and construct the product terms document based on the preset standard sentences, the product terms reference content and the product information of each product.
[0023] Some embodiments of the present application construct a corresponding product terms document after verifying and annotating the retrieved actual reference product terms, thereby improving the accuracy of the final constructed document.
[0024] In some embodiments, the product explanation submodule is used to: generate prompt information corresponding to the standard questions, the product terms content, the user questions, the conversation context data and the situational information; input the prompt information into the target large language model, and output the product explanation text; wherein the target large language model is obtained by training the initial large model with a training data set; the training data set includes: user question samples, product demand samples, user situation samples, product terms samples and explanation text samples.
[0025] Some embodiments of the present application obtain product explanation text by inputting relevant prompt information into the target large language model, which is efficient and convenient and can also improve user experience. The target large language model is trained with a training data set so that it can output different product explanation texts for different scenario products, thereby improving the practicality of the model.
[0026] In some embodiments, the speech generation module is used to: generate a model input text corresponding to the basic information, the business causal scheme and the product association information; input the model input text into a trained causal model to obtain the target speech.
[0027] Some embodiments of the present application obtain target speech by inputting user-related information into a trained causal model, which can provide users with high-quality and valuable product-related speech content and provide effective auxiliary suggestions for users to choose business products.
[0028] On the second aspect, some embodiments of the present application provide a method for generating speech based on a causal big model, including: identifying basic information of a user, wherein the basic information includes: user questions and contextual information related to the user; obtaining a business causal plan that matches the basic information; obtaining product-related information based on the contextual information and the business causal plan, wherein the product-related information includes: product explanation text, product business data and product demand forecast information; obtaining target speech corresponding to the basic information, the business causal plan and the product-related information.
[0029] In a third aspect, some embodiments of the present application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, can implement the method described in any embodiment of the second aspect.
[0030] In a fourth aspect, some embodiments of the present application provide an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor can implement a method as described in any embodiment of the second aspect when executing the program.
[0031] In a fifth aspect, some embodiments of the present application provide a computer program product, wherein the computer program product comprises a computer program, wherein the computer program, when executed by a processor, can implement the method described in any embodiment of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of some embodiments of the present application, the drawings required for use in some embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 A system diagram for generating speech based on a causal big model provided for some embodiments of the present application;
[0034] Figure 2 A flow chart of a method for generating speech based on a causal big model provided for some embodiments of the present application;
[0035] Figure 3 A schematic diagram of an electronic device is provided for some embodiments of the present application. DETAILED DESCRIPTION
[0036] The technical solutions in some embodiments of the present application will be described below in conjunction with the drawings in some embodiments of the present application.
[0037] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0038] In the related technologies, with the emergence and development of artificial intelligence and big model technology, in order to meet the needs of users and improve the marketing efficiency of business products, direct general big models can provide specific business solutions related to user questions (such as insurance solutions, financial product solution causal chains, etc.). For example, big models in the insurance field can provide answers to basic FAQs or popular product recommendations based on user questions. However, these answers are all reply speech logics set inside the model, and cannot provide users with accurate auxiliary suggestions. When matching user demand products, static matching logic is usually used; that is, users are required to provide a lot of cumbersome information at one time, and users need to dig out and provide specific information to further confirm the specific needs of users. The final presentation is also a one-time solution. If adjustments are required, users need to modify the information form and resubmit it to generate a matching solution. It is impossible to actively and dynamically explore user needs and provide more appropriate planning solutions and speech. In addition, for users who want to understand the terms and conditions of a certain product, the current intelligent customer service will give a relatively general explanation, or directly output the original content of the terms and conditions, which can easily confuse users and make them unable to understand what is being explained. On the other hand, directly generating corresponding broad copy can easily lead to misunderstandings, fabricated terms, and incorrect product explanations that mislead users.
[0039] It can be seen from the above-mentioned related technologies that the accuracy of locating user intentions in the existing technology is poor, and the reply text content given cannot provide effective suggestions to users, cannot plan products for users, and the user experience is poor.
[0040] In view of this, some embodiments of the present application provide a method for generating speech based on a causal big model, which can obtain a business causal solution that matches the user's question and context information after identifying the user's question; then, the product-related information associated with the user can be obtained based on this information, and finally, the corresponding target speech can be generated through the above-obtained content. In some embodiments of the present application, the user's intention can be accurately located, and the target speech given can provide the user with effective product planning suggestions, improving the quality of the response and user experience.
[0041] The following is combined with Figure 1 The overall composition structure of a system for generating speech based on a causal big model provided by some embodiments of the present application is exemplified.
[0042] like Figure 1 As shown, some embodiments of the present application provide a system for generating speech based on a causal model, and the system for generating speech based on a causal model may include: a user identification module 110, a solution matching module 120, a product processing module 130 and a speech generation module 140. Among them, the product processing module 130 also includes: a product explanation submodule 131, a data processing submodule 132, a demand prediction submodule 133 and an information collection module 134. Through this application Figure 1 The mutual interaction between the modules in the system shown can provide personalized product planning for users and provide users with high-quality target scripts, so that users can specifically choose corresponding products based on the recommended information in the target scripts.
[0043] The following is an example of Figure 1 The specific functions of each module.
[0044] In some embodiments of the present application, the user identification module 110 is used to identify basic information of the user, wherein the basic information includes: user questions and context information related to the user.
[0045] For example, in some embodiments of the present application, a user can interact with an intelligent customer service robot in a business field through a terminal device, and the large model agent combination deployed by the intelligent customer service robot can recognize the conversation content input by the user. The user question currently expressed by the user is identified through the user question agent; the user context agent can identify the current context information of the user. For example, taking the insurance business field as an example, the user question is "buy insurance for my daughter", and the context information can be "number of children: 1, gender of the child: female, life stage: marriage and childbearing period" and so on. Among them, the large model agent combination can be obtained by training a specific data set in a specific scenario (for example, the insurance business field). It can be understood that in actual applications, text recognition models or other models in natural language processing can also be used to recognize the user's conversation content, and the embodiments of the present application are not limited to this.
[0046] In some embodiments of the present application, the solution matching module 120 is used to obtain a business causal solution that matches the basic information.
[0047] For example, in some embodiments of the present application, the solution matching module 120 can first retrieve the preset solution document in the large model according to the user problem understood by the pre-set agent, and extract the N solutions most relevant to the user problem (as a specific example of the causal chain of multiple product solutions). Then, the N solutions obtained above are annotated in combination with the product configuration document to obtain multiple annotated product solution causal chains. Among them, taking the insurance business as an example, the insurance product configuration document can provide the insurance requirement elements of each insurance product (such as, the elements can be three parts: insured age range, insured occupation range, health requirement range), and whether it is on sale. It should be understood that the content of the product configuration document can be adaptively adjusted for different business scenarios, and the embodiments of the present application are not limited to this. Finally, the N annotated product solution causal chains after the above annotating are combined with the user problem and input into the target solution matching model to obtain the business causal solution output by the model. For example, taking the above-mentioned buying insurance for my daughter as an example, the business causal solution is: buying insurance for my daughter-> medical insurance, serious illness insurance, accident insurance.
[0048] In some embodiments of the present application, the solution matching module 120 is used to calculate the matching degree with the three stage documents in the preset solution document based on the context information, and obtain multiple matching values; the solution corresponding to the matching value before the preset position in the multiple matching values is used as the multiple product solution causal chains; wherein the first stage document in the preset solution document includes: product type and product planning; the second stage document includes: product parameters of each product in the product type; the third stage document includes: product name and product application scenario of each product and product core terms.
[0049] For example, in some embodiments of the present application, the insurance business field is taken as an example for explanation, and the insurance business content is divided into three stages of solution documents according to the planning stage of the intelligent insurance planner. The solution documents are all constructed in the form of a causal chain. The left side of the causal chain is the user demand, the right side is the solution, and the middle is connected by '->' (for example, the user hopes to renew the insurance after the claim -> Changxiang'an Long-term Medical Insurance (insurance product name) -> guaranteed renewal for 20 years). Among them, the first stage document may include: the initial planning (as a specific example of product planning) and the major types of insurance explained to the user (as a specific example of the product type). The second stage document may include: after determining the insurance type, give the recommended logic of the main parameters under the specific insurance type, such as the insured amount, premium range, etc. (as a specific example of product parameters). The third stage document may include: the specific product name and the problem to be solved (as a specific example of the product application scenario), as well as the core content of the product terms (as a specific example of the core terms of the product) to recommend specific products and match the specific preferences of users. Take a solution as an example, the product name is: Darwin No. 8 Pilot Edition Major Illness Insurance; the product application scenario is: major illness income loss protection is needed, and the core content of the product terms is that the first major illness insurance payment for 120 types is 100% of the basic insurance amount. It is understandable that the first stage document, the second stage document, and the third stage document can be designed and generated according to the needs, and the embodiments of this application are not limited to this.
[0050] Specifically, the solution matching module 120 can perform matching calculations through the user context involved in the user problem (as a specific example of context information) and the user context set in the preset solution document. For example, if the user context is consistent, the item in the document will be added with 0.5 points, and if it is inconsistent, the item will be deducted with 0.2 points. Finally, the final matching value with each item in the three-stage document is summed up, where the matching values are sorted from large to small, and the solutions located in the first N positions (as a specific example of the preset position) are the N product solution causal chains (that is, N solutions) that are most relevant to the user problem. It should be noted that N is a positive integer, and its value can be set as needed. The matching calculation method can also be flexibly adjusted according to the actual application scenario, and the embodiments of the present application are not limited to this.
[0051] In some embodiments of the present application, the solution matching module 120 is used to mark the product solution causal chains in the multiple product solution causal chains as valid solutions if it is confirmed that the product name and the user information of each product solution causal chain are consistent with the product elements in the product configuration document; if it is confirmed that the product name and the user information of each product solution causal chain in the multiple product solution causal chains are inconsistent with the product elements in the product configuration document, mark them as invalid solutions and generate invalid reason text information; wherein the valid solutions and the invalid solutions constitute the multiple marked product solution causal chains.
[0052] For example, in some embodiments of the present application, the solution matching module 120 can extract the product names in N product solution causal chains, and then check and match them according to the product configuration document and the collected user context (such as user age, occupation, and health) to confirm whether the content elements (as a specific example of product elements) are consistent. If there are any non-compliances (such as age inconsistency, occupation inconsistency, health inconsistency, or the product has been removed from the shelves, etc.), then "invalid solution" is indicated on the basis of the product solution causal chain, and text information of the invalid reason is given (such as age inconsistency, occupation inconsistency, health inconsistency, or the product has been removed from the shelves). Otherwise, "valid solution" is indicated on the basis of the product solution causal chain. After the N product solution causal chains are labeled, N labeled product solution causal chains can be obtained.
[0053] In some embodiments of the present application, the solution matching module 120 is used to generate a prompt text corresponding to the multiple labeled product solution causal chains and the user question; input the prompt text into the target solution matching model to obtain the business causal solution; wherein the target solution matching model is obtained by training a large language model.
[0054] For example, in some embodiments of the present application, the solution matching module 120 writes the processed N annotated product solution causal chains and user questions into prompts (as a specific example of prompt text), then calls the target solution matching model, inputs the prompt into the target solution matching model, and obtains a business causal solution. For example, the user question is: What insurance should babies buy? The business causal solution finally output from the N annotated product solution causal chains is a causal diagram supplemented by user needs: infancy -> medical insurance (insurance type); infancy -> critical illness insurance (insurance type); infancy -> accident insurance (insurance type); infancy -> education insurance (insurance type).
[0055] In some embodiments of the present application, the product processing module 130 is used to obtain product-related information based on the contextual information and the business cause-effect scheme, wherein the product-related information includes: product explanation text, product business data and product demand forecast information.
[0056] For example, in some embodiments of the present application, the product processing module 130 can formulate the next communication strategy (as a specific example of product association information) based on the business cause and effect scheme and user context.
[0057] In some embodiments of the present application, the data processing submodule 132 is used to calculate the product business data corresponding to the business causal scheme when it is confirmed that the user needs the product business data.
[0058] For example, if it is determined that the insured amount and premium need to be calculated (as a specific example of product business data), the data processing submodule 132 is scheduled to calculate the insured amount and premium of the corresponding product.
[0059] In some embodiments of the present application, the demand prediction submodule 133 is used to predict the product demand prediction information associated with the user's conversation data.
[0060] For example, based on the current multiple rounds of communication content with the user and the extracted user questions, user scenarios, and business causal solutions, the user's possible further potential needs (as a specific example of product demand forecasting information) are inferred. For example, the user has a 5-year-old daughter who may have a cold and fever and needs a medical insurance product that covers outpatient care. It is understandable that the demand prediction submodule 133 can store lists of different types of products corresponding to the user's potential needs, and the user's potential needs can be predicted through matching and searching. Other inference methods can also be used in actual applications, and the embodiments of the present application are not limited to this.
[0061] In some embodiments of the present application, the information collection module 134 may need to provide more information based on the current contextual information and business cause-and-effect scheme, so that the AI planner (that is, the intelligent customer service robot) can further converge the user's choice of specific products or product parameter selection explanations, and the information collection module 134 can be called for processing at this time. For example, in the insurance business, when calculating product premiums and insured amounts, users are required to provide age information; selecting product types (mid-range medical or million medical) requires users to provide premium budgets, etc. The information collection module 134 can collect information after obtaining the user's authorization, so as to more accurately locate the user's intentions.
[0062] In addition, if the above-mentioned user is matched with a specific product and the user wants to obtain the terms and conditions of the product, the product explanation submodule 131 can be scheduled to output the product explanation text, which is relatively concise and easy for the user to understand.
[0063] The specific implementation functions of the product explanation submodule 131 are described below by way of example.
[0064] In some embodiments of the present application, the product explanation submodule 131 is used to determine the standard question corresponding to the user question; retrieve the product terms content that matches the standard question from the product terms document; and generate the product explanation text based on the standard question, the product terms content and the target large language model.
[0065] For example, in some embodiments of the present application, in order to effectively retrieve matching product solution causal chains and corresponding product terms for users, the product explanation submodule 131 first normalizes the collected user questions, that is, it is necessary to analyze and process the user questions to determine standard questions (which can be referred to as standard questions). Afterwards, the above-determined standard questions are used as retrieval parameters to retrieve matching product terms content in the pre-deployed product terms document. Through the trained target large language model, combined with the above-mentioned user questions, standard questions and product terms content, a concise product explanation text that is easy to understand can be generated for users.
[0066] In some embodiments of the present application, the product explanation submodule 131 is used to use a trained semantic vector model to calculate the user question and the preset standard sentence to obtain a vector distance set; obtain the target sentence in the vector distance set that is less than a set threshold; and use the sentence corresponding to the minimum value in the vector distance in the target sentence as the standard question.
[0067] For example, in some embodiments of the present application, a trained semantic vector model is used to calculate the distance between the user question and the pre-planned preset standard question (as a preset standard sentence) (wherein the smaller the vector distance, the more similar they are), and all the preset standard questions that are less than the set threshold are taken out, and then the one with the smallest vector distance is selected as the standard question of this user question.
[0068] It should be noted that the trained semantic vector model is obtained by training with raw data. The raw data includes: user question samples and their corresponding standard question samples. For example, a user question sample is: Can I get insurance tomorrow if I buy it today? A standard question sample is: How long is the waiting period? The two literal meanings are very different, and it is unreasonable to use a ready-made semantic model directly. Therefore, we prepare the corresponding possible user questions and standard questions for each product and input them into the semantic model training to obtain a trained semantic vector model that can eventually be adapted to different products.
[0069] In some embodiments of the present application, the product explanation submodule 131 is used to confirm that the vector distances in the vector distance set are not less than the set threshold, then record the user question; set the standard sentence corresponding to the user question, and iteratively update the trained semantic vector model.
[0070] For example, in some embodiments of the present application, if there is no preset standard question that is less than a set threshold in the trained semantic vector model, the user question is used as the standard question, and an exception record log is generated. Subsequently, the corresponding standard question is reset according to the user question, and the semantic vector model is iteratively updated and trained to improve the accuracy of the standard question matching.
[0071] In some embodiments of the present application, the product explanation submodule 131 is used to input preset standard sentences and original product terms content into a large language model to obtain actual reference product terms; verify and annotate the actual reference product terms to determine the product terms reference content; and construct the product terms document based on the preset standard sentences, the product terms reference content and the product information of each product.
[0072] For example, in some embodiments of the present application, in order to ensure the effectiveness of product terms retrieval, taking the insurance business field as an example, a product terms document is constructed through the following terms extraction scheme:
[0073] According to all the pre-prepared standard questions, the original product terms (here, dozens of pages of original terms) are input into the big model (as a specific example of the big language model) for retrieval, and the actual reference product terms are output. Then the insurance experts mark the standard questions and answers (i.e., the actual reference product terms), and mark the reasonable ones as passed, and give the unreasonable terms that should be referenced; after the above two steps, the meaningful product terms reference content and the corresponding standard questions can be obtained. All the above product terms reference content and the corresponding standard questions are integrated into one document to obtain the product terms document, and then the targeted product terms content can be retrieved from the product terms document according to the standard questions.
[0074] In addition, considering that the standard questions may not be comprehensive, this application will also uniformly enter or read from relevant terminals the types of terms that must be included in each product (for example, basic protection content, optional protection content, insurance requirements: occupation, gender, age, health, etc., underwriting company, waiting period, claims method, cooling-off period, etc.) to improve the accuracy of subsequent retrieval.
[0075] In some embodiments of the present application, the product explanation submodule 131 is used to generate prompt information corresponding to the standard questions, the product terms content, the user questions, the dialogue context data and the situational information; input the prompt information into the target large language model, and output the product explanation text; wherein the target large language model is obtained by training the initial large model through a training data set; the training data set includes: user question samples, product demand samples, user situation samples, product terms samples and explanation text samples.
[0076] For example, in some embodiments of the present application, the product explanation submodule 131 can prepare a training data set for training the initial large model, wherein the training data set includes: user question samples, currently concerned products (as a specific example of product demand samples), user context samples (for example, user occupation, usage scenarios, etc.), product terms samples and explanation text samples. Among them, the product terms samples contain general product knowledge and core documents corresponding to each product, as well as related FAQs, key content, etc. The text composed of user question samples, currently concerned products, user contexts and product terms samples is used as the input data of the initial large model, and the explanation text samples are used as the output data of the initial large model for training and fine-tuning to obtain the target large language model for the product in the corresponding scenario.
[0077] Afterwards, the retrieved product terms are combined with the solution previously given by the agent, the user's question, the current user situation (that is, situational information), and the user's conversation context data, and written into a prompt (as a specific example of the prompt information in the product explanation submodule 131); the prompt is input into the target large language model trained above, and finally a product explanation text is generated.
[0078] Through the product explanation submodule 131 in the above-mentioned embodiment of the present application, it is possible to provide product explanations of the solutions required by users based on the users' specific situations and problems, and the explanations are targeted and concise, allowing users to clearly and concisely understand the suggestions and solutions given by planners, thereby improving user experience.
[0079] In some embodiments of the present application, the speech generation module 140 is used to obtain target speech corresponding to the basic information, the business cause-effect scheme and the product association information.
[0080] For example, in some embodiments of the present application, the target words that are finally output to the user can be obtained based on the information output by all the previous modules, and the target words are easy to understand, which can enable the user to fully understand the planned product content and provide the user with valuable auxiliary suggestions.
[0081] In some embodiments of the present application, the speech generation module 140 is used to generate a model input text corresponding to the basic information, the business causal scheme and the product association information; input the model input text into a trained causal model to obtain the target speech.
[0082] For example, in some embodiments of the present application, the speech generation module 140 can write user questions, user scenarios, business causal solutions, and product-related information into a final prompt (as a specific example of model input text). The final prompt is input into the trained causal big model, and the target speech is output. Among them, the trained causal big model is obtained by training the big model (such as GPT4) on a specific data set in a specific scenario. The trained causal big model can better serve the future in a specific scenario and provide users with target speech containing reasonable product suggestions.
[0083] The following is combined with Figure 2 The implementation process of generating speech based on the causal big model provided by some embodiments of the present application is exemplified.
[0084] Please see attached Figure 2 , Figure 2 A flow chart of a method for generating speech based on a causal big model is provided for some embodiments of the present application. The method for generating speech based on a causal big model may include: S210, identifying basic information of a user, wherein the basic information includes: user questions and contextual information related to the user. S210, obtaining a business causal scheme that matches the basic information. S230, obtaining product-related information based on the contextual information and the business causal scheme, wherein the product-related information includes: product explanation text, product business data, and product demand forecast information. S240, obtaining a target speech corresponding to the basic information, the business causal scheme, and the product-related information.
[0085] The above process is explained below as an example.
[0086] In some embodiments of the present application, S220 may include: S221, retrieving multiple product solution causal chains that match the user problem from a preset solution document; S222, annotating the multiple product solution causal chains through user information and product configuration documents to obtain multiple annotated product solution causal chains; S223, obtaining the business causal solution based on the multiple annotated product solution causal chains, the user problem and the target solution matching model.
[0087] In some embodiments of the present application, S221 may include: performing matching calculations with the three stage documents in the preset solution document based on the contextual information to obtain multiple matching values; using the solutions corresponding to the matching values before the preset positions in the multiple matching values as the multiple product solution causal chains; wherein the first stage document in the preset solution document includes: product type and product planning; the second stage document includes: product parameters of each product in the product type; the third stage document includes: product name and product application scenarios of each product and product core terms.
[0088] In some embodiments of the present application, S222 may include: if it is confirmed that the product name of each product solution causal chain in the multiple product solution causal chains and the user information are consistent with the product elements in the product configuration document, then it is marked as a valid solution; if it is confirmed that the product name of each product solution causal chain in the multiple product solution causal chains and the user information are inconsistent with the product elements in the product configuration document, then it is marked as an invalid solution, and an invalid reason text message is generated; wherein, the valid solution and the invalid solution constitute the multiple marked product solution causal chains.
[0089] In some embodiments of the present application, S223 may include: generating prompt text corresponding to the multiple annotated product solution causal chains and the user question; inputting the prompt text into the target solution matching model to obtain the business causal solution; wherein the target solution matching model is obtained by training a large language model.
[0090] In some embodiments of the present application, S230 may include: S231, a product explanation submodule determines a standard question corresponding to the user question; retrieves product terms content matching the standard question from a product terms document; generates the product explanation text based on the standard question, the product terms content and the target large language model; S232, a data processing submodule calculates the product business data corresponding to the business causal scheme when confirming that the user needs the product business data; S233, a demand prediction submodule predicts the product demand prediction information associated with the user's conversation data.
[0091] In some embodiments of the present application, S231 may include: using a trained semantic vector model to calculate the user question and the preset standard sentence to obtain a vector distance set; obtaining a target sentence in the vector distance set that is less than a set threshold; and taking the sentence corresponding to the minimum value in the vector distance in the target sentence as the standard question.
[0092] In some embodiments of the present application, S231 may include: confirming that the vector distances in the vector distance set are not less than the set threshold, then recording the user question; setting a standard sentence corresponding to the user question, and iteratively updating the trained semantic vector model.
[0093] In some embodiments of the present application, S231 may include: inputting preset standard statements and original product terms content into a large language model to obtain actual reference product terms; verifying and marking the actual reference product terms to determine the product terms reference content; and constructing the product terms document based on the preset standard statements, the product terms reference content and the product information of each product.
[0094] In some embodiments of the present application, S231 may include: generating prompt information corresponding to the standard question, the product terms content, the user question, the conversation context data and the situational information; inputting the prompt information into the target large language model, and outputting the product explanation text; wherein the target large language model is obtained by training the initial large model with a training data set; the training data set includes: user question samples, product demand samples, user situation samples, product terms samples and explanation text samples.
[0095] In some embodiments of the present application, S240 may include: generating a model input text corresponding to the basic information, the business causal scheme and the product association information; inputting the model input text into a trained causal model to obtain the target speech.
[0096] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific implementation process of the method S210 to S240 described above can refer to the corresponding process in the aforementioned system, and will not be elaborated here.
[0097] Some embodiments of the present application further provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, can implement the operations of the method corresponding to any of the above methods provided in the above embodiments.
[0098] Some embodiments of the present application further provide a computer program product, which includes a computer program, wherein when the computer program is executed by a processor, it can implement the operations corresponding to any of the above methods provided in the above embodiments.
[0099] like Figure 3As shown, some embodiments of the present application provide an electronic device 300, which includes: a memory 310, a processor 320, and a computer program stored in the memory 310 and executable on the processor 320, wherein the processor 320 can implement a method as described in any of the above embodiments when reading the program from the memory 310 through a bus 330 and executing the program.
[0100] Processor 320 can process digital signals and can include various computing structures, such as complex instruction set computer structure, reduced instruction set computer structure, or a structure that implements a combination of multiple instruction sets. In some examples, processor 320 can be a microprocessor.
[0101] The memory 310 may be used to store instructions executed by the processor 320 or data related to the execution of instructions. These instructions and / or data may include codes for implementing some or all functions of one or more modules described in the embodiments of the present application. The processor 320 of the disclosed embodiment may be used to execute instructions in the memory 310 to implement the method shown above. The memory 310 includes a dynamic random access memory, a static random access memory, a flash memory, an optical memory, or other memory known to those skilled in the art.
[0102] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0103] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0104] 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 "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 existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A system for generating speech based on a causal big model, characterized by: include: A user identification module, used to identify basic information of a user, wherein the basic information includes: user questions and context information related to the user; A solution matching module, used to obtain a business cause-effect solution that matches the basic information; A product processing module, configured to obtain product-related information according to the context information and the business causal scheme, wherein the product-related information includes: product explanation text, product business data and product demand forecast information; A speech generation module is used to obtain target speech corresponding to the basic information, the business cause-effect scheme and the product association information.
2. The system according to claim 1, characterized in that The scheme matching module is used for: Retrieving multiple product solution causal chains matching the user problem from a preset solution document; Annotate the multiple product solution causal chains through user information and product configuration documents to obtain multiple annotated product solution causal chains; The business causal solution is obtained according to the multiple labeled product solution causal chains, the user problem and the target solution matching model.
3. The system according to claim 2, characterized in that The scheme matching module is used for: Based on the context information, respectively, a matching degree is calculated with the three phase documents in the preset solution document to obtain a plurality of matching degree values; The solutions corresponding to the matching degree values located before the preset positions among the multiple matching degree values are used as the multiple product solution causal chains; Among them, the first-stage document in the preset solution document includes: product type and product planning; the second-stage document includes: product parameters of each product in the product type; the third-stage document includes: product name and product application scenario of each product and product core terms.
4. The system according to claim 2 or 3, characterized in that The scheme matching module is used for: If it is confirmed that the product name of each product solution causal chain in the multiple product solution causal chains and the user information are consistent with the product elements in the product configuration document, it is marked as a valid solution; If it is confirmed that the product name of each product solution causal chain in the multiple product solution causal chains, the user information and the product elements in the product configuration document are inconsistent, it is marked as an invalid solution, and an invalid reason text information is generated; Among them, the valid solutions and the invalid solutions constitute the causal chain of the multiple labeled product solutions.
5. The system according to claim 2 or 3, characterized in that: The scheme matching module is used for: Generate prompt text corresponding to the multiple annotated product solution causal chains and the user question; The prompt text is input into the target solution matching model to obtain the business causal solution; wherein the target solution matching model is obtained by training a large language model.
6. The system according to claim 1 or 2, characterized in that: The product processing module includes: a product explanation submodule, a data processing submodule and a demand prediction submodule; wherein, The product explanation submodule is used to determine the standard question corresponding to the user question; retrieve the product terms content matching the standard question from the product terms document; and generate the product explanation text according to the standard question, the product terms content and the target large language model; The data processing submodule is used to calculate the product business data corresponding to the business causal scheme when confirming that the user needs the product business data; The demand prediction submodule is used to predict the product demand prediction information associated with the user's conversation data.
7. The system according to claim 6, characterized in that The product explanation submodule is used to: Calculate the user question and the preset standard sentence using the trained semantic vector model to obtain a vector distance set; Obtain target sentences in the vector distance set that are less than a set threshold; The sentence corresponding to the minimum value of the vector distance in the target sentence is used as the standard question.
8. The system according to claim 7, characterized in that The product explanation submodule is used to: Confirming that all vector distances in the vector distance set are not less than the set threshold, then recording the user question; A standard sentence corresponding to the user question is set, and the trained semantic vector model is iteratively updated.
9. The system according to claim 6, characterized in that The product explanation submodule is used to: Input the preset standard sentences and original product terms into the large language model to obtain the actual reference product terms; Verify and mark the actual reference product terms and conditions to determine the reference content of the product terms and conditions; The product terms document is constructed based on the preset standard statement, the product terms reference content and the product information of each product.
10. The system according to claim 6, characterized in that The product explanation submodule is used to: Generate prompt information corresponding to the standard question, the product terms content, the user question, the conversation context data and the situation information; Inputting the prompt information into the target large language model, and outputting the product explanation text; The target large language model is obtained by training the initial large model through a training data set; the training data set includes: user question samples, product demand samples, user situation samples, product terms samples and explanation text samples.
11. The system according to claim 1 or 2, characterized in that: The speech generation module is used for: generating a model input text corresponding to the basic information, the business cause-effect scheme and the product association information; The model input text is input into the trained causal model to obtain the target speech.
12. A method for generating speech based on a causal big model, characterized in that: include: Identifying basic information of the user, wherein the basic information includes: user questions and contextual information related to the user; Obtaining a business cause-and-effect solution that matches the basic information; Acquire product-related information according to the context information and the business causal scheme, wherein the product-related information includes: product explanation text, product business data and product demand forecast information; Obtain target words corresponding to the basic information, the business cause-effect scheme, and the product-related information.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is executed by a processor to perform the method according to claim 12 .
14. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the computer program performs the method according to claim 12 when being run by the processor.
15. A computer program product, characterized in that The computer program product comprises a computer program, wherein the computer program executes the method as claimed in claim 12 when executed by a processor.
Citation Information
Patent Citations
Question and answer response method and device, equipment and storage medium
CN111506723A
Method and device for question-answering system, computer system and readable storage medium
CN112685542A
Data relationships in a question-answering environment
US20160171088A1
Product recommendation with product review analysis
US20160180438A1
Cited By
System and method for generating sales script on basis of causal large model, and electronic device
WO2025146229A3
