Search

CN-118964606-B - Session data processing method and device, searching method and device and electronic equipment

CN118964606BCN 118964606 BCN118964606 BCN 118964606BCN-118964606-B

Abstract

The present disclosure relates to a session data processing method and apparatus, a search method and apparatus, an electronic device, a computer-readable storage medium, a computer program product, and relates to the field of computer technology. The session data processing method comprises the steps of clustering session contents of a user and an agent in a plurality of session rounds to obtain at least one session, wherein each session comprises at least one session round with the session contents belonging to the same session theme, generating key information of each session according to the session contents of at least one session round in each session, wherein the key information of each session represents the session theme of each session, and displaying the key information of at least one session to the user in a history session display interface of the user and the agent. According to the method and the device, the efficiency of checking the history dialogue between the user and the intelligent agent by the user can be improved, the history dialogue backtracking is more convenient and quick, and the user experience is improved.

Inventors

  • ZHAO JIAYI
  • LUO SONG

Assignees

  • 北京字跳网络技术有限公司

Dates

Publication Date
20260508
Application Date
20240930

Claims (19)

  1. 1. A session data processing method, comprising: clustering session contents of the user and the agent in a plurality of session rounds to obtain at least one session, wherein each session comprises at least one session round of which the session contents belong to the same session theme; generating key information of each session according to the session content of at least one session round in each session, wherein the key information of each session represents the session theme of each session; Displaying key information and cluster names of the at least one session to the user on a history session display interface of the user and the intelligent agent, wherein each cluster name corresponds to key information of one or more sessions, the cluster names are obtained by clustering the key information of the at least one session, any cluster name is a primary item, and key information corresponding to any cluster name is a secondary item of the primary item; for a cluster name with the content amount of the related session being larger than a threshold value, deleting a first-level item corresponding to the cluster name, and determining key information of one or more sessions corresponding to the cluster name as a new first-level item; new secondary items are displayed, the new secondary items being generated by clustering the new primary items.
  2. 2. A session data processing method according to claim 1, wherein each cluster name is used to summarize key information of a session in which a common feature exists.
  3. 3. The session data processing method according to claim 2, characterized by further comprising: And responding to clicking any cluster name by the user on the history session display interface, and displaying key information of one or more sessions corresponding to the any cluster name to the user on the history session display interface.
  4. 4. The session data processing method according to claim 1, characterized by further comprising: clustering session contents related to the new primary item to obtain at least one session corresponding to the new primary item; And generating key information of the session as a secondary item of the new primary item according to session content of at least one session round in the session for each session of at least one session corresponding to the new primary item.
  5. 5. The session data processing method according to claim 2, characterized by further comprising: receiving a modification request of the user for any cluster name; Presenting a modification component to the user, the modification component comprising an input control; And modifying any cluster name according to the input content of the user in the input control.
  6. 6. The session data processing method according to any one of claims 1 to 5, characterized by further comprising: Responding to the key information of any session clicked by the user on the historical session display interface, and jumping from the historical session display interface to a session interface between the user and the intelligent agent; and at the session interface, presenting the session content of at least one session turn included in any session to the user.
  7. 7. The session data processing method according to claim 6, wherein presenting, at the session interface, session content of at least one session round included in the arbitrary session to the user includes: in the case that any one of the sessions includes a plurality of session turns, the session content of the session turn with the earliest occurrence time is preferentially displayed on the session interface, or Generating and presenting summary content of session content of at least one session round included in the any session, or Session content of a session turn associated with a session topic of the any session among at least one session turn included in the any session is presented.
  8. 8. The session data processing method according to claim 7, wherein presenting the session content of a session round of the at least one session round included in the arbitrary session, which is associated with the session topic of the arbitrary session, includes: And displaying the session content of the session turn which is associated with the session theme of the any session in the at least one session turn which is included in the any session by deleting or hiding the session content of the session turn which is not associated with the session theme of the any session in the at least one session turn which is included in the any session.
  9. 9. The session data processing method according to any one of claims 1 to 5, wherein clustering session contents of the user and the agent in a plurality of session rounds to obtain at least one session includes: acquiring a session theme and session time of session contents of each session round; And clustering the session contents of the plurality of session turns according to the session theme and the session time of the session contents of each session turn to obtain the at least one session, wherein each session comprises at least one session turn of which the session contents belong to the same session theme and the session time meet the preset time condition.
  10. 10. The session data processing method according to any one of claims 1 to 5, characterized by further comprising: Receiving a modification request of the user for key information of any session; Presenting a modification component to the user, the modification component comprising an input control; And modifying the key information of any session according to the input content of the user in the input control.
  11. 11. The session data processing method according to any one of claims 1 to 5, wherein presenting key information of the at least one session to the user comprises: determining time information of each session according to the occurrence time of each session; And displaying the key information and the time information of the at least one session to the user.
  12. 12. The session data processing method according to any one of claims 1 to 5, wherein presenting key information of the at least one session to the user comprises: Determining the display sequence of the key information of at least one session according to the occurrence time of the at least one session and/or the number of at least one session turn included in each session; and displaying the key information of the at least one session to the user according to the display sequence.
  13. 13. The session data processing method according to claim 1, wherein different agents correspond to different historical session presentation interfaces for the user.
  14. 14. A search method, comprising: receiving search keywords input by a user; At a history session presentation interface, presenting to the user at least one key information matching the search keyword and at least one cluster name, the at least one key information being at least a part of the key information of at least one session presented to the user in the session data processing method according to any one of claims 1 to 13, the at least one cluster name being at least a part of the cluster name of at least one key information presented to the user in the session data processing method according to any one of claims 1 to 13.
  15. 15. A session data processing apparatus, comprising: the clustering module is configured to cluster the conversation contents of the user and the intelligent agent in a plurality of conversation rounds to obtain at least one conversation, wherein each conversation comprises at least one conversation round of which the conversation contents belong to the same conversation theme; A generation module configured to generate key information of each session according to session content of at least one session round in each session, wherein the key information of each session characterizes a session theme of each session; The display module is configured to display key information and cluster names of the at least one session to the user at a historical session display interface of the user and the agent, wherein each cluster name corresponds to key information of one or more sessions, the cluster names are obtained by clustering the key information of the at least one session, any cluster name is a primary item, the key information corresponding to any cluster name is a secondary item of the primary item, for the cluster names with the content of the related session being greater than a threshold value, the primary item corresponding to the cluster name is deleted, the key information of one or more sessions corresponding to the cluster name is determined to be a new primary item, and a new secondary item is displayed, and is generated by clustering the new primary item.
  16. 16. A search apparatus, comprising: the receiving module is configured to receive search keywords input by a user; A presentation module configured to present to the user, at a history session presentation interface, at least one key information matching the search keyword and at least one cluster name, the at least one key information being at least a part of the key information of at least one session presented to the user in the session data processing method according to any one of claims 1 to 13, the at least one cluster name being at least a part of the cluster name of at least one key information presented to the user in the session data processing method according to any one of claims 1 to 13.
  17. 17. An electronic device, comprising: Memory, and A processor coupled to the memory, the processor configured to perform the session data processing method of any one of claims 1 to 13 or the search method of claim 14 based on instructions stored in the memory.
  18. 18. A computer-readable storage medium, having stored thereon computer program instructions which, when executed by a processor, implement the session data processing method of any of claims 1 to 13 or the search method of claim 14.
  19. 19. A computer program product comprising a computer program which, when executed by a processor, implements the session data processing method of any one of claims 1 to 13 or the search method of claim 14.

Description

Session data processing method and device, searching method and device and electronic equipment Technical Field The present disclosure relates to the field of computer technology, and in particular, to a session data processing method and apparatus, a search method and apparatus, an electronic device, a computer readable storage medium, and a computer program product. Background With the development of artificial intelligence technology, related applications have penetrated into various aspects of our lives, such as intelligent conversations, etc. In the related art, a user views a history dialogue of the user with an agent in a sliding manner. Disclosure of Invention This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. According to a first aspect of some embodiments of the present disclosure, there is provided a session data processing method, including: clustering session contents of the user and the agent in a plurality of session rounds to obtain at least one session, wherein each session comprises at least one session round of which the session contents belong to the same session theme; generating key information of each session according to the session content of at least one session round in each session, wherein the key information of each session represents the session theme of each session; And displaying the key information of the at least one session to the user at a history session display interface of the user and the intelligent agent. According to a second aspect of some embodiments of the present disclosure, there is provided a search method, including: receiving search keywords input by a user; And displaying at least one piece of key information matched with the search keyword to the user on a historical session display interface, wherein the at least one piece of key information is at least one part of key information of at least one session displayed to the user in the session data processing method of any embodiment of the disclosure. According to a third aspect of some embodiments of the present disclosure, there is provided a session data processing apparatus comprising: the clustering module is configured to cluster the conversation contents of the user and the intelligent agent in a plurality of conversation rounds to obtain at least one conversation, wherein each conversation comprises at least one conversation round of which the conversation contents belong to the same conversation theme; A generation module configured to generate key information of each session according to session content of at least one session round in each session, wherein the key information of each session characterizes a session theme of each session; and the display module is configured to display key information of the at least one session to the user at a history session display interface of the user and the intelligent agent. According to a fourth aspect of some embodiments of the present disclosure, there is provided a search apparatus comprising: the receiving module is configured to receive search keywords input by a user; And the display module is configured to display at least one piece of key information matched with the search keyword to the user in a history session display interface, wherein the at least one piece of key information is at least one part of key information of at least one session displayed to the user in the session data processing method in any embodiment of the disclosure. According to a fifth aspect of some embodiments of the present disclosure, there is provided an electronic device comprising a memory, and a processor coupled to the memory, the processor configured to perform the session data processing method or the search method of any of the embodiments described in the present disclosure based on instructions stored in the memory. According to a sixth aspect of some embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the session data processing method or the search method of any of the embodiments described in the present disclosure. According to a seventh aspect of some embodiments of the present disclosure, there is provided a computer program product, which when run on a computer, causes the computer to implement the session data processing method or the search method of any of the embodiments. Other features, aspects, and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the disclosure, which is to be read in connection with the accompanying drawings. Drawings Preferred embodiments of the pr