Interaction method, device, storage medium and program product

By generating target candidate session messages using a pre-set knowledge base during the conversation between the user and the receiver, the problem of low information interaction efficiency caused by the user's inability to accurately describe the problem is solved, thus achieving more efficient information interaction and reducing maintenance costs.

CN123185166APending Publication Date: 2026-11-27BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510687180.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-26
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

During the conversation between the user and the recipient, the user is unable to accurately and clearly describe the question they want to ask, resulting in low information exchange efficiency and affecting the user experience.

Method used

By acquiring the initial session message, using a preset knowledge base to determine the associated information, generating target candidate session messages, and determining recommended session messages based on usage rates, the generalized session messages are described using accurate expressions from the preset knowledge base.

Benefits of technology

It improves the efficiency of information exchange, reduces the cost of maintaining session messages, and enhances the flexibility and accuracy of session message performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185166A_ABST
    Figure CN123185166A_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide an interaction method and device, a storage medium and a program product. The method comprises: obtaining an initial conversation message, determining associated information of the initial conversation message based on the initial conversation message and a preset knowledge base; determining at least one target candidate conversation message according to the initial conversation message and the associated information; determining a usage rate corresponding to the at least one target candidate conversation message, determining a recommended conversation message according to the usage rate corresponding to the at least one target candidate conversation message; and displaying the recommended conversation message. The interaction efficiency and the information interaction accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the fields of computer and artificial intelligence technology, and in particular to an interaction method, device, storage medium, and program product. Background Technology

[0002] Users can initiate conversations through terminal devices to obtain information. For example, they can use terminal devices to have conversations with contacts to obtain information from contacts in real time. Alternatively, they can use terminal devices to conduct online consultations. Specifically, they can consult other users with pre-defined knowledge or initiate online consultations with virtual objects built based on artificial intelligence technology. These virtual objects will respond to the user's consultations based on their own knowledge.

[0003] In the aforementioned conversations, such as when a user initiates a consultation, various factors may prevent them from clearly and accurately describing the question they wish to ask, making it difficult to obtain effective information from the other party. This results in low information exchange efficiency and negatively impacts the user experience. Summary of the Invention

[0004] This disclosure provides an interaction method, device, storage medium, and program product to overcome the problem of low information interaction efficiency and improve user experience.

[0005] In a first aspect, embodiments of this disclosure provide an interaction method, including:

[0006] Obtain the initial session message, and based on the initial session message, use a preset knowledge base to determine the associated information of the initial session message;

[0007] Based on the initial session message and the associated information, at least one target candidate session message is determined;

[0008] Determine the usage rate corresponding to at least one target candidate session message, and determine the recommended session message based on the usage rate corresponding to at least one target candidate session message;

[0009] The recommended session message is displayed.

[0010] Secondly, embodiments of this disclosure provide an interactive device, including:

[0011] An acquisition unit is used to acquire an initial session message and, based on the initial session message, determine the associated information of the initial session message using a preset knowledge base;

[0012] The first determining unit is configured to determine at least one target candidate session message based on the initial session message and the associated information;

[0013] The second determining unit is used to determine the usage rate corresponding to at least one target candidate session message, and to determine the recommended session message based on the usage rate corresponding to at least one target candidate session message.

[0014] The display unit is used to display the recommended session message.

[0015] Thirdly, embodiments of this disclosure provide an electronic device, including: a processor and a memory;

[0016] The memory stores computer-executed instructions;

[0017] The processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the interaction method described in the first aspect and various possible designs of the first aspect.

[0018] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the interaction method described in the first aspect and various possible designs of the first aspect.

[0019] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the interaction method described in the first aspect and various possible designs of the first aspect.

[0020] The interaction method, device, storage medium, and program product provided in this embodiment obtain an initial session message, determine the associated information of the initial session message using a preset knowledge base, determine at least one target candidate session message based on the initial session message and the associated information, determine the usage rate corresponding to the at least one target candidate session message, determine a recommended session message based on the usage rate corresponding to the at least one target candidate session message, and display the recommended session message. This realizes the generation of candidate session messages with the help of associated information in the preset knowledge base, so that the candidate session messages can be described using accurate expressions in the preset knowledge base. Therefore, when generating generalized session messages based on the initial session message, the obtained generalized session messages are described by accurate terminology, which helps to improve interaction efficiency. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 Flowchart of the interaction method provided in the embodiments of this disclosure Figure 1 ;

[0023] Figure 2 Flowchart of the interaction method provided in the embodiments of this disclosure Figure 2 ;

[0024] Figure 3 A schematic diagram illustrating the principle of the interaction method provided in this disclosure;

[0025] Figure 4 This is a schematic diagram of an application scenario;

[0026] Figure 5 This is a structural block diagram of an interactive device provided in an embodiment of the present disclosure;

[0027] Figure 6 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0028] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0029] In a conversation, the recipient's accurate understanding of the message sender is crucial for improving the efficiency of information exchange. This accurate understanding presupposes that the sender can accurately, clearly, and comprehensively describe the message content to be conveyed. However, during a conversation, the message sender may be unable to accurately, clearly, and / or comprehensively describe the message they wish to receive; consequently, the recipient may also be unable to provide an accurate response.

[0030] In existing technologies, the methods for generating user-assisted conversation messages are inflexible, have high maintenance costs, and the usage rate of the generated recommended conversation messages is low, which is not conducive to improving the efficiency of information interaction.

[0031] The solution provided in this disclosure can obtain related information based on the initial session message using a preset knowledge base, and generate target candidate session messages from the related information and the initial session message. Since the target candidate session messages are generated with reference to the related information obtained from the preset knowledge base, the target candidate session messages can use accurate terms obtained from the preset knowledge base, which helps to improve the accuracy of the session messages. In addition, there is no need to maintain keywords and session generation rules, which can reduce the maintenance cost of session messages and improve the flexibility of the generated target candidate session messages.

[0032] Please refer to Figure 1 , Figure 1 A flowchart illustrating the interaction method provided in this disclosure is shown. Figure 1 ,like Figure 1 As shown, the method includes the following steps:

[0033] S101: Obtain the initial session message, and determine the associated information of the initial session message using a preset knowledge base.

[0034] In this embodiment, the entity executing the interaction method is either an application client running on a terminal device or an application server running on a server.

[0035] Users can initiate a session with a recipient and send session messages within the application client. The recipient can be a virtual object. The recipient can send reply messages based on the session messages. The initial session messages can include messages generated from one or more prior interactions between the user and the recipient.

[0036] The initial session message can be stored in a preset database. In one example, the preset database can be set on the server side; in another example, it can be set on the client's terminal device. The executing entity can retrieve the initial session message from the preset database.

[0037] The initial session message can be matched in a preset knowledge base, and the associated information of the initial session message can be determined based on the matching results.

[0038] In some application scenarios, the aforementioned pre-set knowledge base can be a domain-specific knowledge base, such as a medical knowledge base. The pre-set knowledge base can include various aspects of medical knowledge, such as the symptoms of different diseases, reference treatments for different symptoms, drugs associated with common diseases, and precautions for the use of different drugs. In these application scenarios, the initial conversation message sent by the user can be a consultation message regarding disease treatment measures, a consultation message regarding drug usage precautions, etc. The consulted party (i.e., the message receiver, such as a message assistant) can send a reply message based on the user's input consultation message. The aforementioned initial conversation message includes the user's previously sent consultation messages and the reply messages sent by the consulted party for each of the previously sent consultation messages.

[0039] S102: Based on the initial session message and associated information, determine at least one target candidate session message.

[0040] The aforementioned execution entity can process the initial session message and related information in various ways, such as extracting keywords from the initial session message, understanding the semantics of the initial session message based on the keywords, predicting possible subsequent session messages based on the semantic understanding results, and generating at least one target candidate session message based on the prediction results and related information.

[0041] S103: Determine the usage rate corresponding to at least one target candidate session message, and determine the recommended session message based on the usage rate corresponding to at least one target candidate session message.

[0042] For each target candidate session message, its usage rate is predicted. Based on the predicted usage rate for each target candidate session message, a recommended session message can be determined from at least one target candidate session message.

[0043] In one example, the target candidate session message with the highest predicted usage rate can be selected as the recommended session message.

[0044] In one example, at least one target candidate session message can be sorted in descending order of predicted usage rate, and multiple target candidate session messages with serial numbers less than a preset serial number threshold can be extracted from the sorting results as recommended session messages.

[0045] S104: Display recommended session messages.

[0046] Recommended conversation messages can be displayed in the conversation interface. In one example, recommended conversation messages can be displayed near the message input box in the conversation interface; in another example, a floating window can be displayed below the latest conversation message in the conversation interface, and the recommended conversation messages can be displayed in the floating window.

[0047] As one implementation, each recommended session message can correspond to an actionable item. Users can perform trigger operations such as clicking or touching each actionable item. After receiving a trigger operation for any actionable item, the aforementioned executing entity can send the target recommended session message corresponding to the actionable item to the recipient and display the target recommended session message in the session record of the session interface.

[0048] In this embodiment, by obtaining the association information of the initial session message from a preset knowledge base, target candidate session messages are determined based on the initial session message and the association information. Thus, candidate session messages can be generated using the association information in the preset knowledge base, and can be described using accurate expressions from the preset knowledge base. Therefore, when generating generalized session messages based on the initial session message, the resulting generalized session messages are described using accurate terminology, which helps improve information interaction efficiency. Furthermore, by predicting the usage rate of each target candidate session message and determining recommended session messages from the candidate session messages based on the prediction results, the usage rate of recommended session messages can be increased, further improving information interaction efficiency. Moreover, the elimination of the need to maintain keywords and session generation rules reduces session message maintenance costs and increases the flexibility of the generated session message presentation.

[0049] The following is combined Figure 2 Please provide a detailed explanation. Figure 2 Flowchart of the interaction method provided in the embodiments of this disclosure Figure 2 ,like Figure 2 As shown, the method includes the following steps:

[0050] S201: Obtain the initial session message, and determine the associated information of the initial session message using a preset knowledge base.

[0051] In this embodiment, the entity executing the interaction method can be an application client running on a terminal device. Multiple session participants can engage in a session through this application client.

[0052] For details on obtaining the initial session message, please refer to [link / reference]. Figure 1 The relevant descriptions of step S101 in the illustrated embodiment will not be repeated here.

[0053] The above-mentioned method of determining the association information of the initial session message using a preset knowledge base includes the following steps:

[0054] First, the initial session message is vectorized to obtain the first vector of the initial session message.

[0055] Various text vectorization algorithms can be used to convert the initial session message into a first vector. For example, a bidirectional encoder can be used to encode the initial session message to obtain the first vector. In some examples, if the initial session message includes multiple rounds of historical session message pairs, each round of historical session message pair includes , each round of historical session message pair can be encoded separately, and the encoded results can be concatenated in chronological order to obtain the first vector of the initial session message.

[0056] Secondly, the first vector is used to search in the preset knowledge base, and the related messages are determined based on the search results. The preset knowledge base stores multiple vectorized knowledge contents.

[0057] The preset knowledge base includes vectorized results of multiple knowledge contents. The vectorized result of each knowledge content can be obtained by vectorizing the knowledge content using a vectorization algorithm that vectorizes the initial session message.

[0058] As one implementation, the aforementioned execution entity can decompose the vectorized knowledge content in a preset knowledge base into multiple second vectors and calculate the distance between the first vector and each second vector. The text corresponding to one or more second vectors whose distances satisfy a preset condition is then used as the associated information of the initial session message. The preset condition may, for example, include that the distance between the first vector and each second vector is less than a preset distance threshold.

[0059] By vectorizing the initial session message and retrieving related messages from a pre-defined knowledge base based on the vectorization results, relatively accurate related messages can be obtained from the pre-defined knowledge base through quantitative means.

[0060] S202: Determine a prompt message including the initial session message and associated information, and input the prompt message into a preset model, wherein the preset model outputs at least one candidate session message based on the prompt message.

[0061] The aforementioned prompt information may include multiple fields to be filled, each of which can be filled with prompt content. These multiple fields to be filled may include a first field corresponding to the initial session message and a second field corresponding to the associated information. After obtaining the initial session message and associated information in step S201, the executing entity can write the initial session message into the first field to be filled and the associated information into the second field to be filled, thus obtaining the aforementioned prompt information.

[0062] The preset model can be any model with natural language processing capabilities, capable of summarizing, rewriting, expanding, and generating new conversational messages from content expressed in natural language.

[0063] After the aforementioned prompt information is input into the preset model, the preset model can parse the semantics of the initial session message in the prompt information, and generate subsequent extended session messages based on the semantics and related information. These extended session messages are the candidate session messages.

[0064] In some implementations, the prompt information also includes a thought chain for generating candidate conversation messages based on the initial conversation message and related information; at least one candidate conversation message is obtained by the language processing model processing the initial conversation message and related information based on the thought chain.

[0065] The following explanation uses a medical and health consultation scenario as an example, where initial conversation messages, related information, and thought chains can be written into the prompt information.

[0066] The aforementioned thought process chain includes task information and multiple steps corresponding to completing the task. Illustratively, the thought process chain includes: Step 1, "Review historical Q&A content and analyze the initial medical scenario"; Step 2, "Check if the initial answer can answer the initial question"; Step 3, "If the initial answer did not answer the question well, generate a question similar to the initial question based on related information, and provide a more accurate and specific way of asking the question based on the initial question"; Step 4, "If the initial answer has already answered the initial question, generate more questions based on the initial answer and related information, including but not limited to topics such as symptom overview, disease encyclopedia, diagnostic process, treatment suggestions, healthy eating, and exercise guidance"; and Step 5, "The final generated questions are output in the form of a list."

[0067] By indicating the current task information of the preset model in the above thought chain, and the task to be completed by the task information indication in steps 1 to 5 above, the preset model can process the initial session message and related information according to the above steps, and generate a more accurate candidate session message.

[0068] S203: Determine at least one target candidate session message based on at least one candidate session message.

[0069] As an example, each of the above candidate session messages can be considered as a target candidate session message.

[0070] In some embodiments, step S203 includes:

[0071] For each candidate session message, the candidate session message is matched in a preset message database, and at least one target candidate session message corresponding to the candidate session message is determined based on the matching results.

[0072] In one example, the aforementioned multiple verified session messages can be standard session messages selected from multiple historical session messages that meet preset requirements, or pre-built standard session messages that meet preset requirements.

[0073] In some examples, for each candidate session message, the above matching can yield multiple standard session messages in a preset message library. A preset number of target candidate session messages can then be selected from these standard session messages based on their similarity to the candidate session message. This preset number can be an integer greater than or equal to 1 and less than or equal to the number of standard session messages matched from the preset message library.

[0074] In these embodiments, at least one target session message corresponding to a candidate session message is matched in a preset message library, so that the obtained target candidate session message meets the preset requirements, which can avoid generating invalid target candidate session messages and improve the utilization rate of the generated target candidate session messages.

[0075] S204: Determine the usage rate corresponding to at least one target candidate session message, and determine the recommended session message based on the usage rate corresponding to at least one target candidate session message;

[0076] In some implementations, step S204 above includes the following steps:

[0077] First, determine the predicted usage rate corresponding to at least one target candidate session message;

[0078] Secondly, based on the predicted usage rate corresponding to each target candidate session message, at least one recommended session message is determined from at least one target candidate session message.

[0079] The usage rate of at least one target candidate session message can be predicted based on historical operation information. The operations corresponding to the aforementioned historical operation information include: triggering operations performed on each historical recommended session message and / or feedback operations on historical sessions or historical recommended session messages.

[0080] The feedback operations described above include positive feedback operations and negative feedback operations. Positive feedback operations include, for example, inputting information indicating that the current round of consultation session messages provided the required information, or providing a positive evaluation of the consultation session. Negative feedback operations include, for example, inputting information indicating that the current round of consultation session messages did not provide the required information, or providing a negative evaluation of the consultation session.

[0081] In one example, a target candidate session message with a predicted usage rate greater than a preset usage rate threshold can be used as a recommended session message, thereby obtaining at least one recommended session message.

[0082] S205: Display recommended session messages.

[0083] Please refer to Figure 3 , Figure 3 This is a schematic diagram illustrating the principle of the interaction method provided in this disclosure, such as... Figure 3 As shown, an initial session message 31 can be obtained. This initial session message 31 may include a question message sent by the user in the session and a reply message sent by the message recipient based on the question message. The initial session message can be input into a prompt information generation module 33. This module can vectorize the initial session message to obtain a first vector, and then search the preset knowledge base 32 based on the first vector to obtain associated information related to the initial session message. The prompt information generation module 33 generates prompt information based on the associated information and the initial session message. The prompt information may include the initial session message, associated information, and a thought chain. The thought chain includes processing logic steps for processing the initial session message and associated information to obtain candidate session messages. The prompt information can be input into a preset model 34, which outputs candidate session messages based on the prompt information. The terminal device can input the candidate session messages into a recall model 36. This recall model 36 can match the candidate session messages in a preset message database 35 to obtain one or more standard session messages similar to the candidate session messages. These one or more standard session messages are then used as target candidate session messages. Each target candidate session message can be input into the usage prediction model 37 to obtain the predicted usage rate of each target candidate session message. The predicted usage rate of each target candidate session message can be input into the recommended session message output module 38. The recommended session message output module 38 determines the recommended session message from multiple target candidate session messages based on the predicted usage rate of each target candidate session message and outputs the recommended session message.

[0084] exist Figure 2 In some optional implementations of the interaction method provided in the illustrated embodiment, the method further includes:

[0085] Receive user trigger actions for displaying recommended session messages, send the target recommended session message indicating the trigger action to the session message recipient, and display the recommended session message.

[0086] The following is combined Figure 4 To explain, Figure 4 This is a schematic diagram of an application scenario. Figure 4In a healthcare consultation application scenario, the user enters a conversation interface 41 with the message assistant through an application client. Within this interface 41, the user engages in one or more rounds of conversation with the message assistant. Each round's conversation messages may include questions sent by the user to the message assistant and responses sent by the message assistant based on those questions. The initial conversation messages may include one or more rounds of historical questions sent by the user to the message assistant and responses generated by the message assistant based on those questions. For example... Figure 4 As shown, the initial conversation message includes the user's question "How to deal with a high fever?", and the message assistant's reply: "If the body temperature exceeds 38.5℃, you can take antipyretics and use physical cooling methods. Precautions: Medication use should be based on a doctor's advice; do not self-medicate." The application client can then... Figure 3 The process shown generates a recommended conversation message and displays it in the conversation interface 4 between the user and the message assistant. The number of recommended conversation messages can be multiple, such as... Figure 4 The number of recommended conversation messages shown is 3, and the recommended conversation messages are "What to do if the high fever of the flu does not subside", "How should the flu be treated", and "How to cool down the body physically".

[0087] Users can perform trigger actions on any recommended session message, such as touch actions, etc. Figure 4 The system performs a touch operation on the recommended conversation message "What to do if a high fever from the flu doesn't subside", thereby sending the recommended conversation message to the message assistant and displaying the recommended conversation message in the message history of the conversation interface.

[0088] In these implementations, upon receiving a trigger operation on the displayed recommended conversation message, the recommended conversation message is sent to the recipient, thereby enabling rapid input of conversation messages and improving information interaction efficiency.

[0089] Understandably, after a user triggers a recommended conversation message, they can input the message into the message input box, where it can be edited by the user. Furthermore, the user can use the corresponding send control in the message input box to send the recommended conversation message or its edited version to the recipient.

[0090] Corresponding to the interaction method in the above embodiments, Figure 5 This is a structural block diagram of an interactive device provided in an embodiment of this disclosure. For ease of explanation, only the parts relevant to the embodiments of this disclosure are shown. (Refer to...) Figure 5 The interactive device 50 includes: an acquisition unit 501, a first determination unit 502, a second determination unit 503, and a display unit 504.

[0091] The acquisition unit 501 is used to acquire the initial session message and determine the associated information of the initial session message based on a preset knowledge base.

[0092] The first determining unit 502 is used to determine at least one target candidate session message initial session message based on the initial session message and associated information;

[0093] The second determining unit 503 is used to determine the usage rate corresponding to at least one target candidate session message, and to determine the recommended session message based on the usage rate corresponding to at least one target candidate session message.

[0094] Display unit 504 is used to display recommended session messages.

[0095] The interactive device provided in this embodiment obtains the association information of the initial session message from a preset knowledge base, determines the target candidate session message based on the initial session message and the association information, and thus the candidate session message can be generated with the help of the association information in the preset knowledge base. The candidate session message can be described using accurate expressions in the preset knowledge base. Therefore, when generating generalized session messages based on the initial session message, the obtained generalized session messages are described using accurate terminology, which helps improve the accuracy of the session messages recommended to the user. In addition, the usage rate of each target candidate session message is predicted, and the recommended session message is determined from the candidate session messages based on the prediction results, which can improve the usage rate of the recommended session message and help improve the efficiency of information interaction. Furthermore, there is no need to maintain keywords and session generation rules, which can reduce the maintenance cost of session messages and improve the flexibility of the generated session message presentation.

[0096] In one embodiment of this disclosure, the first determining unit 502 is further configured to:

[0097] Determine prompt information including initial session message and associated information, input the prompt information into a preset model, wherein the preset model outputs at least one candidate session message based on the prompt information;

[0098] Based on at least one candidate session message, determine at least one target candidate session message.

[0099] In one embodiment of this disclosure, the prompt information further includes a thought chain that generates candidate session messages based on the initial session message and associated information;

[0100] At least one candidate session message is obtained by a preset model processing the initial session message and related information according to the thought chain.

[0101] In summary, by indicating the current task information of the language processing model and the steps to complete the task indicated in the above thought chain, the preset model can process the initial conversation message and related information according to the above steps, and generate more accurate candidate conversation messages.

[0102] In one embodiment of this disclosure, the first determining unit 502 is further configured to:

[0103] For each candidate session message, the candidate session message is matched in a preset message database, and at least one target candidate session message corresponding to the candidate session message is determined based on the matching results.

[0104] In summary, further, by matching at least one target session message corresponding to the candidate session message in the preset message library, the obtained target candidate session messages meet the preset requirements, which can avoid generating invalid target candidate session messages and improve the utilization rate of the generated target candidate session messages.

[0105] In one embodiment of this disclosure, the acquisition unit 501 is further configured to:

[0106] The initial session message is vectorized to obtain the first vector of the initial session message;

[0107] The first vector is used to search in the preset knowledge base, and the related messages are determined based on the search results. The preset knowledge base stores multiple vectorized knowledge contents.

[0108] In summary, by vectorizing the initial session message and retrieving related messages from a pre-defined knowledge base based on the vectorization results, a more accurate set of related messages can be obtained from the pre-defined knowledge base through quantitative means.

[0109] In one embodiment of this disclosure, the second determining unit 502 is further configured to:

[0110] Determine the predicted usage rate corresponding to at least one target candidate session message;

[0111] Based on the predicted usage rate corresponding to each target candidate session message, at least one recommended session message is determined from at least one target candidate session message.

[0112] In one embodiment of this disclosure, device 50 further includes a message sending unit (not shown in the figures), the message sending unit being used for:

[0113] Receive user trigger actions for displaying recommended session messages, send the target recommended session message indicating the trigger action to the session message recipient, and display the recommended session message.

[0114] In summary, by receiving a trigger operation on the displayed recommended conversation message, the recommended conversation message is sent to the recipient, thereby enabling rapid input of conversation messages and improving the efficiency of information interaction.

[0115] The device provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.

[0116] To implement the above embodiments, this disclosure also provides an electronic device.

[0117] refer to Figure 6 The diagram illustrates a structural schematic of an electronic device 600 suitable for implementing embodiments of the present disclosure. The electronic device 600 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs), tablet computers, portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0118] like Figure 6 As shown, electronic device 600 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from storage device 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of electronic device 600. The processing unit 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.

[0119] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 An electronic device 600 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0120] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, it performs the functions defined in the methods of embodiments of this disclosure.

[0121] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0122] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0123] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.

[0124] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0125] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0126] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0127] The functions described above herein can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field-Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SOCs), Complex Programmable Logic Devices (CPLDs), etc. The electronic devices, computer-readable storage media, and computer program products provided in this disclosure obtain association information of initial session messages from a preset knowledge base, determine target candidate session messages based on the initial session messages and association information, and thus the candidate session messages can be generated using association information in the preset knowledge base. The candidate session messages can be described using accurate expressions from the preset knowledge base. Therefore, when generating generalized session messages based on the initial session messages, the obtained generalized session messages are described using accurate terminology, which helps improve the accuracy of session messages recommended to users. Furthermore, by predicting the usage rate of each target candidate session message and determining recommended session messages from the candidate session messages based on the prediction results, the usage rate of recommended session messages can be improved, which helps improve information interaction efficiency. In addition, there is no need to maintain keywords and session generation rules, which can reduce session message maintenance costs and improve the flexibility of the generated session message presentation.

[0128] In a first aspect, according to one or more embodiments of this disclosure, an interaction method is provided, comprising:

[0129] Obtain the initial session message, and use a preset knowledge base based on the initial session message to determine the associated information of the initial session message;

[0130] Based on the initial session message and associated information, at least one target candidate session message is identified;

[0131] Determine the usage rate corresponding to at least one target candidate session message, and determine the recommended session message based on the usage rate corresponding to at least one target candidate session message;

[0132] Display recommended session messages.

[0133] According to one or more embodiments of this disclosure, at least one target candidate session message is determined based on an initial session message and associated information, including:

[0134] Determine prompt information including initial session message and associated information, input the prompt information into a preset model, wherein the preset model outputs at least one candidate session message based on the prompt information;

[0135] Based on at least one candidate session message, determine at least one target candidate session message.

[0136] According to one or more embodiments of this disclosure, the prompt information also includes a thought chain for generating candidate session messages based on the initial session message and associated information;

[0137] At least one candidate session message is obtained by a preset model processing the initial session message and related information according to the thought chain.

[0138] According to one or more embodiments of this disclosure, determining at least one target candidate session message based on at least one candidate session message includes:

[0139] For each candidate session message, the candidate session message is matched in a preset message database, and at least one target candidate session message corresponding to the candidate session message is determined based on the matching results.

[0140] According to one or more embodiments of this disclosure, determining associated messages of the initial session message based on a preset knowledge base includes:

[0141] The initial session message is vectorized to obtain the first vector of the initial session message;

[0142] The first vector is used to search in the preset knowledge base, and the related messages are determined based on the search results. The preset knowledge base stores multiple vectorized knowledge contents.

[0143] According to one or more embodiments of this disclosure, the method further includes:

[0144] Receive user trigger actions for displaying recommended session messages, send the target recommended session message indicating the trigger action to the session message recipient, and display the recommended session message.

[0145] Secondly, according to one or more embodiments of this disclosure, an interactive device is provided, comprising:

[0146] The acquisition unit is used to acquire the initial session message and, based on the initial session message, use a preset knowledge base to determine the associated information of the initial session message;

[0147] The first determining unit is used to determine at least one target candidate session message initial session message based on the initial session message and associated information;

[0148] The second determining unit is used to determine the usage rate corresponding to at least one target candidate session message, and to determine the recommended session message based on the usage rate corresponding to at least one target candidate session message.

[0149] The display unit is used to display recommended session messages.

[0150] According to one or more embodiments of this disclosure, the first determining unit is further configured to:

[0151] Determine prompt information including initial session message and associated information, input the prompt information into a preset model, wherein the preset model outputs at least one candidate session message based on the prompt information;

[0152] Based on at least one candidate session message, determine at least one target candidate session message.

[0153] In one embodiment of this disclosure, the prompt information further includes a thought chain that generates candidate session messages based on the initial session message and associated information;

[0154] At least one candidate session message is obtained by a preset model processing the initial session message and related information according to the thought chain.

[0155] In one embodiment of this disclosure, the first determining unit is further configured to:

[0156] For each candidate session message, the candidate session message is matched in a preset message database, and at least one target candidate session message corresponding to the candidate session message is determined based on the matching results.

[0157] In one embodiment of this disclosure, the acquisition unit is further configured to:

[0158] The initial session message is vectorized to obtain the first vector of the initial session message;

[0159] The first vector is used to search in the preset knowledge base, and the related messages are determined based on the search results. The preset knowledge base stores multiple vectorized knowledge contents.

[0160] In one embodiment of this disclosure, the device further includes a message sending unit, which is configured to:

[0161] Receive user trigger actions for displaying recommended session messages, send the target recommended session message indicating the trigger action to the session message recipient, and display the recommended session message.

[0162] Thirdly, according to one or more embodiments of the present disclosure, an electronic device is provided, comprising: at least one processor and a memory;

[0163] The memory stores the instructions that the computer executes;

[0164] At least one processor executes computer execution instructions stored in memory, causing at least one processor to perform the interaction methods of the first aspect above and various possible designs of the first aspect.

[0165] Fourthly, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, which stores computer-executable instructions that, when executed by a processor, implement the interaction methods described in the first aspect and various possible designs of the first aspect.

[0166] Fifthly, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the first aspect above and various possible designs of the first aspect of the interaction method.

[0167] In summary, by obtaining the association information of the initial session message from the preset knowledge base, and determining the target candidate session messages based on the initial session message and the association information, the candidate session messages can be generated using the association information in the preset knowledge base. These candidate session messages can be described using accurate expressions from the preset knowledge base. Therefore, when generating generalized session messages based on the initial session message, the resulting generalized session messages are described using accurate terminology, which helps improve the accuracy of the session messages recommended to users. Furthermore, predicting the usage rate of each target candidate session message and determining the recommended session message from the candidate session messages based on the prediction results can improve the usage rate of the recommended session messages, thus improving information interaction efficiency. In addition, eliminating the need to maintain keywords and session generation rules reduces session message maintenance costs and increases the flexibility of the generated session message presentation.

[0168] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0169] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0170] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. An interaction method, comprising: Obtain the initial session message, and based on the initial session message, use a preset knowledge base to determine the associated information of the initial session message; Based on the initial session message and the associated information, at least one target candidate session message is determined; Determine the usage rate corresponding to at least one target candidate session message, and determine the recommended session message based on the usage rate corresponding to at least one target candidate session message; The recommended session message is displayed.

2. The method according to claim 1, characterized in that, The step of determining at least one target candidate session message based on the initial session message and the associated information includes: Determine prompt information including the initial session message and associated information, input the prompt information into a preset model, wherein the preset model outputs at least one candidate session message based on the prompt information; Based on at least one of the candidate session messages, determine at least one target candidate session message.

3. The method according to claim 2, characterized in that, The prompt information also includes a thought chain for generating candidate session messages based on the initial session message and the associated information; The at least one candidate session message is obtained by the preset model processing the initial session message and the associated information according to the thought chain.

4. The method according to claim 2, characterized in that, The step of determining at least one target candidate session message based on at least one candidate session message includes: For each candidate session message, the candidate session message is matched in a preset message database, and at least one target candidate session message corresponding to the candidate session message is determined based on the matching result.

5. The method according to claim 1, characterized in that, The step of determining the associated messages of the initial session message using a preset knowledge base includes: The initial session message is vectorized to obtain the first vector of the initial session message; The first vector is used to perform a retrieval in the preset knowledge base, and the associated message is determined based on the retrieval results. The preset knowledge base stores multiple vectorized knowledge contents.

6. The method according to any one of claims 1-5, characterized in that, The step of determining the usage rate corresponding to at least one target candidate session message, and determining the recommended session message based on the usage rate corresponding to at least one target candidate session message, includes: Determine the predicted usage rate corresponding to the at least one target candidate session message; Based on the predicted usage rate corresponding to each target candidate session message, at least one recommended session message is determined from at least one target candidate session message.

7. The method according to any one of claims 1-5, characterized in that, The method further includes: The system receives a user's trigger operation on the displayed recommended session message, sends the target recommended session message indicating the trigger operation to the session message recipient, and displays the recommended session message.

8. An interactive device, comprising: An acquisition unit is used to acquire an initial session message and, based on the initial session message, determine the associated information of the initial session message using a preset knowledge base; The first determining unit is configured to determine at least one target candidate session message initial session message based on the initial session message and the associated information; The second determining unit is used to determine the usage rate corresponding to at least one target candidate session message, and to determine the recommended session message based on the usage rate corresponding to at least one target candidate session message. The display unit is used to display the recommended session message.

9. An electronic device, characterized in that, include: Processor and memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the interaction method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the interaction method as described in any one of claims 1 to 7.

11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the interaction method as described in any one of claims 1 to 7.