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

By using the text generation model for responses in the company's internal data, the problem of low efficiency in knowledge acquisition due to large data volumes is solved, fast and efficient knowledge acquisition is achieved, and the credibility of the response content is improved.

CN118535685APending Publication Date: 2024-08-23THE FOURTH PARADIGM BEIJING TECH CO LTD

Patent Information

Application Number
CN202310161867.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-23
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The huge scale of internal data within the enterprise makes it difficult for employees to obtain the required knowledge quickly and efficiently, affecting work efficiency.

Method used

A response method based on question information and a preset text generation model is adopted. By retrieving and extracting related knowledge in the target knowledge base, the response content for the question is generated, and the data source information is displayed in the response interface to improve credibility.

Benefits of technology

It achieves the rapid and efficient acquisition of required knowledge from a large amount of data, improves the efficiency of knowledge acquisition, and enhances the credibility of the response content through data source identification and traceability information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535685A
    Figure CN118535685A
Patent Text Reader

Abstract

The invention relates to a response method, a response device, electronic equipment, a response system and a computer readable storage medium, relates to the technical field of computers, and aims to help a user to quickly and efficiently obtain required knowledge from a large amount of data. The response method comprises the following steps: acquiring question information; and based on the question information, a target knowledge base and a preset text generation model, generating response content for the question information, and outputting the response content. The method can be used for scenes such as enterprise internal information acquisition, arrangement and analysis, and the knowledge acquisition efficiency can be greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In the long-term development and business activities of enterprises and other groups, a large amount of internal data will be generated, such as human resources data, financial data, system and process documents, product information, communication data, customer data, sales cases, etc. Due to the large scale and complex content of these internal data, it is often difficult for employees and other users to obtain the required knowledge content from these internal data. For example, in the process of serving customers, the tellers of a financial institution need to read dozens of internal documents of the company to find solutions to the questions raised by customers, and the work efficiency is low. Therefore, how to quickly and efficiently obtain the required knowledge content from these internal data of the company is an urgent problem to be solved. Summary of the invention

[0003] In view of this, the present disclosure provides a response method, device, electronic device, system and computer-readable storage medium, which can help users quickly and efficiently obtain the required knowledge from a large amount of data.

[0004] According to a first aspect of the present disclosure, a response method is provided, comprising: obtaining question information; generating response content for the question information based on the question information, a target knowledge base and a preset text generation model, and outputting the response content.

[0005] Optionally, in one embodiment of the present disclosure, the generation of response content for the question information based on the question information, the target knowledge base and the preset text generation model includes: based on the question information, performing related knowledge retrieval in the target knowledge base to obtain related knowledge, wherein the data scale of the related knowledge is smaller than the data scale of the target knowledge base; using the question information and the related knowledge as input of the preset text generation model, obtaining the output result of the text generation model, and obtaining the response content based on the output result.

[0006] Optionally, in one embodiment of the present disclosure, the related knowledge is retrieved in the target knowledge base based on the question information to obtain the related knowledge, including: based on the question information, related document search is performed in the target knowledge base to obtain related documents; knowledge extraction is performed on the related documents to obtain the related knowledge.

[0007] Optionally, in one embodiment of the present disclosure, based on the question information, performing a related document search in the target knowledge base to obtain the related documents includes: obtaining title information of each document in the target knowledge base; and screening based on the correlation between the question information and the title information to obtain at least one of the related documents with a high correlation.

[0008] Optionally, in one embodiment of the present disclosure, the extracting knowledge from the related documents to obtain the related knowledge includes: extracting related knowledge from each related document to obtain the related knowledge; wherein the related knowledge includes at least one of the following: the first sentence of a paragraph, the last sentence of a paragraph, high-frequency words, entity relationships, events, table of contents, and text in special fonts.

[0009] Optionally, in one embodiment of the present disclosure, the extracting knowledge from the associated documents to obtain the associated knowledge includes: extracting associated knowledge from each associated document to obtain candidate knowledge; wherein the candidate knowledge includes at least one of the following: the first sentence of a paragraph, the last sentence of a paragraph, high-frequency words, entity relationships, events, table of contents, special font text; performing target processing on the candidate knowledge to obtain the associated knowledge; wherein the target processing includes at least one of the following: graph processing, template processing, tabular processing, graphical processing.

[0010] Optionally, in one embodiment of the present disclosure, performing related knowledge retrieval in the target knowledge base based on the question information to obtain related knowledge includes: performing related document search in the target knowledge base based on the question information to obtain related documents, and determining the related documents as the related knowledge.

[0011] Optionally, in one embodiment of the present disclosure, before taking the question information and the related knowledge as the input of the preset text generation model, obtaining the output result of the text generation model, and obtaining the response content based on the output result, the method also includes: using the target knowledge base to perform pre-learning training on the text generation model to obtain the preset text generation model.

[0012] Optionally, in one embodiment of the present disclosure, the target knowledge base includes at least one of the following: process documents, product information, communication data, customer data, sales data, financial data, and human data.

[0013] Optionally, in one embodiment of the present disclosure, the output result includes a response text and a source identifier, and the source identifier is used to identify the data source of at least part of the response text; obtaining the response content based on the output result includes: using the output result as the response content, so that the response content includes the response text and the source identifier.

[0014] Optionally, in one embodiment of the present disclosure, the output result includes a response text; the response content includes the response text and a source identifier, and the source identifier is used to identify the data source of at least part of the response text; obtaining the response content based on the output result includes: tracing the response text to obtain the data source corresponding to at least part of the response text; adding a source identifier pointing to the data source to at least part of the response text content to obtain the response content.

[0015] Optionally, in one embodiment of the present disclosure, source information of the data source is displayed in the response interface; wherein the source information includes at least one of the following: name, source address, jump link, source content, location information of the source content, file path, and file person in charge.

[0016] Optionally, in one embodiment of the present disclosure, outputting the response content includes: in response to the partial response content currently being generated, outputting the partial response content in real time; or, in response to the generated complete response content, outputting the complete response content.

[0017] Optionally, in one embodiment of the present disclosure, obtaining the question information includes: obtaining text data input by a user triggering a text question control to obtain the question information; or obtaining voice data input by a user triggering a voice question control to obtain the question information; or obtaining image data input by a user triggering an image question control, and parsing the image data to obtain the question information.

[0018] Optionally, in an embodiment of the present disclosure, the response content includes at least one of the following: image, video, audio.

[0019] According to the second aspect of the present disclosure, a response device is provided, including: an acquisition module for acquiring question information; a response module for generating response content for the question information based on the question information, a target knowledge base and a preset text generation model, and outputting the response content.

[0020] Optionally, in one embodiment of the present disclosure, the response module includes: a search submodule, used to retrieve related knowledge in the target knowledge base based on the question information to obtain related knowledge, wherein the data scale of the related knowledge is smaller than the data scale of the target knowledge base; a response submodule, used to use the question information and the related knowledge as inputs of the preset text generation model, obtain the output result of the text generation model, and obtain the response content based on the output result.

[0021] Optionally, in one embodiment of the present disclosure, the search submodule includes: a search unit, used to search for related documents in the target knowledge base based on the question information to obtain related documents; and an extraction unit, used to extract knowledge from the related documents to obtain the related knowledge.

[0022] Optionally, in an embodiment of the present disclosure, the search unit is used to: obtain title information of each document in the target knowledge base; and filter based on the correlation between the question information and the title information to obtain at least one associated document with a high correlation.

[0023] Optionally, in one embodiment of the present disclosure, the extraction unit is used to: extract related knowledge from each related document to obtain the related knowledge; wherein the related knowledge includes at least one of the following: the first sentence of a paragraph, the last sentence of a paragraph, high-frequency words, entity relationships, events, table of contents, and special font text.

[0024] Optionally, in one embodiment of the present disclosure, the extraction unit is used to: extract related knowledge from each related document to obtain candidate knowledge; wherein the candidate knowledge includes at least one of the following: the first sentence of a paragraph, the last sentence of a paragraph, high-frequency words, entity relationships, events, table of contents, special font text; perform target processing on the candidate knowledge to obtain the related knowledge; wherein the target processing includes at least one of the following: graph processing, template processing, tabular processing, graphical processing.

[0025] Optionally, in an embodiment of the present disclosure, the search submodule is used to: based on the question information, search for related documents in the target knowledge base to obtain related documents, and determine the related documents as the related knowledge.

[0026] Optionally, in one embodiment of the present disclosure, the device further includes: a training module, configured to perform pre-learning training on the text generation model pair using the target knowledge base to obtain the preset text generation model.

[0027] Optionally, in one embodiment of the present disclosure, the target knowledge base includes at least one of the following: process documents, product information, communication data, customer data, sales data, financial data, and human data.

[0028] Optionally, in one embodiment of the present disclosure, the output result includes a response text and a source identifier, and the source identifier is used to identify the data source of at least part of the response text; the response submodule is used to: use the output result as the response content, so that the response content includes the response text and the source identifier.

[0029] Optionally, in one embodiment of the present disclosure, the output result includes a response text; the response content includes the response text and a source identifier, and the source identifier is used to identify the data source of at least part of the response text; the response submodule is used to: trace the response text to obtain the data source corresponding to at least part of the response text; add a source identifier pointing to the data source to at least part of the response text content to obtain the response content.

[0030] Optionally, in one embodiment of the present disclosure, the response submodule is also used to: display source information of the data source in the response interface; wherein the source information includes at least one of the following: name, source address, jump link, source content, location information of the source content, file path, and file person in charge.

[0031] Optionally, in one embodiment of the present disclosure, the response module is used to: in response to the partial response content currently being generated, output the partial response content in real time; or, in response to the complete response content being generated, output the complete response content.

[0032] Optionally, in one embodiment of the present disclosure, obtaining the question information includes: obtaining text data input by a user triggering a text question control to obtain the question information; or obtaining voice data input by a user triggering a voice question control to obtain the question information; or obtaining image data input by a user triggering an image question control, and parsing the image data to obtain the question information.

[0033] Optionally, in an embodiment of the present disclosure, the response content includes at least one of the following: image, video, audio.

[0034] According to a third aspect of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory, on which executable codes are stored, and when the executable codes are executed by the processor, the processor executes the response method of any one of the aforementioned embodiments.

[0035] According to a fourth aspect of the present disclosure, a computer program product is provided, comprising an executable code, which, when executed by a processor of an electronic device, causes the processor to execute the response method of any one of the aforementioned embodiments.

[0036] According to a fifth aspect of the present disclosure, a non-temporary machine-readable storage medium is provided, on which an executable code is stored. When the executable code is executed by a processor of an electronic device, the processor executes the response method of any one of the aforementioned embodiments.

[0037] According to the sixth aspect of the present disclosure, a response system is provided, including: a terminal for obtaining question information and outputting the response content; a server for generating response content for the question information based on the question information, a target knowledge base and a preset text generation model.

[0038] Therefore, the answering method, device, electronic device, computer program product and non-transitory machine-readable storage medium disclosed in the present invention provide a new way to quickly and efficiently obtain effective knowledge by using a large amount of data within a certain range, and adopt a user-friendly answering method. After the user asks a question and obtains the question information, the answer content corresponding to the user's question is quickly and efficiently obtained from the target database based on the question information and the intelligent ability of the preset text generation model. It can be used in various scenarios such as internal information acquisition, organization and analysis of enterprises, and can greatly improve the efficiency of knowledge acquisition. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0040] Figure 1 A flowchart of a response method provided by the present disclosure;

[0041] Figure 2 A schematic diagram of a response interface provided by the present disclosure;

[0042] Figure 3 A schematic diagram of a response interface provided by the present disclosure;

[0043] Figure 4 A schematic diagram of a response interface provided by the present disclosure;

[0044] Figure 5 A schematic diagram of a response interface provided by the present disclosure;

[0045] Figure 6A schematic diagram of a response device provided by the present disclosure;

[0046] Figure 7 A schematic diagram of an electronic device provided by the present disclosure;

[0047] Figure 8 A schematic diagram of a response system provided by the present disclosure. DETAILED DESCRIPTION

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

[0049] The present disclosure provides a response method that can be applied to any scenario that requires responses to questions. Exemplarily, the method provided by the present disclosure can be applied to an intelligent response scenario, and in this scenario, responses and replies are given to questions raised by users, such as intelligent customer service scenarios, enterprise-wide response assistant services (or applications, applets, etc.); in addition, the method provided by the present disclosure can also be applied to intelligent retrieval scenarios, and in this scenario, responsive retrieval feedback is given to questions raised by users, for example, this solution can be applied to search engines or service systems. Exemplarily, the method provided by the present disclosure can also be applied to teaching scenarios, in which users can use questions as question information, and the method provided by the present disclosure can be used to generate solutions to questions to answer users. This is not exhaustive.

[0050] As mentioned in the previous background technology, enterprises and other groups will generate a large amount of internal data in their long-term development and business activities. These internal data actually contain a lot of valuable knowledge content, which can serve as a reference and guide for the operators, managers, employees, customers, etc. However, due to the large scale, complex content and scattered distribution of these internal data, it is often difficult to obtain the required knowledge content from these internal data, which may require huge human and other resource costs and is extremely inefficient.

[0051] To solve the above problems, the design concept of the present disclosure is: adopt a user-friendly questioning method, based on the obtained question information, use a text generation model to obtain the answer content corresponding to the user's question from the target database.

[0052] As is well known to those skilled in the art, a text generation model is a natural language processing tool driven by artificial intelligence technology, which has language understanding and text generation capabilities, and can automatically generate continued text based on input data. For example, ChatGPT, launched by OpenAI, an American artificial intelligence research laboratory, is a text generation model that processes sequence data and has language understanding and text generation capabilities. In particular, it trains the model by connecting to a large number of corpora that contain real-world conversations, enabling ChatGPT to know everything about astronomy and geography, and to interact according to the context of the chat, so that it can communicate in a chat scene that is almost the same as that of real humans. ChatGPT is not only a chatbot, but can also perform tasks such as writing emails, video scripts, copywriting, translation, and code.

[0053] The present disclosure utilizes the powerful intelligent ability of the text generation model in language generation to quickly and efficiently obtain the corresponding answer content of the user's question from the target database, effectively improving the efficiency of knowledge acquisition.

[0054] The specific instructions are as follows.

[0055] First, the present disclosure provides a response method.

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

[0057] For example, Figure 1 The following is a flow chart of a response method provided by the present disclosure. Figure 1 As shown, the method comprises the following steps:

[0058] S102, obtaining question information.

[0059] The present disclosure has no particular restrictions on the form and acquisition method of the question information. Based on the different application scenarios of the technical solution provided by the present disclosure, the question information can be acquired in different ways. Exemplarily, the form of the question information can include but is not limited to: text form, audio form, image form, video form, etc., which are not exhaustive.

[0060] Exemplarily, a question control can be displayed on the display interface of the terminal, so that question information can be obtained based on the data input by the user triggering the question control. Exemplarily, the question control can be displayed on any display interface of the electronic device, that is, the technical solution provided by the present disclosure can be applied to any human-computer interaction scenario; or, the question control can be displayed only on a specified interface, such as a preset question-and-answer interface. The present disclosure has no special restrictions on the type of display interface and the way in which the question control is displayed. The display interface may include but is not limited to at least one of the following: an application interface, a desktop display interface, a web browsing interface, a document display interface, etc., and the question control display method can be custom designed, for example, it can be displayed in the sidebar of the application interface, or it can be displayed in the taskbar of the desktop, etc., without exhausting them.

[0061] In one possible embodiment, the text data input by the user when triggering the text question control can be obtained to obtain the question information. Alternatively, in another possible embodiment, the voice data input by the user when triggering the voice question control can be obtained to obtain the question information. Alternatively, in another possible embodiment, the image data input by the user when triggering the image question control can be obtained, and the image data can be parsed to obtain the question information. Alternatively, in another possible embodiment, the video data input by the user when triggering the video question control can be obtained, and the question contained in the video data or the specified question can be parsed to obtain the question information.

[0062] In each of the above possible embodiments, the question control may have different forms of expression. Exemplarily, it may be expressed as a "question button" or "question input box" displayed in the display interface of the electronic device. For example, the user may click or trigger the question button by other preset methods, and then enter the question interface or question input interface for user input. The question input box may be in the form of a text input box, a voice input button, a picture or video upload (or screenshot method) area, etc.

[0063] It should be understood that when the question information is in audio form, the terminal or the terminal's external device needs to have audio collection capabilities. In this way, the aforementioned question information can be collected by the terminal itself, or it can be collected through an external input device. For example, when the terminal is connected to a smart wearable device such as headphones and smart watches with audio collection capabilities, the smart wearable device can collect the question information raised by the user. Similarly, when the question information is in the form of video or picture, the terminal (or back-end server) needs to have video (or picture) parsing capabilities to parse the user's question information, and the parsing method is not limited here.

[0064] In addition, in an optional embodiment, in order to facilitate subsequent processing, when non-text type question information is obtained, the collected question information can also be processed into text to obtain question information in text form.

[0065] S104, generating response content for the question information based on the question information, the target knowledge base and a preset text generation model, and outputting the response content.

[0066] As can be seen from the design concept of the present disclosure described above, the target knowledge base represents the data range from which knowledge needs to be extracted. In this step, when question information is obtained, the preset text generation model will be used to quickly and efficiently extract the corresponding answer content from the target knowledge base.

[0067] Specifically, the target knowledge base may include at least one of the following: a public knowledge base, a private knowledge base. A "knowledge base" is a collection of knowledge, and therefore, the scope of the knowledge base can be customized and specified, and the present disclosure has no particular limitation on this.

[0068] The public knowledge base refers to a collection of knowledge within the public domain, which may include but is not limited to at least one of the following: public web pages, public data sets, public information, etc., without exhaustive listing.

[0069] Correspondingly, the private knowledge base refers to a collection of knowledge within a private scope, which may include but is not limited to at least one of the following: process documents, product information, communication data, customer data, sales data, financial data, human data, etc., without exhaustion.

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

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

[0072] Among them, the text generation model is a natural language processing tool driven by artificial intelligence technology, which has language understanding and text generation capabilities, and can automatically generate continued text based on input data. The present disclosure utilizes this feature of the text generation model and creatively applies it to the answering scenario, so that the text generation model can generate text for automatic continued answering based on the acquired question information. In the present disclosure, a common text generation model in the industry, such as the ChatGPT model, can be used. Of course, a new text generation model can also be trained. In addition, it should be noted that considering the high overhead (time overhead and cost overhead) of training a new model, therefore, when actually implementing this step, a general model fine-tuning method can be used to implement it, that is, on the basis of the existing general model, the general model can be adjusted according to the feature processing scale and computing power requirements, so as to obtain the text generation model used in the present disclosure. This can effectively reduce the model training overhead.

[0073] In addition, it should be noted that in this scenario, if the text generation model used is a general model, such as ChatGPT, which is trained based on its historical knowledge (i.e., training samples), then the solution provided by the present disclosure can not only provide users with efficient and accurate responses within the scope of the target knowledge base, but also provide new knowledge beyond the scope of its target knowledge base within a certain range.

[0074] Furthermore, in order to prevent the text generation model from performing unlimited text generation, the present disclosure may further limit the direction of the continuation of the text generation model. Specifically, such range control may be achieved through a pre-learning training process for the text generation model. Alternatively, range control may be achieved by controlling the input information of the text generation model.

[0075] In an exemplary possible embodiment, the target knowledge base may be used to perform pre-learning training on the text generation model to obtain the pre-learned text generation model. In this way, the pre-learned text generation model can generate text within the scope of the target knowledge base.

[0076] In this step, in one embodiment of the present disclosure, the question information and the target knowledge base are used as inputs of the text generation model. In fact, the instruction input to the text generation model may be: please read these target knowledge bases and then answer the question information. After receiving the input, the text generation model will perform calculations according to the instructions to output the processing results. The processing results can be directly output to the user as the response content, or the processing results can be further processed to form the response content and output to the user. Specifically, the response content may include response text, one or more of images, videos, and audio.

[0077] As is well known, the data scale processed by the model, i.e., the amount of data, directly affects the processing speed of the model. At the same time, the larger the data scale, the higher the requirement for computing resources and the higher the cost investment. Therefore, in order to reduce the computing cost, improve the processing speed and user experience, so that the user can get the answer content more quickly, in one embodiment of the present disclosure, in this step, firstly, based on the question information, the associated knowledge is retrieved in the target knowledge base to obtain the associated knowledge, the question information and the associated knowledge are used as the input of the preset text generation model, and the output result of the text generation model is obtained, and the answer content is obtained based on the output result. In other words, the target knowledge base is first refined to obtain the associated knowledge related to the question information. Obviously, the data scale of the associated knowledge is significantly smaller than the data scale of the target knowledge base, then the data processing scale of the text generation model will be significantly reduced, and the requirement for computing resources will be correspondingly reduced, which can effectively reduce the computing cost. In addition, the retrieved associated knowledge is used as auxiliary information of the question information and input into the text generation model together, so that this part of the associated knowledge can play a role in correcting the generation direction when the text generation model generates text, which is conducive to making the text generated accordingly more matched with the question information.

[0078] In specific implementation, based on the question information, related document retrieval can be performed in the target knowledge base first to obtain related documents related to the question information, and then related knowledge can be extracted from the related documents; or based on the question information, related document search can be performed in the target knowledge base to obtain related documents, and the related documents can be directly determined as related knowledge and input into the text generation model.

[0079] The related document retrieval can be implemented by any means that can be used to evaluate the degree of relevance. For example, the title information of each document in the target knowledge base can be obtained; based on the relevance between the question information and the title information, at least one related document with a high relevance can be obtained.

[0080] Specifically, the present disclosure provides the following methods for screening based on correlation. In a specific implementation scenario, the above correlation screening can be implemented based on at least one of the following methods.

[0081] In a possible embodiment, based on named entity recognition (NER) and relation extraction (RE) methods, extraction can be performed in each document (all or part of the documents, or document titles, etc.) of the target knowledge base to obtain the extraction information corresponding to each document, that is, key nouns and relation predicates. After that, according to the frequency of occurrence of each extracted information, the candidate document with the highest keyword frequency (that is, the highest relevance) can be matched to the question information, and then it can be confirmed as a related document. In this way, the relevance is characterized based on the frequency of keywords in the extracted information, and screening is achieved accordingly.

[0082] In another possible embodiment, each document (all or part of the documents, or document titles, etc.) of the target knowledge base can be subjected to text vectorization processing to obtain a vectorized representation of each document; and the question information can be subjected to vectorization processing to obtain a vectorized representation of the question information. After that, the similarity between the vectorized representation of the question information and the vectorized representation of each document is obtained, such as cosine similarity, to obtain the correlation between the two, and then one or more documents with the highest similarity (i.e., the highest correlation) can be determined as related documents. In this way, the correlation is characterized based on the vector similarity, thereby realizing the correlation screening and determination of the related documents.

[0083] In another possible embodiment, the Levenshtein distance between the character string of the question information and the character string of each sentence in each document (all or part of the documents, or document titles, etc.) of the target knowledge base can be obtained to obtain the correlation between the two, and then the document to which one or more sentences with the smallest distance (i.e., the highest correlation) belong can be determined as the associated document. In this way, the correlation is characterized based on the Levenshtein distance, thereby realizing the relevance screening and determination of the associated documents.

[0084] For example, the similarity between the question information and the title information of each document in the target knowledge base can be calculated, and then one or more documents with higher similarity can be selected as associated documents. For another example, the Euclidean distance between the feature vector of the question information and the feature vector of the title information can be calculated to evaluate the similarity between the two, and then one or more documents with higher similarity can be selected as associated documents. For another example, for each document in the target knowledge base, the Levenshtein distance between each sentence of each document and the question information can be calculated, and one or more sentences with the smallest distance can be selected, and the documents to which these sentences belong can be confirmed as associated documents.

[0085] Specifically, when extracting related knowledge from related documents, you can choose a variety of ways to extract refined content from documents. For example, you can extract the first sentence of a paragraph, the last sentence of a paragraph, high-frequency words, entity relationships, events, chapter directories, special font text, etc. in the related documents as related knowledge, and we will not list them all here. Among them, high-frequency words are at least one word that appears most frequently in the related documents, entities refer to semantic words with specific meanings, such as people, places, organizations, or numbers, and entity relationships refer to the relationships between different entities, for example, person A and person B are father and son. Events refer to the dynamic behavior of one or more entities with specific meanings. Special font text is, for example, font text highlighted in the related documents.

[0086] Taking into account that the text generation model can correspond to different forms of model inputs, therefore, in one embodiment of the present disclosure, related knowledge can be first extracted from each related document to obtain candidate knowledge first, and then the candidate knowledge can be formatted for target processing, for example, graph processing, that is, forming the candidate knowledge into a knowledge graph, template processing, that is, filling the candidate knowledge into a pre-set template, tabular processing, that is, forming the candidate knowledge into a table, graphical processing, that is, forming the candidate knowledge into a graph such as a bar chart, a pie chart, and the like.

[0087] The following briefly introduces possible implementation methods of outputting response content in the present disclosure.

[0088] Figure 2 The present disclosure illustrates a response interface, in which the user's question information and the response content are displayed. However, the present disclosure does not particularly limit the output method of the response content. In actual scenarios, the response can be directly given in text form, or in any specified form, or even in a manner similar to the questioning method.

[0089] For example, in a possible embodiment, no matter what form the user asks the question, a response text can be generated based on the acquired question information, and the user's question can be answered in the form of displaying the response text on the response interface. That is, outputting the response content includes: displaying the response content on the response interface.

[0090] Alternatively, in another possible embodiment, no matter how the user asks the question, a response content including a response text can be generated accordingly. In this way, the form of the response content can be converted so that the response can be made in the manner specified by the user. For example, the response content (especially the response text) can be converted into an audio form (or video form or image form) indicated by the user, and the response can be made in the form indicated by the user.

[0091] Alternatively, in another possible embodiment, if the user asks a question in voice form, the answer text can be converted into audio form after the answer content is generated, and played through an audio device (an external playback device that comes with the terminal or is connected to the terminal). Similarly, in video or image form, when the user asks a question in video form, the answer is given by playing the video. For example, when the answer content only contains answer text, a video with an image to be determined (the background color or image, etc. can be preset) can be generated based on the answer text; or, when the answer content also includes an image, the answer text and the image can be video-encoded, and the video can be made with the image as the display content and the answer text as the audio. This is not exhaustive.

[0092] In addition, in an optional scenario, the response content may further include multimedia data, including but not limited to at least one of the following: images, videos, and audio. These multimedia data can be obtained by performing a correlation search on the response text and / or question information. Figure 3 The schematic diagram of the response interface is shown in Figure 3 As shown, the question information for the answer page is: What is the patent application process of XX Company? At this time, in addition to the answer text, the answer interface also displays the company's patent application flowchart. In specific implementation, the answer text can be generated based on the question information. Furthermore, if a correlation search is performed based on the answer text, and a flowchart of the company's patent application process is also searched, then the generated answer text and the flowchart can also be used as the answer content of the question, so that the answer can be presented as follows: Figure 3 The response interface shown.

[0093] When outputting the response content, the present disclosure may adopt different output modes based on the generation speed of the response text. For ease of understanding, the case where the response content is the response text, that is, the case where the response text is displayed on the response interface, is taken as an example for explanation. At this time, there may be two different forms:

[0094] In a possible embodiment, the complete response content may be output in response to the generated complete response content.

[0095] or,

[0096] In another possible embodiment, in response to the partial response content currently being generated, the partial response content is output in real time.

[0097] For easier understanding, please refer to Figure 2 and Figure 4 , Figure 2 and Figure 4 The scenarios shown are exactly the same, that is, the question information and the answer content are exactly the same, but the content displayed on the answer interface is different. Figure 2 The situation shown can be considered as Figure 4 The final state of the response interface shown is Figure 4 The response interface is Figure 2 The intermediate state of the response interface is shown. Figure 4 As shown, the present disclosure can display part of the answer content currently generated in real time, that is, the answer interface can realize the real-time content display of the answer process. In this implementation, the terminal can generate and display at the same time, providing the user with an anthropomorphic answer experience in which the terminal thinks and answers at the same time, which can eliminate the waiting time of the user waiting for the answer to a certain extent, making the answer process interesting and providing a better answer experience.

[0098] The method of outputting the complete response content after the complete response is equivalent to skipping Figure 4 The process shown is directly displayed to the user Figure 4 The response interface shown.

[0099] The answering method provided in this embodiment provides a new way to quickly and efficiently obtain effective knowledge by using a large amount of data within a certain range. It adopts a user-friendly answering method, and after the user asks a question and obtains the question information, the answer content corresponding to the user's question is quickly and efficiently obtained from the target database based on the question information and the intelligent ability of the preset text generation model. It can be used in various scenarios such as internal information acquisition, organization and analysis of enterprises, and can greatly improve the efficiency of knowledge acquisition.

[0100] Understandably, Figure 1 In the illustrated embodiment, the processing logic of the text generation model is a "black box" for the user. After obtaining the response content, the user cannot actually judge the accuracy of the response content. Therefore, the credibility of the content may be questioned, which may affect the subsequent use of the response content. Therefore, further, in another embodiment of the present disclosure, a source identifier is carried in the response content, and the source identifier is used to identify the data source of the corresponding response text in the response content; in this way, the corresponding content can be traced through the source identifier, so that the user can understand the source of the response content and ensure the authenticity and credibility of the response content to a certain extent.

[0101] It should be additionally explained that the response content generated by the present disclosure is related to the data source indicated by the source identifier, and is consistent with the content expressed by all or part of the text in the data source, but the specific text content (for example, the form of expression) may be different. For example, the response text in the response content may be: Xiao Ming is a three-good student, and the content of the data source indicated by the source identifier of the response text may be: Xiao Ming won the honor of a three-good student in XX. That is, the response text is consistent with the content of its data source, but the form of expression may be different.

[0102] The present disclosure has no particular restrictions on the form and granularity of data sources. Specifically, the data source may include, but is not limited to, at least one of document files, graphs, tables, multimedia data, databases, and code data, which are not exhaustive. In addition, the granularity of the data source can be custom designed. Taking a data source in the form of a document as an example, its granularity may include, but is not limited to, document collections, documents, paragraphs, sentences, words, etc.

[0103] In order to allow users to more accurately understand the data source and judge the credibility, in one embodiment of the present disclosure, further, in addition to the response content, the source information of the data source corresponding to the source identifier is displayed in the response interface. The source information is used to identify the data source. In the present disclosure, the source information may include but is not limited to at least one of the following: name, source website, original text link, original text content, location information of the original text content, file path, and file person in charge. Among them, the name refers to the name of the data source, for example, it can be specifically the title of an article, or it can be specifically the document name of a document. The source website refers to the source website of the data source, for example, the data source corresponding to a certain response text comes from website A or website B, which can be expressed here in the form of website name or website homepage address, etc., without exhaustive examples. It should be noted that the source website can be a public network URL or a private domain network URL, for example, a private domain URL within an internal enterprise. The original link refers to a link to the original text of the data source, which can have the ability to jump to the original text (also called a jump link), or it may not have the ability to jump. The original content refers to the content related to the answer text, for example, the original text or partial text of the article related to the answer text (for example, N sentences or N paragraphs of text, N is an integer greater than 0) or a brief description of the original text, etc. The location information of the original content refers to the specific location information of the partial content in the original text when the part associated with the answer content is a partial content of the original text of the data source, for example, the Nth paragraph of the original text, or the text content of the Nth paragraph of the original text of the data source, line XX-XXX. The file path refers to the storage path of the data source in the database, and the user can find the data source through the file path. It should be noted that the file storage location indicated by the file path can be located in a database that the terminal has the ability to read, or it may be a database that the terminal does not have the ability to read. The person in charge of the file refers to the person in charge of the data source file. When the user does not have the authority to view or apply the data source file, the corresponding person in charge can be contacted to facilitate the user's work. In this way, through the source information as described above, sufficient credibility can be provided to the user, and the user can also use this to view the data source to verify the accuracy of the answer content.

[0104] Specifically, there are many ways to display the source information of the data source, and these display methods are also related to the representation form of the source identifier to a certain extent.

[0105] Exemplarily, when displaying source information, a partial area (hereinafter referred to as the traceability area) may be divided in the response interface to display the source information.

[0106] That is, in a possible embodiment, the response interface includes a response area and a traceability area. At this time, outputting the response content includes: displaying the response content in the response area; and displaying the source information of the data source in the response interface includes: displaying the source information of the data source in the traceability area.

[0107] At this time, you can refer to Figure 5 , Figure 5 A schematic diagram of a response interface provided by the present disclosure. Figure 5 As shown, the answer interface displays a question area, an answer area, and a source tracing area. The answer area is used to display the answer content. The answer content also displays a source identifier represented by a digital superscript. Different reference superscripts (i.e., source identifiers) point to different data sources. Figure 5 In the response interface shown, the source information of the data source corresponding to each source identifier is displayed in the traceability area on the right. In this way, the user can clearly understand the basis and source of the response content through the response interface, and there is a clear prompt for the credibility of the response content. It should be understood that Figure 5 The response interface shown is only for illustration. The present disclosure has no special restrictions on the relative positional relationship between the traceability area and the response area, the position of the traceability area in the response interface, etc., and can be customized in actual scenarios. For example, the traceability area and the response area can be laid out side by side, or they can be laid out top to bottom. For another example, the relative proportion of the response area and the traceability area can be customized. For another example, the traceability area can be located below the response area and account for less than 30% of the entire response interface.

[0108] The present disclosure has no special restrictions on the amount and form of content displayed in the traceability area. That is, the traceability area can display the source information indicated by all source identifiers, or it can display the source information indicated by part of the source identifier. Exemplarily, the traceability area can be matched with the answer area for display. Which source identifier is included in the answer content currently displayed in the answer area, then the traceability area displays the source information of the data source corresponding to this part of the source identifier. Exemplarily, the content displayed in the traceability area can be matched and displayed based on user operations. For example, the user's mouse stop position (or click operation and other preset operations, here is just an example), if the user's mouse stops (staying time is greater than the preset threshold) at a non-source identification position, then the traceability area can be blank display, when the user's mouse stops at a certain source identification position, then the traceability area displays the source information of the data source indicated by the source identification. For another example, the user's mouse stop position can be monitored in real time, and the stop area associated with the mouse position (for example, N rows before and after the stop position) can be determined based on this. In this way, the traceability area can display the source information of the data source indicated by each source identifier within the range of the stop area.

[0109] In addition, the traceability area displays the source information indicated by all source identifiers, and the source identifiers preferably use different symbols (e.g. Figure 5 The response content and the source information are displayed in different forms (different numbers, different custom symbols as shown) so that the user can easily and quickly determine the relationship between the response content and the source information based on the source identifier.

[0110] Exemplarily, when displaying source information, the traceability area may not be displayed directly, but the traceability area (pop-up window or page) may be called out in response to the user's operation. At this time, the data source and / or source information can be consulted in a window mode or page switching mode. The implementation method here has no restrictions on the identification method of the source identifier. The display form of the source identifier pointing to different data sources can be different for easy distinction, or it can be displayed by a unified symbol (customized, not exhaustive), but different source identifiers point to different data sources. For example, the source identifier can be represented by "*".

[0111] In a possible embodiment, the source information of the data source is displayed in the response interface, including: in response to receiving a trigger operation for any one of the source identifiers, displaying a traceability pop-up window in the response interface, and displaying the source information of the data source in the traceability pop-up window. Among them, the trigger operation for the source identifier can be customized in advance, for example, it can include but is not limited to: the mouse stays on the source identifier, single-clicks the source identifier, long presses the source identifier, etc., not to be exhaustive. This implementation method is a way to view source information on an on-the-go basis.

[0112] In another possible embodiment, the method may further include: in response to receiving a trigger operation for any one of the source identifiers, switching the response interface to a traceability interface, and displaying the data source indicated by the source identifier in the traceability interface. Through this implementation, page jumps can be achieved, directly jumping from the currently displayed response interface to the original text display interface of the data source, for example, jumping from the response interface to the address of the original text of the data source. In this implementation, the source identifier can have more forms of expression. For example, in addition to being displayed in the form of a reference superscript, the source identifier can also be realized by highlighting the corresponding text (for example, distinguishing it from other texts in the form of a link).

[0113] For the trigger operation of the source identifier, please refer to the explanation of the previous embodiment, which will not be repeated here. In addition, if this implementation is combined with the traceability pop-up window method described in the previous embodiment, it is only necessary to set the trigger operations of the two to be different. There is no special restriction on how to set the trigger operations of the two.

[0114] The present disclosure generates a response content with a source identifier based on question information. In a specific implementation, the source identifier can be generated in the process of generating the response content by the text generation model (i.e., a one-time generation scheme), or can be obtained by first outputting the result of the text generation model and then performing relevant processing of tracing the output result (i.e., a post-tracing scheme). Specifically, in one embodiment of the present disclosure, the question information and the associated knowledge are used as the input of the preset text generation model, and the output result of the text generation model is obtained. The output result includes both the response text and the source identifier, and the output result can be directly output to the user as the response content, so that the response content includes the response text and the source identifier. In another embodiment of the present disclosure, the question information and the associated knowledge are used as the input of the preset text generation model, and the output result of the text generation model is obtained. The output result includes the response text, and then the response text is traced to obtain the data source corresponding to at least part of the response text, and the source identifier pointing to the data source is added to at least part of the response text content, so that the response content is output to the user.

[0115] Among them, tracing the response text to obtain the data source corresponding to at least part of the response text may include: performing content analysis on the response text to obtain content information; the content analysis includes at least one of the following: semantic analysis, key knowledge extraction, feature encoding; using the target knowledge base to match and cross-validate the content information to determine the data source consistent with the content of the response text, and the data source belongs to the target knowledge base.

[0116] In the specific implementation of this step, the granularity of the text to be responded to in the traceability process can be customized. For example, the traceability can be performed at least in the granularity of short sentences (such as short sentences between any two commas), long sentences (sentences between any two periods and other terminators), words, etc., which will not be described in detail later.

[0117] Furthermore, when the target knowledge base is used to match and cross-validate the content information to determine the data source consistent with the content of the response text, a correlation search can be performed in the target knowledge base based on the content information to obtain a candidate text set; then, the candidate text set and the content information are processed using a pre-trained consistency analysis model to obtain a target text consistent with the content of the response text, and the target text is determined as the data source corresponding to the response text. The consistency analysis model can be any semantic consistency model, search consistency model, similarity model, etc., without exhaustive enumeration and additional restrictions.

[0118] Secondly, the present disclosure provides a response device. Figure 6 A schematic diagram of a response device provided by the present disclosure. Figure 6 As shown, the response device 600 includes:

[0119] An acquisition module 610 is used to acquire question information;

[0120] The response module 620 is used to generate response content for the question information based on the question information, the target knowledge base and the preset text generation model, and output the response content.

[0121] Optionally, in one embodiment of the present disclosure, the response module 620 includes: a search submodule, used to retrieve related knowledge in the target knowledge base based on the question information to obtain related knowledge, wherein the data scale of the related knowledge is smaller than the data scale of the target knowledge base; a response submodule, used to use the question information and the related knowledge as inputs of the preset text generation model, obtain the output results of the text generation model, and obtain the response content based on the output results.

[0122] Optionally, in one embodiment of the present disclosure, the search submodule includes: a search unit, used to search for related documents in the target knowledge base based on the question information to obtain related documents; and an extraction unit, used to extract knowledge from the related documents to obtain the related knowledge.

[0123] Optionally, in an embodiment of the present disclosure, the search unit is used to: obtain title information of each document in the target knowledge base; and filter based on the correlation between the question information and the title information to obtain at least one associated document with a high correlation.

[0124] Optionally, in one embodiment of the present disclosure, the extraction unit is used to: extract related knowledge from each related document to obtain the related knowledge; wherein the related knowledge includes at least one of the following: the first sentence of a paragraph, the last sentence of a paragraph, high-frequency words, entity relationships, events, table of contents, and special font text.

[0125] Optionally, in one embodiment of the present disclosure, the extraction unit is used to: extract related knowledge from each related document to obtain candidate knowledge; wherein the candidate knowledge includes at least one of the following: the first sentence of a paragraph, the last sentence of a paragraph, high-frequency words, entity relationships, events, table of contents, special font text; perform target processing on the candidate knowledge to obtain the related knowledge; wherein the target processing includes at least one of the following: graph processing, template processing, tabular processing, graphical processing.

[0126] Optionally, in an embodiment of the present disclosure, the search submodule is used to: based on the question information, search for related documents in the target knowledge base to obtain related documents, and determine the related documents as the related knowledge.

[0127] Optionally, in one embodiment of the present disclosure, the device further includes: a training module, configured to perform pre-learning training on the text generation model pair using the target knowledge base to obtain the preset text generation model.

[0128] Optionally, in one embodiment of the present disclosure, the target knowledge base includes at least one of the following: process documents, product information, communication data, customer data, sales data, financial data, and human data.

[0129] Optionally, in one embodiment of the present disclosure, the output result includes a response text and a source identifier, and the source identifier is used to identify the data source of at least part of the response text; the response submodule is used to: use the output result as the response content, so that the response content includes the response text and the source identifier.

[0130] Optionally, in one embodiment of the present disclosure, the output result includes a response text; the response content includes the response text and a source identifier, and the source identifier is used to identify the data source of at least part of the response text; the response submodule is used to: trace the response text to obtain the data source corresponding to at least part of the response text; add a source identifier pointing to the data source to at least part of the response text content to obtain the response content.

[0131] Optionally, in one embodiment of the present disclosure, the response submodule is also used to: display source information of the data source in the response interface; wherein the source information includes at least one of the following: name, source address, jump link, source content, location information of the source content, file path, and file person in charge.

[0132] Optionally, in one embodiment of the present disclosure, the response module 620 is used to: in response to the partial response content currently generated, output the partial response content in real time; or, in response to the generated complete response content, output the complete response content.

[0133] Optionally, in one embodiment of the present disclosure, obtaining the question information includes: obtaining text data input by a user triggering a text question control to obtain the question information; or obtaining voice data input by a user triggering a voice question control to obtain the question information; or obtaining image data input by a user triggering an image question control, and parsing the image data to obtain the question information.

[0134] Optionally, in an embodiment of the present disclosure, the response content includes at least one of the following: image, video, audio.

[0135] Furthermore, the present disclosure provides an electronic device. Figure 7 Schematic diagram of an electronic device provided by the present disclosure. Referring to the figure, the electronic device 700 includes a memory 710 and a processor 720.

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

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

[0138] The memory 710 stores executable codes, and when the executable codes are processed by the processor 720 , the processor 720 can execute the response method mentioned above.

[0139] Furthermore, the present disclosure provides a response system. Figure 8 A schematic diagram of a response system provided by the present disclosure. The response system 800 includes:

[0140] Terminal 810, used for human-computer interaction with users;

[0141] The server 820 is used to implement the processing procedures in the above-mentioned method except for the human-computer interaction.

[0142] Exemplarily, the terminal may be used to obtain question information and output response content, while the server may be used to generate response content for the question information based on the question information, the target knowledge base and a preset text generation model.

[0143] The response method provided according to the present disclosure has been described above in detail with reference to the accompanying drawings.

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

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

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

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

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

Claims

1. A response method, characterized in that: include: Get question information; Based on the question information, the target knowledge base and a preset text generation model, a response content for the question information is generated, and the response content is output.

2. The method according to claim 1, characterized in that The step of generating a response to the question information based on the question information, the target knowledge base and a preset text generation model includes: Based on the question information, performing a related knowledge search in the target knowledge base to obtain related knowledge, wherein the data size of the related knowledge is smaller than the data size of the target knowledge base; The question information and the associated knowledge are used as inputs of the preset text generation model, and the output result of the text generation model is obtained, and the response content is obtained based on the output result.

3. The method according to claim 2, characterized in that Based on the question information, performing related knowledge retrieval in the target knowledge base to obtain related knowledge includes: Based on the question information, a related document search is performed in the target knowledge base to obtain related documents; Knowledge extraction is performed on the associated documents to obtain the associated knowledge.

4. The method according to any one of claims 1 to 3, characterized in that: The target knowledge base includes at least one of the following: process documents, product information, communication data, customer data, sales data, financial data, and human data.

5. The method according to any one of claims 1 to 4, characterized in that: The outputting of the response content includes: In response to the currently generated partial response content, output the partial response content in real time; or, In response to the generated complete response content, the complete response content is output.

6. A response device, characterized in that: include: The acquisition module is used to obtain question information; The answering module is used to generate answering content for the question information based on the question information, the target knowledge base and the preset text generation model, and output the answering content.

7. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 5.

8. A computer program product, characterized in that The method comprises executable codes, which, when executed by a processor of an electronic device, cause the processor to perform the method according to any one of claims 1 to 5.

9. A non-transitory machine-readable storage medium, characterized in that: An executable code is stored thereon, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the method according to any one of claims 1 to 5.

10. A response system, characterized in that: include: A terminal, used to obtain question information and output the answer content; The server is used to generate response content for the question information based on the question information, the target knowledge base and a preset text generation model.

Citation Information

Patent Citations

  • Intelligent response method and device and storage medium

    CN112860873A

  • Information providing system, information providing method, and data structure of knowledge data

    US20210397786A1

Cited By

  • Information processing method and device, electronic equipment and readable storage medium

    CN119377421A

  • Content generation method and apparatus, electronic device and storage medium

    WO2026086461A1

  • Information processing method and apparatus, electronic device, and readable storage medium

    WO2026137934A1