Response method and device, equipment and storage medium
Generating and displaying the intermediate process information of intelligent question and answer results through a generative model solves the problem of low user credibility of intelligent question and answer results and improves the interpretability and trust of complex business issues.
Patent Information
- Application Number
- CN202310854523.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-12
- Publication Date
- 2024-10-11
AI Technical Summary
How to improve users' credibility of intelligent question and answer results, especially when facing complex business problems, existing technology is difficult to effectively improve users' credibility of answer results.
By obtaining the question information, use the generative model to generate response content, and output the response results and intermediate process information, including intermediate step information, step question information and step reply information, display the reasoning process of the response results, and provide quick reply functions and interface interaction methods , enhance the interpretability of response results for users.
It improves users' credibility and interpretability of intelligent question and answer results, enables users to understand the reasoning process behind the answer results, and enhances understanding and trust of complex business issues.
Smart Images

Figure CN118760741A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a response method, device, equipment and storage medium. Background Art
[0002] With the promotion and application of intelligent question and answer in various fields, intelligent question and answer technology has attracted much attention.
[0003] A key to promoting the application of intelligent question-answering technology is to enhance users' credibility in intelligent question-answering results.
[0004] Take the enterprise-oriented GPT (Generative Pre-Trained Transformer) dialogue products as an example. This type of dialogue product needs to answer more complex business questions for users. For example, making a PPT on a certain topic, calculating the packing space utilization rate of a certain type of container, etc. For such more professional and complex business problems, how to improve the user's credibility in the answer results is particularly important.
[0005] Therefore, a solution is needed to improve users' credibility of intelligent question-answering results. Summary of the invention
[0006] A technical problem to be solved by the present disclosure is how to improve the credibility of users in intelligent question and answer results.
[0007] According to the first aspect of the present disclosure, a response method is provided, comprising: obtaining question information; generating response content for the question information using a generative model, the response content comprising a response result and intermediate process information of the response result; and outputting the response result and the intermediate process information in a correlated manner.
[0008] Optionally, the intermediate process information includes: intermediate step information; or intermediate step question information and intermediate step reply information, wherein the intermediate step reply information is input by the user based on the intermediate step question information.
[0009] Optionally, the using of the generative model to generate the response content for the question information includes: splitting the question information into steps to obtain multiple intermediate steps; obtaining intermediate process information of each intermediate step; and using the generative model to process each intermediate process information to obtain the response result.
[0010] Optionally, obtaining the intermediate process information of each intermediate step includes: for at least one intermediate step, using the generative model to process the intermediate process information before the intermediate step to obtain the intermediate process information corresponding to the intermediate step; and / or for at least one intermediate step, outputting intermediate step question information corresponding to the intermediate step, and obtaining information input by the user based on the intermediate step question information to obtain the intermediate step reply information; and / or for at least one intermediate step, calling the service interface corresponding to the intermediate step to obtain the intermediate process information of the intermediate step.
[0011] Optionally, the generative model is used to decompose the question information into steps to obtain multiple intermediate steps, including: obtaining business process description information related to the business involved in the question information; based on the business process description information, using the generative model to generate a step-by-step business processing flow; based on the business goal targeted by the business question information, decomposing and / or screening the steps in the business processing flow to obtain a step-by-step processing flow for achieving the business goal targeted by the business question information, the step-by-step processing flow including the multiple intermediate steps.
[0012] Optionally, the method further includes: mapping the intermediate steps that need to call a service function among the multiple intermediate steps to corresponding service interfaces.
[0013] Optionally, the method further includes: providing a quick reply function; in response to the quick reply function being triggered, automatically locating the intermediate step question information that has not yet been replied.
[0014] Optionally, the response result and the intermediate process information are output in association, including: displaying a first view for carrying the intermediate process information in a response interface; in response to obtaining the response result based on the intermediate process information, hiding at least part of the first view, and displaying a second view for carrying the response result in the response interface.
[0015] Optionally, hiding at least a portion of the first view and displaying a second view for carrying the response result in the response interface includes: flipping the first view along a first direction; in response to the first view being flipped to a first predetermined angle, hiding the first view and displaying the second view; flipping the second view along the first direction to a second predetermined angle.
[0016] Optionally, the method further includes: in response to a predetermined operation being triggered, hiding at least a portion of the second view, and displaying the first view in the response interface.
[0017] Optionally, hiding at least a portion of the second view and displaying the first view in the response interface includes: flipping the second view along a second direction; in response to the second view flipping to a third predetermined angle, hiding the second view and displaying the first view; flipping the first view along the second direction to a fourth predetermined angle.
[0018] Optionally, the method also includes: displaying at least one of a stop generation control, a regeneration control, and a change question control in the response interface, the stop generation control being configured to stop generating the response content of the question information in response to the user performing a first predetermined operation on the stop generation control, the regeneration control being configured to regenerate the response content of the question information in response to the user performing a second predetermined operation on the stop generation control, and the change question control being configured to obtain new question information in response to the user performing a third predetermined operation on the change question control.
[0019] According to the second aspect of the present disclosure, a response device is provided, including: an acquisition module for acquiring question information; a generation module for generating response content for the question information using a generative model, the response content including a response result and intermediate process information of the response result; an output module for outputting the response result and the intermediate process information in a correlated manner.
[0020] Optionally, the intermediate process information includes: intermediate step information; or intermediate step question information and intermediate step reply information, wherein the intermediate step reply information is input by the user based on the intermediate step question information.
[0021] Optionally, the generation module includes: a splitting module, used to split the question information into steps to obtain multiple intermediate steps; an acquisition sub-module, used to obtain intermediate process information of each intermediate step; and a processing module, used to use the generative model to process each intermediate process information to obtain the response result.
[0022] Optionally, for at least one intermediate step, the acquisition submodule uses the generative model to process the intermediate process information before the intermediate step to obtain the intermediate process information corresponding to the intermediate step; and / or for at least one intermediate step, the acquisition submodule instructs the output module to output the intermediate step question information corresponding to the intermediate step, and obtains the information input by the user based on the intermediate step question information to obtain the intermediate step reply information; and / or for at least one intermediate step, the acquisition submodule calls the service interface corresponding to the intermediate step to obtain the intermediate process information of the intermediate step.
[0023] Optionally, the processing module obtains business process description information related to the business involved in the question information; based on the business process description information, uses the generative model to generate a step-by-step business processing flow; based on the business objectives targeted by the business question information, decomposes and / or filters the steps in the business processing flow to obtain a step-by-step processing flow for achieving the business objectives targeted by the business question information, wherein the step-by-step processing flow includes the multiple intermediate steps.
[0024] Optionally, the device further comprises: a mapping module, configured to map the intermediate steps that need to call a service function among the multiple intermediate steps to corresponding service interfaces.
[0025] Optionally, the device further includes: a providing module for providing a quick reply function; in response to the quick reply function being triggered, automatically locating the intermediate step question information that has not yet been replied.
[0026] Optionally, the output module displays a first view for carrying the intermediate process information in the response interface; in response to obtaining the response result based on the intermediate process information, the output module hides at least part of the first view and displays a second view for carrying the response result in the response interface.
[0027] Optionally, in response to obtaining the response result based on the intermediate process information, the output module flips the first view along a first direction; in response to the first view being flipped to a first predetermined angle, the output module hides the first view and displays the second view; the output module flips the second view along the first direction to a second predetermined angle.
[0028] Optionally, in response to a predetermined operation being triggered, the output module hides at least a portion of the second view and displays the first view in the response interface.
[0029] Optionally, in response to a predetermined operation being triggered, the output module flips the second view along a second direction; in response to the second view being flipped to a third predetermined angle, the output module hides the second view and displays the first view; the output module flips the first view along the second direction to a fourth predetermined angle.
[0030] Optionally, the output module is also used to display at least one of a stop generation control, a regeneration control, and a change question control in the response interface, the stop generation control being configured to stop generating the response content of the question information in response to the user performing a first predetermined operation on the stop generation control, the regeneration control being configured to regenerate the response content of the question information in response to the user performing a second predetermined operation on the stop generation control, and the change question control being configured to obtain new question information in response to the user performing a third predetermined operation on the change question control.
[0031] 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.
[0032] According to a fourth aspect of the present disclosure, a computer program product is provided, comprising an executable code, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described in the first aspect above.
[0033] According to a fifth aspect of the present disclosure, a non-temporary 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.
[0034] Therefore, the present invention utilizes a generative model to generate response results and intermediate process information of the response results for question information, and outputs the response results and the intermediate process information in a related manner, so that users can not only obtain the response results of the question information, but also learn the reasoning process behind the response results based on the output intermediate process information, thereby improving the interpretability of the response results and the user's credibility in the response results. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] 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.
[0036] Figure 1 A schematic flow chart of a response method according to an embodiment of the present disclosure is shown.
[0037] Figure 2 A schematic flowchart of a process for generating response content according to an embodiment of the present disclosure is shown.
[0038] FIG. 3A to FIG. 3M A schematic diagram showing the interactive interface during the question-and-answer process.
[0039] Figure 4 A schematic structural diagram of a response device according to an embodiment of the present disclosure is shown.
[0040] Figure 5 A schematic diagram of the structure of a computing device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0041] 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.
[0042] Figure 1 A schematic flow chart of a response method according to an embodiment of the present disclosure is shown.
[0043] The answering method disclosed in the present invention can be applied to any scenario where a question needs to be answered, and can be applied to a question-answering scenario for an enterprise. In a question-answering scenario for an enterprise, questions are usually questions related to a specific business. The present invention can provide business question-answering services for users on the enterprise side in the form of intelligent customer service, enterprise-internal answering assistant services (or applications, applets, etc.), etc.
[0044] Taking the enterprise-oriented question-and-answer scenario as an example, the present disclosure can be applied to a variety of business scenarios, such as but not limited to cargo assembly, reimbursement approval, construction site fault handling, component failure analysis, product design, meeting reservation, enterprise operation decision-making and other business scenarios.
[0045] The answering method disclosed in the present invention can be executed by any electronic device. For example, the method can be executed by a computing device with computing and analysis functions; the computing device can be a terminal device, and the terminal device can be such as a tablet computer, a laptop computer, a mobile phone, a computer, a digital assistant, a wearable device, etc.; or, the computing device can be an overall system constructed by a terminal and a server, wherein the terminal is responsible for the human-computer interaction part, and the server can be used for the computing part such as content generation; wherein the server can be an independent server, or a server cluster, or a cloud computing platform or a virtualization center.
[0046] See also Figure 1 , in step S110, obtain question information.
[0047] The present disclosure has no particular restrictions on the form and acquisition method of the question information. Based on the different application scenarios of the technical solution provided by the present disclosure, the question information can be acquired in different ways. Exemplarily, the form of the question information can include but is not limited to: text form, audio form, image form, video form, etc., which are not exhaustive.
[0048] Exemplarily, a question control can be displayed on the display interface of the terminal, so that question information can be obtained based on the data input by the user triggering the question control. Exemplarily, the question control can be displayed on any display interface of the electronic device, that is, the technical solution provided by the present disclosure can be applied to any human-computer interaction scenario; or, the question control can be displayed only on a specified interface, such as a preset question-and-answer interface. The present disclosure has no special restrictions on the type of display interface and the way in which the question control is displayed. The display interface may include but is not limited to at least one of the following: an application interface, a desktop display interface, a web browsing interface, a document display interface, etc., and the question control display method can be custom designed, for example, it can be displayed in the sidebar of the application interface, or it can be displayed in the taskbar of the desktop, etc., without exhausting them.
[0049] In a possible embodiment, text data input by a user triggering a text question control may be obtained to obtain question information. Alternatively, in another possible embodiment, voice data input by a user triggering a voice question control may be obtained to obtain question information. Alternatively, in another possible embodiment, image data input by a user triggering an image question control may be obtained, and the image data may be parsed to obtain question information. Alternatively, in another possible embodiment, video data input by a user triggering a video question control may be obtained, and questions contained in or specified in the video data may be parsed to obtain question information.
[0050] In the various possible embodiments described above, the question control may have different forms of expression. Exemplarily, it may be expressed as a "question button" or "question input box" displayed in the display interface of the electronic device. For example, the user may click or trigger the question button by other preset methods, and then enter the question interface or question input interface for user input. The question input box may be in the form of a text input box, a voice input button, a picture or video upload (or screenshot method) area, etc.
[0051] It should be understood that when the question information is in audio form, the terminal or the external device of the terminal needs to have audio collection capabilities. In this way, the aforementioned question information can be collected by the terminal itself, or it can be collected through an external input device. For example, when the terminal is connected to smart wearable devices such as headphones and smart watches with audio collection capabilities, the question information raised by the user can be collected through the smart wearable device. Similarly, when the question information is in the form of video or picture, the terminal (or back-end server) needs to have video (or picture) parsing capabilities to parse the user's question information, and the parsing method is not limited here.
[0052] In addition, in an optional embodiment, in order to facilitate subsequent processing, when non-text type question information is obtained, the collected question information can also be processed into text to obtain question information in text form.
[0053] In step S120, a generative model is used to generate response content for the question information, and the response content includes a response result and intermediate process information of the response result.
[0054] A generative model refers to a model that has the ability to generate text. A generative model, also known as a language generative model, mainly includes a text generative model. The input of a generative model can be unimodal data (such as one of text, images, audio, and video) or multimodal data (such as at least two of text, images, audio, and video); the output of a generative model can be unimodal data such as "text" or multimodal data including "text".
[0055] In other words, the generative model can support the processing of data of one or more modalities and generate one or more modal data including text. For example, the generative model can be a large model with multimodal data processing capabilities and multimodal data generation capabilities. For another example, the generative model can also be a small model with only text processing capabilities and text generation capabilities.
[0056] 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.
[0057] The answer result can be regarded as the final answer result of the question information. The intermediate process information can reflect the reasoning process of obtaining the answer result. For the question information, the present disclosure not only obtains the answer result of the question information, but also obtains the intermediate process information of the answer result (ie, the reasoning process information).
[0058] In this application, the intermediate process information is used to show the intermediate process of the final answer result, which can also be called a thought chain, a process chain, etc. It should be noted that the intermediate process information can be automatically generated by the computer execution subject, or it can also be generated based on some data input by the user (or administrator, etc.). For example, the user can input the intermediate steps of his question information in advance or in real time, and the generative model generates the final answer result based on these intermediate steps.
[0059] In step S130, the response result and the intermediate process information are output in association.
[0060] There are many ways to output the response result and the intermediate process information in association, such as displaying them in sequence in the same interface, or displaying them in the form of front and back sides in a card, or displaying one and hiding the other in a display interface, switching in response to a reservation operation, etc., which are not exhaustive. In any of the implementations, the intermediate process information and the response result can be displayed simultaneously or in association with each other in a switching manner.
[0061] The intermediate process information can reflect the reasoning process behind the answer result. By outputting the answer result and the intermediate process information in a related manner, the user can not only obtain the answer result of the question information, but also learn the reasoning process behind the answer result based on the output intermediate process information, thereby improving the interpretability of the answer result and the user's credibility of the answer result.
[0062] The following is a further exemplary description of the generation process and output method of the response content.
[0063] The process of generating the response content
[0064] The reasoning process of obtaining the answer result from the question information usually includes one or more intermediate steps. In order to more clearly characterize the reasoning process of the answer result, the intermediate process information may refer to the intermediate process information of each intermediate step. That is, each intermediate step has an intermediate process information.
[0065] For an intermediate step in the reasoning process, the intermediate step may not require user input or may require user input. For an intermediate step that does not require user input, the intermediate process information of the intermediate step may include intermediate step information. For an intermediate step that requires user input, the intermediate process information of the intermediate step may include intermediate step question information and intermediate step reply information. The intermediate step reply information is input by the user based on the intermediate step question information. The intermediate step information refers to the information of the intermediate step that does not require user input obtained by splitting the custom steps.
[0066] Optionally, the intermediate process information may also include the reasoning result of the current stage. The reasoning result of the current stage may be regarded as the answer result or thinking result of the current stage. The reasoning result of the current stage may be obtained by processing the intermediate process information of the current intermediate step and / or the intermediate process information of the intermediate step before the current step using the generative model. The reasoning result of the current stage may enable the user to more clearly understand the thinking results of the question information at different stages.
[0067] Figure 2 A schematic flowchart of a process for generating response content according to an embodiment of the present disclosure is shown.
[0068] See also Figure 2 In step S210, the question information is split into steps to obtain multiple intermediate steps.
[0069] The obtained multiple intermediate steps can represent the step-by-step processing flow of the target (such as business target) targeted by the question information (such as business question information). The target targeted by the question information is also the target that the user expects to achieve. The target targeted by the question information is usually a more specific target, such as invoice reimbursement, component failure analysis, etc.
[0070] If there is already a step-by-step process flow for the target targeted by the question information (such as in the business system), for example, there is a step-by-step process flow pre-entered by the user or input in real time in the business system, then the step-by-step process flow can be directly obtained. Conversely, if there is no step-by-step process flow for the target targeted by the question information, then the step-by-step process flow for the target targeted by the question information can be generated in real time.
[0071] Taking the application of the present disclosure to an enterprise-oriented business question-and-answer scenario as an example, the question information may refer to business question information. The present disclosure may first obtain business process description information related to the business involved in the question information; then, based on the business process description information, use a generative model to generate a step-by-step business processing flow; finally, based on the business objectives targeted by the business question information, decompose and / or filter the steps in the business processing flow to obtain a step-by-step processing flow for achieving the business objectives targeted by the business question information, and the step-by-step processing flow includes multiple intermediate steps.
[0072] The business process description information may be any information describing at least part of the business process of the business involved in the business question information. The present disclosure may obtain the business description information through various channels (such as business systems, network resources, and industry knowledge bases). The obtained business process description information may include, but is not limited to, one or more of the following: process introduction documents, operating instructions, rules and regulations, chat records, emails, contracts, meeting records, and office system circulation records.
[0073] The best case scenario is that the business process description information obtained is a well-formatted (specifically step-by-step) business process introduction document, such as a document specifically used to guide related business processes (such as operating instructions, process introductions, and other step-by-step documents).
[0074] Normally, the business process description information obtained is not a well-formatted (specific steps) business process introduction document, but rather record information of the relevant business process, such as but not limited to chat records, emails, contracts, meeting records, office system flow records, and other record information.
[0075] If the acquired business process description information is a well-formatted (specifically in steps) business process introduction document, the document can be directly used as the structural basis for constructing a step-by-step business process flow, that is, the step-by-step business process flow can be directly obtained based on the document.
[0076] If the acquired business process description information is not a well-formatted (specifically in steps) business process introduction document, but a record of the relevant business process, then the relevant records can be analyzed using search engines, generative models and other technologies, for example: summarizing the fragments of the process involved in the chat records, filtering and extracting indicative fragments in emails, analyzing the time relationship between the clauses in the contract, etc., to obtain a step-by-step business process. As an example, the business process description information can be searched using search technologies such as keyword matching and / or semantic matching to obtain business processing records related to the business targeted by the business question information, and then the searched business processing records can be processed using a generative model to obtain a step-by-step business process.
[0077] The obtained step-by-step business process can be regarded as a complete business process summarized based on past records, while the business goal targeted by the question information may only involve part of the business process.
[0078] That is, the business goal that the user requests to achieve does not necessarily require the complete steps summarized based on the previous records, but may only require a few specific steps. Therefore, it is necessary to decompose and / or filter the steps in the business process based on the business goal targeted by the question information to obtain a step-by-step process flow for achieving the business goal targeted by the business question information.
[0079] As an example, based on the business question information and the identity information of the user who initiated the business question information, the business processing part that can be executed under the user's authority to resolve the business question information can be determined; based on the business processing part that the user can execute, the steps in the business processing flow are decomposed and / or filtered to obtain a step-by-step processing flow for achieving the business goal targeted by the business question information.
[0080] The step-by-step processing flow includes one or more intermediate steps. The step-by-step processing flow can be regarded as a reasoning process for obtaining the final response result for the business question information. Considering that the intermediate steps in the step-by-step processing flow may involve the call of specific functions of some internal systems, the present disclosure proposes that the intermediate steps in the step-by-step processing flow that need to call the service function can also be mapped to the corresponding service interface for subsequent calls.
[0081] When performing mapping, the best case is that there is a mapping document for characterizing the mapping relationship between steps and service interfaces, such as a mapping document for the internal execution interface; the normal case is that there is no mapping document for characterizing the mapping relationship between steps and service interfaces. If there is a mapping document for characterizing the mapping relationship between steps and service interfaces (i.e. the best case), the mapping document can be used to map the intermediate steps in the step-by-step processing flow that require calling service functions to the corresponding service interfaces. If there is no mapping document for characterizing the mapping relationship between steps and service interfaces (i.e. the normal case), the generative model can be used to map the intermediate steps in the step-by-step processing flow that require calling service functions to the corresponding service interfaces.
[0082] In step S220, the intermediate process information of each intermediate step is obtained.
[0083] The multiple intermediate steps obtained can be roughly divided into three categories: the first category is the steps that need to be executed based on the execution results of the previous steps; the second category is the steps that lack user input; and the third category is the steps that need to call specific service interfaces.
[0084] To this end, the present disclosure proposes that, for at least one intermediate step, the intermediate process information before the intermediate step can be processed using a generative model to obtain the intermediate process information corresponding to the intermediate step; and / or for at least one intermediate step, the intermediate step question information corresponding to the intermediate step is output, and the information input by the user based on the intermediate step question information is obtained to obtain the intermediate step reply information; and / or for at least one intermediate step, the service interface corresponding to the intermediate step is called to obtain the intermediate process information of the intermediate step.
[0085] In step S230, at least one intermediate process information is processed using a generative model to obtain a response result.
[0086] At least one intermediate process information (such as the intermediate process information of the last intermediate step, or the intermediate process information of each step) can be used as the input of the generative model to obtain the response result. By first obtaining the step-by-step processing flow, and then obtaining the response result based on the intermediate process information of at least one intermediate step in the step-by-step processing flow, the effectiveness and professionalism of the obtained result can be ensured.
[0087] 2. Output method of response content
[0088] The present disclosure does not impose strict restrictions on the output method of the response result and the intermediate process information. For example, the response result and the intermediate process information can be output in the form of, but not limited to, text, voice, image, or video.
[0089] In the present application, in the response interface, one of the first view or the second view may be displayed first, and in response to a predetermined operation being triggered, the currently displayed view is hidden and another view is displayed in the response interface.
[0090] Among them, the predetermined operation can be a user's touch operation, or it can also be reaching a preset time length, or, when the first view corresponding to the intermediate process is first displayed, the predetermined operation can also be the completion of the display of the intermediate process information, and the list is not exhaustive.
[0091] As an example, the first view used to carry the intermediate process information can be displayed in the response interface first according to the order in which the intermediate process information and the response result are generated, and the first view can display the intermediate process information of each intermediate step in the order in which they are executed. In response to obtaining a response result based on the intermediate process information, at least part of the first view can be hidden (such as the first view can be folded), and the second view used to carry the response result can be displayed in the response interface. After the second view is displayed, at least part of the second view can be hidden in response to a predetermined operation being triggered, and the first view can be displayed in the response interface.
[0092] In the opposite embodiment, the interface of the second view may be displayed first, that is, the response result may be displayed first, and the second view may be hidden in response to a reservation operation (which may be the same as or different from the reservation operation in the previous embodiment, without limitation), and the first view may be displayed. Afterwards, the first view may be hidden and the second view may be displayed in response to the same or another reservation operation being triggered. No further description is given.
[0093] Considering that the intermediate process information represents the reasoning process behind the answer result, in order to make the display of the answer result and the intermediate process information reflect the reasoning relationship behind it, in the embodiment of the present disclosure, the first view and the second view can be switched in the form of a flip animation. That is, the first view and the second view can be regarded as the front and back sides of a card, or the first view and the second view can also be regarded as two pages of a book. In this embodiment, the first view and the second view are in a replacement relationship, not an overlay relationship.
[0094] Specifically, in response to obtaining a response result based on the intermediate process information, the first view can be flipped along a first direction (such as counterclockwise in a vertical plane); in response to the first view being flipped to a first predetermined angle (such as 90° or 180° or others, not exhaustive), the first view can be hidden and the second view can be displayed; the second view can be flipped along the first direction to a second predetermined angle (such as 90° or 180°).
[0095] In response to a predetermined operation being triggered, the second view can be flipped along a second direction (such as a clockwise direction in a vertical plane); in response to the second view being flipped to a third predetermined angle (such as 90° or 180°), the second view can be hidden and the first view can be displayed; the first view can be flipped along the second direction to a fourth predetermined angle (such as 90° or 180°).
[0096] In this way, by implementing the switching display between the first view and the second view in the form of a flip animation, the user can perceive the reasoning logic behind the answer result from a visual perspective, thereby enhancing the user's credibility of the answer result.
[0097] In another embodiment of the present disclosure, the first view and the second view may also be displayed in association with each other in the same response interface.
[0098] In another embodiment of the present disclosure, the first view and the second view may also be displayed in association in the form of a gradual transparency change. For example, in response to a reservation operation, one of the views (such as the first view) is displayed in a semi-transparent or fully transparent form, while the other view (such as the second view) is displayed in a completely opaque form. This is not exhaustive.
[0099] The present disclosure may also display at least one of a stop generation control, a regeneration control, and a change question control in the answer interface. The stop generation control may be configured to stop generating the answer content of the question information in response to the user performing a first predetermined operation on the stop generation control. The regeneration control may be configured to regenerate the answer content of the question information in response to the user performing a second predetermined operation on the stop generation control. The change question control may be configured to obtain new question information in response to the user performing a third predetermined operation on the change question control.
[0100] The present disclosure may also provide a quick reply function; in response to the quick reply function being triggered, the intermediate step question information that has not yet been replied to may be automatically located.
[0101] Combine the following FIG. 3A to FIG. 3M The interactive process of the present disclosure is exemplified.
[0102] This embodiment can be implemented as a GPT-type dialogue product for the B-side (i.e., the enterprise side) to answer more complex business questions for users. For example, making a PPT on a certain topic, calculating the packing space utilization rate of a certain type of container, etc. For such questions, in order to ensure the validity of the final answer, the GPT-type dialogue product will ask the user for some input information, and at the same time expose its own calculation process to the user to the greatest extent in the form of a thinking chain (the thinking chain is to show the reasoning process of obtaining the final result), so as to ensure the professionalism, validity, explainability and credibility of the final result.
[0103] In this embodiment, the interaction process can be divided into several stages, including generating a reply, generating intermediate process information, waiting for user input, user input, end of thought chain, and reply completion, and an interaction scheme can be defined for each stage.
[0104] The thought chain is used to represent the processing logic behind the response result. The thought chain is equivalent to the step-by-step processing flow mentioned above.
[0105] The reply box for question information can be divided into a final result card (corresponding to the second view mentioned above), a control bar (stop generating icon), a thinking chain card (corresponding to the first view mentioned above), and a waiting input module.
[0106] The final result card is used to carry the direct answer / final answer to the user's question.
[0107] For more complex answering tasks, you can expand the thought chain card by default in the reply box. If you have not obtained the final answer (i.e. the answer result), the thought chain card does not need to be collapsed.
[0108] The "Waiting for Input" module may include: questions waiting for user input (corresponding to the intermediate step question information mentioned above) and user responses (corresponding to the intermediate step response information mentioned above). The "Waiting for Input" module can be collapsed and expanded. The "Waiting for Input" module may appear in the final result card or in the thought chain card.
[0109] In this embodiment, whether there is a thought chain and whether user input is required are independent relationships (i.e., there are four permutations and combinations). In addition, some answering tasks may not have a thought chain card and a "wait for input" module. For example, for relatively simple question information, the answer result can be directly output without outputting a thought chain card.
[0110] Therefore, the present disclosure can help users distinguish concepts and ensure logical independence between modules by defining and separating the modules included in the robot reply on the product framework.
[0111] Figure 3A A schematic diagram of an interface showing both a thought chain process and a process of waiting for user input is shown.
[0112] See also Figure 3A , the blue area below is the waiting area for user input, which displays questions that require user input. The area outside this area is the content of the thought chain card.
[0113] When users answer questions that are waiting for input, a supporting convenience mechanism can be set up (i.e. the quick reply function mentioned above). The shortcut command for answering questions can be placed in the " / " menu. When there are no questions that users need to answer, there is no such option. Figure 3B A diagram showing the convenience mechanism. Figure 3B , “ / ” can call up a multi-function menu. The multi-function menu includes a quick positioning function. Specifically, when there is a question to be input by the user, there is a quick positioning button in the multi-function menu called up by “ / ”. If the page does not display the question card to be answered, the user will automatically locate the question card to be answered after clicking the quick positioning button.
[0114] For the same answering task, the content is always expanded downward in the reply box instead of presenting the user's reply as a new round of conversation. Figure 3C A schematic diagram of an interface showing user replies in a reply box is shown. Figure 3C , or display the next task progress in the previous reply box. The interactive mechanism of the user input module can be set as follows: when receiving a user reply, the answer is displayed in the input waiting area, and the previous question is folded (can be expanded again). Figure 3D A schematic diagram of the expanded effect is shown.
[0115] like Figure 3E As shown, for at least one intermediate step, the thinking result of the current stage (corresponding to the reasoning result mentioned above) can also be generated based on the intermediate process information.
[0116] Figure 3F The figure shows the interface diagram after the thought chain process is completed. Figure 3F When the thought chain is executed, the final response result can be generated. At this time, the thought chain card can be automatically folded and the final result card can be displayed.
[0117] like Figure 3G As shown, after the final result card is displayed, the thought chain card can be expanded again.
[0118] like Figure 3H As shown in the figure, for tasks that require user input, such as continuous tasks to be input (reply completed, task not completed, waiting for user input), a prompt can be displayed in the command input box. When waiting for user input, a "Change Topic" bubble can be displayed in the command bar below. Fig. 3I As shown in the figure, after the user clicks the bubble, the input box can automatically generate the instruction content of "jump out of the current task and start a new task" (essentially a quick reply), and the user can then continue to enter other content. For tasks that do not require user input, there is no need to display the "change topic" bubble.
[0119] It should be noted that the height of the reply box can change according to the height of the currently displayed card. The thinking chain card and the final result card are not in an overlapping relationship, but a replacement relationship. The timing of folding the thinking chain card can be set to when the last step of the thinking chain is displayed in a streaming manner (that is, the final answer has been generated). The final result card can be set to a maximum height (about one screen, based on visual standards. When the height is exceeded, a scroll bar is displayed inside the card). The scroll bar of the thinking chain card can appear below the horizontal line (that is, the opening remarks and target positions are fixed, and the steps below scroll). The final result card can be a full-height scroll bar.
[0120] The thought chain card and the final result card can be on the back or front. The reply with the thought chain is displayed on the back thought chain card by default. Users can manually flip it to the front, or wait for the thought chain process to complete and then automatically flip it.
[0121] In other words, the reply card can be divided into the front and back. The front is used to carry the direct answer / final answer to the user's question. The back symbolizes the "behind the scenes" and is used to carry the chain of thought. The "Waiting for Input" module can be displayed on either side or both sides.
[0122] For reply cards with thought chains, they can be shown with the back side at the beginning. After the whole thought chain is completed, the card is turned over to the front side. For reply cards without thought chains, the front side of the card is directly displayed.
[0123] The back of the card can also display information related to the thinking chain task, such as but not limited to the task name, creation time, task goal, and task execution process (some intermediate steps have results).
[0124] Figure 3J A schematic diagram of the interface when waiting for user input is shown.
[0125] See also Figure 3J , the intermediate steps in the thought chain can be executed in order, and the process results of each intermediate step can be displayed. The process results can also be hidden in response to user operations. In response to the user clicking the "stop generating" icon, the thought chain can be stopped. In response to the user clicking the "see results" icon, the front of the reply card can be flipped to the front.
[0126] like Figure 3K As shown, if the thinking chain is not completed and the user manually flips over the response card, the front of the card can only display the intermediate steps and the questions to be answered.
[0127] like Figure 3LAs shown in the figure, if there is content to be input (i.e., questions to be answered), the content displayed on the front of the card may include two types of content: thought chain and content waiting for input. The content waiting for input can be highlighted, and the "see process" icon on the right can also be highlighted. Users can answer the questions on the back without turning over the card. After answering, the card can be automatically turned over to the back.
[0128] Figure 3M Schematic diagrams showing the front and back of the resulting card.
[0129] For tasks that do not involve a thought chain, the cards cannot be flipped over, that is, the cards have only one side and there is no "see process" icon.
[0130] Since the front and back contents are not consistent, the height of the front and back of the card can be different.
[0131] Flippable cards are displayed on the reverse side by default. Users can manually flip them at any stage. When the thought chain results are executed to the last step (the last line of streaming display is completed), the card automatically flips. Flipping methods can include but are not limited to horizontal clockwise flipping (the specific method can be based on the visual solution).
[0132] The response method disclosed in the present invention may also be implemented as a response device. Figure 4 FIG. 1 is a schematic diagram showing the structure of a response device according to an embodiment of the present disclosure. The functional units of the response 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 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.
[0133] See also Figure 4 The response device 400 may include an acquisition module 410 , a generation module 420 and an output module 430 .
[0134] The acquisition module 410 is used to acquire question information. The generation module 420 is used to generate response content for the question information using a generative model, and the response content includes a response result and intermediate process information of the response result. The output module 430 is used to output the response result and the intermediate process information in association.
[0135] The generation module 420 may include a splitting module, an acquisition submodule, and a processing module. The splitting module is used to split the question information into steps to obtain multiple intermediate steps; the acquisition submodule is used to obtain the intermediate process information of each intermediate step; the processing module is used to process each intermediate process information using a generative model to obtain a response result.
[0136] For at least one intermediate step, the acquisition submodule can use the generative model to process the intermediate process information before the intermediate step to obtain the intermediate process information corresponding to the intermediate step; and / or for at least one intermediate step, the acquisition submodule can instruct the output module to output the intermediate step question information corresponding to the intermediate step, and obtain the information input by the user based on the intermediate step question information to obtain the intermediate step reply information; and / or for at least one intermediate step, the acquisition submodule can call the service interface corresponding to the intermediate step to obtain the intermediate process information of the intermediate step.
[0137] The processing module can obtain business process description information related to the business involved in the question information; based on the business process description information, use the generative model to generate a step-by-step business processing flow; based on the business objectives targeted by the business question information, decompose and / or filter the steps in the business processing flow to obtain a step-by-step processing flow for achieving the business objectives targeted by the business question information, and the step-by-step processing flow includes multiple intermediate steps.
[0138] The response device 400 may further include a mapping module. The mapping module is used to map the intermediate steps that need to call the service function among the multiple intermediate steps to the corresponding service interface.
[0139] The answering device 400 may further include a providing module. The providing module is used to provide a quick reply function; in response to the quick reply function being triggered, the intermediate step question information that has not been replied to can be automatically located.
[0140] As an example, the output module 430 may display a first view for carrying the intermediate process information in the response interface; in response to obtaining a response result based on the intermediate process information, the output module 430 may hide at least part of the first view and display a second view for carrying the response result in the response interface. For example, in response to obtaining a response result based on the intermediate process information, the output module 430 may flip the first view along a first direction; in response to the first view flipping to a first predetermined angle, the output module 430 may hide the first view and display the second view; the output module 430 may flip the second view along the first direction to a second predetermined angle.
[0141] In response to the predetermined operation being triggered, the output module 430 may also hide at least part of the second view and display the first view in the response interface. For example, in response to the predetermined operation being triggered, the output module 430 may flip the second view along the second direction; in response to the second view flipping to the third predetermined angle, the output module 430 may hide the second view and display the first view; the output module 430 may also flip the first view along the second direction to a fourth predetermined angle.
[0142] The output module 430 may also be used to display at least one of a stop generation control, a regeneration control, and a change question control in the answer interface. The stop generation control may be configured to stop generating the answer content of the question information in response to the user performing a first predetermined operation on the stop generation control. The regeneration control may be configured to regenerate the answer content of the question information in response to the user performing a second predetermined operation on the stop generation control. The change question control may be configured to obtain new question information in response to the user performing a third predetermined operation on the change question control.
[0143] Figure 5 A schematic diagram of the structure of a computing device that can be used to implement the above-mentioned response method according to an embodiment of the present invention is shown.
[0144] See also Figure 5 , the computing device 500 includes a memory 510 and a processor 520 .
[0145] 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).
[0146] 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.
[0147] The memory 510 stores executable codes, and when the executable codes are processed by the processor 520 , the processor 520 can execute the response method mentioned above.
[0148] The answering method, answering device and computing apparatus according to the present invention have been described in detail above with reference to the accompanying drawings.
[0149] 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.
[0150] 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.
[0151] 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.
[0152] 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 square box in the flow chart or block diagram can represent a part of a module, program segment or code, and the part of the module, program segment or 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 square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0153] 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 method, It is characterized in that include: Get question information; Generate a response content to the question information using a generative model, wherein the response content includes a response result and intermediate process information of the response result; The response result and the intermediate process information are output in association.
2. The method according to claim 1, It is characterized in that The intermediate process information includes: intermediate step information; or intermediate step question information and intermediate step reply information, wherein the intermediate step reply information is input by the user based on the intermediate step question information.
3. The method according to claim 2, It is characterized in that The step of using a generative model to generate a response to the question information includes: The question information is split into steps to obtain multiple intermediate steps; Obtain the intermediate process information of each intermediate step; The generative model is used to process each of the intermediate process information to obtain the response result.
4. The method according to any one of claims 1 to 3, It is characterized in that Outputting the response result and the intermediate process information in an associated manner, including: Displaying a first view for carrying the intermediate process information in a response interface; In response to obtaining the response result based on the intermediate process information, at least a portion of the first view is hidden, and a second view for carrying the response result is displayed in the response interface.
5. The method according to claim 4, It is characterized in that Hiding at least a portion of the first view and displaying a second view for carrying the response result in the response interface includes: flipping the first view along a first direction; In response to the first view being flipped to a first predetermined angle, hiding the first view and displaying the second view; The second view is flipped along the first direction to a second predetermined angle.
6. The method according to claim 1, It is characterized in that Also includes: At least one of a stop generation control, a regeneration control, and a change question control is displayed in the answer interface, The stop generation control is configured to stop generating the answer content of the question information in response to the user performing a first predetermined operation on the stop generation control, The regeneration control is configured to regenerate the answer content of the question information in response to the user performing a second predetermined operation on the stop generation control, The replacement question control is configured to obtain new question information in response to a user performing a third predetermined operation on the replacement question control.
7. A response device, It is characterized in that include: The acquisition module is used to obtain question information; A generation module, used to generate a response content for the question information using a generative model, wherein the response content includes a response result and intermediate process information of the response result; An output module is used to output the response result and the intermediate process information in a correlated manner.
8. A computing device, include: 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
Content display method and device based on media information flow, equipment and storage medium
CN111586464A
Mine intelligent question-answering system and method based on auto-encoder
CN113449038A
Information processing method and device, electronic equipment and computer readable storage medium
CN115390953A
Text processing method and device, storage medium and equipment
CN116401354A
Method for creating a dialogue analysis model on the basis of artificial intelligence
WO2020159395A1
Cited By
Information display method and device, equipment and medium
CN121658697A
