Business recommendation method and device and storage medium
Generating feature description text and business recommendation text with contextual information through a large language model, combined with a sorting feedback mechanism, solves the problems of loss of context information and low flexibility of business recommendation models in the existing technology, and achieves a more efficient business recommendation effect.
Patent Information
- Application Number
- CN202410010979.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-02
- Publication Date
- 2024-10-18
AI Technical Summary
Existing business recommendation models lose contextual information due to the heterogeneity of data features, requiring manual experts to perform feature enhancement, which is expensive and has low flexibility and accuracy.
The text generation capability of the large language model is used to form disordered features into meaningful text descriptions, and a sorting feedback mechanism is introduced to generate recommended business sequences and improve the flexibility and accuracy of recommendations.
By generating feature description text and business recommendation text with contextual information, the accuracy and flexibility of business recommendation are improved, manual intervention is reduced, and the recommendation effect is improved.
Smart Images

Figure CN118799015A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of artificial intelligence technology, and in particular to a business recommendation method, device and storage medium. Background Art
[0002] The multi-service recommendation model is usually defined as a multi-classification model, with users who have ordered services within a certain time period as positive samples, and negative samples representing users who have not ordered services within the time period. The time period is usually one month. Based on the sorting of multi-service prediction results, accurate recommendations of multiple services for users are achieved.
[0003] At present, the service recommendation model is mainly based on the user's social attributes, call sequence and service preferences as the user's feature space, and is constructed through collaborative filtering matrix, tree model, neural network and other algorithms. However, due to the heterogeneity of data features in recommended services, context information is easily lost, and human experts are often required to implement end-to-end feature enhancement and derivation according to different business scenarios, which not only takes a lot of man-hours, but may also cause incompatibility and instability, and the flexibility and accuracy of service recommendations are low. Summary of the invention
[0004] The embodiments of the present application provide a service recommendation method, device and storage medium. By using the text generation capability of a large language model, disordered features are constructed into meaningful text descriptions for generating a recommended service sequence, and a sorting feedback mechanism is introduced to ensure the sorting accuracy of the sequence, thereby improving the flexibility and accuracy of service recommendations.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] The present application provides a service recommendation method, including:
[0007] Get the text features of the recommended object;
[0008] Using a large language model to perform semantic analysis on the text features to generate a semantic analysis text; the semantic analysis text includes a feature description text with context information for the recommended object and a business recommendation text;
[0009] Generate a recommended business sequence based on the semantic analysis text, and push the recommended business sequence to the audit object;
[0010] In the case of receiving the sorting guidance information fed back by the audit object, the sorting of the recommended business sequence is updated based on the sorting guidance information, and the updated recommended business sequence is pushed to the recommendation object.
[0011] In the above method, obtaining text features of the recommended object includes:
[0012] Acquire at least one feature of the recommended object's personal social attributes, phone bill, terminal information, and business handling status;
[0013] The at least one feature is processed into text to obtain the text feature.
[0014] In the above method, the text feature includes at least one feature field corresponding one-to-one to the at least one feature;
[0015] Each feature field includes a feature value and a feature name associated in the form of a key-value pair.
[0016] In the above method, the step of generating a recommended service sequence based on the semantic analysis text includes:
[0017] Acquire the business recommendation knowledge corresponding to the semantic analysis text from different pre-set business recommendation knowledge;
[0018] The recommended service sequence is generated based on the service recommendation knowledge and the semantic analysis text.
[0019] In the above method, generating the recommended service sequence based on the service recommendation knowledge and the semantic analysis text includes:
[0020] For each text unit in the semantic analysis text, determining a corresponding self-attention matrix;
[0021] Calculating a similarity matrix between the semantic analysis text and the business recommendation knowledge;
[0022] For each text unit in the semantic analysis text, determining a corresponding target attention matrix based on the similarity matrix and the corresponding self-attention matrix;
[0023] The recommended service sequence is generated based on the semantic analysis text and the target attention matrix corresponding to each text unit therein.
[0024] In the above method, the calculating of the similarity matrix between the semantic analysis text and the business recommendation knowledge includes:
[0025] Performing vector matrix conversion on the semantic analysis text and the business recommendation knowledge respectively to obtain a first vector matrix corresponding to the semantic analysis text and a second vector matrix corresponding to the business recommendation knowledge;
[0026] Calculating the cosine similarity between the first vector matrix and the second vector matrix;
[0027] The product of the cosine similarity and the created random parameter block is determined as the similarity matrix.
[0028] In the above method, after pushing the recommended business sequence to the audit object, the method further includes:
[0029] In case the sorting guide information is not received, the recommended service sequence is pushed to the recommendation object.
[0030] The embodiment of the present application provides a service recommendation device, including:
[0031] An acquisition module is used to obtain text features of the recommended object;
[0032] A processing module is used to perform semantic analysis on the text features using a large language model to generate a semantic analysis text; the semantic analysis text includes a feature description text with context information for the recommendation object, and a business recommendation text; a recommended business sequence is generated based on the semantic analysis text, and the recommended business sequence is pushed to the audit object; when receiving sorting guidance information fed back by the audit object, the sorting of the recommended business sequence is updated based on the sorting guidance information, and the updated recommended business sequence is pushed to the recommendation object.
[0033] The embodiment of the present application provides a business recommendation device, including: a processor, a memory, and a communication bus;
[0034] The communication bus is used to realize the communication connection between the processor and the memory;
[0035] The processor is used to execute one or more computer programs stored in the memory to implement the service recommendation method.
[0036] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements a service recommendation method when executed by a processor.
[0037] The embodiment of the present application provides a business recommendation method, device and storage medium, the method comprising: obtaining text features of the recommendation object; using a large language model to perform semantic analysis on the text features to generate a semantic analysis text; the semantic analysis text contains a feature description text with contextual information for the recommendation object, and a business recommendation text; generating a recommended business sequence based on the semantic analysis text, and pushing the recommended business sequence to the audit object; in the case of receiving sorting guidance information fed back by the audit object, updating the sorting of the recommended business sequence based on the sorting guidance information, and pushing the updated recommended business sequence to the recommendation object. The technical solution provided by the embodiment of the present application, by using the text generation capability of a large language model, constructs a meaningful text description of disordered features for generating a recommended business sequence, and introduces a sorting feedback mechanism to ensure the sorting accuracy of the sequence, thereby improving the flexibility and accuracy of business recommendations. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A framework diagram of an exemplary service recommendation provided in an embodiment of the present application;
[0039] Figure 2 A flowchart of a service recommendation method provided in an embodiment of the present application;
[0040] Figure 3 A schematic diagram of an exemplary attention mechanism provided for an embodiment of the present application;
[0041] Figure 4 A schematic diagram of an exemplary framework for determining a similarity matrix provided in an embodiment of the present application;
[0042] Figure 5 A schematic diagram of a business recommendation device provided in an embodiment of the present application Figure 1 ;
[0043] Figure 6 A schematic diagram of a business recommendation device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] The following will specifically describe the technical solution of the present application and how the technical solution of the present application solves the above technical problems through embodiments and in conjunction with the accompanying drawings. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0046] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0047] The embodiment of the present application provides a service recommendation method, which is implemented by a service recommendation device. The specific type of the service recommendation device is not limited in the embodiment of the present application, and it can be any electronic device. Figure 1 This is a framework diagram of an exemplary service recommendation provided in an embodiment of the present application. Figure 1 As shown, the business recommendation method mainly involves the textualization of the features of the recommendation object, the application of a large language model, the generation of a recommended business sequence based on the output results of the large language model and the business recommendation knowledge, and a sorting guide. The relevant content will be explained in detail below.
[0048] Figure 2 A flowchart of a service recommendation method provided in an embodiment of the present application. Figure 2 As shown, in the embodiment of the present application, the service recommendation method mainly includes the following steps:
[0049] S101: Obtain text features of recommended objects.
[0050] In the embodiment of the present application, the service recommendation device may obtain text features of the recommendation object.
[0051] It should be noted that in the embodiments of the present application, the recommended objects may be online users, and the number may be one or more, which may be selected according to actual needs and is not limited in the embodiments of the present application.
[0052] In an embodiment of the present application, the service recommendation device obtains text features of the recommendation object, including: obtaining at least one feature of the recommendation object's personal social attributes, phone bills, terminal information, and service handling status; and textualizing at least one feature to obtain text features.
[0053] In an embodiment of the present application, the text feature includes at least one feature field corresponding to at least one feature; each feature field includes a feature value and a feature name associated in the form of a key-value pair.
[0054] It should be noted that in the embodiments of the present application, the service recommendation device may first obtain the original data of the recommended object, including but not limited to at least one of personal social attributes, telephone bills, terminal information, and service handling conditions, wherein personal social attributes include but are not limited to at least one of age, gender, place of origin, and online time, telephone bills include but are not limited to at least one of telephone charges, call duration, traffic charges, and package charges, terminal information includes but is not limited to at least one of terminal model, terminal usage time, and terminal listing date, and service handling conditions include but are not limited to: subscription conditions of services such as package upgrades and package downgrades belonging to the stock category, subscription conditions of services such as broadband activation and television activation belonging to the family category, subscription conditions of services such as video ringback tones and membership belonging to the digital category, and subscription conditions of services such as terminal replacement belonging to the individual category. The data types included in the specific characteristics are not limited in the embodiments of the present application.
[0055] For example, in the embodiment of the present application, the personal social attributes, phone bills, and terminal information of the recommended object specifically include d items of data, which can be expressed as (x1, x2, x3, ..., x d ). For the business handling situation, we can compare the business handling situation of the recommended object in the current month and the next month to determine whether the ordering behavior of each business occurs. The positive sample indicates that the ordering behavior occurs (y=1); otherwise it is defined as a negative sample (y=0). The recommended object can correspond to multiple business ordering labels, for example, 20 business ordering labels, so the label y∈{y1,y2,...y 20 Based on the above, the feature X of the recommended object can be expressed as follows:
[0056] X∈{(x1,x2,x3,...x d ),(y1,y2,...y 20 )} (1)
[0057] It should be noted that in the embodiments of the present application, in order to apply the large language model, the data of at least one feature of the recommended object needs to be serialized into text, and usually artificial rules are used for text processing. For example, {'age':35} in the feature is processed into {age is 35 years old} through the rule. The text processing in the present application is different from the artificial rule processing. It abandons simple concatenation and performs text encoding based on the large language model to obtain text features, see the following formula:
[0058] F ij =[f j ,′:′,v ij ,′,′] (2)
[0059] T i =[F i1 ,F i2 ,Fi3 ,..F in ] (3)
[0060] Among them, fj represents the name of the j-th feature, vij represents the feature value corresponding to the j-th feature fj of the recommended user i, and is linked as a key-value pair through “:”. ij Represents the feature field corresponding to the j-th feature of the recommended user i, Ti represents the feature fields of each feature corresponding to the recommended user i, a total of n feature fields, which are used as the input of the large language model.
[0061] S102: Perform semantic analysis on text features using a large language model to generate semantic analysis text; the semantic analysis text includes feature description text with context information for the recommendation object and business recommendation text.
[0062] In the embodiment of the present application, after obtaining the text features of the recommendation object, the service recommendation device can use the large language model to perform semantic analysis on the text features to generate a semantic analysis text.
[0063] It can be understood that in the embodiments of the present application, based on the general understanding ability of the large language model, text features can be converted into feature description texts with contextual information, while meaningful business recommendation texts are provided through the information fusion ability of the model itself. The large language model is defined as an equation L, which accepts the above Ti input and generates a semantic analysis text, wherein the semantic analysis text contains feature description text and business recommendation text for the recommended object with contextual information, and the business recommendation text can actually be a business recommendation instruction for the recommended object, expressed as: (text, prompt) = L(Ti). This generation logic completely retains the corresponding information of the key-value pairs in the text features.
[0064] Exemplarily, in an embodiment of the present application, the text feature describes the following features: age is 42, terminal brand is XX, package name is XX package 38 yuan, package traffic is 5G, and the monthly call fee is 50 yuan. Based on this, the semantic analysis text generated by the large language model is: This is the mobile phone package information of a user aged 42. The user uses the XX terminal brand and the selected package is the XX package with a monthly fee of 38 yuan. The package includes 5G traffic, and the monthly fee is 50 yuan, which exceeds the package fee by 12 yuan. Since the user selected the XX package of 38 yuan, the use of traffic may exceed the package inclusions, resulting in additional charges (feature description text); it is recommended that the user pay attention to traffic usage in the coming months. If more traffic is needed, consider upgrading to a higher traffic package, or choose a package that suits his or her usage habits to save communication costs (service recommendation text).
[0065] S103: Generate a recommended business sequence based on the semantic analysis text, and push the recommended business sequence to the audit object.
[0066] In an embodiment of the present application, after obtaining the semantic analysis text, the service recommendation device further generates a recommended service sequence based on the semantic analysis text, and pushes the recommended service sequence to the audit object.
[0067] In an embodiment of the present application, a business recommendation device generates a recommended business sequence based on a semantic analysis text, including: acquiring business recommendation knowledge corresponding to the semantic analysis text from pre-set different business recommendation knowledge; and generating a recommended business sequence based on the business recommendation knowledge and the semantic analysis text.
[0068] It is understandable that in the embodiments of the present application, since the generation of semantic analysis text depends entirely on the large language model, it is impossible to evaluate the effectiveness of the semantic analysis text through artificial means, resulting in the instability of the results of the semantic analysis text generated by the large language model. If it is suitable for the recommended object, it will bring positive feedback, but if there is particularity or contingency, the introduction of erroneous information will lead to poor recommendation effect. Based on this, the semantic analysis text is fused based on the corresponding business recommendation indication to generate a more accurate recommended business sequence.
[0069] It should be noted that, in the embodiments of the present application, different business recommendation knowledge may be preset, and the knowledge may specifically be derived from expert experience and expressed in the form of text.
[0070] For example, for the business scenario of package upgrade, the business recommendation knowledge may be: the recommended subjects whose traffic and communication minute usage exceeds the main package usage will have a greater probability of upgrading, and may also upgrade to a package plan that adapts to the new terminal characteristics when the contract expires or the terminal device is replaced; for the business scenario of terminal replacement, the business recommendation knowledge may be: younger people will change their phones more frequently than other groups, and people who have used their terminals for a long time and whose terminal prices are relatively low are more likely to change their phones; for the business scenario of package downgrade, the business recommendation knowledge may be: the recommended subjects whose package saturation rate is low and whose monthly traffic and communication are far lower than the amount included in the package are more inclined to downgrade their packages; for the business scenario of broadband activation, the business recommendation knowledge may be: the recommended subjects whose members in the home network have not activated broadband will have a greater probability of activating it, and at the same time, the recommended subjects with high community broadband coverage and high application rate are more likely to activate it.
[0071] It should be noted that in the embodiments of the present application, the service recommendation device can obtain the service recommendation knowledge corresponding to the semantic analysis text. For example, the feature description text contained in the semantic analysis text describes that the main packages of the recommended objects all exceed the handling amount. The service recommendation text describes that the recommended objects can consider upgrading to packages with higher service volume, or choose packages that are suitable for the recommended objects' usage habits to save communication costs. Based on this, the service recommendation knowledge for the service scenario of package upgrade can be obtained and determined as the corresponding service recommendation knowledge. Of course, the semantic analysis text may be adapted to more than one piece of service recommendation knowledge, that is, it may correspond to multiple pieces of service recommendation knowledge, which is not limited in the embodiments of the present application.
[0072] In an embodiment of the present application, a business recommendation device generates a recommended business sequence based on business recommendation knowledge and a semantic analysis text, including: determining a corresponding self-attention matrix for each text unit in the semantic analysis text; calculating a similarity matrix between the semantic analysis text and the business recommendation knowledge; determining a corresponding target attention matrix for each text unit in the semantic analysis text based on the similarity matrix and the corresponding self-attention matrix; generating a recommended business sequence based on the semantic analysis text and the target attention matrix corresponding to each text unit therein.
[0073] In the embodiment of the present application, a new type of attention mechanism is established, and a priori knowledge block for business recommendation knowledge fusion is added to the self-attention mechanism. Figure 3 In the embodiment of the present application, a new improved attention mechanism based on artificial expert experience, namely business recommendation knowledge, is introduced, wherein X P represents semantic analysis text, and E represents business recommendation knowledge, which will be described in detail below.
[0074] It should be noted that, in the embodiments of the present application, due to X P The business recommendation text generated based on the large language model is introduced, so the attention matrix obtained includes: the matrix of the business recommendation text and the matrix of the feature description text. The feature description text is objective and real information, but the business recommendation text is based on the general information ability and strong generation ability of the large language model, and is based on the empirical associative information regenerated according to the existing prior knowledge, so the business recommendation text has limitations and credibility. Therefore, this application introduces a training block about business recommendation knowledge, and dynamically adjusts the attention weight distribution mechanism to ensure correctness. The self-attention matrix Attention1 corresponding to each text unit in the semantic analysis text can be determined by the following formula:
[0075]
[0076] Among them, X P (Q), X P(K), X P (V) are the query matrix, key matrix, and value matrix of a text unit, respectively. k Represents the dimension of each column feature in the key matrix.
[0077] The target attention matrix Attention2 for each text unit can be determined using the following formula:
[0078]
[0079] Among them, M p&E Represents the similarity matrix between the semantic analysis text and business recommendation knowledge generated by the large language model. Combining formulas (4) and (5), the target attention matrix of each text unit is the product of the similarity matrix and the corresponding self-attention matrix. p&E As a training block, it can provide a way to measure the correlation between model input and business recommendation knowledge, thereby introducing this correlation into the model's attention mechanism.
[0080] In an embodiment of the present application, a business recommendation device calculates a similarity matrix between a semantic analysis text and business recommendation knowledge, including: performing vector matrix conversion on the semantic analysis text and the business recommendation knowledge respectively to obtain a first vector matrix corresponding to the semantic analysis text and a second vector matrix corresponding to the business recommendation knowledge; calculating the cosine similarity between the first vector matrix and the second vector matrix; and determining the product of the cosine similarity and the created random parameter block as the similarity matrix.
[0081] It should be noted that in the embodiment of the present application, the text vectorization method of Test2Vec is used to calculate the similarity matrix. Figure 4 , first vectorize X via text2Vec P and E, X P It can be expressed as the first vector matrix (X P1 ,X P2 ,...,X Pn ), E can be expressed as the second vector matrix (E1, E2, ..., E n ), and then create a random parameter block P by calculating the cosine similarity of the vectors R ∈ω a×b , the two are multiplied to get M P&E The parameters of a and b are determined based on the text unit dimension of the large language model and the number of business scenarios. Based on the above, the cosine similarity, i.e. cos_sim, is calculated as follows:
[0082]
[0083] Similarity matrix M p&E The calculation formula is as follows:
[0084] M P&E = P R * cos_sim(X P ,E) (7)
[0085] Based on the above formulas (5) and (7), the target attention matrix Attention2 corresponding to each text unit can be expressed as follows:
[0086]
[0087] It can be understood that in the embodiments of the present application, after the business recommendation device obtains the target attention matrix corresponding to each text unit in the above manner, it can be based on the guidance of the semantic analysis text and the target attention matrix. Since the semantic analysis text contains business recommendation text and feature description text, it is possible to select key information that needs attention from the semantic analysis text, further determine the business that needs to be recommended to the recommendation object and sort it, thereby obtaining a recommended business sequence.
[0088] It is understandable that in an embodiment of the present application, in order to ensure the accuracy of the recommended business sequence, the business recommendation device can push the recommended business sequence to the audit object, for example, to the system of a certain auditor, so that he can evaluate whether the order of the recommended business sequence is accurate or logical.
[0089] S104: When receiving the sorting guidance information fed back by the audit object, update the sorting of the recommended business sequence based on the sorting guidance information, and push the updated recommended business sequence to the recommendation object.
[0090] In an embodiment of the present application, upon receiving the sorting guidance information fed back by the audit object, the service recommendation device updates the sorting of the recommended service sequence based on the sorting guidance information, and pushes the updated recommended service sequence to the recommendation object.
[0091] It is understandable that in an embodiment of the present application, the audit object can give reward and punishment feedback for the ranking of the recommended business sequence based on empirical judgment. That is: if the ranking of the recommended business sequence is logical, no feedback is required; if the ranking of the recommended business sequence is poor, feedback of the ranking guidance information is required, and human intervention is required to focus on important features. For example, if the recommended object actually handles the package upgrade, but the ranking result given by the model is not among the top few items, then the ranking indication information is introduced, which can be: the current package saturation rate is relatively high, and the ranking result is re-given with reference to the package saturation rate and the business handling situation, and then pushed to the recommended object.
[0092] It can be understood that in the embodiments of the present application, the introduction of review object feedback sorting guidance information mainly serves to provide a reference baseline for horizontal comparison of businesses. Different business scenarios will correspond to different business recommendation texts and business recommendation knowledge, but it is impossible to accurately sort according to different business probabilities. The introduction of guidance feedback can solve the problem of inability to unify and reasonably sort.
[0093] In an embodiment of the present application, after the service recommendation device pushes the recommended service sequence to the audit object, that is, after step S103, the following steps may also be performed: in the case where no sorting guidance information is received, the recommended service sequence is pushed to the recommendation object.
[0094] It is understandable that in the embodiments of the present application, the business recommendation device may be trained and optimized, and the generated recommended business sequence is accurately sorted. Based on this, no guidance feedback is required. The business recommendation device may not receive sorting guidance information within a certain period of time, and confirm that the recommended business sequence is accurately sorted, then push the recommended business sequence to the recommended object.
[0095] The embodiment of the present application provides a business recommendation method. First, compared with the traditional end-to-end tree model, it draws on the large language model to textualize structured data, giving feature contextual relationships while enhancing the importance of features in different business scenarios; second, it introduces a similarity matrix to improve the method of self-attention mechanism. By calculating the similarity between semantic analysis text and business recommendation knowledge, it can pay more attention to information related to business recommendation knowledge, which can improve the accuracy and relevance of generating recommended business sequences. Using business recommendation knowledge can provide prior knowledge, improve the quality of recommended business sequences, improve robustness, and better handle problems in different business scenarios; third, it provides feedback and optimization mechanisms, and according to feedback guidance, it provides sorting guidance for the sorting of the generated recommended business sequences, and realizes horizontal comparison of business handling rates, thereby improving the quality of business recommendations and the accuracy of recommendations.
[0096] The embodiment of the present application also provides a service recommendation device. Figure 5 A schematic diagram of a business recommendation device provided in an embodiment of the present application Figure 1 .like Figure 5 As shown, the business recommendation device includes:
[0097] An acquisition module 201 is used to acquire text features of a recommendation object;
[0098] The processing module 202 is used to perform semantic analysis on the text features using a large language model to generate a semantic analysis text; the semantic analysis text includes a feature description text with contextual information for the recommendation object, and a business recommendation text; a recommended business sequence is generated based on the semantic analysis text, and the recommended business sequence is pushed to the audit object; when receiving sorting guidance information fed back by the audit object, the sorting of the recommended business sequence is updated based on the sorting guidance information, and the updated recommended business sequence is pushed to the recommendation object.
[0099] In one embodiment of the present application, the acquisition module 201 is used to obtain at least one feature of the personal social attributes, phone bills, terminal information, and business handling status of the recommended object; and textually process the at least one feature to obtain the text feature.
[0100] In an embodiment of the present application, the text feature includes at least one feature field corresponding one-to-one to the at least one feature;
[0101] Each feature field includes a feature value and a feature name associated in the form of a key-value pair.
[0102] In an embodiment of the present application, the processing module 202 is used to obtain the business recommendation knowledge corresponding to the semantic analysis text from pre-set different business recommendation knowledge; and generate the recommended business sequence based on the business recommendation knowledge and the semantic analysis text.
[0103] In one embodiment of the present application, the processing module 202 is used to determine the corresponding self-attention matrix for each text unit in the semantic analysis text; calculate the similarity matrix between the semantic analysis text and the business recommendation knowledge; for each text unit in the semantic analysis text, based on the similarity matrix and the corresponding self-attention matrix, determine the corresponding target attention matrix; based on the semantic analysis text and the target attention matrix corresponding to each text unit therein, generate the recommended business sequence.
[0104] In one embodiment of the present application, the processing module 202 is used to perform vector matrix conversion on the semantic analysis text and the business recommendation knowledge respectively to obtain a first vector matrix corresponding to the semantic analysis text and a second vector matrix corresponding to the business recommendation knowledge; calculate the cosine similarity between the first vector matrix and the second vector matrix; and determine the product of the cosine similarity and the created random parameter block as the similarity matrix.
[0105] In an embodiment of the present application, the processing module 202 is further configured to push the recommended service sequence to the recommendation object when the sorting guide information is not received.
[0106] Figure 6 A schematic diagram of a business recommendation device provided in an embodiment of the present application Figure 2 .like Figure 6 As shown, the service recommendation device includes: a processor 301, a memory 302 and a communication bus 303;
[0107] The communication bus 303 is used to realize the communication connection between the processor 301 and the memory 302;
[0108] The processor 301 is configured to execute one or more computer programs stored in the memory 302 to implement a service recommendation method.
[0109] The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and the computer program implements the business recommendation method when executed by the processor. The computer-readable storage medium can be a volatile memory (volatile memory), such as a random access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (Read-Only Memory, ROM), a flash memory (flash memory), a hard disk (Hard Disk Drive, HDD) or a solid-state drive (Solid-State Drive, SSD); or it can be a respective device including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc.
[0110] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0111] The present application is described with reference to implementation flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0112] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the implementation flow diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0113] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing the steps in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0114] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed in the utility application 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.
Claims
1. A business recommendation method, characterized in that: include: Get the text features of the recommended object; Using a large language model to perform semantic analysis on the text features to generate a semantic analysis text; The semantic analysis text includes a feature description text with context information for the recommendation object, and a business recommendation text; Generate a recommended business sequence based on the semantic analysis text, and push the recommended business sequence to the audit object; In the case of receiving the sorting guidance information fed back by the audit object, the sorting of the recommended business sequence is updated based on the sorting guidance information, and the updated recommended business sequence is pushed to the recommendation object.
2. The method according to claim 1, characterized in that The obtaining of text features of the recommended object includes: Acquire at least one feature of the recommended object's personal social attributes, phone bill, terminal information, and business handling status; The at least one feature is processed into text to obtain the text feature.
3. The method according to claim 2, characterized in that The text feature includes at least one feature field corresponding to the at least one feature; Each feature field includes a feature value and a feature name associated in the form of a key-value pair.
4. The method according to claim 1, characterized in that The generating a recommended service sequence based on the semantic analysis text comprises: Acquire the business recommendation knowledge corresponding to the semantic analysis text from different pre-set business recommendation knowledge; The recommended service sequence is generated based on the service recommendation knowledge and the semantic analysis text.
5. The method according to claim 4, characterized in that The generating the recommended service sequence based on the service recommendation knowledge and the semantic analysis text includes: For each text unit in the semantic analysis text, determining a corresponding self-attention matrix; Calculating a similarity matrix between the semantic analysis text and the business recommendation knowledge; For each text unit in the semantic analysis text, determining a corresponding target attention matrix based on the similarity matrix and the corresponding self-attention matrix; The recommended service sequence is generated based on the semantic analysis text and the target attention matrix corresponding to each text unit therein.
6. The method according to claim 5, characterized in that The calculating the similarity matrix between the semantic analysis text and the business recommendation knowledge includes: Performing vector matrix conversion on the semantic analysis text and the business recommendation knowledge respectively to obtain a first vector matrix corresponding to the semantic analysis text and a second vector matrix corresponding to the business recommendation knowledge; Calculating the cosine similarity between the first vector matrix and the second vector matrix; The product of the cosine similarity and the created random parameter block is determined as the similarity matrix.
7. The method according to claim 1, characterized in that After pushing the recommended business sequence to the audit object, the method further includes: In case the sorting guide information is not received, the recommended service sequence is pushed to the recommendation object.
8. A business recommendation device, characterized in that: include: An acquisition module is used to obtain text features of the recommended object; A processing module is used to perform semantic analysis on the text features using a large language model to generate a semantic analysis text; the semantic analysis text includes a feature description text with context information for the recommendation object, and a business recommendation text; a recommended business sequence is generated based on the semantic analysis text, and the recommended business sequence is pushed to the audit object; when receiving sorting guidance information fed back by the audit object, the sorting of the recommended business sequence is updated based on the sorting guidance information, and the updated recommended business sequence is pushed to the recommendation object.
9. A business recommendation device, characterized in that: include: processor, memory, and communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute one or more computer programs stored in the memory to implement the service recommendation method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the service recommendation method according to any one of claims 1 to 7 is implemented.
