Information interaction method and device

By identifying the intention of natural language query statements and generating adaptive feedback information, it solves the problem that existing natural language query systems can only obtain services through a single method, and achieves a unified user experience under multiple service acquisition methods.

CN118332097BActive Publication Date: 2024-09-24RAJAX NETWORK &TECHNOLOGY (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410753389.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-24
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

The existing natural language query system only allows users to obtain services through a single method, resulting in poor user experience and incompatibility with multiple service acquisition methods.

Method used

By receiving natural language query statements, identifying intentions, and generating feedback information that adapts to different service acquisition methods based on intentions and feedback rules, it ensures that users can receive appropriate feedback in any acquisition method.

Benefits of technology

It achieves a unified user experience under multiple service acquisition methods and improves users' natural language query service experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118332097B
    Figure CN118332097B
Patent Text Reader

Abstract

The embodiment of the present invention discloses an information interaction method and device. After obtaining a natural language query statement, the embodiment of the present invention performs intent recognition on the natural language query statement to obtain a target intent, determines a feedback rule for the natural language query statement, and then generates feedback information according to the natural language query statement, the target intent, and the feedback rule, and then sends the feedback information to a service requester, so that the service requester controls a terminal interface to display the feedback information. Thus, the embodiment of the present invention can be compatible with multiple service acquisition methods, and enables users to obtain feedback information that is compatible with the currently used service acquisition method when obtaining a natural language query service through any service acquisition method, thereby improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural language processing, and in particular to an information interaction method and device. Background Art

[0002] With the continuous development of artificial intelligence, natural language query services have begun to be widely used in various industries. Specifically, natural language query services are a technical application that allows users to use natural language in daily spoken or written form to ask questions or initiate requests to computer systems. The system can understand this informal language and return relevant information or perform corresponding operations based on the user's intentions. However, existing natural language query systems usually only allow users to obtain natural language query services in a single way. For example, users can only use a web browser to access the corresponding page to obtain natural language query services, which makes the user experience poor. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides an information interaction method and device to be compatible with multiple service acquisition methods, and enable users to obtain feedback information that is compatible with the currently used service acquisition method when obtaining natural language query services through any service acquisition method, thereby improving user experience.

[0004] In a first aspect, an embodiment of the present invention provides an information interaction method, applicable to a server, the method comprising:

[0005] Receiving a service acquisition request, wherein the service acquisition request includes a natural language query statement;

[0006] Performing intent recognition on the natural language query sentence to obtain a target intent;

[0007] Determining a feedback rule for the natural language query statement, the feedback rule including at least one of a knowledge retrieval scope, a data query scope, or format requirement information for feedback information, the format of the feedback information being used to characterize a presentation form of the feedback information in a terminal interface;

[0008] Generate feedback information according to the natural language query statement, the target intent and the feedback rule;

[0009] The feedback information is sent to the service requester, so that the service requester controls the terminal interface to display the feedback information.

[0010] In a second aspect, an embodiment of the present invention provides an information interaction method, applicable to a service requester, the method comprising:

[0011] Sending a service acquisition request to a server, so that the server performs intent recognition on a natural language query statement in the service acquisition request to obtain a target intent, determines a feedback rule for the natural language query statement, generates feedback information according to the natural language query statement, the target intent and the feedback rule, and feeds back the feedback information, wherein the feedback rule includes at least one of a knowledge retrieval scope, a data query scope or format requirement information for feedback information, and the format of the feedback information is used to characterize the presentation form of the feedback information in a terminal interface;

[0012] receiving the feedback information;

[0013] The control terminal interface displays the feedback information.

[0014] In a third aspect, an embodiment of the present invention provides an information interaction system, the system comprising a plurality of service requesters and a server;

[0015] Wherein, the server is configured as:

[0016] Receiving a service acquisition request, wherein the service acquisition request includes a natural language query statement;

[0017] Performing intent recognition on the natural language query sentence to obtain a target intent;

[0018] Determining a feedback rule for the natural language query statement, the feedback rule including at least one of a knowledge retrieval scope, a data query scope, or format requirement information for feedback information, the format of the feedback information being used to characterize a presentation form of the feedback information in a terminal interface;

[0019] Generate feedback information according to the natural language query statement, the target intent and the feedback rule;

[0020] Sending the feedback information to the service requester;

[0021] Each of the service requesters is configured as:

[0022] Send a service acquisition request to the server;

[0023] receiving the feedback information;

[0024] The control terminal interface displays the feedback information.

[0025] In a fourth aspect, an embodiment of the present invention provides an information interaction device, the device comprising:

[0026] A request receiving unit, configured to receive a service acquisition request, wherein the service acquisition request includes a natural language query statement;

[0027] An intent recognition unit, used to perform intent recognition on the natural language query sentence to obtain a target intent;

[0028] A feedback rule determination unit, used to determine a feedback rule for the natural language query statement, wherein the feedback rule includes at least one of a knowledge retrieval scope, a data query scope, or format requirement information for feedback information, wherein the format of the feedback information is used to characterize the presentation form of the feedback information in the terminal interface;

[0029] A feedback information generating unit, configured to generate feedback information according to the natural language query statement, the target intent and the feedback rule;

[0030] The feedback information sending unit is used to send the feedback information to the service requester, so that the service requester controls the terminal interface to display the feedback information.

[0031] In a fifth aspect, an embodiment of the present invention provides an information interaction device, the device comprising:

[0032] A request sending unit, used to send a service acquisition request to a server, so that the server performs intent recognition on a natural language query statement in the service acquisition request to obtain a target intent, determines a feedback rule for the natural language query statement, generates feedback information according to the natural language query statement, the target intent and the feedback rule, and feeds back the feedback information, wherein the feedback rule includes at least one of a knowledge retrieval scope, a data query scope or format requirement information for feedback information, and the format of the feedback information is used to characterize the presentation form of the feedback information in a terminal interface;

[0033] A feedback information receiving unit, configured to receive the feedback information;

[0034] The display unit is used to control the terminal interface to display the feedback information.

[0035] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method as described in any one of the first aspect or the second aspect is implemented.

[0036] In a seventh aspect, an embodiment of the present invention provides an electronic device, the device comprising:

[0037] a memory for storing one or more computer program instructions;

[0038] A processor, wherein the one or more computer program instructions are executed by the processor to implement the method as described in any one of the first aspect or the second aspect.

[0039] In an eighth aspect, an embodiment of the present invention provides a computer program product, which, when executed on a computer, enables the computer to execute a method as described in any one of the first aspect or the second aspect.

[0040] After obtaining a natural language query statement, the embodiment of the present invention will perform intent recognition on the natural language query statement to obtain the target intent, and determine the feedback rules of the natural language query statement, and then generate feedback information based on the natural language query statement, the target intent and the feedback rules, and then send the feedback information to the service requester so that the service requester controls the terminal interface to display the feedback information. Therefore, the embodiment of the present invention can be compatible with multiple service acquisition methods, and enable users to obtain feedback information that is compatible with the currently used service acquisition method when obtaining natural language query services through any service acquisition method, thereby improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:

[0042] Figure 1 is a schematic diagram of an information interaction system according to an embodiment of the present invention;

[0043] Figure 2 is a flow chart of an information interaction method according to an embodiment of the present invention;

[0044] Figure 3 is a flow chart of an intention recognition method according to an embodiment of the present invention;

[0045] Figure 4 is a flow chart of a method for generating feedback information according to an embodiment of the present invention;

[0046] Figure 5 A flowchart of a method for determining a target knowledge text according to an embodiment of the present invention;

[0047] Figure 6 is a flow chart of a method for generating feedback information according to an embodiment of the present invention;

[0048] Figure 7 is a flow chart of a method for determining target metadata according to an embodiment of the present invention;

[0049] Figure 8 A flowchart of a method for obtaining a target data table according to an embodiment of the present invention;

[0050] Fig. 9 is a flow chart of an information interaction method according to an embodiment of the present invention;

[0051] Fig.10 is a schematic diagram of a terminal interface according to an embodiment of the present invention;

[0052] Fig.11 is another schematic diagram of a terminal interface according to an embodiment of the present invention;

[0053] Fig.12 is another schematic diagram of a terminal interface according to an embodiment of the present invention;

[0054] Fig.13 is a schematic diagram of an information interaction device according to an embodiment of the present invention;

[0055] Fig.14 is a schematic diagram of an information interaction device according to an embodiment of the present invention;

[0056] Fig.15 Schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0057] The present application is described below based on embodiments, but the present application is not limited to these embodiments. In the detailed description of the present application below, some specific details are described in detail. It is possible for those skilled in the art to fully understand the present application without the description of these details. In order to avoid confusing the essence of the present application, known methods, processes, flows, components and circuits are not described in detail.

[0058] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.

[0059] Unless the context clearly requires otherwise, the words "include", "comprising" and similar words throughout the application should be interpreted as including rather than exclusive or exhaustive; that is, the meaning is "including but not limited to".

[0060] In the description of this application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" is two or more.

[0061] The solutions described in this specification and in the examples, if they involve the processing of personal information, will be processed on the premise of having a legal basis (such as obtaining the consent of the subject of personal information, or being necessary for the performance of a contract, etc.), and will only be processed within the scope of regulations or agreements. If a user refuses to process personal information other than the necessary information for basic functions, it will not affect the user's use of basic functions.

[0062] Figure 1 Schematic diagram of an information interaction system according to an embodiment of the present invention. Figure 1As shown, the information interaction system includes multiple service requesters 11 and servers 12.

[0063] Among them, the service requester 11 can be used to interact with the user, and can send a service acquisition request to the server 12 according to the interaction result to instruct the server 12 to provide the user with a natural language query service. In this embodiment, the user can interact with any one of the multiple service requesters 11 to enable the corresponding service requester 11 to send a service acquisition request to the server, thereby obtaining a natural language query service. Optionally, the service requester 11 can be a web page, an application (APP, Application), a small program, a plug-in or a component, etc., and this application does not limit this. Further, each service requester 11 can run in a user terminal. The user terminal can be a terminal held by the user, which can be any type of terminal device such as a smart phone, a tablet computer, a smart wearable device or a laptop. In some embodiments, the service requester 11 can also run on other related devices. For example, when the service requester 11 is a group chat robot (the group chat robot can be a component of an instant messaging platform), it can also run in the server. It should be understood that in some embodiments, other related devices can also be smart speakers, vehicle-mounted terminals, unmanned vehicles or robots, etc., and this application does not limit this.

[0064] The server 12 may be a general data processing device that provides computing or application services to other clients in the network. In this embodiment, the server 12 may provide a natural language query service to the user upon receiving a service acquisition request sent by the corresponding service requester 11. Optionally, the server 12 may be a single computer, a cluster of multiple computers, or a cloud server that elastically adjusts computing resources through cloud technology.

[0065] Specifically, the user can interact with any one of the multiple service requesters 11 so that the corresponding service requester 11 sends a service acquisition request to the server 12. The server 12 can obtain the natural language query statement in the service acquisition request when receiving the service acquisition request. After obtaining the natural language query statement, the server 12 can perform intent recognition on the natural language query statement to obtain the target intent, and determine the feedback rule of the natural language query statement, and then generate feedback information based on the natural language query statement, the target intent and the feedback rule. Furthermore, the server 12 can send the generated feedback information to the corresponding service requester 11 so that the service requester 11 controls the terminal interface to display the feedback information.

[0066] Therefore, the embodiment of the present invention can be compatible with multiple service acquisition methods, and enable users to obtain feedback information that is compatible with the currently used service acquisition method when obtaining natural language query services through any service acquisition method, thereby improving user experience.

[0067] Optionally, in order to achieve data interaction between each other, each service requester 11 and the server 12 can be connected by a wireless network. Among them, the wireless network includes but is not limited to: long term evolution (LTE) system, 5G mobile communication network technology (5th-Generation, 5G) system, Global System for Mobile Communication (Global System for Mobile Communication, GSM), Bluetooth (Bluetooth, BT), Wireless Fidelity (Wireless Fidelity, Wi-Fi), Radio Frequency Identification (Radio Frequency Identification, RFID) technology, nearfield communication (nearfield communication, NFC) technology, Code Division Multiple Access (Code Division Multiple Access, CDMA) network, wideband code division multiple access (wideband code division multiple access, WCDMA) network, long-range wireless communication (Long Range, Lora) technology or Zigbee protocol (Zigbee) in any one or combination. It should be understood that each service requester 11 and the server 12 can also be connected by a wired network or a combination of a wired network and a wireless network. Among them, the wired network can include a fiber optic communication network or a network composed of coaxial cables, etc.

[0068] Figure 2 Flow chart of the information interaction method of the embodiment of the present invention. It should be understood that Figure 2 The execution subject of the information interaction method shown in FIG. 1 may be the server in the above embodiment. Figure 2 As shown, the information interaction method may specifically include the following steps:

[0069] Step S100: receiving a service acquisition request.

[0070] Specifically, the server may receive a service acquisition request sent by a user through any service requester. The service acquisition request may include a natural language query statement. A natural language query statement may be a question, topic, instruction or keyword raised by a user in natural language. For example, a natural language query statement may be "What are the indicators related to DAU", "Distribution of the order volume in Shanghai by commodity category yesterday" or "Commodity", etc.

[0071] Optionally, in this embodiment, the service requester may be any one of an application (APP, Application), a web page, a mini-program, a plug-in or a component, and this embodiment does not limit this.

[0072] Optionally, in this step, the natural language query statement obtained can be in text form or in voice form. Further, in this step, if the natural language query statement obtained is in voice form, then before executing subsequent steps, the server can also perform voice recognition on the natural language query statement to convert it from voice form to text form.

[0073] Step S200: performing intent recognition on the natural language query statement to obtain a target intent.

[0074] Specifically, after obtaining the natural language query statement in the service acquisition request, the server may perform intent recognition on the natural language query statement to obtain the target intent, wherein the target intent may be the purpose or demand expressed by the user in the natural language query statement.

[0075] Figure 3 Flow chart of the intention recognition method of an embodiment of the present invention. Figure 3 In the intent recognition method shown, the server can use a large language model to perform intent recognition on a natural language query sentence to obtain the target intent, that is, to implement the above step S200. Figure 3 As shown, the intention recognition method may specifically include the following steps:

[0076] Step S210: construct an intent recognition prompt statement according to the natural language query statement.

[0077] Specifically, the server can construct an intent recognition prompt sentence based on the natural language query sentence. The intent recognition prompt sentence can be a text description, which can be used to guide the large language model to perform intent recognition on the natural language query sentence so that its output meets the expected target intent.

[0078] Optionally, the server can construct an intent recognition prompt statement by filling a natural language query statement into the corresponding position of the intent recognition prompt template. Among them, the intent recognition prompt template can be a statement template prepared in advance by relevant personnel. The intent recognition prompt template may include intent recognition instructions and intent recognition reference information. The intent recognition instruction may be an instruction used to indicate the task that the large language model needs to complete. For example, the intent recognition instruction may be "Please determine the user's target intent among multiple preset intentions based on the natural language query statement input by the user and the intent recognition reference information." The intent recognition reference information may be relevant information provided for the large language model to assist the large language model in intent recognition. Furthermore, the intent recognition reference information may include intent description information and intent examples of the preset intent. Among them, the intent description information may be an explanatory text description of the corresponding preset intent. The intent example may be an example of a natural language query statement that may be used when the user wants to express the corresponding preset intent.

[0079] Furthermore, in this embodiment, the preset intent may include knowledge retrieval, data query and other intents. Among them, knowledge retrieval means that the user wants to obtain the answer to a question (for example, to query the meaning of a professional term, to query the cause of a phenomenon, or to query the processing flow of a certain operation, etc.). Data query means that the user wants to query the data stored in the database in a structured manner (for example, to query the turnover of a store this month, to query the sales of a certain product this month, or to query the sales growth rate of the platform last month, etc.). Other intents mean that the user's purpose cannot be determined for the time being.

[0080] Exemplarily, assuming that the natural language query statement is "What are the indicators related to DAU", the intent recognition prompt statement constructed by the server can be: [Please determine the user's target intent from multiple preset intentions based on the natural language query statement entered by the user and the intent recognition reference information. Among them, the natural language query statement is: "What are the indicators related to DAU". The intent recognition reference information is: "Preset intent: knowledge retrieval; intent description: The user wants to get the answer to a certain question; intent example: what is the product, what is the principle of the large language model, what is the process of the server sending information to the client; preset intent: data query; intent description: The user wants to query the structured data stored in the database; intent example: please give the store's turnover this month and the platform's sales growth rate last month; preset intent: other intents; intent description: The user's purpose cannot be determined yet." ]. It should be understood that the intent recognition prompt statement given above is only for illustration. In actual application, the content included in the intent recognition prompt statement is not limited to this.

[0081] Step S220: input the intention recognition prompt sentence into a large language model to determine the target intention through the large language model.

[0082] Specifically, after constructing the intent recognition prompt sentence, the server can input the intent recognition prompt sentence into the large language model to determine the target intent through the large language model.

[0083] It should be understood that a large language model (LLM) refers to a deep learning model with a large number of parameters, which can automatically learn the grammatical and semantic rules of natural language, and then generate natural language text. Optionally, in this embodiment, the large language model used by the server may be a Qwen-14B model. Among them, the Qwen-14B model is a pre-trained language model based on the Transformer architecture. It should be understood that in some embodiments, the server may also use other types of large language models, for example, the server may use the ChatGPT-3.5 model or the GPT-4 model, etc., and this application does not limit this.

[0084] Step S300: Determine a feedback rule for the natural language query statement.

[0085] Specifically, due to the influence of different information recognizable formats, different fields or different query permissions, the natural language query statements sent by different service requesters usually have different feedback rules. Among them, the feedback rules may refer to the rules that the server needs to follow when providing natural language query services (for example, for service requesters belonging to the transportation field, the server needs to answer within the transportation field when providing natural language query services. For example, for service requesters who only have data query permissions for a certain store, the server needs to perform data queries within the scope of permissions owned by the service requester when providing natural language query services. For example, for service requesters who only have Extensible Markup Language (XML) recognition capabilities, the server needs to provide the service requester with feedback information in the format of Extensible Markup Language when providing natural language query services). Therefore, before generating feedback information, the server needs to first determine the feedback rules of the natural language query statement.

[0086] It should be understood that the feedback rules of the natural language query statements sent by different service requesters can be predetermined by relevant personnel, and this embodiment does not limit this. Further, when determining the feedback rules of the natural language query statements sent by each service requester, if the service requester is an independent web page, application (APP, Application) or applet, the feedback rules of the natural language query statements sent by the service requester can be determined according to the service requester itself; if the service requester is a plug-in or component integrated in other systems, the feedback rules of the natural language query statements sent by the service requester can be determined according to the system integrated by the service requester.

[0087] Step S400: Generate feedback information according to the natural language query statement, the target intent and the feedback rule.

[0088] Specifically, after determining the target intent and the feedback rules, the server may generate feedback information according to the target intent, the feedback rules and the natural language query statement.

[0089] Optionally, in this embodiment, the server may generate feedback information in different ways for different target intentions.

[0090] Figure 4 Flow chart of the feedback information generating method according to an embodiment of the present invention. Figure 4 In the feedback information generation method shown in the figure, when the target intention is knowledge retrieval, the server can generate feedback information according to the feedback rules and the natural language query statement, that is, to implement the above step S400. Figure 4 As shown, the feedback information generating method may specifically include the following steps:

[0091] Step S410: In response to the target intention being knowledge retrieval, obtaining a target knowledge text according to the natural language query statement and the knowledge retrieval scope.

[0092] Specifically, the feedback rule may include a knowledge retrieval scope, and the server may obtain a target knowledge text according to the natural language query statement and the knowledge retrieval scope. The target knowledge text may be a knowledge text within the knowledge retrieval scope and related to the user question in the natural language query statement. In this embodiment, the target knowledge text may be used to provide the large language model with the latest professional knowledge, thereby assisting the large language model to answer the user question in the natural language query statement, so that the large language model can generate high-quality feedback information.

[0093] Figure 5 Flow chart of the target knowledge text determination method of the embodiment of the present invention. Figure 5In the target knowledge text determination method shown in the figure, the server can obtain the target knowledge text through the natural language query statement and the knowledge search scope, that is, to implement the above step S410. Figure 5 As shown, the target knowledge text determination method may specifically include the following steps:

[0094] Step S411: determine the target knowledge base corresponding to the knowledge search scope.

[0095] Specifically, the server may determine a target knowledge base corresponding to the knowledge search scope, wherein the target knowledge base may be a knowledge base within the knowledge search scope, the target knowledge base may store knowledge texts, each knowledge text may have a corresponding knowledge vector, and the knowledge vector is a vector expression of the knowledge text.

[0096] Optionally, each knowledge text in the target knowledge base can be obtained by the server through preprocessing the collected text data. Among them, the text data can come from publicly available resources (for example, from Wikipedia, news articles, academic papers or web crawling, etc.). Preprocessing can include operations such as cleaning, denoising and splitting, which will not be repeated here. Furthermore, the knowledge vector of each knowledge text can be determined in advance by the server using a large-scale text embedding model. Specifically, the server can input each knowledge text into a large-scale text embedding model to convert each knowledge text into a vector through the large-scale text embedding model, thereby obtaining the knowledge vector of each knowledge text. Among them, the large-scale text embedding model is a general text embedding model obtained by training with a large-scale data set and using the Massive Text Embedding (MTE) technology. The large-scale text embedding model is used to convert input data into corresponding vectors.

[0097] Optionally, in this embodiment, the large-scale text embedding model used by the server may be a Moka Massive Text Embedding model (M3E), which is a text embedding model trained on a large-scale Chinese sentence pair dataset, and can convert natural language query statements into dense vectors. M3E is trained on large-scale sentence pair datasets, including Chinese encyclopedias, finance, medical care, law, news, academia, e-commerce, logistics and other fields. Through training on datasets in different fields, M3E has the ability to capture the contextual relationships of natural language query statements belonging to various fields. Therefore, M3E can be applied to vector conversion of natural language query statements in various fields.

[0098] It should be understood that, in order to facilitate search and query, the knowledge vectors in the target knowledge base may also be clustered and graded by the server according to the vector similarities between each other, which will not be described in detail here.

[0099] Step S412: Determine a natural language query vector corresponding to the natural language query statement.

[0100] Specifically, the server may perform vector conversion on the natural language query statement, thereby obtaining a natural language query vector, wherein the natural language query vector is a vector expression of the natural language query statement.

[0101] Optionally, the natural language query vector can also be determined by the server using a large-scale text embedding model. Specifically, the server can input the natural language query statement into the large-scale text embedding model to perform vector conversion on the natural language query statement through the large-scale text embedding model, thereby obtaining the natural language query vector.

[0102] Step S413: Determine a target knowledge vector in the target knowledge base according to the natural language query vector.

[0103] Specifically, after determining the target knowledge base and the natural language query vector, the server can perform vector retrieval in the target knowledge base according to the natural language query vector to obtain the target knowledge vector. The target knowledge vector is a knowledge vector whose vector similarity with the natural language query vector is greater than or equal to a first preset similarity threshold. The first preset similarity threshold can be set by relevant personnel according to actual needs, and this application does not limit this.

[0104] Optionally, in step S413, the server may use a vector search tool based on Faiss (Facebook AI Similarity Search) to perform vector search. Faiss is a library for efficient vector search, which is mainly used to process large-scale high-dimensional vector data sets to perform fast similarity search and clustering operations in large-scale data sets.

[0105] Step S414: Determine the knowledge text corresponding to each of the target knowledge vectors as the target knowledge text.

[0106] Specifically, after acquiring the target knowledge vectors, the server may determine the knowledge text corresponding to each target knowledge vector as the target knowledge text.

[0107] Step S420: construct a feedback prompt sentence according to the natural language query sentence and the target knowledge text.

[0108] Specifically, after obtaining the target knowledge text, the server may construct a feedback prompt sentence according to the natural language query sentence and the target knowledge text.

[0109] Optionally, the feedback rules may also include format requirement information for the feedback information (for example, the format requirement information may indicate that the format of the feedback information needs to be Extensible Markup Language, Markdown, JSON (JavaScript Object Notation), message card (message card is a rich media information display format used on platforms such as instant messaging, social software, smart assistants, etc.) or plain text format, etc.). It should be understood that the format of the feedback information can be used to characterize the presentation form of the feedback information in the terminal interface. Specifically, in step S420, in order to obtain feedback information whose format meets the requirements, the server may also construct a feedback prompt statement based on the format requirement information, natural language query statements, and target knowledge text. It should be understood that in actual application, the feedback rules can be specifically set and adjusted by relevant personnel according to actual needs, and the present application does not limit this. For example, in some scenarios, the feedback rules may also include content requirement information for the feedback information, etc.

[0110] Optionally, the feedback prompt statement can be constructed by the server by filling relevant information into the feedback prompt template. Similar to the intention recognition prompt template, the feedback prompt template can be a sentence template prepared in advance by relevant personnel. Among them, the feedback prompt template can include feedback instructions. Feedback instructions can be instructions for indicating the tasks that need to be completed by the large language model. For example, the feedback instruction can be "Please generate feedback information in a format that meets the requirements based on the natural language query statement and the target knowledge text."

[0111] Exemplarily, the feedback prompt statement constructed by the server may be: [Please generate feedback information in a format that meets the requirements based on the natural language query statement and the target knowledge text. Among them, the natural language query statement is: "What are the indicators related to DAU". The target knowledge text is: "xxxxxx". The format requirement information is: "JSON". ]. It should be understood that the feedback prompt statement given above is only for illustration. In actual application, the content included in the feedback prompt statement is not limited to this.

[0112] Step S430: input the feedback prompt sentence into a large language model to generate the feedback information through the large language model.

[0113] Specifically, after obtaining the feedback prompt sentence, the server can input the feedback prompt sentence into the large language model to generate feedback information through the large language model. The feedback information can be the answer to the user's question in the natural language query sentence given by the large language model after combining its own knowledge with the target knowledge text.

[0114] Figure 6 Flow chart of the feedback information generating method according to an embodiment of the present invention. Figure 6 In the feedback information generation method shown, when the target intent is data query, the server can generate feedback information according to the feedback rules and the natural language query statement, that is, implement the above step S400. Figure 6 As shown, the feedback information generating method may specifically include the following steps:

[0115] Step S410': in response to the target intention being a data query, determine target metadata according to the natural language query statement and the data query scope.

[0116] Specifically, the feedback rule may include a data query scope, and the server may obtain the target metadata based on the natural language query statement and the data query scope. Among them, the target metadata may be the metadata of the target data table. The target data table may be a data table storing the target data that the user wants to query. It should be understood that metadata may be structured information of the data table itself, and this information does not contain the specific content data of the data table. In this embodiment, the metadata may include the table name, column name, stored data type, and data description information of the data table. Among them, the data description information may be text information that explains the meaning or purpose of the data stored in the data table (for example, the description information may indicate that the data stored in the data table is the platform's turnover in the previous month, or that the data stored in the data table is the sales of a certain commodity every day this month, etc.).

[0117] Figure 7 Flow chart of the target metadata determination method according to an embodiment of the present invention. Figure 7 The target metadata determination method shown in the figure can determine the target metadata according to the natural language query statement and the data query range, that is, to implement the above step S410'. Figure 7 As shown, the target metadata determination method may specifically include the following steps:

[0118] Step S411': determine the target database corresponding to the data query range.

[0119] Specifically, the server may determine a target database corresponding to the data query scope. The target database may be a database within the data query scope. The target database stores metadata of multiple data tables, each metadata may have a corresponding metadata vector, and the metadata vector is a vector expression of the metadata. It should be understood that the metadata vector of each metadata may be determined by the server using a large-scale text embedding model, which will not be described in detail here.

[0120] Step S412': determine a natural language query vector corresponding to the natural language query statement.

[0121] Specifically, the server may perform vector conversion on the natural language query statement to obtain a natural language query vector. The natural language query vector is a vector expression of the natural language query statement. It should be understood that the natural language query vector determination method in step S411' is the same as the natural language query vector determination method in step S412, and will not be repeated here.

[0122] Step S413': determine a target metadata vector in the target database according to the natural language query vector.

[0123] Specifically, after determining the target database and the natural language query vector, the server can perform a vector search in the target database according to the natural language query vector to obtain a target metadata vector. The target metadata vector is a metadata vector whose vector similarity with the natural language query vector is greater than or equal to a second preset similarity threshold. The second preset similarity threshold can be set by relevant personnel according to actual needs, and this application does not limit this.

[0124] Step S414': determine the metadata corresponding to the target metadata vector as the target metadata.

[0125] Specifically, after the target metadata vector, the server may determine the metadata corresponding to the target metadata vector as the target metadata.

[0126] Step S420': Acquire a target data table corresponding to the target metadata.

[0127] Specifically, after obtaining the target metadata, the server may obtain a target data table corresponding to the target metadata.

[0128] Figure 8 Flow chart of the target data table acquisition method according to an embodiment of the present invention. Figure 8 In the target data table acquisition method shown in FIG. 1 , the server may use a large language model to acquire the target data table corresponding to the target metadata, that is, to implement the above step S420′. Figure 8 As shown, the target data table acquisition method may specifically include the following steps:

[0129] Step S421': construct a structured prompt statement according to the target metadata.

[0130] Specifically, the server may construct a structured prompt statement according to the target metadata, wherein the structured prompt statement may be a text description, which may be used to guide the large language model to generate and output a structured query statement for querying the target data table according to the target metadata.

[0131] Optionally, the server may construct a structured prompt statement by filling the target metadata into the corresponding position of the structured prompt template. The structured prompt template may be a statement template prepared in advance by relevant personnel. The structured prompt template may include structured instructions. The structured instructions may be instructions for indicating the tasks that the large language model needs to complete, for example, the structured instructions may be "please generate a structured query statement for querying the target data table based on the target metadata of the target data table."

[0132] Exemplarily, the feedback prompt statement constructed by the server may be: [Please generate a structured query statement for querying the target data table according to the target metadata of the target data table. The target metadata is: "xxxxx". ] It should be understood that the structured prompt statement given above is only for illustration, and in actual application, the content included in the structured prompt statement is not limited to this.

[0133] Step S422': input the structured prompt statement into the large language model to generate a structured query statement through the large language model.

[0134] Specifically, after constructing the structured prompt statement, the server may input the structured prompt statement into the large language model to generate a structured query statement through the large language model.

[0135] Optionally, the structured query statements generated by the large language model can use a standard query language (SQL). SQL is a standard computer programming language designed specifically for managing and processing relational databases. It allows users to perform a series of operations in a relational database system, including but not limited to creating and modifying database structures, inserting, querying, updating and deleting data, and managing user permissions and data security.

[0136] Step S423': query and obtain the target data table according to the structured query statement.

[0137] Specifically, after obtaining the structured query statement, the server may input the structured query statement into the target database, so that the target database queries and obtains the target data table according to the structured query statement and provides feedback.

[0138] Optionally, this embodiment does not limit the database type of the target database, which may be a Hologres database, a Hive database, a MongoDB database, an RDS (Relational Database Service) database, a DRDS (Distributed Relational Database Service) database, an ES (Elasticsearch) database, or an ADB (AnalyticDB) database, etc. This application does not impose any restrictions on this.

[0139] Furthermore, most types of databases usually follow the basic structure and functions of standard query languages, but different types of databases may have their own characteristics and extensions in terms of syntax details, extended features, and function support. In this embodiment, in order to eliminate the differences, before sending the structured query statement to the target database, the server may also convert the structured query statement from the standard query language to a domain specific language (Domain Specific Language, DSL). Among them, the domain specific language is a computer programming language designed specifically to solve problems in a specific field. It emphasizes highly optimized and abstracted for a limited and highly specialized field, and describes problems and solutions in a way that is closer to the thinking mode and expression habits of experts in the field.

[0140] Step S430': determine target data according to the natural language query statement and the target data table.

[0141] Specifically, after obtaining the target data table, the server may determine the target data according to the natural language query statement and the target data table.

[0142] Optionally, in step S430', the server may first determine the user's data acquisition requirements based on the natural language query statement, that is, determine whether the user wants to obtain the entire target data table or only wants to obtain part of the data in the target data table. Further, if the data acquisition requirement indicates that the user wants to obtain the entire target data table, the server may determine all the data in the target data table as the target data; if the data acquisition requirement indicates that the user only wants to obtain part of the data in the target data table, the server may determine the part of the data in the target data table that the user wants to obtain as the target data based on the natural language query statement.

[0143] Step S440': Generate the feedback information according to the target data.

[0144] Specifically, after determining the target data, the server may generate feedback information according to the target data, wherein the feedback information may include relevant information about the target data that the user wants to query.

[0145] Optionally, in step S440', if the feedback rule also includes format requirement information for the feedback information, the server can construct a feedback prompt sentence according to the target data and the format requirement information, and input the feedback prompt sentence into the large language model to generate feedback information with a format that meets the requirements through the large language model, which will not be described in detail here.

[0146] Optionally, when the target intent is other intents, the server can directly construct a feedback prompt statement based on the natural language query statement, and input the feedback prompt statement into the large language model to generate feedback information through the large language model. It should be understood that at this time, the feedback information generated by the server through the large language model can be a reply statement directly to the natural language query statement, which can be used to make a simple reply to the natural language query statement entered by the user or to prompt the user that more context information needs to be entered to obtain an accurate reply.

[0147] Step S500: Send the feedback information to the service requester, so that the service requester controls the terminal interface to display the feedback information.

[0148] Specifically, after generating the feedback information, the server may send the feedback information to the corresponding service requester. After receiving the feedback information, the service requester may control the terminal interface to display the feedback information.

[0149] Fig. 9 Flow chart of the information interaction method of the embodiment of the present invention. It should be understood that Fig. 9 The execution subject of the information interaction method shown can be the service requester in the above embodiment. Fig. 9 As shown, the information interaction method may specifically include the following steps:

[0150] Step S100': sending a service acquisition request to the server.

[0151] Specifically, the service requester can control the terminal interface to interact with the user, and send a service acquisition request carrying a natural language program statement to the server according to the interaction result.

[0152] Fig.10 FIG. 1 is a schematic diagram of a terminal interface according to an embodiment of the present invention. Fig.10As shown, when the service requester is a web page, an application (APP, Application) or a small program, the service requester can control the terminal to display the service provision page 101 in the terminal interface. Among them, the service provision page 101 may include a question input field 102. The user can enter a natural language query statement in the question input field 102 to trigger the query instruction. When receiving the query instruction, the service requester can obtain the natural language query statement entered by the user in the question input field 102 according to the query instruction, and send a service acquisition request carrying the natural language program statement to the server.

[0153] Fig.11 FIG. 2 is another schematic diagram of a terminal interface according to an embodiment of the present invention. Fig.11 As shown, when the service requester is a plug-in or component of other software systems, the service requester can control the terminal to display the service provision page 111 in the terminal interface. It should be understood that the other part 112 displayed in the terminal interface can be a software system page, and this embodiment does not limit the content displayed in the software system page. Further, the service provision page 111 can include a question input field 113. The function of the question input field 113 is the same as that of the question input field 102, and will not be repeated here.

[0154] Optionally, the service requester may also be a group chat robot of an instant messaging platform. Specifically, the service requester may be in a corresponding chat group, and the chat group in which the service requester is located may include multiple users. Multiple users can participate in conversations in the chat group at the same time, view each other's speeches, and reply, discuss or share information. Furthermore, the service requester may pre-connect to the instant messaging platform via a webhook, and thereby obtain text messages replied by multiple users in the chat group. Furthermore, when the service requester detects a preset identifier (for example, the preset identifier may be @group chat robot) in the received text message, it may obtain a natural language query statement based on the preset identifier and the text information, and send a service acquisition request carrying a natural language program statement to the server.

[0155] Step S200': receiving the feedback information.

[0156] Specifically, the service requester may receive feedback information returned by the server.

[0157] Step S300': controlling the terminal interface to display the feedback information.

[0158] Specifically, after receiving the feedback information, the service requester can control the terminal interface to display the feedback information. Fig.10 and Fig.11As shown in the terminal interface in , after receiving the feedback information, the service requester can display the corresponding feedback information 103, 104, 114 and 115 in the service provision page.

[0159] Optionally, when the service requester is a group chat robot, after receiving the feedback information, the service requester may reply the feedback information to the chat group, so that users in the chat group can view the feedback information. Fig.12 FIG. 2 is another schematic diagram of a terminal interface according to an embodiment of the present invention. Fig.12 As shown, the service requester can reply the feedback information 121 and 122 to the chat group, so that users in the chat group can view the feedback information 121 and 122.

[0160] It should be understood that, since different feedback information has different formats, each feedback information can be displayed to the user in a corresponding manner, thereby improving the user experience.

[0161] After obtaining a natural language query statement, the embodiment of the present invention will perform intent recognition on the natural language query statement to obtain the target intent, and determine the feedback rules of the natural language query statement, and then generate feedback information based on the natural language query statement, the target intent and the feedback rules, and then send the feedback information to the service requester so that the service requester controls the terminal interface to display the feedback information. Therefore, the embodiment of the present invention can be compatible with multiple service acquisition methods, and enable users to obtain feedback information that is compatible with the currently used service acquisition method when obtaining natural language query services through any service acquisition method, thereby improving user experience.

[0162] Fig.13 Schematic diagram of an information interaction device according to an embodiment of the present invention. Fig.13 As shown, the information interaction device of the embodiment of the present invention includes a request receiving unit 131, an intention recognition unit 132, a feedback rule determination unit 133, a feedback information generation unit 134 and a feedback information sending unit 135.

[0163] Specifically, the request receiving unit 131 is used to receive a service acquisition request, wherein the service acquisition request includes a natural language query statement;

[0164] The intent recognition unit 132 is used to perform intent recognition on the natural language query sentence to obtain a target intent;

[0165] The feedback rule determination unit 133 is used to determine the feedback rule of the natural language query statement, wherein the feedback rule includes at least one of a knowledge retrieval scope, a data query scope, or format requirement information for feedback information, and the format of the feedback information is used to characterize the presentation form of the feedback information in the terminal interface;

[0166] The feedback information generating unit 134 is used to generate feedback information according to the natural language query sentence, the target intent and the feedback rule;

[0167] The feedback information sending unit 135 is used to send the feedback information to the service requester, so that the service requester controls the terminal interface to display the feedback information.

[0168] After obtaining a natural language query statement, the embodiment of the present invention will perform intent recognition on the natural language query statement to obtain the target intent, and determine the feedback rules of the natural language query statement, and then generate feedback information based on the natural language query statement, the target intent and the feedback rules, and then send the feedback information to the service requester so that the service requester controls the terminal interface to display the feedback information. Therefore, the embodiment of the present invention can be compatible with multiple service acquisition methods, and enable users to obtain feedback information that is compatible with the currently used service acquisition method when obtaining natural language query services through any service acquisition method, thereby improving user experience.

[0169] Fig.14 Schematic diagram of an information interaction device according to an embodiment of the present invention. Fig.14 As shown, the information interaction device according to the embodiment of the present invention includes a request sending unit 141 , a feedback information receiving unit 142 and a display unit 143 .

[0170] Specifically, the request sending unit 141 is used to send a service acquisition request to the server, so that the server performs intent recognition on the natural language query statement in the service acquisition request to obtain the target intent, determine the feedback rule of the natural language query statement, generate feedback information according to the natural language query statement, the target intent and the feedback rule, and feed back the feedback information, wherein the feedback rule includes at least one of a knowledge retrieval scope, a data query scope or format requirement information for the feedback information, and the format of the feedback information is used to characterize the presentation form of the feedback information in the terminal interface;

[0171] The feedback information receiving unit 142 is used to receive the feedback information;

[0172] The display unit 143 is used to control the terminal interface to display the feedback information.

[0173] Fig.15 1 is a schematic diagram of an electronic device according to an embodiment of the present invention. In this embodiment, the electronic device 15 includes a server, a terminal, etc. Fig.15As shown, the electronic device 15 includes: at least one processor 151; a memory 152 connected to the at least one processor 151 for communication; and a communication component 153 connected to the scanning device for communication, the communication component 153 receives and sends data under the control of the processor 151; wherein the memory 152 stores instructions executable by the at least one processor 151, and the instructions are executed by the at least one processor 151 to implement the above-mentioned information interaction method.

[0174] Specifically, the electronic device includes: one or more processors 151 and a memory 152, Fig.15 A processor 151 is taken as an example. The processor 151 and the memory 152 may be connected via a bus or other means. Fig.15 In the example, the bus connection is used. The memory 152 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The processor 151 executes various functional applications and data processing of the device by running the non-volatile software programs, instructions and modules stored in the memory 152, that is, realizing the above-mentioned information interaction method.

[0175] The memory 152 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store a list of options, etc. In addition, the memory 152 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 152 may optionally include a memory remotely arranged relative to the processor 151, and these remote memories may be connected to an external device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0176] One or more modules are stored in the memory 152, and when executed by one or more processors 151, the information interaction method in any of the above method embodiments is executed.

[0177] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.

[0178] After obtaining a natural language query statement, the embodiment of the present invention will perform intent recognition on the natural language query statement to obtain the target intent, and determine the feedback rules of the natural language query statement, and then generate feedback information based on the natural language query statement, the target intent and the feedback rules, and then send the feedback information to the service requester so that the service requester controls the terminal interface to display the feedback information. Therefore, the embodiment of the present invention can be compatible with multiple service acquisition methods, and enable users to obtain feedback information that is compatible with the currently used service acquisition method when obtaining natural language query services through any service acquisition method, thereby improving user experience.

[0179] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, wherein the computer-readable program is used for a computer to execute part or all of the above method embodiments.

[0180] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0181] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. An information interaction method, applicable to a server, characterized in that: The method comprises: Receiving a service acquisition request, wherein the service acquisition request includes a natural language query statement; Performing intent recognition on the natural language query sentence to obtain a target intent; Determine a feedback rule for the natural language query statement, the feedback rule including at least one of a knowledge retrieval scope, a data query scope, or format requirement information for feedback information, the format of the feedback information is used to characterize the presentation form of the feedback information in the terminal interface, the feedback rule for the natural language query statement is determined according to the service requester that sends the natural language query statement, and the natural language query statements sent by different service requesters have different feedback rules; Generate feedback information according to the natural language query statement, the target intent and the feedback rule; The feedback information is sent to the service requester, so that the service requester controls the terminal interface to display the feedback information.

2. The method according to claim 1, characterized in that The target intent includes knowledge retrieval; Generating feedback information according to the natural language query statement, the target intent and the feedback rule includes: In response to the target intention being knowledge retrieval, acquiring a target knowledge text according to the natural language query statement and the knowledge retrieval scope; Constructing a feedback prompt sentence according to the natural language query sentence and the target knowledge text; The feedback prompt sentence is input into a large language model to generate the feedback information through the large language model, wherein the feedback prompt sentence is used to guide the large language model to generate the feedback information.

3. The method according to claim 2, characterized in that Acquiring the target knowledge text according to the natural language query statement and the knowledge search scope includes: Determine a target knowledge base corresponding to the knowledge search scope, wherein the target knowledge base stores knowledge texts, each of the knowledge texts has a corresponding knowledge vector, and the knowledge vector is a vector expression of the knowledge text; Determine a natural language query vector corresponding to the natural language query statement, where the natural language query vector is a vector expression of the natural language query statement; Determine a target knowledge vector in the target knowledge base according to the natural language query vector, wherein the target knowledge vector is a knowledge vector whose vector similarity with the natural language query vector is greater than or equal to a first preset similarity threshold; The knowledge text corresponding to each of the target knowledge vectors is determined as the target knowledge text.

4. The method according to claim 2, characterized in that: The feedback rule also includes format requirement information for the feedback information, where the format of the feedback information is used to characterize the presentation form of the feedback information in the terminal interface; Constructing a feedback prompt sentence according to the natural language query sentence and the target knowledge text includes: The feedback prompt sentence is constructed according to the format requirement information, the natural language query sentence and the target knowledge text.

5. The method according to claim 1, characterized in that The target intent includes data query; In response to the target intent being a data query, generating feedback information according to the natural language query statement, the target intent and the feedback rule includes: In response to the target intention being a data query, determining target metadata according to the natural language query statement and the data query scope; Acquire a target data table corresponding to the target metadata; Determine target data according to the natural language query statement and the target data table; The feedback information is generated according to the target data.

6. The method according to claim 5, characterized in that Determining target metadata according to the natural language query statement and the data query scope includes: Determine a target database corresponding to the data query range, wherein the target database stores metadata of multiple data tables, each metadata has a corresponding metadata vector, and the metadata vector is a vector expression of the metadata; Determine a natural language query vector corresponding to the natural language query statement, where the natural language query vector is a vector expression of the natural language query statement; Determine a target metadata vector in the target database according to the natural language query vector, the target metadata vector being a metadata vector having a vector similarity with the natural language query vector greater than or equal to a second preset similarity threshold; The metadata corresponding to the target metadata vector is determined as the target metadata.

7. The method according to claim 5, characterized in that Acquiring a target data table corresponding to the target metadata includes: constructing a structured prompt sentence according to the target metadata; Inputting the structured prompt statement into a large language model to generate a structured query statement through the large language model, wherein the structured prompt statement is used to guide the large language model to generate the structured query statement; The target data table is queried and acquired according to the structured query statement.

8. The method according to claim 5, characterized in that The feedback rule also includes format requirement information for the feedback information, where the format of the feedback information is used to characterize the presentation form of the feedback information in the terminal interface; Generating the feedback information according to the target data includes: Constructing a feedback prompt sentence according to the target data and the format requirement information; The feedback prompt sentence is input into a large language model to generate the feedback information through the large language model, wherein the feedback prompt sentence is used to guide the large language model to generate the feedback information.

9. The method according to claim 1, characterized in that: The target intention includes other intentions; In response to the target intent being other intents, generating feedback information according to the natural language query statement, the target intent, and the feedback rule includes: Constructing a feedback prompt sentence according to the natural language query sentence; The feedback prompt sentence is input into a large language model to generate the feedback information through the large language model, wherein the feedback prompt sentence is used to guide the large language model to generate the feedback information.

10. The method according to claim 1, characterized in that Performing intent recognition on the natural language query statement to obtain a target intent includes: Constructing an intent recognition prompt sentence according to the natural language query sentence; The intention identification prompt sentence is input into a large language model to determine the target intention through the large language model, wherein the intention identification prompt sentence is used to guide the large language model to determine the target intention.

11. The method according to claim 10, characterized in that Constructing an intent recognition prompt statement according to the natural language query statement includes: Get the intent recognition prompt template; Fill the natural language query statement into the corresponding position of the intent recognition prompt template to construct the intent recognition prompt statement, wherein the intent recognition prompt template includes intent recognition instructions and intent recognition reference information, and the intent recognition reference information includes intent description information and intent examples of preset intent.

12. An information interaction method, applicable to a service requester, characterized in that: The method comprises: Sending a service acquisition request to a server, so that the server performs intent recognition on a natural language query statement in the service acquisition request to obtain a target intent, determines a feedback rule for the natural language query statement, generates feedback information according to the natural language query statement, the target intent and the feedback rule, and feeds back the feedback information, wherein the feedback rule includes at least one of a knowledge retrieval scope, a data query scope or format requirement information for feedback information, the format of the feedback information is used to characterize the presentation form of the feedback information in a terminal interface, the feedback rule for the natural language query statement is determined according to a service requester sending the natural language query statement, and natural language query statements sent by different service requesters have different feedback rules; receiving the feedback information; The control terminal interface displays the feedback information.

13. The method according to claim 12, characterized in that Sending a service acquisition request includes: Receive query instructions; Send a service acquisition request according to the query instruction; or Get text information; In response to detecting a preset identifier in the text message, a service acquisition request is sent according to the preset identifier and the text message.

14. An information interaction system, characterized in that: The system includes a plurality of service requesters and a server; Wherein, the server is configured as: Receiving a service acquisition request, wherein the service acquisition request includes a natural language query statement; Performing intent recognition on the natural language query sentence to obtain a target intent; Determine a feedback rule for the natural language query statement, the feedback rule including at least one of a knowledge retrieval scope, a data query scope, or format requirement information for feedback information, the format of the feedback information is used to characterize the presentation form of the feedback information in the terminal interface, the feedback rule for the natural language query statement is determined according to the service requester that sends the natural language query statement, and the natural language query statements sent by different service requesters have different feedback rules; Generate feedback information according to the natural language query statement, the target intent and the feedback rule; Send the feedback information to the service requester so that the service requester controls the terminal interface to display the feedback information Each of the service requesters is configured as: Send a service acquisition request to the server; receiving the feedback information; The control terminal interface displays the feedback information.

15. An information interaction device, characterized in that: The device comprises: A request receiving unit, configured to receive a service acquisition request, wherein the service acquisition request includes a natural language query statement; An intent recognition unit, used to perform intent recognition on the natural language query sentence to obtain a target intent; a feedback rule determination unit, configured to determine a feedback rule for the natural language query statement, wherein the feedback rule includes at least one of a knowledge retrieval scope, a data query scope, or format requirement information for feedback information, wherein the format of the feedback information is used to characterize the presentation form of the feedback information in the terminal interface, and the feedback rule for the natural language query statement is determined according to a service requester that sends the natural language query statement, and natural language query statements sent by different service requesters have different feedback rules; A feedback information generating unit, configured to generate feedback information according to the natural language query statement, the target intent and the feedback rule; The feedback information sending unit is used to send the feedback information to the service requester, so that the service requester controls the terminal interface to display the feedback information.

16. An information interaction device, characterized in that: The device comprises: A request sending unit, used to send a service acquisition request to a server, so that the server performs intent recognition on a natural language query statement in the service acquisition request to obtain a target intent, determine a feedback rule for the natural language query statement, generate feedback information according to the natural language query statement, the target intent and the feedback rule, and feed back the feedback information, wherein the feedback rule includes at least one of a knowledge retrieval scope, a data query scope or format requirement information for feedback information, the format of the feedback information is used to characterize the presentation form of the feedback information in a terminal interface, the feedback rule of the natural language query statement is determined according to a service requester that sends the natural language query statement, and natural language query statements sent by different service requesters have different feedback rules; A feedback information receiving unit, configured to receive the feedback information; The display unit is used to control the terminal interface to display the feedback information.

17. A computer-readable storage medium storing computer program instructions, characterized in that: The computer program instructions, when executed by a processor, implement the method according to any one of claims 1 to 13.

18. An electronic device, characterized in that: The device comprises: a memory for storing one or more computer program instructions; A processor, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1-13.

19. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 13.