Response optimization method and device, electronic equipment and computer readable storage medium

By introducing user feedback evaluation and associated question and answer selection services into the generative model, the problem of inaccurate user feedback is solved, the model optimization effect is improved, the cost is reduced, and it is suitable for intelligent question and answer scenarios.

CN118708679APending Publication Date: 2024-09-27THE FOURTH PARADIGM BEIJING TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310461038.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-26
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing technology is difficult to provide accurate and specific user feedback methods, resulting in poor optimization results of generative models.

Method used

Design a response optimization method that obtains user feedback information and associated question and answer information by providing evaluation services and associated question and answer selection services for response content, and optimizes the generative model based on this information. The method includes displaying operation controls on the response interface, obtaining user evaluations and selection operations, displaying the evaluation interface and associated question and answer information, and optimizing the generative model.

Benefits of technology

It achieves more accurate and specific user feedback, improves the optimization effect of generative models, reduces model training and equipment costs, and is suitable for model optimization in intelligent question and answer scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708679A
    Figure CN118708679A
Patent Text Reader

Abstract

The invention relates to a response optimization method and device, electronic equipment and a computer readable storage medium. Providing an evaluation service and an associated question and answer selection service for response content, wherein the response content is generated by the generative model based on at least one piece of question information in multiple rounds of question and answer processes; obtaining evaluation information fed back by the user for the response content by using the evaluation service; acquiring associated question-answer information selected by the user for the response content by using the associated question-answer selection service; and optimizing the generative model based on the evaluation information and the associated question and answer information. Therefore, more specific and accurate user feedback can be obtained based on the method and the device, so that the method and the device can be better used for model optimization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a response optimization method, device, electronic device, and computer-readable storage medium. Background Art

[0002] With the promotion and application of intelligent question and answer in various fields, question-and-answer product interaction methods are gradually becoming popular.

[0003] In order to improve the model effect, developers need to collect user feedback on the model's answers. The more accurate and specific the user feedback is, the greater the help it will undoubtedly bring to the optimization of the model and the developer's collection work.

[0004] Therefore, how to provide users with a more accurate and specific user feedback method is a problem that needs to be solved urgently. Summary of the invention

[0005] The purpose of this disclosure is to improve the model optimization effect by designing a more specific user feedback method.

[0006] According to the first aspect of the present disclosure, a method for optimizing an answer is provided, comprising: providing an evaluation service for answer content and an associated question and answer selection service, wherein the answer content is generated by a generative model based on at least one question information in a multi-round question and answer process; utilizing the evaluation service to obtain evaluation information fed back by a user on the answer content; utilizing the associated question and answer selection service to obtain associated question and answer information selected by the user for the answer content; and optimizing the generative model based on the evaluation information and the associated question and answer information.

[0007] Optionally, an evaluation service for the answer content and an associated question and answer selection service are provided, including: displaying at least one operation control on the answer interface; using the evaluation service to obtain evaluation information of the user's feedback on the answer content, including: obtaining evaluation information of the user's feedback on the answer content based on the operation performed by the user on the operation control.

[0008] Optionally, based on the operation performed by the user on the operation control, evaluation information of the user on the response content feedback is obtained, including: in response to the user performing a first predetermined operation on the operation control, outputting an evaluation interface, wherein multiple evaluation levels are displayed in the evaluation interface; in response to the user performing a selection operation on the multiple evaluation levels, displaying first evaluation information matching the evaluation level selected by the user in the evaluation interface; and determining the evaluation information fed back by the user based on the evaluation level selected by the user and the first evaluation information.

[0009] Optionally, the first evaluation information includes multiple first evaluation contents, and the method further includes: in response to a selection operation performed by the user on the multiple first evaluation contents, highlighting the first evaluation content selected by the user; wherein the evaluation information includes: the evaluation level selected by the user; and the first evaluation content selected by the user.

[0010] Optionally, the method further includes: in response to a switching operation performed by the user on the currently selected evaluation level, outputting evaluation information matching the switched evaluation level.

[0011] Optionally, the at least one operation control includes a first operation control and a second operation control, and based on the operation performed by the user on the operation control, obtaining evaluation information of the user's feedback on the response content, including: in response to the user performing a second predetermined operation on the first operation control, outputting an evaluation interface, wherein a plurality of second evaluation contents are displayed in the evaluation interface, and the second evaluation contents are negative evaluation contents; based on the selection operation performed by the user on the plurality of second evaluation contents, determining the evaluation information fed back by the user.

[0012] Optionally, the evaluation interface also includes a first related question and answer selection control, and the related question and answer selection service is used to obtain related question and answer information selected by the user for the answer content, including: in response to the user performing a fourth predetermined operation on the first related question and answer selection control, switching from the evaluation interface to the answer interface, and the question information and answer content in the answer interface are in a selectable state; based on the selection operation performed by the user on the question information and / or answer content in the answer interface, obtaining the related question and answer information.

[0013] Optionally, the evaluation interface also includes a second related question and answer selection control, and uses the related question and answer selection service to obtain related question and answer information selected by the user for the answer content, including: in response to the user performing a fifth predetermined operation on the second related question and answer selection control, displaying a question information list in the evaluation interface, the question information list including question information and answer content in multiple rounds of question and answer processes; based on the selection operation performed by the user on the question information and / or answer content in the question information list, obtaining the related question and answer information.

[0014] Optionally, the evaluation interface further includes an input control, and the method further includes: obtaining feedback information input by the user through the input control.

[0015] Optionally, optimizing the generative model based on the evaluation information and the associated question and answer information includes: determining a standard response to the question information to which the response content is directed based on the evaluation information and the associated question and answer information; and fine-tuning the generative model based on the standard response and the associated question and answer information.

[0016] Optionally, the method further includes: outputting a source identifier corresponding to the response content, wherein the source identifier is used to identify a data source of at least part of the response content.

[0017] Optionally, the method also includes: based on the question information, performing related knowledge retrieval in the target knowledge base to obtain related knowledge, wherein the data scale of the related knowledge is smaller than the data scale of the target knowledge base; using the question information and the related knowledge as inputs of a generative model, and obtaining the output result of the generative model to obtain the response content.

[0018] Optionally, the generative model includes: a text generation model and a multimodal plug-in; wherein the text generation model is used to generate response text, and the multimodal plug-in is used to generate multimodal response content, and the multimodal response content includes at least one of the following: vector graphics, video, image, table, and voice.

[0019] According to a second aspect of the present disclosure, there is provided an answer optimization device, comprising: a providing module, used to provide an evaluation service and an associated question and answer selection service for answer content, wherein the answer content is generated by a generative model based on at least one question information in a multi-round question and answer process; a first acquisition module, used to use the evaluation service to obtain evaluation information fed back by a user on the answer content; a second acquisition module, used to use the associated question and answer selection service to obtain associated question and answer information selected by the user for the answer content; and an optimization module, used to optimize the generative model based on the evaluation information and the associated question and answer information.

[0020] Optionally, the providing module displays at least one operation control on the response interface; and the first obtaining module obtains evaluation information of the user on the response content feedback based on the operation performed by the user on the operation control.

[0021] Optionally, the first acquisition module includes: a first output module, used to output an evaluation interface in response to the user performing a first predetermined operation on the operation control, wherein multiple evaluation levels are displayed in the evaluation interface; a first display module, used to display first evaluation information matching the evaluation level selected by the user in the evaluation interface in response to the user performing a selection operation on the multiple evaluation levels; and a first determination module, used to determine the evaluation information fed back by the user based on the evaluation level selected by the user and the first evaluation information.

[0022] Optionally, the first evaluation information includes multiple first evaluation contents, and the device also includes: a highlighting module, used to highlight the first evaluation content selected by the user in response to a selection operation performed by the user on the multiple first evaluation contents; wherein the evaluation information includes: an evaluation level selected by the user; and the first evaluation content selected by the user.

[0023] Optionally, the first display module further outputs evaluation information matching the switched evaluation level in response to a switching operation performed by the user on the currently selected evaluation level.

[0024] Optionally, the at least one operation control includes a first operation control and a second operation control, and the first acquisition module includes: a second output module, used to output an evaluation interface in response to the user performing a second predetermined operation on the first operation control, wherein a plurality of second evaluation contents are displayed in the evaluation interface, and the second evaluation contents are negative evaluation contents; a second determination module, used to determine the evaluation information fed back by the user based on the selection operation performed by the user on the plurality of second evaluation contents.

[0025] Optionally, the evaluation interface also includes a first associated question and answer selection control, and the second acquisition module includes: a switching module, which is used to switch from the evaluation interface to the response interface in response to the user performing a fourth predetermined operation on the first associated question and answer selection control, and the question information and answer content in the response interface are in a selectable state; a first acquisition sub-module, which is used to obtain the associated question and answer information based on the selection operation performed by the user on the question information and / or answer content in the response interface.

[0026] Optionally, the evaluation interface also includes a second related question and answer selection control, and the second acquisition module includes: a second display module, used to display a question information list in the evaluation interface in response to the user performing a fifth predetermined operation on the second related question and answer selection control, the question information list including question information and answer content in multiple rounds of question and answer processes; a second acquisition sub-module, used to obtain the related question and answer information based on the selection operation performed by the user on the question information and / or answer content in the question information list.

[0027] Optionally, the evaluation interface further includes an input control, and the device further includes: a third acquisition module, configured to acquire feedback information input by the user through the input control.

[0028] Optionally, the optimization module includes: a third determination module, used to determine a standard response to the question information to which the response content responds based on the evaluation information and the associated question and answer information; and a fine-tuning module, used to fine-tune the generative model based on the standard response and the associated question and answer information.

[0029] Optionally, the device further includes: an output module, configured to output a source identifier corresponding to the response content, wherein the source identifier is used to identify a data source of at least part of the response content.

[0030] Optionally, the device also includes: a retrieval module, used to retrieve related knowledge in the target knowledge base based on the question information to obtain related knowledge, wherein the data scale of the related knowledge is smaller than the data scale of the target knowledge base; a fourth acquisition module, used to use the question information and the related knowledge as inputs of a generative model, and obtain the output result of the generative model to obtain the response content.

[0031] Optionally, the generative model includes: a text generation model and a multimodal plug-in; wherein the text generation model is used to generate response text, and the multimodal plug-in is used to generate multimodal response content, and the multimodal response content includes at least one of the following: vector graphics, video, image, table, and voice.

[0032] According to a third aspect of the present disclosure, a computing device is provided, comprising: a processor; and a memory on which executable codes are stored, and when the executable codes are executed by the processor, the processor executes the method described in the first aspect above.

[0033] According to a fourth aspect of the present disclosure, a computer program product is provided, comprising an executable code, which, when executed by a processor of an electronic device, causes the processor to execute the method described in the first aspect above.

[0034] According to a fifth aspect of the present disclosure, a non-transitory machine-readable storage medium is provided, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor executes the method described in the first aspect above.

[0035] Thus, the present disclosure provides an evaluation service for the answer content and also provides a related question and answer selection service, so that not only the evaluation information of the user's feedback on the answer content can be obtained, but also the related question and answer information selected by the user for the answer content can be obtained. In this way, based on the present disclosure, more specific and accurate user feedback can be obtained, and thus it can be better used for model optimization. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components in the exemplary embodiments of the present disclosure.

[0037] Figure 1A schematic flow chart of a response optimization method according to an embodiment of the present disclosure is shown.

[0038] FIG. 2A to FIG. 2C A schematic diagram of a question-and-answer feedback process according to an embodiment of the present disclosure is shown.

[0039] Figure 3A , Figure 3B A schematic diagram of a question-and-answer feedback process according to another embodiment of the present disclosure is shown.

[0040] Figure 4 A schematic diagram of the structure of a response optimization device according to an embodiment of the present disclosure is shown.

[0041] Figure 5 A schematic diagram of the structure of a computing device according to an embodiment of the disclosure is shown. DETAILED DESCRIPTION

[0042] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0043] Generative intelligent question answering refers to answering questions raised by users with the help of the natural language generation capabilities of generative models (such as ChatGPT).

[0044] Generative-based intelligent question-answering can be applied to any scenario that requires responses to questions. For example, the application scenarios of intelligent question-answering may include but are not limited to intelligent customer service scenarios, enterprise response assistant services (or applications, applets, etc.), intelligent retrieval scenarios, teaching scenarios, etc. Among them, in the intelligent retrieval scenario, responsive retrieval feedback can be provided for questions raised by users, and the execution subject for implementing intelligent question-answering in the intelligent retrieval scenario can be a search engine or a service system. In the teaching scenario, users can use questions as question information, and the generative model can be used to generate solutions to the questions to answer the users.

[0045] On the one hand, intelligent question-and-answer scenarios are becoming more and more continuous. The continuity of intelligent question-and-answer scenarios means that a single "question + answer" (a round of question-and-answer interaction process) cannot fully summarize the user's question, so the user needs to conduct multiple rounds of question-and-answer interactions with the generative model.

[0046] On the other hand, especially in the application scenarios of question-and-answer products on the B-side (i.e., the enterprise side), the collection of user data should be more rigorous. For example, if the first question is "Please check the information of xxx company for me", and the second question is "Tell me more about the legal background of this company", if the user submits feedback on the answer to question 2, then at this time the system has no right to know what company "this company" in question 2 refers to, and therefore cannot better optimize the generative model based on user feedback. In addition, if the latter question is based on the previous answer, then if only feedback is submitted for the latter question, it is also impossible to better optimize the generative model based on user feedback.

[0047] Based on the two considerations of "the continuity of intelligent question-and-answer scenarios" and "the need to be cautious in collecting user data", the present disclosure proposes to provide users with an associated question-and-answer selection service while collecting users' evaluation information on feedback on the answer content, so that users can customize the questions and / or answers associated with the current feedback answer content.

[0048] The Related Question and Answer Selection Service can meet the above-mentioned related question and answer feedback requirements in the scenario of "intelligent question and answer scenarios are continuous" by supporting users to customize questions and / or answers. At the same time, since the feedback questions and / or answers are all selected by users, the Related Question and Answer Selection Service is also equivalent to the above-mentioned authorization mechanism, and can also meet the data collection requirement of "user data collection must be cautious".

[0049] In summary, the present disclosure provides a feedback mechanism for users to customize their selected questions and / or answers, so that based on the feedback mechanism, more accurate and specific user feedback can be collected with the user's authorization, which can then be better used for model optimization.

[0050] The details of the present disclosure are further described below in conjunction with the accompanying drawings.

[0051] Figure 1 A schematic flow chart of a response optimization method according to an embodiment of the present disclosure is shown.

[0052] The response optimization method provided by the present disclosure can be applied to any electronic device. For example, the method can be executed by a computing device with computing and analysis functions, and the computing device can be a terminal device, and the terminal device can be a tablet computer, a laptop computer, a mobile phone, a computer, a digital assistant, a wearable device, etc. Alternatively, the computing device can be an overall system constructed by a terminal and a server, the terminal is responsible for the human-computer interaction part, and the server can be used for the computing part such as content generation; the server can be an independent server, a server cluster, a cloud computing platform or a virtualization center.

[0053] See also Figure 1 , providing evaluation services for answer content and related question and answer selection services.

[0054] In each round of question-answering, the question information in the current round can be obtained, and the generative model can be used to generate the answer content for the question information in the current round. For the question information in the current round, the generative model can generate the answer content corresponding to the question information in the current round based on at least one question information in multiple rounds of question-answering. That is, the answer content can be generated by the generative model based on at least one question information in multiple rounds of question-answering.

[0055] At least one question information includes question information in the current round. In addition to the question information in the current round, at least one question information may also include question information in one or more previous rounds. That is, the generative model may generate a response content for the question information in the current round based on the question information in the current round and the question information in one or more previous rounds. For example, the question information in the current round and the question information in one or more previous rounds may be used as inputs of the generative model, and the output of the generative model may be used as the response content for the question information in the current round. In addition, the generative model may also generate a response content for the question information in the current round based on the response content in one or more previous rounds. That is, the input of the generative model may include not only the question information in the current round and the question information in one or more previous rounds, but also the response content in one or more previous rounds.

[0056] The present disclosure has no particular restrictions on the form of expression and the method of obtaining the question information. Based on the different application scenarios of the technical solution provided by the present disclosure, the question information can be obtained in different ways. Exemplarily, the form of the question information can include but is not limited to: at least one of text form, audio form, image form, video form, vector form, and atlas form, etc., without exhaustive enumeration.

[0057] A generative model can also be called a question-answering robot. The input of a generative model can be unimodal data (such as one of text, image, audio, video, and vector graphics), or multimodal data (such as at least two of text, image, audio, video, and vector graphics); the output of a generative model can be unimodal data or multimodal data. In other words, a generative model can support the processing of data of one or more modalities and generate one or more modal data. For example, a generative model can be a large model with multimodal data processing capabilities and multimodal data generation capabilities. For another example, a generative model can also be a small model that only has text processing capabilities and text generation capabilities.

[0058] Exemplarily, the generative model may include a text generation model and a multimodal plug-in. The text generation model is used to generate a response text, and the multimodal plug-in is used to generate a multimodal response content, and the multimodal response content includes at least one of the following: vector graphics, video, image, table, and voice. The present disclosure has no special restrictions on the type of text generation model. A text generation model commonly used in the industry, such as the ChatGPT model, can be used. Of course, a new text generation model can also be trained. In addition, it should be noted that considering the high overhead (time overhead and cost overhead) of training a new model, when actually implementing this step, a general model fine-tuning method can be used to implement it, that is, on the basis of an existing general model, the general model can be adjusted according to the feature processing scale and computing power requirements, thereby obtaining the text generation model used in the present disclosure. This can effectively reduce the model training overhead.

[0059] Step S110 may be performed while or after the response content is output, to provide an evaluation service for the response content and an associated question and answer selection service. The evaluation service is used to provide users with a service for evaluating the quality of the response content. The associated question and answer selection service is used to provide users with a service for selecting question information and / or response content, so that users can select question information and / or response content associated with the response content (or the question information to which the response content is directed).

[0060] In step S120, the evaluation service is used to obtain the user's evaluation information for the response content feedback.

[0061] The evaluation information may reflect the quality of the response content. The evaluation information may be a tendency evaluation of the quality of the response content, that is, the evaluation information may only characterize the quality of the response content without including specific evaluation content. The evaluation information may also be a specific evaluation made by the user on the response content, that is, the evaluation information may include specific evaluation content. Exemplarily, the evaluation information may include both the tendency evaluation and the specific evaluation content. Optionally, the evaluation information may also include optimization suggestions for the response content fed back by the user.

[0062] In step S130, the related question and answer selection service is used to obtain the related question and answer information selected by the user for the answer content.

[0063] The associated question and answer information may include question information associated with the answer content. Optionally, the associated question and answer information may also include answer content associated with the answer content.

[0064] In each round of question-answering, the generative model generates answers for the question information in the current round. Therefore, the question information associated with the answer content should include the question information that the answer content targets. For the sake of distinction, the question information that the answer content targets can be called the target question information.

[0065] In the multi-round question-answering process, the question information in the current round may be associated with the question information and / or answer content in one or more previous rounds. Therefore, the answer content generated in the current round may also be associated with the question information and / or answer content in one or more previous rounds. Therefore, the question-answering information associated with the answer content may also include the question information and / or answer content in one or more previous rounds.

[0066] Since there must be an association between the target question information and the answer content, the target question information can be directly used as the default selected question information without the need for the user to select or change it. At this time, the associated question and answer information can be the question information and / or answer content determined by the user's selection of the question information and answer content before the round in which the answer content is located, that is, the question information and / or answer content in the previous question and answer round that is associated with the answer content in the current question and answer round to be fed back.

[0067] When the target question information is the default selected question information, the acquired related question and answer information may also be regarded as question information closely related to the target question information and selected by the user for the target question information and located before the question and answer round of the target question information.

[0068] The target question information may not be selected as the default question information, but may be selected by the user. In this way, the associated question and answer information selected by the user may include the target question information, as well as question information and / or answer content in one or more previous rounds.

[0069] The present disclosure does not impose any particular restriction on the execution order between step S120 and step S130. That is, step S120 may be executed first, and then step S130; step S130 may be executed first, and then step S120; or step S120 and step S130 may be executed simultaneously without any particular order.

[0070] The present disclosure has no particular restrictions on the specific implementation forms of the evaluation service and the associated question and answer selection service. For example, the evaluation service and the associated question and answer selection service can both be implemented as an interactive interface, and based on the interactive operations performed by the user on the interactive interface, the evaluation information of the user's feedback on the answer content and the associated question and answer information selected by the user for the answer content can be obtained. For another example, the evaluation service and the associated question and answer selection service can also be implemented as a voice interaction service, which can collect the voice data sent by the user under the voice guidance of the voice interaction service, and obtain the evaluation information of the user's feedback on the answer content and the associated question and answer information selected by the user for the answer content by parsing the voice data (i.e., voice recognition).

[0071] As an example, at least one operation control may be displayed on the answer interface. The answer interface is an interactive interface for users to conduct multiple rounds of questions and answers. Multiple question information and answer content generated for each question information may be displayed on the answer interface in the order of questions and answers. At least one operation control may be displayed in association with each answer content on the answer interface. The operation control may serve as an entry for users to provide feedback on the answer content. In this way, users may provide feedback on one or more answer contents displayed on the answer interface based on the operation control. Feedback includes two aspects: quality evaluation and selection of associated questions and answers.

[0072] Based on the operation performed by the user on the operation control, the evaluation information of the user on the response content feedback can be obtained.

[0073] For example, in response to a user performing a first predetermined operation (such as a click operation) on an operation control, an evaluation interface may be output, in which multiple evaluation levels are displayed, and different evaluation levels are used to characterize different answer qualities; in response to a selection operation performed by a user on multiple evaluation levels, first evaluation information matching the evaluation level selected by the user may be displayed in the evaluation interface; based on the evaluation level selected by the user and the first evaluation information, the evaluation information fed back by the user is determined. The first evaluation information may include one or more first evaluation contents. In the case where the first evaluation information includes multiple first evaluation contents, the first evaluation content selected by the user may also be highlighted in response to a selection operation performed by the user on the multiple first evaluation contents; thus, the evaluation information may include the evaluation level selected by the user and the first evaluation content selected by the user. Optionally, in response to a switching operation performed by the user on the currently selected evaluation level, evaluation information matching the switched evaluation level may be output.

[0074] For another example, at least one operation control associated with each answer content on the answer interface may include a first operation control and a second operation control. The first operation control corresponds to a negative evaluation, and the second operation control corresponds to a positive evaluation. The first operation control can be designed as an icon control such as "like", "light up", etc., and the second operation control can be designed as an icon control such as "step on", "click off", etc. The user can select one from the first operation control and the second operation control to operate according to whether he is satisfied with the answer content. In response to the user performing a second predetermined operation (such as a click operation) on the first operation control, an evaluation interface can be output, in which a plurality of second evaluation contents are displayed, and the second evaluation contents are negative evaluation contents; based on the selection operation performed by the user on the plurality of second evaluation contents, the evaluation information fed back by the user is determined. In this way, the evaluation information of the answer content with poor quality can be obtained. Since the answer content with good quality is not very meaningful for the optimization of the generative model, only the evaluation information of the answer content with poor quality can be collected. Based on this, in response to the user performing a third predetermined operation (such as a click operation) on the second operation control, the evaluation interface can no longer be output. In which, in response to the user performing a third predetermined operation (such as a click operation) on the second operation control, the effect of the response content being positively evaluated (such as liked, lit) can be displayed in the response interface.

[0075] The evaluation interface can be displayed in a specific area of ​​the response interface in an overlay display manner. Alternatively, the evaluation interface and the response interface can also be two independent interactive interfaces, and when one interface is displayed, the other interface can be hidden.

[0076] The evaluation interface may also include a first associated question and answer selection control. In response to the user performing a fourth predetermined operation (such as a click operation) on the first associated question and answer selection control, the evaluation interface may be switched to the answer interface, and the question information and answer content in the answer interface may be in a selectable state. The question information and answer content in a selectable state may be the question information and answer content that are located before the question information (i.e., the target question information) corresponding to the answer content that the user currently wants to feedback. That is, the target question information in the answer interface may be in a selected state by default; the question information and answer content that are located before the target question information in the answer interface may be in a selectable state; and the question information and answer content that are located after the target question information in the answer interface may be in a non-selectable state. Based on the selection operation performed by the user on the question information and / or answer content in the answer interface, the associated question and answer information is obtained.

[0077] The evaluation interface may also include a second associated question and answer selection control. In response to the user performing a fifth predetermined operation (such as a click operation) on the second associated question and answer selection control, a question information list may be displayed in the evaluation interface, and the question information list includes question information and answer content in multiple rounds of question and answer processes. The question information and answer content displayed in the question information list may be the question information and answer content that are located before the question information (i.e., the target question information) corresponding to the answer content that the user currently wants to feedback. That is, the target question information is in a selected state by default. The question information and answer content that are located before the target question information in the answer interface can be displayed in the question information list. Based on the selection operation performed by the user on the question information and / or answer content in the question information list, the associated question and answer information is obtained.

[0078] The evaluation interface may also include an input control. The input control may be, but is not limited to, any one of a text input control, a voice input control, and an image input control. The present disclosure may also obtain feedback information input by the user through the input control. The feedback information may be the user's idea suggestions for improving the desired generative model based on the feedback of the response content.

[0079] In step S140, the generative model is optimized based on the evaluation information and the associated question and answer information.

[0080] The evaluation information can represent the quality of the answer content. The associated question and answer information can represent the question information and / or answer content associated with the answer content during multiple rounds of question and answer.

[0081] If the evaluation information is a negative evaluation, it indicates that the quality of the response content generated by the generative model for the question information is poor. In other words, the response content generated by the generative model for the question information cannot meet the user's needs and needs to be optimized. On the contrary, if the evaluation information is a positive evaluation, it indicates that the quality of the response content generated by the generative model for the question information is good. In other words, the response content generated by the generative model for the question information can meet the user's needs.

[0082] Therefore, the generative model can be optimized based on the evaluation information that belongs to negative evaluation and the related question and answer information. On the one hand, this answer optimization method gives users enough space to customize the content for the generative model to learn, so that the answer content generated by the generative model can be more in line with the user's customized needs, with higher accuracy and better user experience. On the other hand, this answer optimization method has fewer restrictions on the scale and computing power of the generative model. For example, a small-scale generative model can be used to implement this solution, and there is no need to use a large GPT model that has high requirements for computing power and equipment. This greatly reduces the application threshold of the generative model. Through this user-defined selection feedback answer optimization method, the small model can also achieve the accuracy of the large model, which greatly reduces a series of costs such as computing power, training, and equipment, and is more conducive to the application and promotion of the generative model in the field of intelligent answering.

[0083] The present disclosure has no particular restrictions on the specific optimization method of the generative model.

[0084] Exemplarily, based on the evaluation information and the associated question and answer information, the standard answer to the question information targeted by the answer content can be determined; based on the standard answer and the associated question and answer information, the generative model can be fine-tuned. The standard answer can be obtained by manual annotation, and the standard answer can be used as a label for the training sample. The associated question and answer information can be used as a training sample or a part of a training sample. For example, when the associated question and answer information includes the question information targeted by the answer content and the question information selected from one or more previous question and answer rounds, the associated question and answer information can be used as a training sample (i.e., the input of the generative model); when the associated question and answer information only includes the question information selected from one or more previous question and answer rounds, but does not include the question information targeted by the answer content, the associated question and answer information and the question information targeted by the answer content can be used as training samples (i.e., the input of the generative model). Fine-tuning the generative model means training the generative model using supervised learning so that the model learns how to generate more accurate and relevant responses based on the input.

[0085] Exemplarily, unsupervised training samples can also be constructed based on the associated question and answer information, and then the model parameters of the generative model can be updated using a reinforcement learning algorithm (such as the PPO algorithm). The PPO algorithm (Proximal Policy Optimization Algorithms) belongs to the algorithm under the AC framework. While sampling the policy gradient algorithm training method, it reuses the historical sampled data to update the network parameters, thereby improving the learning efficiency of the policy gradient method. The process of optimizing the generative model using the PPO algorithm can be simply described as follows: the model can be packaged by a policy and updated with PPO; the generative model can be used to generate answers based on the associated question and answer information, and the quality score can be given using the quality evaluation model; the quality score can be regarded as the reward of the word sequence in the answer, and then each word in the answer can be regarded as a time step, and the rewards are passed from back to front in sequence, and the resulting policy gradient can update the model parameters.

[0086] So far combined Figure 1 The basic process of the response optimization method is schematically explained.

[0087] FIG. 2A to FIG. 2C A schematic diagram of a question-and-answer feedback process according to an embodiment of the present disclosure is shown.

[0088] like FIG. 2A to FIG. 2C As shown in the figure, the voice data input by the user by triggering the voice question control will be automatically recognized as text-based question information and displayed in a text box near the voice question control. If the question information in the text box is correct, the user can submit the question information by clicking the "Send" control. The backend can use the generative model to obtain the answer content of the question information, and the answer content can be displayed in the answer interface. Based on this question-answering method, multiple rounds of closely related questions and answers can be performed.

[0089] See also Figure 2A , a face-like operation control is set at the end of each text box in the answer interface that is used to carry the answer content. In response to the user triggering the operation control, an evaluation interface can be displayed on the answer interface. A five-star evaluation control is set at the top of the evaluation interface, and the user can operate the five-star evaluation control to select a star rating. Different star ratings correspond to different levels of answer quality. For example, two stars means that the answer quality is poor. Multiple evaluation contents are displayed below the star rating. As the star rating selected by the user changes, the evaluation content displayed below the star rating also changes. For example, when the mouse moves between different star ratings, the evaluation content displayed below changes synchronously. Figure 2A As shown in the figure, when hovering over the second to last star, negative feedback content is displayed. Users can first select a star rating, and then select from multiple evaluation contents displayed for that star rating. After selecting the evaluation content, the panel content is fixed accordingly.

[0090] See also Figure 2A The answer interface also includes a control that allows users to check related questions. When the user triggers (such as clicking) the control, the Figure 2A Switch back to the answer interface to make multiple selections. Figure 2B As shown, the question corresponding to the answer content to be fed back is checked by default and cannot be cancelled. The current answer is checked by default and can be cancelled by the user. The questions and corresponding answers before the question corresponding to the answer content to be fed back are all available for selection. Therefore, users can not only check related questions, but also check related answers.

[0091] like Figure 2C As shown in the figure, when the user clicks "Uncheck" or "Confirm Check", they can return to the previous evaluation interface from the response interface. The evaluation interface also has a "Feedback Reason" control, through which users can enter customized feedback content, such as ideas and suggestions. When the user clicks "Confirm Submission", the user's feedback evaluation information and the checked related questions can be obtained.

[0092] Figure 3A , Figure 3B A schematic diagram of a question-and-answer feedback process according to another embodiment of the present disclosure is shown.

[0093] With the above FIG. 2A to FIG. 2C One difference of the embodiment shown is that in this embodiment, two operation controls representing different evaluation tendencies are set at the end of each text box for carrying the answer content in the answer interface, namely, a "like" control and a "dislike" control. FIG. 2A to FIG. 2C Another difference of the illustrated embodiment is that this embodiment allows the user to select the above-mentioned related questions in the form of a question list.

[0094] Figure 3A This is a diagram of the interface after the user clicks the "tap" control. Figure 3A The evaluation interface has two options: "No close relationship" and "Related to the above". Figure 3A A diagram of the interface after the user selects "Related to the above". Figure 3B When the user is "related to the above text", a question list will be displayed in the evaluation interface. The question list can include all the questions in the above text, and the user can customize and select the questions related to the above text.

[0095] While outputting the response content, the present disclosure may also output a source identifier corresponding to the response content, and the source identifier is used to identify the data source of at least part of the response content. The source identifier is used to identify the data source of at least part of the target response text. The source identifier is used to trace the corresponding content, so that the user can understand the source of the response text, thereby ensuring the authenticity and credibility of the response text to a certain extent. Exemplarily, the response text may carry a source identifier that can be used for tracing, and the source identifier can be used to indicate the source of the response content. That is, the service provided by the present disclosure is not limited to responses, but provides a traceable response service. The so-called traceability means that based on the source identifier, the user can clearly understand the source information of the data source that is consistent with the content of the response text generated by the present disclosure. The content expressed by these data sources is consistent with the content of the response text, and therefore can serve as auxiliary evidence for the reliability of the response text.

[0096] The present disclosure can retrieve related knowledge in the target knowledge base based on the question information to obtain related knowledge, wherein the data scale of the related knowledge is smaller than the data scale of the target knowledge base. The target knowledge base may include at least one of the following: a public knowledge base and a private knowledge base. "Knowledge base" means a collection of knowledge, so the scope of the knowledge base can be customized and specified, and the present disclosure has no special restrictions on this. A public knowledge base means a collection of knowledge within the public scope, which may include but is not limited to at least one of the following: public web pages, public data sets, public information, etc., without exhaustive list. Accordingly, a private knowledge base means a collection of knowledge within the private scope, which may include but is not limited to at least one of the following: process documents, product information, communication data, customer data, sales data, financial data, human data, etc., without exhaustive list.

[0097] For example, a common private knowledge base can be a private knowledge base within an enterprise (or a school or family within a preset scope). This knowledge is generally circulated within the enterprise to support the operation or business promotion of the enterprise. Taking the private knowledge base of an enterprise as an example, the process documents may involve at least one of the following: documents related to the approval process, documents related to the acceptance process, documents related to the product release process, etc.; and product information may include but is not limited to at least one of the following: product introduction information, product code, product acceptance information, product pictures, product patent information, etc., which cannot be exhaustive; and communication data may include but is not limited to: emails, chat software communication records or screenshots, meeting minutes, meeting screen recordings, etc., which cannot be exhaustive.

[0098] For example, when the target knowledge base is a private knowledge base, the disclosure can be used to achieve a quick response to the private knowledge base, which is conducive to efficiently acquiring any knowledge within the private knowledge base and improving the efficiency of knowledge utilization. Therefore, the disclosure can be applied to enterprise-level scenarios, using the private knowledge base within the enterprise to acquire, organize and analyze internal information, which can greatly improve the efficiency of knowledge acquisition and utilization.

[0099] The response optimization method disclosed in the present invention can also be implemented as a response optimization device. Figure 4 The structure diagram of the response optimization device according to one embodiment of the present disclosure is shown. The functional units of the response optimization device can be implemented by hardware, software, or a combination of hardware and software that implements the principles of the present disclosure. It can be understood by those skilled in the art that Figure 4 The functional units described can be combined or divided into sub-units to implement the principles of the above invention. Therefore, the description herein can support any possible combination, division, or further limitation of the functional units described herein. The following is a brief description of the functional units that the response optimization device can have and the operations that each functional unit can perform. For the details involved, please refer to the relevant description above, which will not be repeated here.

[0100] See also Figure 4 , the answer optimization device 400 may include a providing module 410, a first obtaining module 420, a second obtaining module 430 and an optimizing module 440. The providing module 410 is used to provide an evaluation service and an associated question and answer selection service for the answer content, and the answer content is generated by the generative model based on at least one question information in a multi-round question and answer process. The first obtaining module 420 is used to use the evaluation service to obtain the evaluation information of the user's feedback on the answer content. The second obtaining module 430 is used to use the associated question and answer selection service to obtain the associated question and answer information selected by the user for the answer content. The optimizing module 440 is used to optimize the generative model based on the evaluation information and the associated question and answer information.

[0101] The providing module 410 may display at least one operation control on the response interface; the first obtaining module 420 may obtain the evaluation information of the user on the response content feedback based on the operation performed by the user on the operation control.

[0102] As an example, the first acquisition module 420 may include a first output module, a first display module, and a first determination module. The first output module is used to output an evaluation interface in response to the user performing a first predetermined operation on the operation control, in which multiple evaluation levels are displayed; the first display module is used to display the first evaluation information matching the evaluation level selected by the user in the evaluation interface in response to the user performing a selection operation on multiple evaluation levels; the first determination module is used to determine the evaluation information fed back by the user based on the evaluation level selected by the user and the first evaluation information. The first display module can also output evaluation information matching the evaluation level after switching in response to the user performing a switching operation on the currently selected evaluation level. The first evaluation information may include multiple first evaluation contents, and the response optimization device 400 may also include a highlight display module. The highlight display module is used to highlight the first evaluation content selected by the user in response to the user performing a selection operation on multiple first evaluation contents; wherein the evaluation information includes: the evaluation level selected by the user; and the first evaluation content selected by the user.

[0103] As an example, at least one operation control includes a first operation control and a second operation control, and the first acquisition module 420 may include a second output module and a second determination module. The second output module is used to output an evaluation interface in response to the user performing a second predetermined operation on the first operation control, wherein a plurality of second evaluation contents are displayed in the evaluation interface, and the second evaluation contents are negative evaluation contents. The second determination module is used to determine the evaluation information fed back by the user based on the selection operation performed by the user on the plurality of second evaluation contents.

[0104] The evaluation interface may also include a first associated question and answer selection control. The second acquisition module 430 may include a switching module and a first acquisition submodule. The switching module is used to switch from the evaluation interface to the answer interface in response to the user performing a fourth predetermined operation on the first associated question and answer selection control, and the question information and answer content in the answer interface may both be in a selectable state; the first acquisition submodule is used to obtain the associated question and answer information based on the selection operation performed by the user on the question information and / or answer content in the answer interface.

[0105] The evaluation interface may further include a second associated question and answer selection control, and the second acquisition module 430 may include a second display module and a second acquisition submodule. The second display module is used to display a question information list in the evaluation interface in response to the user performing a fifth predetermined operation on the second associated question and answer selection control, and the question information list includes question information and answer content in the multiple rounds of question and answer process; the second acquisition submodule is used to obtain the associated question and answer information based on the selection operation performed by the user on the question information and / or answer content in the question information list.

[0106] The evaluation interface may further include an input control, and the response optimization device 400 may further include a third acquisition module. The third acquisition module is used to acquire feedback information input by the user through the input control.

[0107] The optimization module 440 may include a third determination module and a fine-tuning module. The third determination module is used to determine the standard answer to the question information targeted by the answer content based on the evaluation information and the related question and answer information; the fine-tuning module is used to fine-tune the generative model based on the standard answer and the related question and answer information.

[0108] The answer optimization device 400 may further include a retrieval module and a fourth acquisition module. The retrieval module is used to retrieve related knowledge in the target knowledge base based on the question information to obtain related knowledge, wherein the data scale of the related knowledge is smaller than the data scale of the target knowledge base; the fourth acquisition module is used to use the question information and the related knowledge as inputs of the generative model, and obtain the output result of the generative model to obtain the answer content.

[0109] Figure 5 A schematic diagram of the structure of a computing device that can be used to implement the above-mentioned response optimization method according to an embodiment of the present invention is shown.

[0110] See also Figure 5 , the computing device 500 includes a memory 510 and a processor 520 .

[0111] The processor 520 may be a multi-core processor or may include multiple processors. In some embodiments, the processor 520 may include a general-purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), etc. In some embodiments, the processor 520 may be implemented using a customized circuit, such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).

[0112] The memory 510 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 520 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at runtime. In addition, the memory 510 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 510 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, mini SD card, Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.

[0113] The memory 510 stores executable codes, and when the executable codes are processed by the processor 520 , the processor 520 can execute the response optimization method mentioned above.

[0114] The response optimization method, apparatus, and computing device according to the present invention have been described in detail above with reference to the accompanying drawings.

[0115] In addition, the method according to the present invention may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing the above steps defined in the above method of the present invention.

[0116] Alternatively, the present invention may also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or computing device, server, etc.), the processor executes the various steps of the above-mentioned method according to the present invention.

[0117] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or a combination of both.

[0118] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system and method according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0119] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A response optimization method, characterized in that: include: Providing an evaluation service for the answer content and a related question and answer selection service, wherein the answer content is generated by a generative model based on at least one question information in a multi-round question and answer process; Using the evaluation service to obtain the user's evaluation information for the response content; Using the related question and answer selection service to obtain related question and answer information selected by the user for the answer content; The generative model is optimized based on the evaluation information and the associated question and answer information.

2. The method according to claim 1, characterized in that: Providing an evaluation service for the answer content and a related question and answer selection service, including: displaying at least one operation control on the answer interface; The evaluation service is used to obtain the evaluation information of the user for the response content feedback, including: based on the operation performed by the user on the operation control, obtaining the evaluation information of the user for the response content feedback.

3. The method according to claim 2, characterized in that Based on the operation performed by the user on the operation control, obtaining evaluation information of the user on the response content feedback, including: In response to a user performing a first predetermined operation on the operation control, outputting an evaluation interface, wherein a plurality of evaluation levels are displayed in the evaluation interface; In response to a selection operation performed by a user on the multiple evaluation levels, displaying first evaluation information matching the evaluation level selected by the user in the evaluation interface; Based on the evaluation level selected by the user and the first evaluation information, the evaluation information fed back by the user is determined.

4. The method according to claim 3, characterized in that The first evaluation information includes a plurality of first evaluation contents, and the method further includes: in response to a selection operation performed by a user on the plurality of first evaluation contents, highlighting and displaying the first evaluation content selected by the user; The evaluation information includes: an evaluation level selected by a user; and a first evaluation content selected by a user.

5. The method according to claim 1, characterized in that Optimizing the generative model based on the evaluation information and the associated question and answer information includes: Determining a standard response to the question information to which the response content refers based on the evaluation information and the associated question and answer information; Based on the standard response and the associated question and answer information, fine-tune the generative model.

6. The method according to claim 1, characterized in that The generative model includes: a text generation model and a multimodal plug-in; The text generation model is used to generate a response text, and the multimodal plug-in is used to generate multimodal response content, and the multimodal response content includes at least one of the following: a vector diagram, a video, an image, a table, and a voice.

7. A response optimization device, characterized in that: include: Providing a module for providing an evaluation service for a response content and a related question and answer selection service, wherein the response content is generated by a generative model based on at least one question information in a multi-round question and answer process; A first acquisition module, configured to use the evaluation service to acquire the evaluation information of the user for the response content feedback; A second acquisition module is used to acquire the related question and answer information selected by the user for the answer content by using the related question and answer selection service; An optimization module is used to optimize the generative model based on the evaluation information and the associated question and answer information.

8. A computing device comprising: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 6.

9. A computer program product, comprising executable codes, which, when executed by a processor of an electronic device, causes the processor to perform the method according to any one of claims 1 to 6.

10. A non-transitory machine-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Questions and answers evaluation method and device for questions and answers system

    CN105701208A

  • Intelligent customer service method and system

    CN109033428A

  • Intelligent question and answer method and device, computer readable storage medium and electronic equipment

    CN112579757A

  • Question answering systems

    EP3832485A1

  • Method and system for improving content searching in a question and answer customer support system by using a crowd-machine learning hybrid predictive model

    US20180032890A1