Method and device for generating product recommendation based on causal large model, storage medium and electronic equipment
Through the method of generating large causal models, the causal chain of product solutions is retrieved and marked, and combined with user information and product configuration documents, it solves the problem of inaccurate product recommendation in the existing technology and achieves precise positioning of user intentions and efficient product recommendation. .
Patent Information
- Application Number
- CN202410886506.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-22
AI Technical Summary
Existing product recommendation methods lack accuracy and cannot accurately understand user needs and product terms, resulting in insufficient user experience and marketing accuracy.
Through the method based on the large causal model generation, the matching solution causal chain is retrieved from the preset solution document, combined with user information and product configuration documents for annotation, and the target solution matching model is used to output the target solution causal chain, including target recommended products and products Clause name.
It achieves precise positioning of user intentions, improves the accuracy of product recommendations and user experience, and ensures the accuracy of product information and marketing accuracy.
Smart Images

Figure CN118822682A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of product recommendation, and in particular to a method, device, storage medium and electronic device for generating product recommendations based on a causal big model. Background Art
[0002] With the continuous development of artificial intelligence, this technology has been widely used in different business fields.
[0003] At present, in order to improve the competitiveness of business products and facilitate users to understand related products, some basic information of users can be analyzed to locate the products that users are interested in. However, this method generally only informs the basic information of products that meet the user's situation or are popular. Other product-related attributes require further communication with the user to be known. Obviously, the current product recommendation method is not very user-friendly, and the accuracy of product recommendations needs to be improved.
[0004] Therefore, how to provide a technical solution for a method of generating product recommendations based on a large causal model with high 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 method, device, storage medium and electronic device for generating product recommendations based on a causal big model. Through the technical solutions of the embodiments of the present application, user intentions can be accurately located, and the accuracy of product recommendations can be improved, so that users can easily understand product information, thereby improving user experience and marketing accuracy.
[0006] In a first aspect, some embodiments of the present application provide a method for generating product recommendations based on a causal big model, comprising: retrieving multiple solution causal chains that match user problems from preset solution documents; labeling specific products included in the multiple solution causal chains through user information and product configuration documents to obtain multiple labeled solution causal chains; obtaining a target solution causal chain based on the multiple labeled solution causal chains, the user problems and the target solution matching model, wherein the target solution causal chain includes: target recommended products and product term names.
[0007] Some embodiments of the present application retrieve solutions that match the user's problem from the preset solution document, annotate them in combination with user information and product configuration documents, and finally output the target solution causal chain and the corresponding product terms through the target solution matching model. Some embodiments of the present application can accurately locate user intentions and improve the accuracy of product recommendations, thereby allowing users to easily understand product information and improve user experience and marketing accuracy.
[0008] In some embodiments, retrieving multiple solution causal chains that match the user problem from a preset solution document includes: calculating the matching degree with the user needs in the three stage documents in the preset solution document based on the user context to which the user problem belongs, and obtaining multiple matching values; and taking the solutions corresponding to the matching values before the preset positions among the multiple matching values as the multiple solution causal chains.
[0009] Some embodiments of the present application perform a matching analysis on the user context to which the user question belongs and the three-stage documents to obtain multiple causal chains of solutions, which can be closer to user needs and improve the accuracy of user intent positioning.
[0010] In some embodiments, the preset solution document is constructed in the form of a causal chain, which includes user needs and solutions; 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 help improve the accuracy of product recommendations by setting product documents at different stages.
[0012] In some embodiments, the specific products included in the multiple solution causal chains are labeled through user information and product configuration documents to obtain multiple labeled solution causal chains, including: if it is confirmed that the product name of each product solution in the multiple solution causal chains and the user information are consistent with the product elements in the product configuration document, then it is labeled as a valid solution; if it is confirmed that the product name of each product solution in the multiple solution causal chains and the user information are inconsistent with the product elements in the product configuration document, then it is labeled as an invalid solution, and invalid reason text information is generated; wherein, the valid solution and the invalid solution constitute the multiple labeled solution causal chains.
[0013] Some embodiments of the present application compare the product names, user information and product configuration documents of the product solutions for consistency, and then label the products in the causal chains of multiple solutions to obtain accurate product information and improve the accuracy of product recommendations.
[0014] In some embodiments, obtaining a target solution causal chain based on the multiple labeled solution causal chains, the user questions and the target solution matching model includes: generating prompt text corresponding to the multiple labeled solution causal chains and the user questions; inputting the prompt text into the target solution matching model to obtain the target solution causal chain, 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 the target solution causal chain, thereby ensuring the accuracy of product recommendations.
[0016] In a second aspect, some embodiments of the present application provide a device for generating product recommendations based on a causal big model, including: a retrieval module, used to retrieve multiple solution causal chains that match user problems from preset solution documents; a labeling module, used to label specific products included in the multiple solution causal chains through user information and product configuration documents, and obtain multiple labeled solution causal chains; a recommendation module, used to obtain a target solution causal chain based on the multiple labeled solution causal chains, the user problems and the target solution matching model, wherein the target solution causal chain includes: target recommended products and product term names.
[0017] In some embodiments, the retrieval module is used to: calculate the matching degree between the user context to which the user question belongs and the user requirements in the three stage documents in the preset solution document to obtain multiple matching values; and use the solution corresponding to the matching value located before the preset position among the multiple matching values as the multiple solution causal chains.
[0018] In some embodiments, the preset solution document is constructed in the form of a causal chain, which includes user needs and solutions; 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.
[0019] In some embodiments, the labeling module is used to label the product solutions in the causal chain of the multiple solutions as valid solutions if it is confirmed that the product name of each product solution in the causal chain of the multiple solutions and the user information are consistent with the product elements in the product configuration document; if it is confirmed that the product name of each product solution in the causal chain of the multiple solutions and the user information are inconsistent with the product elements in the product configuration document, then label it as an invalid solution and generate invalid reason text information; wherein the valid solution and the invalid solution constitute the causal chain of the multiple labeled solutions.
[0020] In some embodiments, the recommendation module is used to generate prompt text corresponding to the multiple labeled solution causal chains and the user question; input the prompt text into the target solution matching model to obtain the target solution causal chain; wherein the target solution matching model is obtained by training a large language model.
[0021] 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 first aspect.
[0022] 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 first aspect when executing the program.
[0023] 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 first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] 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.
[0025] Figure 1 A system diagram for generating product recommendations based on a causal big model provided for some embodiments of the present application;
[0026] Figure 2 One of the flow charts of the method for generating product recommendations based on a causal big model provided in some embodiments of the present application;
[0027] Figure 3 A schematic diagram of a first-stage document provided for some embodiments of the present application;
[0028] Figure 4 A schematic diagram of a second-stage document provided for some embodiments of the present application;
[0029] Figure 5 A schematic diagram of a third-stage document provided for some embodiments of the present application;
[0030] Figure 6 Flowchart 2 of a method for generating product recommendations based on a causal macro model provided in some embodiments of the present application;
[0031] Figure 7 A block diagram of a device for generating product recommendations based on a causal big model provided in some embodiments of the present application;
[0032] Figure 8A schematic diagram of an electronic device is provided for some embodiments of the present application. DETAILED DESCRIPTION
[0033] 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.
[0034] 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.
[0035] In the related technologies, with the emergence and discovery of artificial intelligence and big model technology, in order to improve the marketing efficiency of business products, the direct general big model can give specific business solutions (such as insurance solutions), which mainly provide some suggestion elements for users. The big model in the insurance field that emerged can give answers to basic FAQs through user questions, or give more popular product suggestions. It can be seen from the above related technologies that the existing technology cannot give suitable business products (such as insurance products) suggestions based on the specific needs or preferences of users, nor can it be specific to the terms of the product (that is, it is impossible to give how the product solves user needs, such as extracting a certain clause to correspond to user needs). Moreover, the current recommendation method cannot guarantee whether the product really exists and is on sale (insurance products are updated and iterated, and products in historical training data will be removed from the shelves), and the phenomenon of fictitious products is relatively serious (for example, if AB products have been sold in the past, fake names of AB products may be generated).
[0036] In view of this, some embodiments of the present application provide a method for product recommendation, which can retrieve multiple solution causal chains related to the user from the preset solution document through user questions; then, the multiple solution causal chains can be annotated in combination with user information and product configuration documents to obtain multiple annotated solution causal chains; finally, the target solution causal chain is obtained by combining the causal-based target solution matching model (i.e., inputting relevant data into the big model, allowing the big model to automatically perform causal reasoning based on user questions and solution causal chains). Some embodiments of the present application can achieve accurate positioning of user intentions, recommend suitable products to users from the product terms level, improve product recommendation accuracy and product marketing accuracy, and also improve user experience.
[0037] The following is combined with Figure 1 The overall composition structure of the product recommendation system provided by some embodiments of the present application is exemplified.
[0038] like Figure 1As shown, some embodiments of the present application provide a system for generating product recommendations based on a causal big model, and the system for generating product recommendations based on a causal big model may include: a terminal 100 and a recommendation server 200. Among them, the recommendation server 200 may be deployed with pre-organized preset solution documents, product configuration documents, and target solution matching models. The terminal 100 can interact with the user to obtain the user's questions that the user needs to consult. After the recommendation server 200 reads the user's question, it can match the target recommended products and related product terms that are more in line with the user's question through the preset solution document, product configuration document, and target solution matching model, so as to provide effective product recommendations in the future.
[0039] In some embodiments of the present application, the terminal 100 may be a mobile terminal or a non-portable computer terminal, which is not specifically limited in the embodiments of the present application. The target solution matching model is obtained by training the current large language model with scenario data under a specific scenario, so that the target solution matching model can better provide product recommendation services for users.
[0040] The following is combined with Figure 2 The implementation process of generating product recommendations based on a causal big model and performed by the recommendation server 200 provided in some embodiments of the present application is exemplified.
[0041] Please see attached Figure 2 , Figure 2 A flowchart of a method for generating product recommendations based on a causal big model is provided for some embodiments of the present application. The method for generating product recommendations based on a causal big model may include:
[0042] S210, retrieving multiple solution causal chains matching the user's problem from the preset solution document.
[0043] For example, in some embodiments of the present application, preset solution documents are retrieved in the large model based on the user questions understood by the front-end agent, and N solution causal chains that are most relevant to the user questions are extracted (as a specific example of multiple solution causal chains).
[0044] In some embodiments of the present application, the preset solution document is constructed in the form of a causal chain, which includes user needs and solutions; 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.
[0045] 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-stage 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, and the right side is the solution, connected by '->' in the middle (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 includes: the initial planning (as a specific example of product planning) and the major types of insurance explained to users (as a specific example of product type). For details, please see the attached. Figure 3 The first-stage document diagram provided includes preset user problems, user scenarios and solutions (i.e., initial planning and major insurance types). The second-stage document includes: after determining the insurance type, giving the suggested 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); please refer to the attached Figure 4 The second-stage document diagram provided includes: user scenarios and solutions (i.e., suggestion logic) related to the preset user problems. The third-stage document includes: specific product names and problems solved (as a specific example of product application scenarios), as well as the core content of product terms (as a specific example of product core terms), in order to recommend specific products and match them with specific user preferences; see the attached document for details. Figure 5 The third stage document diagram provided includes: user problems related to product application scenarios, specific solutions related to user scenarios, and the specific solutions include: insurance product names and core content of product terms, as well as Figure 5 Take a solution in as an example, the product name is: Darwin No. 8 Pilot Edition Major Illness Insurance; the product application scenario is: need for major illness income loss protection, the core content of the product terms is 120 major illnesses, the first major illness insurance 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.
[0046] In some embodiments of the present application, S210 may include: calculating the matching degree between the user context to which the user problem belongs and the user requirements in the three stage documents in the preset solution document, and obtaining multiple matching values; and taking the solution corresponding to the matching value located before the preset position among the multiple matching values as the multiple solution causal chains.
[0047] For example, in some embodiments of the present application, a matching calculation is performed between the user context involved in the user problem and the user context set in the preset solution document (as a specific example of user needs, which is the starting text node of the causal chain). For example, if the user context is consistent, the item in the document is added with 0.5 points, and if it is inconsistent, the item is deducted with 0.2 points. Finally, the final matching value with each item in the three-stage document is obtained by summing up, wherein 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 solutions 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.
[0048] S220, annotating specific products included in the plurality of solution causal chains through user information and product configuration documents, and obtaining a plurality of annotated solution causal chains.
[0049] For example, in some embodiments of the present application, the N product solutions obtained above are labeled in combination with the products in the product configuration document to obtain multiple causal chains of labeled solutions. Taking the insurance business as an example, the insurance product configuration document can provide the insurance requirement elements of each insurance product (e.g., the elements can be three parts: insured age range, insured occupation range, health requirement range), and whether it is on sale (that is, the open status of the product). 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.
[0050] In some embodiments of the present application, S220 may include: if it is confirmed that the product name of each product solution in the multiple solution causal chain 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 in the multiple solution causal chain and the user information are inconsistent with the product elements in the product configuration document, then it is marked as an invalid solution, and invalid reason text information is generated; wherein, the valid solution and the invalid solution constitute the multiple marked solution causal chain.
[0051] For example, in some embodiments of the present application, the product names in N product solutions are extracted, and then checked and matched 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, 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. After the N product solutions are labeled, a causal chain of N labeled solutions can be obtained.
[0052] S230, obtaining a target solution causal chain according to the plurality of labeled solution causal chains, the user problem and the target solution matching model, wherein the target solution causal chain includes: target recommended products and product terms names.
[0053] For example, in some embodiments of the present application, the causal chain of the N annotated schemes after the above annotating is combined with the user's question, and the value target scheme matching model is input to obtain the target recommended products and corresponding product term names output by the model.
[0054] In some embodiments of the present application, S230 may include: generating prompt text corresponding to the multiple labeled solution causal chains and the user question; inputting the prompt text into the target solution matching model to obtain the target solution causal chain; wherein the causal-based target solution matching model is obtained by training a large language model (such as Llama3).
[0055] For example, in some embodiments of the present application, the processed N labeled solution causal chains and user questions are written as prompts (as a specific example of prompt text), and then the target solution matching model is called, and the prompt is input into the target solution matching model to obtain the target solution causal chain. For example, the user question is: What insurance should babies buy? The target solution causal chain finally output from the N labeled solution causal chains is the 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).
[0056] The following is combined with Figure 6 The specific process of generating product recommendations based on a causal big model provided by some embodiments of the present application is exemplified.
[0057] Please see attached Figure 6 , Figure 6A flow chart of a method for generating product recommendations based on a causal big model is provided for some embodiments of the present application.
[0058] The above process is explained below as an example.
[0059] S610, obtaining a preset solution document and a product configuration document.
[0060] S620, performing matching degree calculations on the three phase documents in the preset solution document based on the user context to which the user question belongs, and obtaining a plurality of matching degree values.
[0061] S630: Use the solutions corresponding to the matching degree values before the preset positions among the multiple matching degree values as multiple solution causal chains.
[0062] S640, annotate multiple solution causal chains through user information and product configuration documents to obtain multiple annotated solution causal chains.
[0063] S650: Generate prompt texts corresponding to the causal chains of the multiple annotation solutions and the user questions.
[0064] S660, input the prompt text into the target solution matching model to obtain the target solution cause and effect chain.
[0065] It can be understood that the specific implementation process of S610 to S660 can refer to the method embodiment provided above, and in order to avoid repetition, the detailed description is appropriately omitted here.
[0066] Please refer to Figure 7 , Figure 7 The block diagram of the composition of the device for generating product recommendations based on the causal big model provided by some embodiments of the present application is shown. It should be understood that the device for generating product recommendations based on the causal big model corresponds to the above method embodiment and can perform each step involved in the above method embodiment. The specific functions of the device for generating product recommendations based on the causal big model can be found in the description above. To avoid repetition, the detailed description is appropriately omitted here.
[0067] Figure 7The device for generating product recommendations based on the causal big model includes at least one software function module that can be stored in the memory in the form of software or firmware or solidified in the device for generating product recommendations based on the causal big model. The device for generating product recommendations based on the causal big model includes: a retrieval module 710, which is used to retrieve multiple solution causal chains that match the user problem from a preset solution document; a labeling module 720, which is used to label the specific products included in the multiple solution causal chains through user information and product configuration documents to obtain multiple labeled solution causal chains; a recommendation module 730, which is used to obtain a target solution causal chain based on the multiple labeled solution causal chains, the user problem and the target solution matching model, wherein the target solution causal chain includes: target recommended products and product term names.
[0068] In some embodiments of the present application, the retrieval module 710 is used to: calculate the matching degree between the user context to which the user problem belongs and the user requirements in the three stage documents in the preset solution document, and obtain multiple matching values; and use the solution corresponding to the matching value before the preset position in the multiple matching values as the multiple solution causal chains.
[0069] In some embodiments of the present application, the preset solution document is constructed in the form of a causal chain, which includes user needs and solutions; 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.
[0070] In some embodiments of the present application, the marking module 720 is used to mark the product solutions in the causal chain of the multiple solutions as valid solutions if it is confirmed that the product name of each product solution in the causal chain of the multiple solutions and the user information are consistent with the product elements in the product configuration document; if it is confirmed that the product name of each product solution in the causal chain of the multiple solutions and the user information are inconsistent with the product elements in the product configuration document, mark it as an invalid solution and generate invalid reason text information; wherein the valid solution and the invalid solution constitute the causal chain of the multiple marked solutions.
[0071] In some embodiments of the present application, the recommendation module 730 is used to generate a prompt text corresponding to the multiple labeled solution causal chains and the user question; input the prompt text into the target solution matching model to obtain the target solution causal chain, and the target solution causal chain includes: target recommended products and product term names; wherein the target solution matching model is obtained by training a large language model.
[0072] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method, and will not be described in detail here.
[0073] 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.
[0074] 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.
[0075] like Figure 8 As shown, some embodiments of the present application provide an electronic device 800, which includes: a memory 810, a processor 820, and a computer program stored in the memory 810 and executable on the processor 820, wherein the processor 820 can implement a method as described in any of the above embodiments when reading the program from the memory 810 through a bus 830 and executing the program.
[0076] Processor 820 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 820 can be a microprocessor.
[0077] The memory 810 may be used to store instructions executed by the processor 820 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 820 of the disclosed embodiment may be used to execute instructions in the memory 810 to implement the method shown above. The memory 810 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.
[0078] 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.
[0079] 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.
[0080] 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 method for generating product recommendations based on a causal big model, characterized in that: include: Retrieve multiple solution causal chains that match the user's problem from the preset solution document; The specific products included in the plurality of solution causal chains are labeled by using user information and product configuration documents to obtain a plurality of labeled solution causal chains; According to the multiple labeled solution causal chains, the user problems and the target solution matching model, a target solution causal chain is obtained, wherein the target solution causal chain includes: target recommended products and product terms names.
2. The method according to claim 1, characterized in that The step of retrieving multiple solution causal chains matching the user's problem from the preset solution document includes: Based on the user context to which the user question belongs, the matching degree is calculated respectively with the user requirements in the three stage documents in the preset solution document to obtain multiple 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 solution causal chains.
3. The method according to claim 2, characterized in that The preset solution document is constructed in the form of a causal chain, which includes user needs and solutions; 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 method according to any one of claims 1 to 3, characterized in that The specific products included in the multiple solution causal chains are labeled by using user information and product configuration documents to obtain multiple labeled solution causal chains, including: If it is confirmed that the product name of each product solution in the causal chain of the multiple solutions 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 in the causal chain of the multiple solutions, 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 message is generated; The valid solution and the invalid solution constitute a causal chain of the multiple labeling solutions.
5. The method according to any one of claims 1 to 3, characterized in that The step of obtaining a target solution causal chain according to the plurality of labeled solution causal chains, the user problem, and the target solution matching model includes: Generate prompt text corresponding to the multiple annotation scheme causal chains and the user question; The prompt text is input into the target solution matching model to obtain the target solution cause-effect chain; wherein the target solution matching model is obtained by training a large language model.
6. A device for generating product recommendations based on a causal big model, characterized in that: include: A retrieval module is used to retrieve multiple solution causal chains that match the user's problem from the preset solution document; A labeling module, used to label specific products included in the plurality of solution causal chains through user information and product configuration documents, and obtain a plurality of labeled solution causal chains; The recommendation module is used to obtain a target solution causal chain based on the multiple labeled solution causal chains, the user problem and the target solution matching model, wherein the target solution causal chain includes: target recommended products and product term names.
7. The device according to claim 6, characterized in that The retrieval module is used to: Based on the user context to which the user question belongs, the matching degree is calculated respectively with the user requirements in the three stage documents in the preset solution document to obtain multiple 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 solution causal chains.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program executes the method according to any one of claims 1 to 5 when executed by a processor.
9. 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 executes the method according to any one of claims 1 to 5 when being run by the processor.
10. A computer program product, characterized in that The computer program product comprises a computer program, wherein the computer program executes the method according to any one of claims 1 to 5 when executed by a processor.
