Response method and device, electronic equipment and storage medium

By obtaining user question information in large model applications, determining the target database and generating response content, combined with data output format settings, the problem of poor readability in large model application responses is solved, and the readability and work efficiency of response content are improved.

CN118780371APending Publication Date: 2024-10-15THE FOURTH PARADIGM BEIJING TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410947190.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The readability of responses output by large model applications is poor, which affects the quality and readability of the response content, causing users to spend a lot of time reading and further processing, affecting work efficiency.

Method used

Provide a response method that obtains the user's question information, determines the target database, generates response content, and outputs the response content according to the preset data output format, including setting up a dialogue interaction interface, extracting keywords, and using a generative model to generate responses content, and set the data output format in the database configuration interface to improve readability.

Benefits of technology

Effectively improve the readability of response content, allowing users to quickly obtain the required content, reducing the processing of response content, and improving work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780371A_ABST
    Figure CN118780371A_ABST
Patent Text Reader

Abstract

The invention relates to a response method which is designed for improving the readability of response content. The answering method comprises the following steps: determining a target database for answering the question information; based on the target database, generating response content for the question information; and outputting the response content for the question information according to a preset data output format corresponding to the target database. The method and the device can be used for scenes such as large model software tools for solving problems by using a database.
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 more specifically, to a response method, device, electronic device and storage medium. Background Art

[0002] With the rise of big model technology, many companies have already enabled big model software tools (i.e. big model applications) that use internal knowledge to solve their own problems. These big model applications can analyze and extract the content of internal knowledge of the company, thereby answering questions from internal employees, and can greatly improve the efficiency of information acquisition, organization and analysis within the company, thereby improving employees' work efficiency and task success rate. For example, when serving customers, window employees of a financial institution used to have to read dozens of internal company documents to solve problems. Big model software tools can summarize the corresponding key content in relevant documents in real time and give summary feedback.

[0003] However, the answers given by this type of large model application to questions currently have the problem of poor readability. After obtaining the answers, users may need to spend a lot of time and energy reading them, and may need further processing before they can be applied, which has a negative impact on work efficiency. Summary of the invention

[0004] In view of this, the embodiments of the present disclosure provide a response method, device, electronic device and storage medium, which can improve the readability of the response content.

[0005] In a first aspect, an embodiment of the present disclosure provides a response method, the method comprising: obtaining a user's question information; determining a target database for responding to the question information; generating response content for the question information based on the target database; and outputting the response content for the question information according to a pre-set data output format corresponding to the target database.

[0006] Optionally, in one embodiment, before obtaining the user's question information, the method further includes: providing a dialogue interaction interface, wherein a dialogue input box is provided on the dialogue interaction interface, and obtaining the user's question information includes: obtaining the question information input by the user through the dialogue input box. Optionally, in one embodiment, determining the target database for answering the question information includes: extracting keywords from the question information; based on the keywords, searching a pre-set database for a target database matching the keywords.

[0007] Optionally, in one implementation, generating response content to the question information based on the target database includes: providing the question information and the target database to a preset generative model, and obtaining response content output by the generative model.

[0008] Optionally, in one embodiment, the target database includes at least one file, and the file includes process files, product information, communication data, customer data, sales data, financial data or human data.

[0009] Optionally, in one embodiment, the method further includes: providing a database configuration interface of the target database, wherein database configuration items are provided in the database configuration interface, and the database configuration items include data output format configuration items; and in response to a user's configuration operation on the data output format configuration items, setting a data output format corresponding to the target database.

[0010] Optionally, in one implementation, the database configuration interface includes a configuration area and a preview area, and the database configuration items are set in the configuration area; the method further includes: displaying preview content output according to the set data output format in the preview area.

[0011] Optionally, in one embodiment, the preview area is provided with a preview control; and displaying the preview content output according to the set data output format in the preview area includes: in response to a user's selection operation of the preview control, displaying the preview content output according to the set data output format in the preview area.

[0012] Optionally, in one embodiment, the database format configuration item includes a default format option and a custom format option; in response to the user's configuration operation on the data output format configuration item, setting the data output format corresponding to the target database includes: in response to the user's selection operation on the default format option, setting the data output format corresponding to the target database to a predefined default format; or, in response to the user's selection operation on the custom format option, providing a list of items to be configured, the list of items to be configured including at least one item to be configured, and a configuration input control is provided for each item to be configured; in response to the user's input operation through the configuration input control, setting the item to be configured based on the configuration information input by the user.

[0013] Optionally, in one embodiment, the data output format includes at least one of the following: font, maximum number of paragraph characters, paragraph overlapping characters, line spacing, segmentation method, and data display direction.

[0014] In a second aspect, an embodiment of the present disclosure provides a response device, which includes: a receiving unit for acquiring a user's question information; a determining unit for determining a target database for responding to the question information; a generating unit for generating response content for the question information based on the target database; and an output unit for outputting the response content for the question information in accordance with a pre-set data output format corresponding to the target database.

[0015] Optionally, in one embodiment, the device further includes: a display unit for providing a dialogue interaction interface, wherein a dialogue input box is provided on the dialogue interaction interface; and the receiving unit is specifically used to obtain question information input by the user through the dialogue input box.

[0016] Optionally, in one implementation, the determining unit is specifically configured to: extract keywords from the question information; and based on the keywords, search a preset database for a target database that matches the keywords.

[0017] Optionally, in one implementation, the generation unit is specifically configured to: provide the question information and the target database to a preset generative model, and obtain a response content output by the generative model.

[0018] Optionally, in one embodiment, the target database includes at least one file, and the file includes process files, product information, communication data, customer data, sales data, financial data or human data.

[0019] Optionally, in one embodiment, the device further includes: a second display unit, used to provide a database configuration interface of the target database, the database configuration interface being provided with database configuration items, the database configuration items including data output format configuration items; and a setting unit, used to set the data output format corresponding to the target database in response to a user's configuration operation on the data output format configuration item.

[0020] Furthermore, in one embodiment, the database configuration interface includes a configuration area and a preview area, and the database configuration items are set in the configuration area; the device also includes: a preview unit, which is used to display preview content output according to the set data output format in the preview area.

[0021] Furthermore, in one embodiment, the preview area is provided with a preview control; and the preview unit is specifically configured to: in response to a user's selection operation on the preview control, display the preview content output according to the set data output format in the preview area.

[0022] Further, in one embodiment, the database format configuration item includes a default format option and a custom format option; the setting unit is specifically used to: in response to a user's selection operation of the default format option, set the data output format corresponding to the target database to a predefined default format; Alternatively, in response to a user's selection operation on the custom format option, a list of items to be configured is provided, the list of items to be configured includes at least one item to be configured, and a configuration input control is provided for each item to be configured; in response to the user's input operation through the configuration input control, the item to be configured is set based on the configuration information input by the user.

[0023] Optionally, in one embodiment, the data output format includes at least one of the following: font, maximum number of paragraph characters, paragraph overlapping characters, line spacing, segmentation method, and data display direction.

[0024] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: a housing, a processor, a memory, a circuit board and a power supply circuit, wherein the circuit board is placed inside a space enclosed by the housing, and the processor and the memory are arranged on the circuit board; a power supply circuit is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method for loading pages described in the method of the first aspect above.

[0025] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the page display method described in the first aspect.

[0026] The answering method, device, electronic device and storage medium provided by the embodiments of the present disclosure, after obtaining the user's question information, first determine the target database for answering the question information, and generate answer content for the question information based on the target database, and then output the answer content for the question information according to a pre-set data output format corresponding to the target database. That is, the data output format of the target database can be set in advance, so that the data output format of the answer content can be flexibly controlled, which can effectively improve the readability of the answer content. On the one hand, it can save the user from spending a lot of time and energy to read these answer contents, and can quickly obtain the required content. On the other hand, it can save the user from further processing the answer content and can apply the answer content, thereby effectively improving work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0028] Figure 1 A flow chart of a response method provided in an embodiment of the present disclosure; Figure 2 An exemplary schematic diagram of a database configuration interface in a response method provided in an embodiment of the present disclosure; Figure 3 An exemplary schematic diagram of a database configuration interface in a response method provided in an embodiment of the present disclosure; Figure 4 An exemplary schematic diagram of a dialogue interaction interface in the answering method provided in an embodiment of the present disclosure; Figure 5 An exemplary schematic diagram of a database configuration interface in a response method provided in an embodiment of the present disclosure; Figure 6 An exemplary schematic diagram of a dialogue interaction interface in the answering method provided in an embodiment of the present disclosure; FIG7 (a) and (b) are exemplary schematic diagrams of a dialogue interaction interface in a response method provided in an embodiment of the present disclosure; Figure 8 A schematic diagram of the structure of a response device provided in an embodiment of the present disclosure; Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0030] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation methods described in the following examples do not represent all implementation methods consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.

[0032] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three types of parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three types of parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.

[0033] With the advancement of big model technology, taking the use of big model technology within the enterprise to empower the enterprise as an example, a big model application can be created to process the internal database of the enterprise. This type of big model application can communicate with internal employees of the enterprise in a dialogue manner, and can analyze and extract knowledge content in the pre-configured database to answer questions from internal employees of the enterprise. However, the answers output by the current big model application have the problem of poor readability. For example, the content output by the application may be too long or too short, and there may be no restrictions or no intervals between paragraphs. These problems affect the quality and readability of the answer content.

[0034] In view of this, the present disclosure provides a response method that can effectively improve the readability of the response content.

[0035] First of all, it should be noted that the answering method provided by the present disclosure can be applied to a terminal running a large model application, and executed by the terminal, specifically by the large model application, or by a software platform in the terminal. The terminal is, for example, a smart phone, a PDA, a tablet computer, a wearable device with a display screen, a desktop computer, a laptop computer, an all-in-one machine, a smart home device, etc. The large model application can be set in the terminal as an independent application, or it can be deployed in a software platform installed in the terminal. If it is deployed in a software platform, the page of the software platform can be provided with an entrance to the large model application, and the user can access the large model application by clicking on the entrance, etc. In addition, the software platform can also integrate the function of creating a large model application. Users can not only use the large model application through the software platform, but also create a large model application, that is, users can create their own large model application in the platform as needed.

[0036] The big model application mentioned in the present disclosure is an application software based on big model technology, which can communicate with users, for example, can dialogue with users, understand users' business needs, and then extract the response content required by users from the internal database.

[0037] The following is combined with Figure 1 , the scheme provided by the embodiment of the present disclosure is described in detail, Figure 1 A flow chart of the method provided in the embodiment of the present disclosure, such as Figure 1 As shown, the answering method of this embodiment specifically includes the following steps: Step 110: Obtain the user's question information.

[0038] The present disclosure can provide a dialogue interaction interface for users, and the dialogue interaction interface is used to interact with users in a dialogue or other manner, so as to obtain user's question information. Users can ask questions in a variety of ways such as text, voice, and documents. Specifically, text, voice, and documents can be input through the dialogue interaction interface. In this step, the user's question information will be obtained based on the user's input.

[0039] Specifically, in one implementation, a dialogue input box is provided in the dialogue interaction interface, and the user inputs question information by entering text in the dialogue input box.

[0040] Step 120: Determine a target database for answering the question information.

[0041] In the present disclosure, a database for answering question information can be pre-set, and the database includes at least one. These pre-set databases are used to analyze and extract information, so as to answer the user's questions. Exemplarily, these databases can be various knowledge sets within the enterprise, and each database can include at least one file. These files are generally circulated within the enterprise to support the operation of the enterprise or the advancement of business. Specifically, these files can include but are not limited to at least one of the following: process files, product information, communication data, customer data, sales data, financial data, human data, etc., which are not exhaustive. Among them, the process file involves at least one of the following: approval process related documents, acceptance process related documents, product release process related documents, etc.; and product information can 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 can include but is not limited to: emails, chat software communication records or screenshots, meeting minutes, meeting screen recordings, etc., which cannot be exhaustive.

[0042] For example, when creating a large model application, the database can be uploaded to the configuration of the large model application, so that the large model application can extract the corresponding answer content of the user's question from these configured databases. When obtaining the user's question information, first determine the target database for answering the question information in the pre-set database, and then generate the answer content, so as to achieve a rapid response to the predetermined database range. This is conducive to efficiently obtaining any knowledge within the predetermined database range and improving the efficiency of knowledge utilization.

[0043] Exemplarily, the question information can be used to perform an associated search in a predetermined database to obtain an associated target database. In specific implementation, the associated database search can be implemented by any means that can be used to evaluate the degree of association. For example, each database can be configured with feature description information, such as the title of the database, the technical field involved in the database, the creator of the database such as a knowledge base, etc., and at least part of the information in the user's question information can be used as a keyword. In this step, the keywords in the question information can be first extracted, and based on the keywords, the target database matching the keywords can be retrieved in the pre-set database. Specifically, the similarity between the keywords and the titles in the database can be calculated, and then one or more databases with higher similarity can be selected as the target database. It can be understood that the present disclosure does not limit how to determine the target database, and those skilled in the art can make a selection based on the prior art, which will not be repeated here.

[0044] Step 130: Generate response content for the question information based on the target database.

[0045] After the target database is determined, the response content for the question information will be generated based on the target database. Specifically, the response content for the question information can be generated based on the question information and the target database. Specifically, the Euclidean distance between the feature vector of the question information and the feature vector of the knowledge in the database can be calculated to evaluate the similarity between the two, and then one or more related knowledge with higher similarity can be selected as the response content.

[0046] In a specific embodiment, in this step, the question information and the target database can be provided to a pre-set generative model, and the answer content output by the generative model can be obtained. The generative model can be a large language model (i.e., a large model) that has the ability to automatically generate continuation, analysis, and extraction text based on input data. Therefore, it is precisely by utilizing this characteristic of the generative model that the generative model can generate text for automatic response continuation based on the obtained question information, and then use the answer content generated by the generative model as the answer content for the question information.

[0047] It is understandable that the present disclosure does not limit how to generate the response content to the question information based on the target database. Those skilled in the art can make a choice based on the existing technology, which will not be elaborated here.

[0048] Step 140: Output the response content to the question information according to a pre-set data output format corresponding to the target database.

[0049] Specifically, in this step, outputting the answer content includes: displaying the answer content on the dialogue interaction interface, that is, answering the user's question in the form of displaying the answer text on the dialogue interaction interface in a dialogue manner.

[0050] In the present disclosure, in order to improve the readability of the response content, a data output format corresponding to the database is pre-set, so that when the response content is output, the response content will be output according to the pre-set data output format, thereby flexibly controlling the data output format of the response content and effectively improving the readability of the response content.

[0051] Optionally, the data output format may include but is not limited to at least one of the following: font, maximum number of paragraph characters, paragraph overlapping characters, line spacing, segmentation method, and data display direction. Among them, the font indicates the font requirements of the response content, such as Songti, Kaiti, etc.; the maximum paragraph characters indicate the maximum number of characters in each segment of the response content; the paragraph overlapping characters indicate the maximum number of characters that can be repeated at the beginning of each segment and the end of the previous segment. Note that the number of paragraph overlapping characters must be less than the maximum number of paragraph characters, and the original semantics after segmentation should be retained as much as possible to avoid incomplete expression caused by sentence segmentation; the line spacing indicates the distance between adjacent lines of each segment of the response content; the segmentation method indicates the segmentation requirements of the response content, such as whether to add spaces before the paragraph, paragraph spacing, whether to add blank lines between paragraphs, etc.; the data display direction is used to indicate the display direction of table-type, numerical-type and other data in the response content, which may specifically include horizontal display and vertical display.

[0052] The answering method provided by the embodiment of the present disclosure, after obtaining the user's question information, first determines the target database for answering the question information, and generates answer content for the question information based on the target database, and then outputs the answer content for the question information according to a pre-set data output format corresponding to the target database, so that the data output format of the answer content can be flexibly controlled, and the readability of the answer content can be effectively improved. On the one hand, it can save the user from spending a lot of time and energy to read these answer contents, and can quickly obtain the required content. On the other hand, it can save the user from further processing the answer content and can apply the answer content, thereby effectively improving work efficiency.

[0053] It can be understood that in one embodiment of the present disclosure, before the big model application is put into use, the big model application can be configured, such as configuring the database used by the big model application, and for each database, configuring the data output format corresponding to each database, etc. After the big model application is put into use, the user's questions can be answered based on the pre-configured database and the data output format corresponding to each database.

[0054] Of course, it should be noted that a database configuration section can be set up on the platform, and all available databases can be created and configured using the section. When building a large model application, the database used by the created large model application can be selected from the pre-configured databases. Of course, it is also possible to create and configure a database for a large model application during the creation of the large model application, or, for a large model application that has already been built, configure or modify its data output format for the selected database.

[0055] Specifically, a database configuration interface for configuring a database may be provided, and the database configuration interface includes database configuration items that need to be configured, and the configuration items may include the name (title) of the database, a database profile (description information), files in the database, and data output formats, etc. The database is configured based on the user's configuration operation on each configuration item. For example, in response to the user's configuration operation on the data output format configuration item, the data output format corresponding to the target database is set.

[0056] In order for the user to better understand the output effect of the configured data output format, optionally, a configuration area and a preview area can be set in the database configuration interface, the database configuration items are set in the configuration area, and the preview area is used to display the preview content output according to the set data output format. Among them, the preview area can be provided with a preview control, such as a button. When the user selects the preview control, for example, when the button is clicked, in response to the user's selection operation of the preview control, the preview content output according to the set data output format is displayed in the preview area. The preview control can include an activated state and an inactivated state. When the data output format has not been configured or the configuration is not completed, the preview control can be in an inactivated state that cannot be operated, for example, displayed in grayscale, and the preview content will not be displayed even if the user selects the preview control. When the data output format configuration is completed, the preview control switches to an activated state, such as a highlighted display. At this time, if the user selects the preview control, the preview content will be displayed.

[0057] In one embodiment, the database format configuration item may include a default format option and a custom format option; wherein the default format option corresponds to a pre-set fixed format, while the custom format option requires the user to customize the data format item. When the user selects the default format option, in response to the user's selection operation on the default format option, the data output format corresponding to the database is set to the pre-defined default format; and when the user selects the custom format option, in response to the user's selection operation on the custom format option, a list of items to be configured is provided, the list of items to be configured includes but is not limited to at least one item to be configured, for example, font, font, maximum number of paragraph characters, paragraph overlapping characters, line spacing, segmentation mode, data display direction, and a configuration input control may be provided for each item to be configured, and in response to the user's input operation through the configuration input control, the item to be configured is set based on the configuration information input by the user.

[0058] In order to better understand the present disclosure, a specific embodiment and related exemplary drawings are further described below.

[0059] The answering method of this embodiment can first provide a database creation portal, and can set a portal icon at a certain location on a certain page of the software platform, and provide a database configuration interface when the user selects the portal. It should be noted that for the convenience of explanation, the objects to be explained are marked with dotted boxes and numbers in the subsequent figures. Figure 2 is an exemplary schematic diagram of a database configuration interface, such as Figure 2 As shown, the database configuration interface includes a configuration area A and a preview area B. Configuration area A is provided with multiple database configuration items, including database name, database introduction, imported data (i.e., database files), and data processing (i.e., data output format). Data processing includes two options: default segmentation and custom segmentation. Among them, the default segmentation corresponds to a fixed data output format: the maximum number of segment characters is 512, the number of paragraph overlap characters is 50, etc. A preview control 10 is provided in the preview area B. Before the configuration of the data processing configuration items is completed, the preview control 10 is in an inactive state with grayscale display.

[0060] In response to the user's configuration operation, the database name is set to the test data set, the database profile is set to the test data set, the files in the database are uploaded, and the data processing, i.e., the data output format, is selected as the default segment. At this time, the preview control 10 is activated and highlighted. When the user clicks the preview control 10 to preview, see Figure 3 , the preview content is displayed in the data output format corresponding to the default segment. After the database configuration is completed and the large model application is put into use, see Figure 4 , a dialogue interaction interface can be provided, which is provided with a dialogue input box 20, through which the question information input by the user "Zhang Xiaolong's WeChat product methodology..." is received, and the question information is determined to be answered using the previously created test data set, and the answer content is generated based on the test data set, and the answer content is output according to the default segmentation method.

[0061] If the user selects the custom segmentation option for data processing or data output format during configuration, see Figure 5 , a list of items to be configured may be provided, the list of items to be configured may include configuration items such as segmentation mode, maximum paragraph characters, paragraph overlapping characters, and data display direction, and a configuration input control may be provided for each of the items to be configured, such as an input box, an importation component, etc.; in response to the user's input operation through the configuration input control, each item to be configured may be set based on the configuration information input by the user. In this case, when the user clicks the preview control 10 for preview, see Figure 5 , the preview content is displayed in the data output format corresponding to the custom segment. After the database configuration is completed and the large model application is put into use, see Figure 6, a dialogue interaction interface can be provided, which is provided with a dialogue input box 20, through which the question information input by the user "Zhang Xiaolong's WeChat product methodology..." is received, and the question information is determined to be answered using the previously created test data set, and the answer content is generated based on the test data set, and the answer content is output according to the custom segmentation method.

[0062] In addition, if the data display direction is selected to be horizontal, as shown in Figure 7 (a), when providing relevant response content, the data is displayed horizontally, and if the vertical display is selected, as shown in Figure 7 (b), the data of the response content is displayed vertically. In this way, the user can have a clear understanding of the data, and can also directly copy the response content and place it in the relevant file without further processing.

[0063] Figure 8 A schematic diagram of a response device structure provided by an embodiment of the present disclosure is shown in FIG. Figure 8 As shown, the response device of this embodiment may include: A receiving unit 80 is used to obtain the user's question information; A determination unit 81, configured to determine a target database for answering the question information; A generating unit 82, configured to generate a response content for the question information based on the target database; The output unit 83 is used to output the response content to the question information according to a preset data output format corresponding to the target database.

[0064] Optionally, in one embodiment, the device further comprises: A display unit, used to provide a dialogue interaction interface, wherein the dialogue interaction interface is provided with a dialogue input box; The receiving unit 80 is specifically used to obtain question information input by the user through the dialogue input box.

[0065] Optionally, in one embodiment, the determining unit 81 is specifically configured to: Extracting keywords from the question information; Based on the keyword, a target database matching the keyword is searched in a preset database.

[0066] Optionally, in one embodiment, the generating unit 82 is specifically configured to: The question information and the target database are provided to a preset generative model, and the response content output by the generative model is obtained.

[0067] Optionally, in one embodiment, the target database includes at least one file, and the file includes process files, product information, communication data, customer data, sales data, financial data or human data.

[0068] Optionally, in one embodiment, the device further comprises: A second display unit is used to provide a database configuration interface of the target database, wherein the database configuration interface is provided with database configuration items, and the database configuration items include data output format configuration items; The setting unit is used to set the data output format corresponding to the target database in response to the user's configuration operation on the data output format configuration item.

[0069] Optionally, in one embodiment, the database configuration interface includes a configuration area and a preview area, and the database configuration items are set in the configuration area; The device also includes: The preview unit is used to display the preview content output according to the set data output format in the preview area.

[0070] Optionally, in one embodiment, the preview area is provided with a preview control; The preview unit is specifically used for: In response to a user's selection operation on the preview control, the preview content output according to the set data output format is displayed in the preview area.

[0071] Optionally, in one embodiment, the database format configuration item includes a default format option and a custom format option; The setting unit is specifically used for: In response to a user's selection operation of the default format option, setting the data output format corresponding to the target database to a predefined default format; or In response to a user's selection operation on the custom format option, a list of items to be configured is provided, the list of items to be configured includes at least one item to be configured, and a configuration input control is provided for each item to be configured; in response to a user's input operation through the configuration input control, the item to be configured is set based on the configuration information input by the user.

[0072] Optionally, in one embodiment, the data output format includes at least one of the following: Font, maximum number of characters in a paragraph, overlapping characters in paragraphs, line spacing, segmentation method, and data display direction.

[0073] The device of this embodiment can be used to perform Figure 1The technical solution of the method embodiment shown has similar implementation principles and technical effects, which will not be repeated here.

[0074] Accordingly, a device provided by an embodiment of the present disclosure may also be implemented using another structure. Fig. 9 A schematic diagram of the structure of an electronic device embodiment provided by the present disclosure can implement the present disclosure Figure 1 The process of the embodiment shown is as follows: Fig. 9 As shown, the above-mentioned electronic device may include: a shell 91, a processor 92, a memory 93, a circuit board 94 and a power supply circuit 95, wherein the circuit board 94 is arranged inside the space enclosed by the shell 91, and the processor 92 and the memory 93 are arranged on the circuit board 94; the power supply circuit 95 is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory 93 is used to store executable program codes; the processor 92 runs the program corresponding to the executable program code by reading the executable program code stored in the memory 93, so as to execute the method described in the above-mentioned embodiment.

[0075] For details on the specific execution process of the above steps by the processor 92 and the steps further executed by the processor 92 by running the executable program code, please refer to the present disclosure. Figure 1 The description of the illustrated embodiment will not be repeated here.

[0076] The electronic device is a device that provides computing services. The electronic device consists of a processor, hard disk, memory, system bus, etc. The electronic device is similar to the general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, manageability, etc.

[0077] It should be noted that, in this article, terms such as "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0078] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0079] In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0080] The logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or in conjunction with such instruction execution system, apparatus or device. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, apparatus or device, or in conjunction with such instruction execution system, apparatus or device.

[0081] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0082] It should be understood that various parts of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.

[0083] In the above embodiments, multiple steps or methods may be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it may be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0084] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0085] For the convenience of description, the above device is described by dividing the functions into various units / modules. Of course, when implementing the present disclosure, the functions of each unit / module can be implemented in the same or multiple software and / or hardware.

[0086] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present disclosure can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present disclosure can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present disclosure or certain parts of the embodiments.

Claims

1. A response method, It is characterized in that The method comprises: Get the user's question information; Determining a target database for answering the question information; Based on the target database, generating a response content for the question information; The response content to the question information is output according to a preset data output format corresponding to the target database.

2. The method according to claim 1, It is characterized in that Before obtaining the user's question information, the method further includes: Providing a dialogue interaction interface, wherein a dialogue input box is provided on the dialogue interaction interface, and obtaining the user's question information includes: Obtain question information input by the user through the dialogue input box.

3. The method according to claim 1, It is characterized in that The determining of the target database for answering the question information comprises: Extracting keywords from the question information; Based on the keyword, a target database matching the keyword is searched in a preset database.

4. The method according to claim 1, It is characterized in that The generating of the response content to the question information based on the target database includes: The question information and the target database are provided to a preset generative model, and the response content output by the generative model is obtained.

5. The method according to claim 1, It is characterized in that The target database includes at least one file, and the file includes process files, product information, communication data, customer data, sales data, financial data or human data.

6. The method according to any one of claims 1 to 5, It is characterized in that The method further comprises: Providing a database configuration interface of the target database, wherein the database configuration interface is provided with database configuration items, and the database configuration items include data output format configuration items; In response to the user's configuration operation on the data output format configuration item, the data output format corresponding to the target database is set.

7. The method according to claim 6, It is characterized in that The database format configuration items include a default format option and a custom format option; In response to the user's configuration operation on the data output format configuration item, setting the data output format corresponding to the target database includes: In response to a user's selection operation of the default format option, setting the data output format corresponding to the target database to a predefined default format; or In response to a user's selection operation on the custom format option, providing a list of items to be configured, the list of items to be configured including at least one item to be configured, and a configuration input control is provided for each item to be configured; In response to an input operation by a user through the configuration input control, the item to be configured is set based on the configuration information input by the user.

8. A response device, It is characterized in that The device comprises: A receiving unit, used to obtain the user's question information; A determination unit, used for determining a target database for answering the question information; A generating unit, configured to generate a response content for the question information based on the target database; The output unit is used to output the response content to the question information according to a preset data output format corresponding to the target database.

9. An electronic device, It is characterized in that The electronic device comprises: a housing, a processor, a memory, a circuit board and a power supply circuit, wherein the circuit board is placed inside the space enclosed by the housing, and the processor and the memory are arranged on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory is used to store executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method described in any of the preceding claims 1-7.

10. A computer-readable storage medium storing one or more programs, wherein the one or more programs can be executed by one or more processors to implement the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Database query method and device

    CN114254006A

  • Question and answer method and device, equipment and storage medium

    CN116628150A

  • Question and answer pair generation method and device and electronic equipment

    CN117421413A

  • Method and device for constructing enterprise internal knowledge base question-answering system

    CN117743541A

  • Dialog management server, dialog management method, and program

    JP2020204971A