Interaction method and device based on large model, electronic equipment and storage medium

By optimizing the problem information entered by users, generating target interaction information, and using the big model to generate reply information, it solves the problem that static Prompt is difficult to meet diverse needs, and improves the language understanding ability and user experience of the big model.

CN118897925APending Publication Date: 2024-11-05BEIJING BAIDU NETCOM SCI & TECH CO LTD

Patent Information

Application Number
CN202411253351.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

In user interaction, the existing large language model is difficult to meet the diverse needs of users because the static template Prompt is difficult to meet the model's diverse needs, which limits the model's language understanding and generation capabilities and reduces the user experience.

Method used

By optimizing the problem information entered by the user, the target interaction information, including interactive roles, optimized problem information and prompt information, the big model generates reply information corresponding to the problem information, improve the quality and flexibility of Prompt and meet users Diversified needs.

Benefits of technology

It improves the language understanding and generation ability of the big model, improves the user experience, and meets diverse needs. Through the combination of semantic analysis and historical interactive information, it provides a more accurate and flexible interactive interface, reducing the complexity of user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897925A_ABST
    Figure CN118897925A_ABST
Patent Text Reader

Abstract

The invention provides an interaction method and device based on a large model, electronic equipment and a storage medium, and relates to the technical field of artificial intelligence, in particular to the technical field of large language models, human-computer interaction and the like. The interaction method comprises the following steps: acquiring input target question information; the large model is used for optimizing the target question information, target interaction information is generated, the target interaction information comprises an interaction role, the optimized target question information and first prompt information, the first prompt information comprises a reference question and a reference reply, and the reference question is associated with the target question information; and based on the target interaction information, generating reply information corresponding to the target question information by calling a large model, and displaying the reply information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence technology, in particular to technical fields such as large language models and human-computer interaction, and specifically to interaction methods, devices, electronic devices and storage media based on large models. Background Art

[0002] The Large Language Model (LLM) is a generative neural network model based on the Transformer structure. It has strong semantic understanding capabilities and can be used to perform multi-round dialogue tasks similar to human communication. Summary of the invention

[0003] The present disclosure provides a large model-based interaction method, device, electronic device and storage medium.

[0004] According to one aspect of the present disclosure, a big model-based interaction method is provided, including: obtaining input target question information; optimizing the target question information using the big model to generate target interaction information, wherein the target interaction information includes an interaction role, optimized question information and first prompt information, the first prompt information includes a reference question and a reference answer, and the reference question is associated with the target question information; based on the target interaction information, generating reply information corresponding to the target question information by calling the big model; and displaying the reply information.

[0005] According to another aspect of the present disclosure, there is provided an interactive device based on a large model, comprising: an optimization module, an output module and a first display module. The first acquisition module is used to acquire input target question information; the optimization module is used to optimize the target question information using the large model to generate target interaction information, wherein the target interaction information includes an interactive role, optimized question information and first prompt information, the first prompt information includes a reference question and a reference answer, and the reference question is associated with the target question information. The output module is used to generate answer information corresponding to the target question information by calling the large model based on the target interaction information. The first display module is used to display the answer information.

[0006] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described above.

[0007] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method as described above.

[0008] According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program implements the method described above when executed by a processor.

[0009] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0011] Figure 1 An exemplary system architecture to which a large model-based interaction method and device can be applied according to an embodiment of the present disclosure is schematically shown;

[0012] Figure 2 A flowchart of an interaction method based on a large model according to an embodiment of the present disclosure is schematically shown;

[0013] Figure 3 A schematic diagram of an interactive interface for optimizing problem information according to an embodiment of the present disclosure is schematically shown;

[0014] Figure 4 A schematic diagram of an interactive interface containing candidate questions corresponding to multiple application scenarios according to an embodiment of the present disclosure is schematically shown;

[0015] Figure 5 A schematic diagram of an interactive interface for selecting candidate elements according to an embodiment of the present disclosure is schematically shown;

[0016] Figure 6 A schematic diagram of an interactive interface for editing candidate elements according to an embodiment of the present disclosure is schematically shown;

[0017] Figure 7 A schematic diagram of a preview interface for an optimized question according to an embodiment of the present disclosure is schematically shown;

[0018] Figure 8 A schematic diagram of an interactive interface containing optimization questions that meet user intentions according to an embodiment of the present disclosure is schematically shown;

[0019] Fig. 9 The following schematically shows an interactive interface diagram of a recommendation prompt according to an embodiment of the present disclosure;

[0020] Fig.10 A block diagram schematically shows an interactive device based on a large model according to an embodiment of the present disclosure; and

[0021] Fig.11 A block diagram of an electronic device suitable for implementing a large model-based interaction method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0022] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0023] Figure 1 An exemplary system architecture to which a large model-based interaction method and apparatus can be applied according to an embodiment of the present disclosure is schematically shown.

[0024] It should be noted that Figure 1 The examples shown are only examples of system architectures to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios. For example, in another embodiment, an exemplary system architecture to which the interactive method and apparatus based on a large model can be applied may include a terminal device, but the terminal device may implement the interactive method and apparatus based on a large model provided by the embodiments of the present disclosure without interacting with a server.

[0025] like Figure 1 As shown, the system architecture 100 according to this embodiment may include a client 101 and a server 102. The client 101 and the server 102 may communicate so as to call the large model based on the user's operation on the interactive interface in the client 101.

[0026] The user can perform operations such as selection and editing on the interactive interface of the client 101 to generate question information for interaction with the server, so as to call the big model of the server to generate corresponding reply information and display it on the interactive interface of the client 101.

[0027] Various communication client applications may be installed on the client 101, such as smart assistant applications, knowledge reading applications, web browser applications, search applications, instant messaging tools, email clients and / or social platform software (for example only).

[0028] The client 101 can be configured with various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0029] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for the content browsed by the user using the interactive interface of the client 101. The background management server may call the big model to optimize and answer questions according to the received user instructions, and feed back the optimized questions and answer information to the client 101, and display them through the interactive interface.

[0030] The storage module in the server 105 can be used to store historical interaction information of users, such as historical interaction questions and corresponding historical answer information.

[0031] It should be noted that the interaction method based on the big model provided in the embodiment of the present disclosure can generally be executed by the server 102. Accordingly, the interaction device based on the big model provided in the embodiment of the present disclosure can also be set in the server 102. The interaction method based on the big model provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 102 and can communicate with the client 101 and / or the server 102. Accordingly, the interaction device based on the big model provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 102 and can communicate with the client 101 and / or the server 102.

[0032] Alternatively, the interaction method based on the big model provided in the embodiment of the present disclosure can also be generally executed by the client 101. Accordingly, the interaction device based on the big model provided in the embodiment of the present disclosure can generally be set in the client 101.

[0033] For example, the big model can be loaded on the client first, and the user can input instructions for interacting with the big model based on the interactive interface, so as to call the big model for question optimization and question answering.

[0034] It should be understood that Figure 1 The number of devices configured on the client and server is only illustrative. Any number of devices can be configured on the client and server as required.

[0035] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, disclosure and application of user personal information involved comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good morals.

[0036] In the technical solution of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.

[0037] Prompt is an important means of interacting with the large language model. It is an instruction sent to the large language model. It can be a text description or a parameter description in a certain format.

[0038] Users can edit the prompt to call the big model to get the corresponding answer. However, for non-technical personnel or users who lack domain knowledge, due to the lack of programming knowledge and professional knowledge, it is difficult to generate high-quality prompts based on user interaction information, which reduces the language understanding and generation capabilities of the big model. Therefore, static templated prompts came into being to improve the efficiency of interaction between the big model and users.

[0039] However, with the diversification of application scenarios, the flexibility of user interaction instructions has increased. This static, non-customized Prompt template not only fails to meet the diverse needs of users, but also limits the flexible interaction between large models and users, reducing the user experience.

[0040] In view of this, the embodiments of the present disclosure provide an interaction method based on a big model. By utilizing the big model to optimize the question information input by the user, the quality of the Prompt is improved to fully stimulate the language understanding and generation capabilities of the big model, and the flexibility of the Prompt is improved to meet the diverse needs of users, thereby improving the user experience.

[0041] Figure 2 The flowchart of the interaction method based on a large model according to an embodiment of the present disclosure is schematically shown.

[0042] like Figure 2 As shown, the method 200 includes operations S210 to S240.

[0043] In operation S210, input target question information is acquired.

[0044] In operation S220, the target question information is optimized using the large model to generate target interaction information.

[0045] In operation S230, based on the target interaction information, by calling the large model, generate reply information corresponding to the question information.

[0046] In operation S240, reply information is displayed.

[0047] According to an embodiment of the present disclosure, the target question information may be core task information in a prompt input by a user through an interactive interface.

[0048] For example: "Use [python | java] to write the code for [text similarity analysis]".

[0049] According to an embodiment of the present disclosure, the target interaction information may include: an interaction role, optimized question information and first prompt information, the first prompt information includes a reference question and a reference answer, and the reference question is associated with the target question information.

[0050] According to an embodiment of the present disclosure, the interactive role may represent the identity represented by the large model when answering the current question, for example: "You are a software developer who specializes in natural language processing."

[0051] Since the question information input by the user is usually in line with the user's own language expression habits, different users may have multiple ways of expressing the same question. Not all users' expressions are suitable for stimulating the language comprehension ability of the large model, which will lead to low user satisfaction with the response information generated by the large model.

[0052] Therefore, the embodiment of the present disclosure utilizes the strong language comprehension ability of the large model to first optimize the question information input by the user, so as to maximize the language comprehension ability of the large model.

[0053] For example, the optimized problem could be "Write a piece of code that can calculate text similarity using algorithms such as cosine similarity, Jaccard similarity, or Levenshtein distance, in the programming language selected by the user (Python or Java)".

[0054] According to an embodiment of the present disclosure, the first prompt information may be a reference example corresponding to the question information, and may include a reference question and a reference answer. The reference question is associated with the question information input by the user. For example, the reference question may be a question of the same type as the question input by the user in the same technical field.

[0055] For example, the question information can be "Use [python | java] to write the code for [text similarity analysis]". The reference question can be "How to use cosine similarity in Python to compare the similarity of two texts", and the reference answer can be "Use TfidfVectorizer in the sklearn library to convert text data into vectors, and then calculate the cosine similarity between them: the specific code content..."

[0056] In addition, the target interaction information may also include: background information, target information, annotation information, and technical information corresponding to the question information.

[0057] For example, for the problem information described in the previous article, "Use [python | java] to write the code for [text similarity analysis]", the corresponding background information can be "Develop a function that can evaluate and analyze the similarity between two texts". The corresponding goal information can be "Implement an efficient algorithm that can run in different programming languages ​​(Python or Java) to compare text similarities to support language learning applications or content management systems". The corresponding annotation information can be "Provide necessary algorithm descriptions and code comments to ensure that the code is easy to understand and maintain". The corresponding technical information can be "Use nltk or scikit-learn libraries in Python, and use Apache Commons or Simmetrics libraries in Java for implementation".

[0058] The content of the target interaction information can be adjusted according to the needs of the actual application scenario. In addition to the interaction role, optimized question information and the first prompt information, other information can be flexibly increased or decreased. The more complete the content of the target interaction information is, the more it can stimulate the language understanding ability of the large model, thereby generating a response that is more in line with the user's intention.

[0059] According to an embodiment of the present disclosure, based on the target interaction information, a large model can be called to generate reply information and displayed through an interactive interface. The reply information can be specific code content written in Python or Java programming language for calculating text similarity.

[0060] According to the embodiments of the present disclosure, the display method of the reply information includes but is not limited to visual display, and can also be displayed to the user through voice broadcast. The display method of the reply information can be flexibly configured according to the content of the reply information.

[0061] For example, the question information may be "When is Zhang free today?", and the answer information generated by calling the big model may be "Zhang is free from 3:00 to 5:00 this afternoon." This type of answer information can be displayed visually through the interactive interface or displayed to the user through voice broadcast.

[0062] For example, for questions such as “Use [python | java] to write the code for [text similarity analysis]”, since the content of the reply information is specific code text, it can be visually displayed through the interactive interface.

[0063] According to the embodiments of the present disclosure, by utilizing the big model to optimize the question information input by the user, the quality of the Prompt is improved to fully stimulate the language understanding and generation capabilities of the big model, and the flexibility of the Prompt is improved to meet the diverse needs of users, thereby improving the user experience.

[0064] According to an embodiment of the present disclosure, the above-mentioned operation S220 may include the following operations: performing semantic analysis on the target question information to obtain the question intention; obtaining the second prompt information corresponding to the question intention; inputting the target question information and the second prompt information into the large model, outputting the target interaction information, and displaying the target interaction information.

[0065] According to an embodiment of the present disclosure, by semantically analyzing the target question information, the question intention obtained can be used to match the second prompt information. The second prompt information can be obtained by comprehensive matching based on multi-dimensional information such as the type, content, and context of the question intention to improve the efficiency of question optimization.

[0066] For example, the question information may be "Use [python | java] to write the code for [text similarity analysis]". Through semantic analysis, it can be obtained that the question intention is to use a programming language to write algorithm-related code. Therefore, the corresponding reference example can be matched according to the question intention.

[0067] According to an embodiment of the present disclosure, the second prompt information may be a reference example that matches the question intention, including comparison information before and after the reference question is optimized. For example, the reference question may be "How to use clustering algorithm in Python for clustering analysis", and the optimized prompt may be complete interactive information including "Write a piece of code that can execute the clustering algorithm based on the programming language (Python) selected by the user".

[0068] Figure 3 A schematic diagram of an interactive interface for optimizing problem information according to an embodiment of the present disclosure is schematically shown.

[0069] like Figure 3 As shown, the interactive interface schematic diagram 300 includes a user input interface 310 and a display interface 320 for target interactive information.

[0070] The user input interface 310 may include an instruction name input box 311 and a Prompt edit box 312. The user may input an instruction name "text similarity analysis" in the instruction name input box 311 and input question information in the Prompt edit box 312.

[0071] In order to facilitate user operation, an editing example of the question information may also be displayed in the Prompt editing box 312 .

[0072] When the user completes the input, the "Optimize" button can be clicked to call the large model to optimize the question information and display the target interaction information through the display interface 320 of the target interaction information.

[0073] According to the embodiments of the present disclosure, based on the reference examples corresponding to the question information and the question intention matching, the big model can convert the user input question into a prompt that is more conducive to stimulating the language comprehension ability of the big model according to the reference example, thereby lowering the threshold for using the big model and improving the scope of application of the big model. In addition, by displaying the target interaction information, it is also convenient for users to learn the expression method of the prompt, so that users can efficiently use the big model to handle tasks in different scenarios.

[0074] In addition to inputting question information in the interactive interface, users can also select question information through the interactive interface to reduce the complexity of user operations.

[0075] According to an embodiment of the present disclosure, the above-mentioned big model-based interaction method may also include: obtaining historical interaction information within a predetermined period of time; determining an interaction scenario based on the historical interaction information; displaying at least two candidate question information corresponding to the interaction scenario through an interactive interface; and generating target question information in response to obtaining operations on the candidate question information.

[0076] For example, the user has been processing office documents within a week before the current moment. The scheduled period can be a week, and the historical interaction information can be the user calling the big model to execute document-related prompts when processing office documents, such as searching documents, querying information, integrating document information, etc.

[0077] According to the embodiments of the present disclosure, since the prompts when the user interacts with the large model during the predetermined period are all associated with the document, it can be determined that the interaction scenario is an office collaboration scenario. The interactive interface can display candidate question information related to the office collaboration scenario, such as: "Find the most recently viewed document", "Schedule XX meeting today", etc.

[0078] Figure 4 A schematic diagram of an interactive interface containing candidate questions corresponding to multiple application scenarios according to an embodiment of the present disclosure is schematically shown.

[0079] like Figure 4 As shown, the embodiment 400 displays candidate questions corresponding to the employee service scenario. The interactive interface 410 may include an "office collaboration" scenario identifier 401, an "employee service" scenario identifier 402, a "research and development tool" scenario identifier 403, and a "role play" scenario identifier 404.

[0080] The user can click on any scenario icon to select the candidate question corresponding to the scenario.

[0081] In order to improve user experience, the candidate questions corresponding to each scenario can be obtained based on the historical interaction information. For example, the first selection probability corresponding to at least two historical question information can be obtained from the historical interaction information; and the candidate question information can be determined from the historical question information according to the first selection probability.

[0082] According to an embodiment of the present disclosure, candidate question information may be determined from a plurality of historical question information by configuring a selection probability threshold.

[0083] For example, the selection probability threshold may be 50%. In the historical interaction information, the probability of selecting the historical question information associated with applying for leave is 85%. The probability of selecting the historical question information associated with visitor reservation is 65%. The probability of selecting the historical question information associated with work planning is 30%. The historical questions associated with "applying for leave" and "visitor reservation" may be determined as candidate question information.

[0084] According to an embodiment of the present disclosure, after determining the candidate question information, the candidate questions may be classified according to the subject of the candidate questions, and the candidate question information may be displayed on the interactive interface according to the subject partition.

[0085] For example, the topics of candidate questions in the interactive interface 410 may include: "leave application" 4021, "single-trip travel application" 4022, "multi-trip travel application" 4023, "visitor reservation" 4024, "meal card balance" 4025 and "office supply balance" 4026.

[0086] In each topic display box, at least one candidate question information associated with the topic can be displayed. For example, in the display box of the topic "Apply for vacation", the candidate question information displayed is "I want to take a day off from work starting tomorrow". The user can directly click on the candidate question information instead of inputting text to generate the question information.

[0087] According to the embodiments of the present disclosure, candidate questions are recommended to users in a targeted manner based on the probability of historical questions being selected in historical interaction information. As the user's usage time increases, the accuracy of the recommended candidate questions will gradually increase, thereby accurately determining user needs and reducing the user's input burden. That is, while reducing the number of user input times, accurate questions that meet user needs can be obtained, thereby improving the user experience.

[0088] In different application scenarios, information related to time, name, location, identity, etc. will constantly change according to scenario requirements. Therefore, the flexibility of candidate questions can be improved by slotting the candidate questions to further improve the user experience.

[0089] According to an embodiment of the present disclosure, each candidate question information may include at least two candidate elements. In response to obtaining an operation on the candidate question information, generating the target question information may include the following operations: in response to a selection operation on the candidate element, determining a first target element from the candidate elements; and generating the target question information based on the first target element.

[0090] According to an embodiment of the present disclosure, the candidate elements may be information related to attributes such as time, name, place, and identity.

[0091] For example, in the candidate question “I will depart from [Place A] [tomorrow] and go to [Place B] for a business trip lasting [1 day]”, “tomorrow”, “Place A”, “Place B”, and “1 day” can all be editable candidate elements.

[0092] Figure 5 A schematic diagram of an interactive interface for selecting candidate elements according to an embodiment of the present disclosure is schematically shown.

[0093] like Figure 5 As shown, in embodiment 500, multiple candidate elements corresponding to the same candidate question are displayed. Figure 4 Compared with the interactive interface 410 in FIG. 5 , an editing box 511 is added to the interactive interface 510 .

[0094] When the user clicks on the candidate question “I want to take [1 day] off from work starting [tomorrow]”, the candidate question may be displayed in the editing box 511, and when the user clicks [tomorrow] or [1 day], information of other optional candidate elements may be displayed.

[0095] For example, when the user clicks [Tomorrow], multiple candidate elements such as "Tomorrow", "Today", "Monday", and "Friday" may be displayed. When the user selects "Today", "Today" may be the first target element, and based on the first target element, the generated question is "I want to take [1 day] off from work starting [Today]".

[0096] According to the embodiments of the present disclosure, by designing variable elements with attributes such as time and place in candidate questions into slots, the flexibility of candidate questions is improved, and users can obtain candidate questions that better meet user needs by flexibly selecting candidate elements in the slots, thereby further improving user experience.

[0097] According to an embodiment of the present disclosure, similar to the candidate questions, the candidate elements in each candidate question may also be determined based on historical interaction information.

[0098] For example: obtaining information of at least two historical elements corresponding to each candidate question information from the historical interaction information; and determining multiple candidate elements from the historical elements according to the second selection probability.

[0099] According to an embodiment of the present disclosure, the information of the history element includes the second selection probability of the corresponding history element.

[0100] For example, in the historical interaction information, regarding the question of vacation, the historical elements related to vacation duration may include 1 day, 3 days, and 1 week, among which the probability of 1 day being selected may be 80%, the probability of 3 days being selected may be 60%, and the probability of 1 week being selected may be 10%. The historical elements related to vacation duration may be sorted from high to low according to the probability of being selected, and the top k may be selected as candidate elements. For example, 1 day and 3 days may be displayed as candidate elements in the interaction interface.

[0101] According to the embodiments of the present disclosure, candidate questions are recommended to users in a targeted manner based on the probability of selection of historical elements in candidate questions in historical interaction information. As the user's usage time increases, the accuracy of recommended candidate questions will gradually increase, thereby accurately predicting user needs. This not only reduces user input, but also improves the flexibility of candidate questions, by flexibly recommending candidate elements that are suitable for different scenarios to users to meet the needs of different scenarios.

[0102] User intentions may be changeable, therefore, in order to further improve the user experience, in addition to selecting candidate elements, the embodiments of the present disclosure may also edit the candidate elements.

[0103] For example: in response to acquiring an editing operation on any candidate element, generating a second target element; and generating target question information according to the second target element and the first target element.

[0104] Figure 6 A schematic diagram of an interactive interface for editing candidate elements according to an embodiment of the present disclosure is schematically shown.

[0105] like Figure 6 As shown, the embodiment 600 shows an interactive interface for editing candidate elements. In the interactive interface 610, the slot content corresponding to [tomorrow] can be edited in the edit box 511, and "next Tuesday" can be entered, and then the corresponding question information is generated as "I want to take [1 day] off from work starting from [next Tuesday]". In this question, the slot content corresponding to [1 day] can be selected by the user from the candidate elements, or can be edited.

[0106] In addition, the user may also display the candidate questions in the subject area of ​​the candidate questions, and each candidate question may also include selectable candidate elements. Therefore, the user may also select candidate elements in the subject area of ​​the candidate questions to generate personalized questions.

[0107] For example, in the candidate question "I want to take [1 day] off from work starting [tomorrow]" displayed in the area of ​​the topic "Request for Leave" 4021, the user can select "Today", "Monday", "Friday", etc. from the candidate elements of the slot corresponding to [tomorrow] to flexibly generate question information.

[0108] According to the embodiments of the present disclosure, the flexibility of the candidate questions is improved by selecting and editing the candidate elements in the candidate questions. If the candidate elements do not fully meet the user's needs, the user can obtain a question that better meets the user's needs by re-editing the candidate elements to meet the needs of users at different stages.

[0109] Figure 7 A schematic diagram of a preview interface for answers to optimized questions according to an embodiment of the present disclosure is schematically shown.

[0110] like Figure 7 As shown, the embodiment 700 displays a reply preview interface. The reply preview interface 710 may include: the user-edited Prompt "Appointment for a meeting with Li at 10 o'clock tomorrow" 711, and the optimized Prompt preview "Identity xxx, question yyy and reference example zzz" 712. When the user clicks the inquiry button, the large model is called to generate the reply information and display it through the reply preview window 713. In the reply preview window 713, it can be displayed in the form of a dialog box, and Zhang can be the user who edited the prompt. The assistant can represent the virtual identity of the large model. The reply information may include matters to be processed, participants, start time, end time and form of participation of the meeting, etc., so that the user can confirm.

[0111] According to an embodiment of the present disclosure, the above method further includes the following operation: in response to obtaining a determination operation for the reply information, the optimized target question information is associated with the target interaction information and stored.

[0112] For example, a confirmation button may be included in the reply preview interface 710. When the user clicks the confirmation button, it indicates that the reply information meets the user's intention, and the optimized question information may be associated with the target interaction information and stored.

[0113] For example, the optimized question information can be used as the primary key and the target interaction information can be used as the secondary key for associated storage.

[0114] Figure 8 A schematic diagram of an interactive interface containing optimization questions that meet user intentions according to an embodiment of the present disclosure is schematically shown.

[0115] like Figure 8As shown, the embodiment 800 displays an interactive interface of an optimization problem that meets the user's intention. In the interactive interface 810, in addition to the scene identifiers 802-805 corresponding to each application scenario described above, it also includes a "my instructions" 801 identifier. In "my instructions" 801, multiple optimized problem information that meets the user's intention can be displayed.

[0116] Optimized question information that meets user intent can also be classified and displayed by topic for user selection.

[0117] For example, in the topic of finding topic documents 8011, the corresponding question can be "Find [web document of smart assistant]". When the reply information output by the big model meets the user's intention, by associating and storing the optimized target question with the target interaction information, the user can directly call the optimized question the next time he uses it without editing or optimizing it again, which further improves the efficiency of users using the big model to perform tasks in different scenarios.

[0118] According to an embodiment of the present disclosure, the optimized questions stored by the user may also include variable elements with attributes such as time, place, and identity. Therefore, in order to further improve the user experience, the above method may also include the following operations: in response to obtaining a confirmation operation for the reply information, inserting an editable text box based on the position of a predetermined character in the optimized target question information; in response to receiving an editing operation on the editable text box, generating interactive information corresponding to the edited text; based on the interactive information, generating reply information corresponding to the interactive information by calling the large model.

[0119] According to an embodiment of the present disclosure, the predetermined character may be a character used in the optimized question to identify a variable element having attributes such as time, place, identity, etc. For example, it may be “[ ]”.

[0120] For example, for the optimized question "Find the document of [Wang] [Send to me]", an editable text box can be inserted for the positions of [Wang] and [Send to me] in the optimized question. The editable text box can be in the form of a drop-down menu or a text input box. The drop-down menu can include the initial content for replacing the predetermined characters. For example, the editable text box in the form of a drop-down menu inserted for the position of [Wang] can include "Zhang, Zhao, Jia and other candidate elements" for the user to choose.

[0121] According to an embodiment of the present disclosure, candidate elements of the edit text box in the form of a drop-down menu may be extracted from the historical interaction information based on the method described above, which will not be described in detail herein.

[0122] According to an embodiment of the present disclosure, by slotting the variable elements in the optimized questions that meet the user's intention, so that the user can flexibly adjust the slot content according to actual needs, more optimized target questions that meet the user's needs can be generated. Since the slot content is variable elements such as time and place, the user's adjustment of the slot content does not affect the stimulation of the semantic understanding ability of the large model. The large model can be called to output a response that meets the user's intention without optimizing the problem, which further improves the flexibility and efficiency of the interaction.

[0123] The reply preview interface 710 may also include a correction button. When the reply information does not meet the user's intention, the user can re-edit the content of the relevant matters and then click the correction button to correct the reply information.

[0124] For example, the end time and meeting format of the reply information generated for the question "Schedule a meeting with Mr. Li at 10 o'clock tomorrow" do not match the user's intention. The user can directly re-edit the end time and meeting format. For example, the meeting format can be changed to offline meeting, etc.

[0125] In addition, when a correction operation for reply information is obtained, the target interaction information can be corrected using the big model to generate corrected target interaction information; and based on the corrected target interaction information, the big model is called to generate corrected reply information; and the corrected reply information is displayed.

[0126] According to the embodiments of the present disclosure, the above operations can be executed at least once in a loop until a reply message that meets the user's intention is generated: for example, after displaying the revised reply message, when the user's confirmation operation on the revised reply message is obtained, it indicates that the revised reply message meets the user's intention.

[0127] According to an embodiment of the present disclosure, when the target interaction information is corrected using a large model, a correction comparison example of the reference interaction information and the target interaction information can be combined to form a prompt for interaction information correction and input into the large model so that the large model generates the corrected interaction information.

[0128] For example, the modified comparison example of the reference interaction information may include: the meeting duration before the modification is 1 hour, and the meeting form is an online meeting. The meeting duration after the modification is 2 hours, and the meeting form is an offline meeting.

[0129] According to the embodiments of the present disclosure, the big model is called to correct the reply information that does not meet the user's intention, thereby further improving the interaction efficiency and accuracy of the big model.

[0130] In order to further improve user satisfaction, the embodiment of the present disclosure may also randomly recommend prompts that meet the current user interaction scenario for user selection.

[0131] Fig. 9 The interactive interface diagram of the recommendation prompt according to the embodiment of the present disclosure is schematically shown.

[0132] like Fig. 9 As shown, the interactive interface of this embodiment 900 displays questions related to different topics, for example, questions 901 related to the topic of "hot topics", questions 902 related to the topic of "work efficiency improvement", and questions 903 related to the topic of "enterprise knowledge".

[0133] Each topic can be associated with multiple candidate questions. The order of the candidate questions can be determined according to the probability of the candidate questions being selected in the historical interaction information. Different weights can also be configured for different candidate questions according to the needs of the actual application scenario to sort them in combination with the probability of being selected.

[0134] The display area of ​​each topic includes a "Change" button. When the user clicks the "Change" button, the questions associated with each topic can be randomly updated to adapt to the user's ever-changing usage needs, maintain user freshness, and enhance interactivity with users.

[0135] Fig.10 A block diagram of an interaction device based on a large model according to an embodiment of the present disclosure is schematically shown.

[0136] like Fig.10 As shown, the interaction device 1000 may include: a first acquisition module 1010 , an optimization module 1020 , an output module 1030 and a first display module 1040 .

[0137] The first acquisition module 1010 is used to acquire input target question information.

[0138] The optimization module 1020 is used to optimize the target question information using the large model to generate target interaction information, wherein the target interaction information includes the interaction role, the optimized target question information and the first prompt information, the first prompt information includes a reference question and a reference answer, and the reference question is associated with the target question information.

[0139] The output module 1030 is used to generate answer information corresponding to the question information by calling the large model based on the target interaction information.

[0140] The first display module 1040 is used to display the reply information.

[0141] According to an embodiment of the present disclosure, the optimization module includes: a semantic molecule submodule, a first acquisition submodule and an output submodule.

[0142] The semantic analysis submodule is used to perform semantic analysis on the target question information to obtain the question intention. The first acquisition submodule is used to obtain the second prompt information corresponding to the question intention; wherein the second prompt information includes the comparison information before and after the reference question is optimized. The output submodule is used to input the target question information and the second prompt information into the large model, output the target interaction information, and display the target interaction information.

[0143] According to an embodiment of the present disclosure, the above-mentioned interactive device further includes: a second acquisition module, a first determination module, a display module and a first generation module. The second acquisition module is used to acquire historical interaction information within a predetermined period of time. The first determination module is used to determine the interaction scene based on the historical interaction information. The second display module is used to display at least two candidate question information corresponding to the interaction scene through the interactive interface. The first generation module is used to generate target question information in response to an operation on the candidate question information.

[0144] According to an embodiment of the present disclosure, the above-mentioned interaction device further includes: a first extraction module and a second determination module. The first extraction module is used to obtain a first selection probability corresponding to at least two pieces of historical question information from the historical interaction information. The second determination module is used to determine candidate question information from the historical question information according to the first selection probability.

[0145] According to an embodiment of the present disclosure, each candidate question information includes at least two candidate elements. The first generation module includes: a first determination submodule and a first generation submodule. The first determination submodule is used to determine a first target element from the candidate elements in response to obtaining a selection operation for multiple candidate elements. The first generation submodule is used to generate target question information according to the first target element.

[0146] According to an embodiment of the present disclosure, the first generation module may further include: a second determination submodule and a second generation submodule. The second determination submodule is used to generate a second target element in response to obtaining an edit operation for any candidate element. The second generation submodule is used to generate target question information based on the second target element and the first target element.

[0147] According to an embodiment of the present disclosure, the above-mentioned interaction device further includes: a second extraction module and a third determination module. The second extraction module is used to obtain historical element information corresponding to each candidate question information from the historical interaction information; wherein the historical element information includes a second selection probability of the corresponding historical element. The third determination module is used to determine the candidate element from the historical elements according to the second selection probability.

[0148] According to an embodiment of the present disclosure, the above-mentioned interaction device further includes: a storage module. The storage module is used to associate and store the optimized target question information with the target interaction information in response to obtaining a determination operation on the reply information.

[0149] According to an embodiment of the present disclosure, the above-mentioned interactive device also includes: an insertion module, a second generation module, a third generation module and a third display module. The insertion module is used to insert an editable text box based on the position of a predetermined character in the optimized target question information in response to receiving a confirmation operation on the reply information. The second generation module is used to generate interactive information corresponding to the edited text in response to receiving an editing operation on the editable text box; the third generation module is used to generate reply information corresponding to the interactive information by calling the large model based on the interactive information. The third display module is used to display the reply information corresponding to the interactive information.

[0150] According to an embodiment of the present disclosure, the above-mentioned interaction device further includes: a correction module, a third generation module and a fourth display module. The correction module is used to correct the target interaction information using the large model in response to obtaining the correction operation for the reply information, and generate the corrected target interaction information. The third generation module is used to generate the corrected reply information by calling the large model based on the corrected target interaction information; the fourth display module is used to display the corrected reply information.

[0151] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0152] According to an embodiment of the present disclosure, an electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described above.

[0153] According to an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause a computer to execute the method as described above.

[0154] According to an embodiment of the present disclosure, a computer program product includes a computer program, and when the computer program is executed by a processor, the computer program implements the method as described above.

[0155] Fig.11A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0156] like Fig.11 As shown, the device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1102 or a computer program loaded from a storage unit 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the device 800 can also be stored. The computing unit 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 804. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0157] A number of components in the device 1100 are connected to the I / O interface 1105, including: an input unit 1106, such as a keyboard, a mouse, etc.; an output unit 1107, such as various types of displays, speakers, etc.; a storage unit 1108, such as a disk, an optical disk, etc.; and a communication unit 1109, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1109 allows the device 1100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0158] The computing unit 1101 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as the interaction method based on the large model. For example, in some embodiments, the interaction method based on the large model may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the interaction method based on the large model described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to execute the large model-based interaction method in any other appropriate manner (eg, by means of firmware).

[0159] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0160] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0161] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0162] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0163] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0164] A computer system may include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises through computer programs running on respective computers and having a client-server relationship to each other. The server may be a cloud server, a server in a distributed system, or a server combined with a blockchain.

[0165] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0166] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. An interactive method based on a large model, the method comprising: Get the input target question information; The target question information is optimized by using a large model to generate target interaction information, wherein the target interaction information includes an interaction role, the optimized target question information and first prompt information, the first prompt information includes a reference question and a reference answer, and the reference question is associated with the target question information; Based on the target interaction information, generating answer information corresponding to the target question information by calling the large model; and The reply information is displayed.

2. The method according to claim 1, wherein: The method of optimizing the target problem information by using the large model to generate target interaction information includes: Performing semantic analysis on the target question information to obtain the question intention; Acquire second prompt information corresponding to the question intention; wherein the second prompt information includes comparison information before and after the reference question is optimized; Inputting the target question information and the second prompt information into the large model, and outputting the target interaction information; and The target interaction information is displayed.

3. The method according to claim 1 or 2, further comprising: Obtain historical interaction information within a predetermined period; Determining an interaction scenario according to the historical interaction information; Displaying at least two candidate question information corresponding to the interaction scenario through an interactive interface; as well as In response to obtaining an operation on the candidate question information, the target question information is generated.

4. The method according to claim 3, further comprising: Acquire, from the historical interaction information, first selection probabilities corresponding to at least two pieces of historical question information respectively; as well as According to the first selection probability, the candidate question information is determined from the historical question information.

5. The method according to claim 3, wherein: Each of the candidate question information includes at least two candidate elements; The step of generating the target question information in response to obtaining the operation on the candidate question information includes: In response to obtaining a selection operation on the candidate element, determining a first target element from the candidate elements; as well as The target question information is generated according to the first target element.

6. The method according to claim 5, further comprising: In response to acquiring an edit operation on any of the candidate elements, generating a second target element; as well as The target question information is generated according to the second target element and the first target element.

7. The method according to claim 5, further comprising: Acquire historical element information corresponding to each of the candidate question information from the historical interaction information; wherein the historical element information includes a second selection probability of the corresponding historical element; and The candidate element is determined from the historical elements according to the second selection probability.

8. The method according to any one of claims 1 to 7, further comprising: In response to obtaining a determination operation for the reply information, the optimized target question information is associated with the target interaction information and stored.

9. The method according to claim 8, further comprising: In response to obtaining a confirmation operation for the answer information, inserting an editable text box at a position in the optimized target question information based on a predetermined character; In response to receiving an editing operation on the editable text box, generating interaction information corresponding to the edited text; Based on the interaction information, and by calling the large model, generating reply information corresponding to the interaction information; as well as The reply information corresponding to the interaction information is displayed.

10. The method according to claim 8, further comprising: In response to obtaining a correction operation for the reply information, the target interaction information is corrected using the large model to generate corrected target interaction information; Based on the modified target interaction information, generating modified reply information by calling the large model; as well as The revised reply information is displayed.

11. An interactive device based on a large model, comprising: The first acquisition module is used to obtain input target question information; an optimization module, configured to optimize the target question information by using a large model to generate target interaction information, wherein the target interaction information includes an interaction role, the optimized target question information and first prompt information, wherein the first prompt information includes a reference question and a reference answer, and the reference question is associated with the target question information; an output module, configured to generate answer information corresponding to the target question information by calling the large model based on the target interaction information; and The first display module is used to display the reply information.

12. The device according to claim 11, wherein The optimization module includes: A semantic analysis submodule is used to perform semantic analysis on the target question information to obtain the question intention; A first acquisition submodule is used to acquire second prompt information corresponding to the question intention; wherein the second prompt information includes comparison information before and after the reference question is optimized; an output submodule, configured to input the target question information and the second prompt information into the large model, and output the target interaction information; and The display submodule is used to display the target interaction information.

13. The device according to claim 11 or 12, further comprising: A second acquisition module is used to acquire historical interaction information within a predetermined period of time; A first determining module, configured to determine an interaction scenario according to the historical interaction information; A second display module, used for displaying at least two candidate question information corresponding to the interaction scenario through an interactive interface; as well as The first generating module is used to generate the target question information in response to obtaining an operation on the candidate question information.

14. The apparatus according to claim 13, further comprising: A first extraction module, configured to extract first selected probabilities corresponding to at least two pieces of historical question information from the historical interaction information; as well as The second determining module is used to determine the candidate question information from the historical question information according to the first selection probability.

15. The device according to claim 13, wherein: Each of the candidate question information includes at least two candidate elements; The first generation module comprises: A first determination submodule, configured to determine a first target element from the candidate elements in response to obtaining a selection operation on the candidate elements; as well as The first generating submodule is used to generate the target question information according to the first target element.

16. The device according to claim 15, wherein the first generating module further comprises: A second determining submodule, configured to generate a second target element in response to acquiring an editing operation on any of the candidate elements; as well as The second generating submodule is used to generate the target question information according to the second target element and the first target element.

17. The apparatus according to claim 15, further comprising: A second extraction module is used to obtain historical element information corresponding to each of the candidate question information from the historical interaction information; wherein the information of the historical element includes a second selection probability of the corresponding historical element; and The third determination module is used to determine the candidate element from the historical elements according to the second selection probability.

18. The device according to any one of claims 11 to 17, further comprising: A storage module is used to store the optimized target question information in association with the target interaction information in response to obtaining a determination operation for the reply information.

19. The apparatus according to claim 18, further comprising: An inserting module, configured to insert an editable text box at a position in the optimized target question information based on a predetermined character in response to obtaining a determination operation for the answer information; A second generating module, configured to generate interaction information corresponding to the edited text in response to receiving an editing operation on the editable text box; A third generating module, configured to generate reply information corresponding to the interaction information based on the interaction information and by calling the large model; as well as The third display module is used to display the reply information corresponding to the interaction information.

20. The apparatus according to claim 18, further comprising: A correction module, configured to correct the target interaction information using the large model in response to obtaining a correction operation for the reply information, and generate corrected interaction information; and A third generating module is used to generate the corrected reply information by calling the large model based on the corrected target interaction information; as well as The fourth display module is used to display the corrected reply information.

21. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 10.

22. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-10.

23. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Information processing method and device based on large language model, equipment and storage medium

    CN117521675A

  • Generation method and device of cue word information of large language model, equipment and medium

    CN117539975A

  • Text generation method and device based on large language model

    CN117743539A

  • Prompt word updating method, device and system based on multi-dimensional large language model

    CN118132716A

  • Interactive query completion templates

    US20130226953A1

Cited By

  • Data classification method and device based on large model

    CN120632109A

  • Interaction method and device based on large model, intelligent agent and storage medium

    CN120706575A