Method and device for configuring knowledge information, equipment and storage medium
By configuring an interface in the generative model to determine and edit the hierarchical information of the target content, and organizing it into multiple knowledge segments, the problem of limitations in the organization of knowledge information is solved, and the efficiency of knowledge information utilization and the processing efficiency of the generative model are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2026-03-31
AI Technical Summary
Generative models have limitations in how they organize knowledge and information, which affects the quality of the generated results and leads to low efficiency in the utilization of knowledge and information.
By presenting a configuration interface, the initial hierarchical information of the target content is determined, and the target hierarchical information is generated based on editing operations. The target content is organized into multiple knowledge segments to improve the efficiency of knowledge and information utilization.
By optimizing the hierarchical structure of knowledge information, the efficiency and accuracy of generative models in processing requests are improved, thereby enhancing the utilization efficiency of knowledge information.
Smart Images

Figure CN121766401A_ABST
Abstract
Description
Technical Field
[0001] The exemplary embodiments disclosed herein generally relate to the field of computers, and particularly to methods, apparatus, devices, and computer-readable storage media for configuring knowledge information. Background Technology
[0002] With the development of computer technology, generative models are increasingly being applied to various aspects of people's lives. Some platforms also support users in configuring various types of applications based on generative models, such as agents or bots. Users can also configure corresponding knowledge information for such applications to support them in processing requests by referring to this knowledge information. Summary of the Invention
[0003] In a first aspect of this disclosure, a method for configuring knowledge information is provided. The method includes: presenting a configuration interface associated with target content, the target content being added as knowledge information for a target application; presenting initial hierarchical information determined by processing the target content in the configuration interface, the initial hierarchical information indicating the hierarchical levels corresponding to multiple content portions within the target content; determining target hierarchical information of the target content via the configuration interface, the target hierarchical information including the initial hierarchical information or updated hierarchical information determined by editing the initial hierarchical information; and organizing the target content into multiple knowledge segments based on the target hierarchical information, such that the target application processes received requests based on the multiple knowledge segments.
[0004] In a second aspect of this disclosure, a method for creating an application is provided. The method includes: configuring knowledge information associated with a target application, wherein the knowledge information indicates multiple knowledge segments organized based on target content, wherein the multiple knowledge segments are determined based on the following process: presenting initial hierarchical information determined by processing the target content in a configuration interface, the initial hierarchical information indicating the hierarchy corresponding to multiple content portions in the target content; determining target hierarchical information of the target content via the configuration interface, the target hierarchical information including the initial hierarchical information or updated hierarchical information determined by editing the initial hierarchical information; organizing the target content into multiple knowledge segments based on the target hierarchical information; and creating the target application based on the knowledge information.
[0005] In a third aspect of this disclosure, an apparatus for configuring knowledge information is provided. The apparatus includes: an interface presentation module configured to present a configuration interface associated with target content, the target content being added as knowledge information for a target application; an information presentation module configured to present initial hierarchy information determined by processing the target content in the configuration interface, the initial hierarchy information indicating the hierarchy corresponding to multiple content portions in the target content; a hierarchy determination module configured to determine target hierarchy information of the target content via the configuration interface, the target hierarchy information including initial hierarchy information or updated hierarchy information determined by editing the initial hierarchy information; and a knowledge organization module configured to organize the target content into multiple knowledge segments based on the target hierarchy information, such that the target application processes received requests based on the multiple knowledge segments.
[0006] In a fourth aspect of this disclosure, an apparatus for creating an application is provided. The apparatus includes: a knowledge configuration module configured to configure knowledge information associated with a target application, wherein the knowledge information indicates multiple knowledge segments organized based on target content, wherein the multiple knowledge segments are determined based on the following process: presenting initial hierarchical information determined by processing the target content in a configuration interface, the initial hierarchical information indicating the hierarchy corresponding to multiple content portions in the target content; determining target hierarchical information of the target content via the configuration interface, the target hierarchical information including the initial hierarchical information or updated hierarchical information determined by editing the initial hierarchical information; and organizing the target content into multiple knowledge segments based on the target hierarchical information; and an application creation module configured to create the target application based on the knowledge information.
[0007] In a fifth aspect of this disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. When executed by the at least one processing unit, the instructions cause the device to perform the methods of the first or second aspect.
[0008] In a sixth aspect of this disclosure, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program that can be executed by a processor to implement the methods of the first or second aspect.
[0009] It should be understood that the content described in this content section is not intended to limit the key or essential features of the embodiments of this disclosure, nor is it intended to restrict the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0010] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. In the drawings, the same or similar reference numerals denote the same or similar elements, wherein:
[0011] Figure 1 A schematic diagram is shown of an example environment in which embodiments of the present disclosure may be implemented;
[0012] Figures 2A to 2D Example interfaces according to some embodiments of this disclosure are shown;
[0013] Figure 3 A flowchart illustrating an example process for configuring knowledge information according to some embodiments of this disclosure is shown;
[0014] Figure 4 A schematic structural block diagram of an example apparatus for configuring knowledge information according to some embodiments of the present disclosure is shown; and
[0015] Figure 5 A block diagram of an electronic device capable of implementing several embodiments of the present disclosure is shown. Detailed Implementation
[0016] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0017] It should be noted that the headings of any section / subsection provided herein are not limiting. Various embodiments are described throughout this document, and embodiments of any type may be included under any section / subsection. Furthermore, embodiments described in any section / subsection may be combined in any way with any other embodiments described in the same section / subsection and / or different sections / subsections.
[0018] In the description of embodiments of this disclosure, the term "comprising" and similar terms should be understood as open-ended inclusion, i.e., "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below. The terms "first", "second", etc., may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0019] The embodiments of this disclosure may involve user data, data acquisition, and / or use. All of these aspects comply with applicable laws, regulations, and relevant provisions. In the embodiments of this disclosure, all data collection, acquisition, processing, manipulation, forwarding, and use are conducted with the user's knowledge and confirmation. Accordingly, in implementing the embodiments of this disclosure, the type, scope of use, and usage scenarios of any data or information that may be involved should be communicated to the user and their authorization obtained in accordance with relevant laws and regulations through appropriate means. The specific methods of notification and / or authorization may vary depending on the actual situation and application scenario, and the scope of this disclosure is not limited in this respect.
[0020] In this specification and the embodiments, any processing of personal information will be carried out only under the premise of legality (such as obtaining the consent of the personal information subject, or being necessary for the performance of a contract), and will only be carried out within the scope stipulated or agreed upon. A user's refusal to process personal information other than that necessary for basic functions will not affect the user's use of basic functions.
[0021] Generative models have the ability to use configured knowledge information to process requests. For example, a generative model can process a request by searching for relevant knowledge fragments (also known as slices). However, due to the limitations of the input size of generative models, the way the knowledge information is organized will directly affect the quality of the model's generated results.
[0022] Embodiments of this disclosure propose a scheme for configuring knowledge information. The scheme includes: presenting a configuration interface associated with target content, where the target content is added as knowledge information for a target application; presenting initial hierarchical information determined by processing the target content in the configuration interface, the initial hierarchical information indicating the hierarchical levels corresponding to multiple content portions within the target content; determining target hierarchical information of the target content via the configuration interface, the target hierarchical information including the initial hierarchical information or updated hierarchical information determined by editing the initial hierarchical information; and organizing the target content into multiple knowledge segments based on the target hierarchical information, enabling the target application to process received requests based on these multiple knowledge segments.
[0023] In this way, embodiments of this disclosure can organize knowledge segments corresponding to content based on the hierarchical structure of the content, thereby improving the efficiency of knowledge and information utilization.
[0024] The following section provides a detailed description of various example implementations of this scheme, with reference to the accompanying drawings.
[0025] Example Environment
[0026] Figure 1 A schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented is shown. For example... Figure 1As shown, example environment 100 may include electronic device 110.
[0027] In this example environment 100, electronic device 110 can run an application 120 that supports user interface interaction. Application 120 can be any suitable type of application for user interface interaction, examples of which may include, but are not limited to, development applications or other suitable applications. User 140 can interact with application 120 via electronic device 110 and / or its attached devices.
[0028] exist Figure 1 In environment 100, if application 120 is active, electronic device 110 can use application 120 to present interface 150 for supporting configuration knowledge information.
[0029] In some embodiments, electronic device 110 communicates with server 130 to provide services to application 120. Electronic device 110 can be any type of mobile terminal, fixed terminal, or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, handheld computers, portable gaming terminals, VR / AR devices, personal communication system (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio receivers, e-book devices, gaming devices, or any combination thereof, including accessories and peripherals of these devices or any combination thereof. In some embodiments, electronic device 110 can also support any type of user-facing interface (such as "wearable" circuitry).
[0030] Server 130 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks, and big data and artificial intelligence platforms. Server 130 may include, for example, computing systems / servers such as mainframes, edge computing nodes, computing devices in a cloud environment, etc. Server 130 can provide backend services for applications 120 that support virtual scenarios in electronic devices 110.
[0031] A communication connection can be established between server 130 and electronic device 110. This communication connection can be established via wired or wireless means. The communication connection may include, but is not limited to, Bluetooth, mobile network, Universal Serial Bus (USB), and Wireless Fidelity (WiFi) connections; the embodiments of this disclosure are not limited in this respect. In the embodiments of this disclosure, server 130 and electronic device 110 can achieve signaling interaction through the communication connection between them.
[0032] It should be understood that the structure and function of the various elements in environment 100 are described for illustrative purposes only and do not imply any limitation on the scope of this disclosure.
[0033] The following description will continue with reference to the accompanying drawings, which will provide some exemplary embodiments of this disclosure.
[0034] Example Interaction
[0035] The following will combine Figures 2A to 2C To describe example interactions of configuration knowledge information according to some embodiments of this disclosure. Figures 2A to 2C Example interfaces 200A to 200C according to some embodiments of the present disclosure are shown. Interfaces 200A to 200C may, for example, be provided by... Figure 1 The electronic device 110 shown is provided.
[0036] In some embodiments, the target application may be an agent, bot, or other appropriate application built on a generative model that is suitable for invoking a knowledge base, such as a digital assistant.
[0037] As an example, electronic device 110 can support users adding appropriate content to the knowledge base of a target application, making it accessible to the target application. As another example, electronic device 110 can support users uploading local files as target content. Such files may include documents, images, and other appropriate formats.
[0038] Alternatively, electronic device 110 can also support users inputting a corresponding network address to add the content corresponding to that network address to the knowledge base. For example, such content may include online documents, web pages, etc.
[0039] like Figure 2A As shown, interface 200A can configure the interface for the knowledge base of the target application. Taking a file upload scenario as an example, after a user uploads a local file (e.g., one or more documents) to the knowledge base of the target application, electronic device 110 can display the following: Figure 2A The interface shown is 200A.
[0040] In interface 200A, electronic device 110 can provide multiple options 205, 210, and 215. Options 205, 210, and 215 can correspond to different ways of organizing knowledge information. As an example, option 205 can instruct knowledge segments to be organized based on paragraphs of the target content; option 210 can instruct knowledge segments to be organized based on the hierarchical structure of the target content; and option 215 can support user-defined logic for organizing knowledge segments.
[0041] In some embodiments, the electronic device 110 may also present prompts associated with a plurality of options 205, 210, and 215 to indicate a pattern that matches the target content to be configured. As an example, the electronic device 110 may present a recommendation element 212 associated with option 210 when it determines that the target content to be configured meets a preset condition corresponding to option 210.
[0042] In some embodiments, the electronic device 110 may perform pre-identification of the hierarchical structure of the target content to determine whether the identified hierarchical structure meets preset conditions. For example, such preset conditions may indicate whether the number of hierarchical nodes contained in the hierarchical structure is greater than a preset number, whether the hierarchical depth of the hierarchical structure is greater than a preset depth, etc. Alternatively, such preset conditions may also indicate whether the confidence level of the hierarchical identification result generated by the hierarchical structure identification model is greater than a threshold.
[0043] As an example, when option 210 is selected, electronic device 110 can further display as follows: Figure 2B The configuration interface 200B shown is shown. This configuration interface 200B can display a list of contents to be configured, such as "Document A", "Document B", and "Document C".
[0044] The following description uses target content 220 (i.e., document A) as an example to illustrate a sample interaction for configuring knowledge information. As an example, electronic device 110 can display the initial hierarchy information 225 of target content 220 in the configuration interface 200B.
[0045] In some embodiments, the initial hierarchy information 225 is determined by processing the target content 220, indicating the content structure of the target content 220. Taking an example where the target content 220 includes an editable document, the initial hierarchy information 225 may be determined based on the document's directory structure.
[0046] In some embodiments, the initial hierarchy information 225 can also be determined by identifying the hierarchical relationships between different segments in the target content 220. Taking a file in Portable Document Format (PDF) as an example, the hierarchical relationship between different content segments can be determined by identifying the positional relationships between different content segments in the file. For example, the electronic device 110 can determine that a certain segment of the file is below "Heading A" and can associate it with that level "Heading A".
[0047] It should be understood that, depending on the specific form of the target content, embodiments of this disclosure may employ any appropriate method to extract the hierarchical structure of the content as initial hierarchical information.
[0048] by Figure 2B As an example, initial hierarchy information 225 can indicate that the hierarchy “Heading A” is the parent hierarchy of the hierarchies “Heading B” and “Heading C”.
[0049] In some embodiments, the electronic device 110 may also obtain first configuration information, wherein the first configuration information indicates the maximum number of levels allowed for segmentation. As an example, the electronic device 110 may, via a method such as... Figure 2A The configuration control associated with option 210 shown determines the maximum number of levels that can be split.
[0050] Furthermore, the electronic device 110 or server 130 can segment the target content 220 based on the first configuration information to determine the initial hierarchical information 225. For example, the user can indicate that the maximum number of allowed segments is 2, then the content portions corresponding to "Heading B" and "Heading C" will not be further segmented into finer-grained hierarchies.
[0051] Furthermore, such as Figure 2B As shown, the configuration interface 200B may also include a first area 230. The first area 230 may display a preview of the target content 220. As an example, the electronic device 110 may render an image of the target content 220 in the first area 230.
[0052] Additionally, such as Figure 2B As shown, the configuration interface 200B may also include a second area 235. The second area 235 can recognize the text recognition result of the target content 220. Taking a file in Portable Document Format (PDF) as an example, the electronic device 110 or server 130 can use OCR to recognize the text content contained in the file. Accordingly, the electronic device 110 can display the recognized text content in the second area 235.
[0053] In some embodiments, the electronic device 110 can also receive a user's selection of a target level 240 (e.g., heading B) in the initial hierarchy information 225. Accordingly, the electronic device 110 can display the content portion 245 corresponding to the target level 230 in a first area 230; alternatively or additionally, the electronic device 110 can also display the content portion corresponding to the target level, i.e., the text recognition result 250, in a second area 235. In this way, the user can intuitively perceive the original content and recognized content corresponding to each level.
[0054] In some embodiments, the electronic device 110 may receive confirmation from the user of the initial hierarchy information 225, so as to use the initial hierarchy information 225 as the final hierarchy information (i.e., the target hierarchy information) of the target content 220.
[0055] Additionally, the electronic device 110 can also receive at least one editing operation on the initial hierarchical information 225 via the configuration interface 200B to determine the updated hierarchical information. Furthermore, the electronic device 110 can determine the edited updated hierarchical information as the final hierarchical information (i.e., the target hierarchical information) of the target content 220.
[0056] In some embodiments, the electronic device 110 may receive a user's first editing operation to adjust the hierarchy associated with at least one content section. For example, if a user determines that a paragraph should belong to "Heading B" rather than "Heading C," the user can, for instance, drag the paragraph from below "Heading C" in the initial hierarchy information 225 to below "Heading B." Accordingly, the paragraph can be associated with the updated hierarchy (i.e., Heading B).
[0057] Alternatively or additionally, the electronic device 110 may also receive a second editing operation from the user, deleting at least one level in the initial hierarchy information 225. As an example, the electronic device 110 may perform a preset operation (e.g., right-click) on the level "Heading C" in the initial hierarchy information 225, thereby displaying a delete control for deleting that level. Further, the electronic device 110 may receive a selection of the delete control and may unassociate the content portions under that level from that level and associate that level with another level. For example, in the case of deleting the "Heading C" level, one or more paragraphs previously associated with "Heading C" may be automatically associated with "Heading B".
[0058] Alternatively or additionally, the electronic device 110 can also receive a third editing operation from the user to merge multiple levels into a single level. As an example, the electronic device 110 can receive the user's selection of "Heading B" and "Heading C" and can accordingly present controls for merging the levels. Further, the electronic device 110 can receive a selection of this control and can merge "Heading B" and "Heading C" into a new level (e.g., "Body Text"). As an example, the user can define the level identifier of the merged levels.
[0059] As an example, multiple citations in a paper may be identified as multiple independent levels. However, a single citation carries less information on its own, and users can, for example, combine multiple citations into a single level.
[0060] In some embodiments, the electronic device 110 may also receive a fourth editing operation from the user to adjust the hierarchy identifier of at least one level. For example, the electronic device 110 may support the user in modifying the names of each level.
[0061] Based on the process described above, embodiments of this disclosure can support users to further adjust the automatically identified hierarchical information to improve the accuracy of the hierarchical information.
[0062] In some embodiments, after configuring the hierarchy information, the electronic device 110 may further present, as shown in the following examples: Figure 2C The viewing interface 200C is shown. In the interface 200C, the electronic device 110 can present a set of indexes corresponding to the determined target hierarchy information 255, such as "Title A", "Title B", and "Title C".
[0063] Additionally, the electronic device 110 may receive a selection of a target index 260 (e.g., heading C) and may accordingly present at least one content portion corresponding to the target index 260, such as paragraphs 275-1, 275-2, and 275-3.
[0064] Additionally, the electronic device 110 also allows users to edit the text recognition results of the target content 220 via the viewing interface 200C. For example, the electronic device 110 can click on paragraph 275-1 to enter text editing mode and can edit the text content in paragraph 275-1. Furthermore, the electronic device 110 can also allow users to add new paragraphs, delete existing paragraphs, and adjust the order of paragraphs via the interface 200C.
[0065] In some embodiments, the electronic device 110 may further organize the target content into multiple knowledge segments (or knowledge slices) based on the determined target hierarchy information.
[0066] As an example, each knowledge segment can correspond to the lowest level in the determined target hierarchy of information. Figure 2C As an example, if document A has two levels, multiple paragraphs corresponding to “heading B” will be organized into the same knowledge segment, and multiple paragraphs corresponding to “heading C” will be organized into the same knowledge segment.
[0067] In some embodiments, the electronic device 110 may also obtain second configuration information, wherein the second configuration information indicates whether the knowledge segment retains the header of the associated hierarchy. As an example, the electronic device 110 may also obtain information via a method such as... Figure 2A Option 210 is associated with a configuration control to obtain second configuration information.
[0068] As an example, this configuration control can provide several preset modes. Preset modes could include, for example, a first mode that indicates the knowledge segment does not retain hierarchical headings. Alternatively, preset modes could include a second mode that indicates the knowledge segment retains the lowest level headings. Or, preset modes could include a third mode that indicates the knowledge segment retains headings for all associated levels.
[0069] by Figure 2C As an example, for the level "Heading B", if the second configuration information indicates the first mode, the knowledge segments corresponding to multiple paragraphs under "Heading B" will not include the text "Heading B". If the second configuration information indicates the second mode, the knowledge segments corresponding to multiple paragraphs under "Heading B" will only include the text "Heading B". If the second configuration information indicates the third mode, the knowledge segments corresponding to multiple paragraphs under "Heading B" will include the text "Heading A - Heading B".
[0070] Furthermore, after organizing knowledge segments based on target-level information, the target application can process received requests based on the organized knowledge segments. For example, the target application can search for knowledge segments that match a received request and reference those segments to generate the corresponding response content.
[0071] Figure 2D A sample user interface 200D for the target application is shown. For example... Figure 2D As shown, the target application can receive user query messages 280 and generate corresponding response content 285 by querying the knowledge base. As an example, the response content 285 can be generated based on the knowledge segment corresponding to the level "Heading B" of "Document A" in the knowledge base.
[0072] Accordingly, the target application can present reference information 290 associated with the response content 285 in the interface 200D to indicate the hierarchical identifier corresponding to the referenced target knowledge segment, such as "Title B".
[0073] In some embodiments, the electronic device 110 may also display a viewing interface for the target knowledge segment corresponding to the reference information 290 based on the selection of the reference information 290. As an example, the viewing interface may only display the content of the target knowledge segment applied in the knowledge file.
[0074] In some embodiments, the electronic device 110 may also display a viewing interface for the target content where the target knowledge segment corresponding to the reference information 290 is located, based on the selection of the reference information 290. As an example, the viewing interface may only display the viewing interface for the knowledge file, and the content of the applied target knowledge segment may be highlighted in the viewing interface.
[0075] Based on the process described above, embodiments of this disclosure can organize knowledge segments corresponding to content based on the hierarchical structure of the content, thereby improving the efficiency of knowledge information utilization.
[0076] In some embodiments, the electronic device 110 may also create a corresponding target application based on the knowledge information configuration process mentioned above, such as an agent, a bot, or other appropriate application suitable for calling the knowledge base, such as a digital assistant.
[0077] Example process
[0078] Figure 3 A flowchart of a process 300 for configuring knowledge information according to some embodiments of the present disclosure is shown. Process 300 can be implemented at electronic device 110. Reference is made below. Figure 1 To describe process 300.
[0079] like Figure 3 As shown, in box 310, the electronic device 110 presents a configuration interface associated with the target content, which is added as knowledge information for the target application.
[0080] In box 320, electronic device 110 presents initial hierarchy information determined by processing target content in the configuration interface. The initial hierarchy information indicates the hierarchy corresponding to multiple content portions in the target content.
[0081] In box 330, electronic device 110 determines the target level information of the target content via a configuration interface. The target level information includes initial level information or updated level information determined by editing the initial level information.
[0082] In box 340, electronic device 110 organizes target content into multiple knowledge segments based on target hierarchy information, enabling the target application to process received requests based on multiple knowledge segments.
[0083] In some embodiments, the configuration interface further includes a first area and / or a second area, wherein the first area displays a preview of the target content and the second area displays the text recognition result of the target content.
[0084] In some embodiments, process 300 further includes: in response to the selection of a target level in the initial hierarchy information, displaying at least one content portion corresponding to the target level in a target style in a first region and / or a second region.
[0085] In some embodiments, process 300 further includes: obtaining first configuration information, the first configuration information indicating the maximum number of levels that can be segmented; and segmenting the target content based on the first configuration information to determine initial level information.
[0086] In some embodiments, organizing target content into multiple knowledge segments based on target hierarchy information includes: obtaining second configuration information, the second configuration information indicating whether the knowledge segments retain the title of the associated hierarchy; and organizing the target content into multiple knowledge segments corresponding to the updated hierarchy information based on the second configuration information.
[0087] In some embodiments, the second configuration information indicates one of the following: a first mode, indicating that the knowledge segment does not retain the title of the hierarchy; a second mode, indicating that the knowledge segment retains the title of the lowest level; and a third mode, indicating that the knowledge segment retains the titles of all associated levels.
[0088] In some embodiments, determining the target hierarchy information of the target content via a configuration interface includes receiving at least one editing operation on the initial hierarchy information to determine the updated hierarchy information.
[0089] In some embodiments, at least one editing operation includes: a first editing operation for adjusting the hierarchy associated with at least one content portion; a second editing operation for deleting at least one hierarchy from the initial hierarchy information; a third editing operation for merging multiple hierarchies into a single hierarchy; and a fourth editing operation for adjusting the hierarchy identifier of at least one hierarchy.
[0090] In some embodiments, process 300 further includes: presenting a viewing interface for target content, the viewing interface including a set of indexes corresponding to target hierarchy information; and, in response to selection of a target index from the set of indexes, displaying at least one content portion corresponding to the target index in the viewing interface.
[0091] In some embodiments, process 300 further includes: editing the text recognition result of at least one content portion via a viewing interface.
[0092] In some embodiments, process 300 further includes: in response to the target application referencing a target knowledge segment among multiple knowledge segments to generate response content, triggering the presentation of the response content and the reference information associated with the response content in the interactive interface of the target application, wherein the reference information indicates the hierarchical identifier corresponding to the target knowledge segment.
[0093] Example devices and equipment
[0094] Embodiments of this disclosure also provide corresponding apparatus for implementing the above methods or processes. Figure 4 A schematic structural block diagram of an example device 400 for configuring knowledge information according to certain embodiments of the present disclosure is shown. Device 400 may be implemented as or included in electronic device 110. Various modules / components in device 400 may be implemented by hardware, software, firmware, or any combination thereof.
[0095] like Figure 4 As shown, the device 400 includes: an interface presentation module 410 configured to present a configuration interface associated with target content, wherein the target content is added as knowledge information for a target application; an information presentation module 420 configured to present initial hierarchical information determined by processing the target content in the configuration interface, wherein the initial hierarchical information indicates the hierarchical levels corresponding to multiple content portions in the target content; a hierarchical determination module 430 configured to determine target hierarchical information of the target content via the configuration interface, wherein the target hierarchical information includes initial hierarchical information or updated hierarchical information determined by editing the initial hierarchical information; and a knowledge organization module 440 configured to organize the target content into multiple knowledge segments based on the target hierarchical information, such that the target application processes received requests based on the multiple knowledge segments. In some embodiments, the configuration interface further includes a first area and / or a second area, wherein the first area displays a preview result of the target content, and the second area displays the text recognition result of the target content.
[0096] In some embodiments, the apparatus 400 further includes a selection module configured to: in response to the selection of a target level in the initial hierarchy information, display at least one content portion corresponding to the target level in a target style in a first region and / or a second region.
[0097] In some embodiments, the apparatus 400 further includes a determining module configured to: acquire first configuration information, the first configuration information indicating the maximum number of levels that can be segmented; and segment the target content based on the first configuration information to determine initial level information.
[0098] In some embodiments, the knowledge organization module 440 is further configured to: obtain second configuration information, the second configuration information indicating whether the knowledge segment retains the title of the associated level; and organize the target content into multiple knowledge segments corresponding to the updated level information based on the second configuration information.
[0099] In some embodiments, the second configuration information indicates one of the following: a first mode, indicating that the knowledge segment does not retain the title of the hierarchy; a second mode, indicating that the knowledge segment retains the title of the lowest level; and a third mode, indicating that the knowledge segment retains the titles of all associated levels.
[0100] In some embodiments, the hierarchy determination module 430 is further configured to receive at least one edit operation on the initial hierarchy information to determine the updated hierarchy information.
[0101] In some embodiments, at least one editing operation includes: a first editing operation for adjusting the hierarchy associated with at least one content portion; a second editing operation for deleting at least one hierarchy from the initial hierarchy information; a third editing operation for merging multiple hierarchies into a single hierarchy; and a fourth editing operation for adjusting the hierarchy identifier of at least one hierarchy.
[0102] In some embodiments, the apparatus 400 further includes an indexing module configured to: present a viewing interface for target content, the viewing interface including a set of indexes corresponding to target hierarchical information; and, in response to selection of a target index from the set of indexes, display at least one content portion corresponding to the target index in the viewing interface.
[0103] In some embodiments, the device 400 further includes an editing module configured to edit the text recognition result of at least one content portion via a viewing interface.
[0104] In some embodiments, the device 400 further includes a prompting module, which is configured to: in response to a target application referencing a target knowledge segment among multiple knowledge segments to generate response content, trigger the presentation of the response content and the reference information associated with the response content in the interactive interface of the target application, wherein the reference information indicates the hierarchical identifier corresponding to the target knowledge segment.
[0105] Figure 5 A block diagram of an electronic device 500 in which one or more embodiments of the present disclosure may be implemented is shown. It should be understood that... Figure 5 The electronic device 500 shown is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein. Figure 5 The electronic device 500 shown can be used to achieve Figure 1 Electronic devices 110.
[0106] like Figure 5 As shown, electronic device 500 is in the form of a general-purpose electronic device. Components of electronic device 500 may include, but are not limited to, one or more processors or processing units 510, memory 520, storage device 530, one or more communication units 540, one or more input devices 550, and one or more output devices 560. Processing unit 510 may be a physical or virtual processor and is capable of performing various processes according to programs stored in memory 520. In a multiprocessor system, multiple processing units execute computer-executable instructions in parallel to improve the parallel processing capability of electronic device 500.
[0107] Electronic device 500 typically includes multiple computer storage media. Such media can be any accessible media that is accessible to electronic device 500, including but not limited to volatile and non-volatile media, removable and non-removable media. Memory 520 can be volatile memory (e.g., registers, cache, random access memory (RAM)), non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. Storage device 530 can be removable or non-removable media and can include machine-readable media, such as flash drives, disks, or any other media that can be used to store information and / or data and can be accessed within electronic device 500.
[0108] Electronic device 500 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not explicitly stated... Figure 5 As shown, disk drives for reading from or writing to removable, non-volatile disks (e.g., "floppy disks") and optical disk drives for reading from or writing to removable, non-volatile optical disks can be provided. In these cases, each drive can be connected to a bus (not shown) via one or more data media interfaces. Memory 520 may include computer program product 525 having one or more program modules configured to perform various methods or actions of various embodiments of this disclosure.
[0109] Communication unit 540 enables communication with other electronic devices via a communication medium. Additionally, the functionality of components of electronic device 500 can be implemented using a single computing cluster or multiple computing machines capable of communicating via communication connections. Therefore, electronic device 500 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network node.
[0110] Input device 550 can be one or more input devices, such as a mouse, keyboard, trackball, etc. Output device 560 can be one or more output devices, such as a monitor, speaker, printer, etc. Electronic device 500 can also communicate with one or more external devices (not shown) via communication unit 540 as needed. These external devices include storage devices, display devices, etc., and can communicate with one or more devices that enable user interaction with electronic device 500, or with any device that enables electronic device 500 to communicate with one or more other electronic devices (e.g., network card, modem, etc.). Such communication can be performed via input / output (I / O) interface (not shown).
[0111] According to an exemplary implementation of this disclosure, a computer-readable storage medium is provided that stores computer-executable instructions thereon, wherein the computer-executable instructions are executed by a processor to implement the methods described above. According to an exemplary implementation of this disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, which are executed by a processor to implement the methods described above.
[0112] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0113] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processing unit of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0114] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions that execute on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0115] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0116] Various implementations of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is chosen to best explain the principles, practical applications, or improvements to technology in the market, or to enable others skilled in the art to understand the various implementations disclosed herein.
Claims
1. A method for configuring knowledge information, comprising: presenting a configuration interface associated with target content, the target content being added as knowledge information of a target application; presenting, in the configuration interface, initial hierarchical information determined by processing the target content, the initial hierarchical information indicating a plurality of content parts in the target content corresponding to a hierarchy; determining, via the configuration interface, target hierarchical information of the target content, the target hierarchical information comprising the initial hierarchical information or updated hierarchical information determined by editing the initial hierarchical information; and organizing the target content into a plurality of knowledge segments based on the target hierarchical information, so that the target application processes a received request based on the plurality of knowledge segments. 2.The method of claim 1, wherein the configuration interface further comprises a first region and / or a second region, the first region displaying a preview result of the target content, and the second region displaying a text recognition result of the target content. wherein 3.The method of claim 2, further comprising: in response to a selection of a target hierarchy in the initial hierarchical information, displaying at least one content part corresponding to the target hierarchy in a target style in the first region and / or the second region. 4.The method of claim 1, further comprising: obtaining first configuration information indicating a maximum number of hierarchies allowed to be split; and splitting the target content based on the first configuration information to determine the initial hierarchical information. 5.The method of claim 1, wherein organizing the target content into a plurality of knowledge segments based on the target hierarchical information comprises: obtaining second configuration information indicating whether a knowledge segment retains a title of an associated hierarchy; and organizing the target content into the plurality of knowledge segments corresponding to the updated hierarchical information based on the second configuration information. 6.The method of claim 5, wherein the second configuration information indicates one of: a first mode indicating that a knowledge segment does not retain a title of a hierarchy; a second mode indicating that a knowledge segment retains a title of a lowest hierarchy; a third mode indicating that a knowledge segment retains a title of all associated hierarchies. 7.The method of claim 1, wherein determining, via the configuration interface, target hierarchical information of the target content comprises: receiving at least one editing operation on the initial hierarchical information to determine the updated hierarchical information. 8.The method of claim 7, wherein the at least one editing operation comprises: a first editing operation for adjusting a hierarchy associated with at least one content part; a second editing operation for deleting at least one hierarchy in the initial hierarchical information; a third editing operation for merging a plurality of hierarchies into a same hierarchy; and a fourth editing operation for adjusting a hierarchy identifier of at least one hierarchy. 9.The method of claim 1, further comprising: presenting a viewing interface of the target content, the viewing interface comprising a set of indices corresponding to the target hierarchical information; and In response to selection of a target index in the set of indexes, display at least one content portion corresponding to the target index in the viewing interface. 10.The method of claim 9, further comprising: editing, via the viewing interface, a text recognition result of the at least one content portion. 11.The method of claim 1, further comprising: in response to the target application referencing a target knowledge segment in the plurality of knowledge segments to generate response content, triggering presentation of the response content and reference information associated with the response content in an interaction interface of the target application, the reference information indicating a hierarchy identification corresponding to the target knowledge segment. 12.A method for creating an application, comprising: configuring knowledge information associated with a target application, wherein the knowledge information indicates a plurality of knowledge segments organized based on target content, wherein the plurality of knowledge segments are determined based on a process of: presenting, in a configuration interface, initial hierarchy information determined by processing the target content, the initial hierarchy information indicating hierarchies corresponding to a plurality of content portions in the target content; determining, via the configuration interface, target hierarchy information of the target content, the target hierarchy information comprising the initial hierarchy information or updated hierarchy information determined by editing the initial hierarchy information; and organizing the target content into the plurality of knowledge segments based on the target hierarchy information; and creating the target application based on the knowledge information. 13.An apparatus for configuring knowledge information, comprising: an interface presentation module configured to present a configuration interface associated with target content, the target content being added as knowledge information of a target application; an information presentation module configured to present, in the configuration interface, initial hierarchy information determined by processing the target content, the initial hierarchy information indicating hierarchies corresponding to a plurality of content portions in the target content; a hierarchy determination module configured to determine, via the configuration interface, target hierarchy information of the target content, the target hierarchy information comprising the initial hierarchy information or updated hierarchy information determined by editing the initial hierarchy information; and a knowledge organization module configured to organize the target content into a plurality of knowledge segments based on the target hierarchy information, such that the target application processes a received request based on the plurality of knowledge segments. 14.An apparatus for creating an application, comprising: a knowledge configuration module configured to configure knowledge information associated with a target application, wherein the knowledge information indicates a plurality of knowledge segments organized based on target content, wherein the plurality of knowledge segments are determined based on a process of: presenting, in a configuration interface, initial hierarchy information determined by processing the target content, the initial hierarchy information indicating hierarchies corresponding to a plurality of content portions in the target content; determining, via the configuration interface, target hierarchy information of the target content, the target hierarchy information comprising the initial hierarchy information or updated hierarchy information determined by editing the initial hierarchy information; and organize the target content into a plurality of knowledge segments based on the target hierarchical information; and an application creation module configured to create the target application based on the knowledge information.
15. An electronic device, comprising: at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions when executed by the at least one processing unit cause the electronic device to perform the method according to any one of claims 1-11 or 12.
16. A computer readable storage medium having stored thereon a computer program, the computer program executable by a processor to implement the method according to any one of claims 1-11 or 12.