Interaction method and device, electronic equipment and storage medium
By identifying user input intentions and displaying Lenovo content in real-time in the conversational interactive interface, the problem of low interaction efficiency in the existing technology is solved, and faster information acquisition and interactive experience are achieved.
Patent Information
- Application Number
- CN202311695309.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2024-08-27
AI Technical Summary
Conversational interactive products based on large language models have low interaction efficiency. Users need to enter complete sentences and wait for responses, and complex questions require further guidance, making the interaction process time-consuming.
Provides a dialogue input box in the interactive interface to recognize the user's input intention in real time, and matches the associated content display based on the intention. The user can obtain the answer without waiting for the input to be completed, and the answer content can be found or generated through the preset intention recognition model and database.
The efficiency of interaction is improved, allowing users to obtain answers without the need for precise language organization, and reducing the time consumption of the interaction process.
Smart Images

Figure CN118550426A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an interaction method and device, electronic equipment, and storage medium. Background Art
[0002] With the rapid development of generative AI (Artificial Intelligence) technology, Large Language Model (LLM) has gradually become a research hotspot and has begun to be widely used in various fields.
[0003] At present, conversational interaction products based on large language models usually use pre-trained large language models to achieve natural language conversational interaction with users through adjustment and optimization. In the conversational interaction between users and models, the model needs to give answers based on the sentences input by users. This requires users to first input complete sentences and click OK or enter the Enter key after inputting to generate results. In addition, for more complex questions, the model often needs to further guide users to ask questions before generating results, so the interaction efficiency is low. Summary of the invention
[0004] In view of this, one or more embodiments of the present invention provide an interaction method and device, an electronic device, and a storage medium, which can effectively improve the interaction efficiency of conversational interaction.
[0005] In a first aspect, an embodiment of the present invention provides an interaction method, comprising: providing an interaction interface, wherein a dialogue input box is provided in the interaction interface; in response to receiving a dialogue input operation through the dialogue input box, before the input ends, identifying an input intention corresponding to the dialogue input operation based on the input content in the dialogue input box; obtaining associative content matching the input intention, and displaying the associative content on the interaction interface.
[0006] In one embodiment, identifying the input intention corresponding to the dialogue input operation based on the input content in the dialogue input box includes: providing the input content to a preset intention recognition model to obtain the input intention output by the intention recognition model.
[0007] In one implementation, the associative content matching the input intention includes: a title matching the input intention, or a title matching the input intention and reference materials associated with the title.
[0008] In one embodiment, the associative content includes questions that match the input intention; after displaying each of the associative contents on the interactive interface, the method further includes: receiving a selection operation on one of the questions to obtain a target question; and providing an answer to the target question.
[0009] In one embodiment, providing a response to the target question includes: based on the preset database, searching for response content for the target question through a matching algorithm, and displaying the response content on the interactive interface; or, based on the preset database, generating response content for the target question, and displaying the response content on the interactive interface.
[0010] In one embodiment, the associative content includes a first associative content; the obtaining of the associative content matching the input intention and displaying the associative content on the interactive interface includes: respectively determining the matching degree of the input intention with each candidate content in a preset database; according to the matching degree of each candidate content, selecting at least one from each candidate content to obtain a first associative content; and displaying each of the first associative contents on the interactive interface.
[0011] In one embodiment, selecting at least one from each of the candidate contents according to the matching degree of each of the candidate contents to obtain the first associative content includes: determining at least one of the candidate contents whose matching degree with the input content is greater than a preset matching threshold as the first associative content.
[0012] In one embodiment, before displaying each of the associative contents on the interactive interface, the method further includes: displaying prompt information on the interactive interface, wherein the prompt information is used to prompt that the associative contents are being obtained according to the input contents.
[0013] In one embodiment, before the input ends, based on the input content in the dialog input box, the method further includes: detecting whether an association function is turned on; before the input ends, based on the input content in the dialog input box, the identification of the input intention corresponding to the dialog input operation includes: in response to the association function being turned on, before the input ends, the input intention corresponding to the dialog input operation is identified based on the input content in the dialog input box.
[0014] In a second aspect, an embodiment of the present invention further provides an interactive device, comprising: a providing unit, for providing an interactive interface, in which a dialogue input box is provided; an identifying unit, for responding to receiving a dialogue input operation through the dialogue input box, and before the input ends, identifying an input intention corresponding to the dialogue input operation based on the input content in the dialogue input box; and a display unit, for acquiring associative content matching the input intention, and displaying the associative content on the interactive interface.
[0015] In one embodiment, the recognition unit is specifically configured to provide the input content to a preset intention recognition model to obtain the input intention output by the intention recognition model.
[0016] In one implementation, the associative content matching the input intention includes: a title matching the input intention, or a title matching the input intention and reference materials associated with the title.
[0017] In one embodiment, the associative content includes questions that match the input intention; the device also includes: a receiving unit, which is used to receive a selection operation on one of the questions after displaying each of the associative contents on the interactive interface to obtain a target question; and a reply unit, which is used to provide a reply to the target question.
[0018] In one embodiment, the reply unit is specifically used to: based on the preset database, search for reply content for the target question through a matching algorithm, and display the reply content on the interactive interface; or, based on the preset database, generate reply content for the target question, and display the reply content on the interactive interface.
[0019] In one embodiment, the associative content includes a first associative content; the display unit includes: a determination module, used to respectively determine the matching degree of the input intention with each candidate content in a preset database; a selection module, used to select at least one from each candidate content according to the matching degree of each candidate content to obtain a first associative content; and a display module, used to display each of the first associative contents on the interactive interface.
[0020] In one implementation, the selection module is specifically configured to determine at least one candidate content whose matching degree with the input content is greater than a preset matching threshold as the first associative content.
[0021] In one embodiment, the display unit further includes: a prompt module, which is used to display prompt information on the interactive interface before displaying each of the associative contents on the interactive interface, wherein the prompt information is used to prompt that the associative contents are being obtained according to the input contents.
[0022] In one embodiment, the device also includes: a detection unit, which is used to detect whether an association function is turned on before the input ends, based on the input content in the dialogue input box, and before the input ends, before identifying the input intention corresponding to the dialogue input operation; the identification unit is specifically used to identify the input intention corresponding to the dialogue input operation based on the input content in the dialogue input box before the input ends in response to the detection unit detecting that the association function is turned on.
[0023] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: a housing, a processor, a memory, a circuit board and a power supply circuit, wherein the circuit board is placed inside the space enclosed by the housing, and the processor and the memory are arranged on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute any one of the interactive methods provided by the embodiments of the present invention.
[0024] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement any one of the interaction methods provided by the embodiments of the present invention.
[0025] The interactive method and device, electronic device and storage medium provided by the embodiments of the present invention can provide an interactive interface, wherein a dialogue input box is provided in the interactive interface, and in response to receiving a dialogue input operation through the dialogue input box, before the input ends, the input intention corresponding to the dialogue input operation is identified according to the input content in the dialogue input box, the associative content matching the input intention is obtained, and the associative content is displayed on the interactive interface. In this way, there is no need to wait for the user's input operation to be completely completed. During the input operation, the input intention corresponding to the input operation can be identified in advance according to the current input content in the dialogue input box, and the associative content matching the input intention is displayed on the interactive interface, thereby providing a reference and selection for the dialogue inputter, and the desired reply content can be obtained without the dialoguer accurately organizing the language and performing time-consuming complete description and input, thereby effectively improving the interaction efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 A flow chart of an interactive method provided by an embodiment of the present invention;
[0028] Figure 2 A schematic diagram of an interactive interface in an embodiment of the present invention;
[0029] Figure 3 is another schematic diagram of an interactive interface in an embodiment of the present invention;
[0030] Figure 4 A schematic diagram of a display effect of associative content in an embodiment of the present invention;
[0031] Figure 5 A schematic diagram of an interactive interface after a target topic is selected in an embodiment of the present invention;
[0032] Figure 6 A schematic diagram of prompt information displayed in an interactive interface in an embodiment of the present invention;
[0033] Figure 7 A detailed flow chart of an interactive method provided by an embodiment of the present invention;
[0034] Figure 8 A schematic diagram of the structure of an interactive device provided by an embodiment of the present invention;
[0035] Fig. 9 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0037] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0038] In a first aspect, an embodiment of the present invention provides an interaction method that can effectively improve the interaction efficiency of conversational interaction.
[0039] like Figure 1As shown, an embodiment of the present invention provides an interaction method, including:
[0040] S11, providing an interactive interface, wherein the interactive interface is provided with a dialogue input box;
[0041] The interactive interface may refer to an interface capable of human-computer interaction, which may be a page in an application or a desktop of an operating system. A dialogue input box may be provided in the interactive interface to receive dialogue input operations of the interlocutor.
[0042] Optionally, the content of the dialogue input may be in text or voice format. When the content of the dialogue input is voice input content, it may be converted into text content accordingly for subsequent processing.
[0043] S12, in response to receiving a dialogue input operation through the dialogue input box, before the input ends, identifying an input intention corresponding to the dialogue input operation according to input content in the dialogue input box;
[0044] In this step, before the input is completed, the input intention corresponding to the dialogue input operation can be identified based on the input content in the dialogue input box. That is, following the user's input, the content the user wants to input or the question the user wants to ask can be inferred in advance before the user's input is completed, so that the user can get the desired reply content without complete input, thereby effectively improving the interaction efficiency.
[0045] Since the input intention needs to be identified based on the information carried in the input content, in an embodiment of the present invention, the accuracy of input intention identification can be positively correlated with the amount of input content, and can be updated accordingly as the input content changes during the input process.
[0046] S13, obtaining associative content matching the input intention, and displaying the associative content on the interactive interface.
[0047] After the input intention corresponding to the dialogue input operation is identified, in this step, the associative content matching the input intention can be obtained.
[0048] Optionally, the associative content can be screened from a known database or from open network resources. The specific content is not limited, as long as it is related to the input intention, it may become the associative content. The number of associative content can be one or more, for example, the associative content can be one or more topics. The associative content can also be one or more categories, for example, the associative content includes two categories, one is a topic, which is used to represent the questions that the user may want to ask, and the other can be a web link or a document link, etc., which is used to represent the information that the user wants to know.
[0049] When the associated contents are displayed on the interactive interface, the associated contents can be displayed at intervals, for example, the associated contents can be displayed at intervals on one side or around the dialogue input box. The associated contents can also be displayed above the dialogue input box, so that the dialogue inputter, i.e., the user, can quickly perceive and check them.
[0050] Optionally, in an example, Figure 2 As shown, the association content and the dialog input box can occupy the entire interface of the interactive interface. In one example, see Figure 3 The associative content and the dialogue input box may also occupy only one foldable panel in the interactive interface, which is not limited in the embodiments of the present invention.
[0051] The interactive method provided by the embodiment of the present invention can provide an interactive interface, wherein a dialogue input box is provided in the interactive interface, and in response to receiving a dialogue input operation through the dialogue input box, before the input ends, the input intention corresponding to the dialogue input operation is identified according to the input content in the dialogue input box, the associative content matching the input intention is obtained, and the associative content is displayed on the interactive interface. In this way, there is no need to wait for the user's input operation to be completely completed. During the input operation, the input intention corresponding to the input operation can be more accurately identified in advance according to the current input content in the dialogue input box, and the associative content matching the input intention is displayed on the interactive interface, thereby providing a reference and selection for the dialogue inputter, and the desired reply content can be obtained without the dialoguer accurately organizing the language and performing time-consuming complete description and input, thereby effectively improving the interaction efficiency.
[0052] Specifically, in an embodiment of the present invention, an interactive interface may be provided in step S11. When the interlocutor inputs the dialogue content in the dialogue input box of the interactive interface, the input intention corresponding to the dialogue input operation can be identified in step S12 based on the input content in the dialogue input box without waiting for the dialogue input to end. Optionally, in an embodiment of the present invention, the input intention corresponding to the dialogue input operation may be identified by a variety of methods. For example, in one example, the input content may be provided to a preset intention recognition model to obtain the input intention output by the intention recognition model. Optionally, the intention recognition model may be an artificial intelligence model constructed based on various algorithms, such as a large language model, a deep learning model, and the like.
[0053] After identifying the input intention, the interactive method provided by the embodiment of the present invention can also obtain the associative content matching the input intention in step S13. Among them, the input intention can be a simple, core description of the inputter's needs, and the associative content can be a further expansion of the input intention, which is a description with more details or levels, aiming to more accurately predict the content that the inputter is concerned about. For example, in one example, in the dialogue input box, the current input content is "newcomer", the identified input intention is "newcomer joining the company", and the associative content is "what are the procedures for newcomers joining the company", "what training is provided for newcomers after joining the company", "how do newcomers receive office supplies after joining the company"...
[0054] Optionally, the associative content corresponding to the input intention can be one or more, so that the content that the inputter is concerned about can be predicted from more dimensions. On the one hand, this can improve the hit rate of the associative content for the content that the inputter is concerned about, and on the other hand, it can also extend the information clues of the inputter to a certain extent, thereby further improving the user experience.
[0055] In a specific implementation, the associative content can be obtained from a known database or from an open network resource. In these databases or network resources, there may be various alternative contents related to or unrelated to the associative content. The associative content can also be divided into different categories, and the associative content can be obtained in different ways according to the different categories. For example, for associative content with simple and clear descriptions, it can be obtained by matching, and for associative content with more complex or broad and vague descriptions, it can be obtained by file retrieval. Based on this, in an example, the associative content can include the first associative content, and then the associative content matching the input intention is obtained in step S13, and the associative content is displayed on the interactive interface. Specifically, it can include: respectively determining the matching degree of the input intention and each alternative content in the preset database; according to the matching degree of each alternative content, selecting at least one from each alternative content to obtain the first associative content; and displaying each of the first associative contents on the interactive interface. Among them, the first associative content can include, for example, associative content with simple and clear descriptions such as the topic that the user wants to discuss or the question that he wants to raise. Of course, in addition to obtaining the first associative content, in another embodiment, other associative contents can also be obtained based on the first associative content or based on the input intention. For example, in another embodiment of the present invention, the associative content matching the input intent may include not only the title matching the input intent, but also the reference materials associated with the title. For example, in one example, the title matching the input intent may be "What trainings are there for new employees?", and the reference materials associated with the title may be --- work system documents, training document 1, training document 2, training document 3, etc. For example, a schematic diagram of associative content may be as follows: Figure 4 shown.
[0056] In an embodiment of the present invention, the matching degree between the input intention and each candidate content can be calculated in a variety of ways, such as a keyword matching method, a semantic matching method, etc. After obtaining the matching degree of each candidate content, one or more can be selected from each candidate content to obtain the first associative content. In one example, according to the matching degree of each candidate content, at least one is selected from each candidate content, and obtaining the associative content can specifically include: in response to the matching degree between the input content and at least one candidate content being greater than a preset matching threshold, determining that the at least one candidate content is the first associative content. For example, in one example, the preset matching threshold is 0.7, the input intention is "new employees joining the company", the alternative content 1 is "new employees joining the company ABC" - matching degree 0.77, the alternative content 2 is "newcomers in the workplace" - matching degree 0.35, and the alternative content 3 is "employee induction training" - matching degree 0.82. Based on the relationship between the matching degree and the preset matching threshold of 0.7, the alternative content 3 "employee induction training" and the alternative content 1 "new employees joining the company ABC" can be selected as the first association content and displayed on the interactive interface.
[0057] In a specific form, in one embodiment of the present invention, the associative content that matches the input intent may include a title that matches the input intent, and the title may be a declarative sentence provided in the form of an outline or key points, or an interrogative sentence provided in the form of a question, and the embodiment of the present invention does not limit this. For example, in one embodiment of the present invention, the title that matches the input intent may be "Newcomer Onboarding Process" or "What are the Onboarding Processes for Newcomers?", etc.
[0058] Furthermore, in one example, the associative content includes questions that match the input intention. After each of the associative contents is displayed on the interactive interface, the interactive method provided by an embodiment of the present invention may also include: receiving a selection operation on one of the questions to obtain a target question; and providing an answer to the target question.
[0059] In specific implementation, Figure 5 As shown, after selecting the target topic, the target topic can be sent to the historical conversation record area in the interactive interface as the conversation of the interlocutor, and accordingly, the reply provided for the target topic can also be sent to the historical conversation record area. Optionally, a reply can be provided for the target topic in a variety of ways. For example, in one example, based on a preset database, a matching algorithm can be used to search for reply content for the target topic, and the reply content can be displayed on the interactive interface; or, in another example, based on a preset database, a reply content can be generated for the target topic, and the reply content can be displayed on the interactive interface.
[0060] In one embodiment of the present invention, a matching algorithm can be used to search for answer content for the target topic in a preset database. If the answer content matches the target topic to a high degree, the answer content can be provided, for example, the answer content can be displayed on an interactive interface, thereby providing a more appropriate answer content for the target topic at a faster speed. If the answer content matches the target topic to a low degree, indicating that a more appropriate answer content has not been matched for the target topic, a large language model can be used to generate an answer content for the target topic, and the generated answer content can be displayed on an interactive interface.
[0061] Furthermore, no matter the displayed associative content is a topic or reference materials associated with the topic, before displaying each associative content on the interactive interface, the interactive method provided by the embodiment of the present invention may also include: displaying prompt information on the interactive interface, wherein the prompt information may be used to prompt that associative content is being obtained based on the input content, so as to give the inputter corresponding psychological expectations. In one example, the prompt information may be displayed on the upper left side of the dialogue input box. Optionally, the content associated with the last input may still be displayed on the interactive interface at this time. For example, Figure 6 As shown, after entering "newcomer" in the dialogue input box, a prompt "Associating..." appears, and the associated content displayed on the interactive interface is still the content that was associated when "newcomer" was entered last time.
[0062] In one embodiment of the present invention, a control switch for the association function may be provided on the interactive interface, and the interlocutor may choose whether to turn on the association function through the control switch according to his / her needs. Figures 3 to 6 , the control switch can be set on the right side of the dialogue input box. Based on this, before the input ends, according to the input content in the dialogue input box, before the input intention corresponding to the dialogue input operation is identified, the interactive method provided by the embodiment of the present invention may also include: detecting whether the association function is turned on. Then, before the input ends, according to the input content in the dialogue input box, identifying the input intention corresponding to the dialogue input operation may specifically include: in response to the association function being turned on, before the input ends, according to the input content in the dialogue input box, identifying the input intention corresponding to the dialogue input operation. In this way, the interlocutor is given more choices. When the association function is turned on, the corresponding input intention recognition and association content matching operations are performed. When the association function is turned off, the corresponding reply can be provided for the input content after waiting for the input to end and clicking "OK" or entering "Enter".
[0063] The interactive method provided by the embodiment of the present invention is described in detail below through a specific embodiment.
[0064] like Figure 7As shown, the interaction method provided by the embodiment of the present invention may include:
[0065] S201, providing an interactive interface, wherein a dialogue input box is provided in the interactive interface;
[0066] S202, detecting whether the association function is turned on;
[0067] S203, in response to the association function being turned on, before the input ends, providing the input content in the dialogue input box to a preset intention recognition model to obtain the input intention output by the intention recognition model;
[0068] S204, respectively determining the matching degree between the input intention and each candidate content in the preset database;
[0069] S205: In response to the matching degree between the input content and at least one candidate content being greater than a preset matching threshold, determining the at least one candidate content to be a first associative content, wherein the first associative content includes a title matching the input intention;
[0070] S206, displaying each question on the interactive interface;
[0071] S207, receiving a selection operation on one of the questions, and obtaining a target question;
[0072] S208, searching for answer content for the target question through a matching algorithm based on a preset database;
[0073] S209: In response to the matching degree between the reply content and the target topic being less than a preset matching degree threshold, based on a preset database, generating reply content for the target topic, and displaying the reply content on an interactive interface.
[0074] In a second aspect, an embodiment of the present invention provides an interactive device that can effectively improve the interaction efficiency of conversational interaction.
[0075] like Figure 8 As shown, the interaction device provided by the embodiment of the present invention may include:
[0076] A providing unit 31, configured to provide an interactive interface, wherein the interactive interface is provided with a dialogue input box;
[0077] The recognition unit 32 is used for, in response to receiving a dialogue input operation through the dialogue input box, identifying the input intention corresponding to the dialogue input operation according to the input content in the dialogue input box before the input ends;
[0078] The display unit 33 is used to obtain the associative content matching the input intention and display the associative content on the interactive interface.
[0079] The interactive device provided by the embodiment of the present invention can provide an interactive interface, in which a dialogue input box is provided. In response to receiving a dialogue input operation through the dialogue input box, before the input ends, the input intention corresponding to the dialogue input operation is identified according to the input content in the dialogue input box, the associative content matching the input intention is obtained, and the associative content is displayed on the interactive interface. In this way, during the input operation, the input intention corresponding to the input operation can be identified in advance according to the current input content in the dialogue input box, and the associative content matching the input intention is displayed on the interactive interface, thereby providing a reference and selection for the dialogue inputter, and the desired reply content can be obtained without the dialoguer accurately organizing the language and performing time-consuming complete description and input, thereby effectively improving the interaction efficiency.
[0080] In one implementation, the recognition unit 32 is specifically configured to provide the input content to a preset intention recognition model to obtain the input intention output by the intention recognition model.
[0081] In one implementation, the associative content matching the input intention includes: a title matching the input intention, or a title matching the input intention and reference materials associated with the title.
[0082] In one embodiment, the associative content includes a topic that matches the input intention;
[0083] The device also includes:
[0084] A receiving unit, configured to receive a selection operation on one of the topics after displaying the associated contents on the interactive interface, to obtain a target topic;
[0085] The answering unit is used to provide an answer to the target question.
[0086] In one implementation, the reply unit is specifically configured to:
[0087] Based on the preset database, searching for answer content for the target question through a matching algorithm, and displaying the answer content on the interactive interface;
[0088] or,
[0089] Based on the preset database, answer content is generated for the target question, and the answer content is displayed on the interactive interface.
[0090] In one implementation, the associative content may include first associative content;
[0091] The display unit 33 may include:
[0092] A determination module, used to respectively determine the matching degree between the input intention and each candidate content in the preset database;
[0093] A selection module, configured to select at least one from each of the candidate contents according to the matching degree of each of the candidate contents, to obtain a first associated content;
[0094] A display module is used to display each of the first associative contents on the interactive interface.
[0095] In one implementation, the selection module is specifically configured to determine at least one candidate content whose matching degree with the input content is greater than a preset matching threshold as the first associative content.
[0096] In one embodiment, the display unit 33 further includes:
[0097] The prompt module is used to display prompt information on the interactive interface before displaying each of the associative contents on the interactive interface, wherein the prompt information is used to prompt that the associative contents are being obtained according to the input contents.
[0098] In one embodiment, the device further comprises:
[0099] A detection unit, used to detect whether the association function is turned on before the input ends, based on the input content in the dialog input box, and before identifying the input intention corresponding to the dialog input operation;
[0100] The recognition unit is specifically configured to recognize the input intention corresponding to the dialogue input operation according to the input content in the dialogue input box before the input ends, in response to the detection unit detecting that the association function has been turned on.
[0101] Figure 1 The specific operations shown can be performed by Figure 8 The operation is performed by each unit in the device, and the specific operation details will not be repeated here.
[0102] In a third aspect, accordingly, an embodiment of the present invention provides an electronic device that can effectively improve the interaction efficiency of conversational interaction.
[0103] like Fig. 9As shown, an electronic device provided by an embodiment of the present invention may include: a shell 41, a processor 42, a memory 43, a circuit board 44 and a power supply circuit 45, wherein the circuit board 44 is arranged inside the space enclosed by the shell 41, and the processor 42 and the memory 43 are arranged on the circuit board 44; the power supply circuit 45 is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory 43 is used to store executable program codes; the processor 42 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 43, so as to execute the interaction method described in any of the aforementioned embodiments.
[0104] The specific execution process of the above steps by the processor 42 and the steps further executed by the processor 42 by running the executable program code can be found in the description of the previous embodiment, which will not be repeated here.
[0105] The electronic device exists in various forms and may have a stand-alone or distributed computing structure, which is not limited in the present invention.
[0106] In the fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement any one of the interaction methods provided in the aforementioned embodiments, thereby also achieving the corresponding technical effects, which have been described in detail above and will not be repeated here.
[0107] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0108] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0109] In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0110] For the convenience of description, the above device is described by dividing the functions into various units / modules. Of course, when implementing the present invention, the functions of each unit / module can be implemented in the same or multiple software and / or hardware.
[0111] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0112] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. An interactive method, characterized in that: include: Providing an interactive interface, wherein the interactive interface is provided with a dialogue input box; In response to receiving a dialog input operation through the dialog input box, before the input ends, identifying an input intention corresponding to the dialog input operation according to input content in the dialog input box; Acquire associative content matching the input intention, and display the associative content on the interactive interface.
2. The method according to claim 1, characterized in that The identifying the input intention corresponding to the dialogue input operation according to the input content in the dialogue input box includes: The input content is provided to a preset intention recognition model to obtain the input intention output by the intention recognition model.
3. The method according to claim 1, characterized in that The associative content matching the input intention includes: a title matching the input intention, or a title matching the input intention and reference materials associated with the title.
4. The method according to claim 3, characterized in that The associative content includes a topic matching the input intention; After displaying each of the associative contents on the interactive interface, the method further includes: receiving a selection operation on one of the questions to obtain a target question; Provide an answer to the target question.
5. The method according to claim 4, characterized in that Providing an answer to the target question includes: Based on the preset database, searching for answer content for the target question through a matching algorithm, and displaying the answer content on the interactive interface; or, Based on the preset database, answer content is generated for the target question, and the answer content is displayed on the interactive interface.
6. The method according to claim 1, characterized in that The associative content includes first associative content; The acquiring of the associative content matching the input intention and displaying the associative content on the interactive interface comprises: Determining the matching degree between the input intention and each candidate content in the preset database respectively; According to the matching degree of each candidate content, at least one candidate content is selected from each candidate content to obtain a first associated content; Each of the first associative contents is displayed on the interactive interface.
7. The method according to claim 1, characterized in that Before displaying each of the associative contents on the interactive interface, the method further includes: Prompt information is displayed on the interactive interface, where the prompt information is used to prompt that associative content is being obtained based on the input content.
8. An interactive device, characterized in that: include: A providing unit, used for providing an interactive interface, wherein the interactive interface is provided with a dialogue input box; an identification unit, configured to, in response to receiving a dialog input operation through the dialog input box, identify an input intention corresponding to the dialog input operation based on input content in the dialog input box before the input ends; A display unit is used to obtain associative content matching the input intention and display the associative content on the interactive interface.
9. An electronic device, characterized in that: The electronic device comprises: a housing, a processor, a memory, a circuit board and a power supply circuit, wherein the circuit board is placed inside the space enclosed by the housing, and the processor and the memory are arranged on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory is used to store executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the interaction method described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the interactive method according to any one of claims 1 to 7.
Citation Information
Cited By
Installation and maintenance fault reporting service monitoring method and device, electronic equipment and storage medium
CN119363610A
Method and device for monitoring installation and maintenance of obstacles, electronic equipment and storage medium
CN119363610B
