Method and apparatus for configuring knowledge information, and device and storage medium
By configuring an interface in the generative model to determine and edit hierarchical information, the problem of limitations in the organization of knowledge information is solved, and the efficient use of knowledge information and the accuracy of model generation are improved.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-08-22
- Publication Date
- 2026-04-02
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 associated with the target content, the initial hierarchical information can be determined and edited, and organized into multiple knowledge segments to improve the efficiency of knowledge information utilization.
By organizing knowledge segments using a content-based hierarchical structure, the efficiency and accuracy of generative models in processing requests are improved.
Smart Images

Figure CN2025116431_02042026_PF_FP_ABST
Abstract
Description
Method, device, and storage medium for configuring knowledge information
[0001] The present application claims priority to the Chinese Patent Application No. 202411379543.9, filed on September 29, 2024, and entitled “Method, device, and storage medium for configuring knowledge information”, the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] Example embodiments of the present disclosure generally relate to the field of computers, and in particular, to a method, device, and computer-readable storage medium for configuring knowledge information. BACKGROUND
[0003] With the development of computer technology, generative models are gradually applied to various aspects of people's lives. Some platforms also support users to configure various types of applications, such as agents or bots, based on generative models. Users can also configure corresponding knowledge information for such applications to support the application to refer to such knowledge information to process corresponding requests. SUMMARY
[0004] In a first aspect of the present 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 of a target application; presenting, in the configuration interface, initial hierarchical information determined by processing the target content, the initial hierarchical information indicating a hierarchy corresponding to a plurality of content parts in the target content; determining, via the configuration interface, target hierarchical information of the target content, 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 a plurality of knowledge segments based on the target hierarchical information, such that the target application processes a received request based on the plurality of knowledge segments.
[0005] In a second aspect of the present 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 a plurality of knowledge segments organized based on target content, wherein the plurality of knowledge segments are determined based on a process including: presenting, in a configuration interface, initial hierarchical information determined by processing the target content, the initial hierarchical information indicating a hierarchy corresponding to a plurality of content parts in the target content; determining, via the configuration interface, target hierarchical information of the target content, 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 the plurality of knowledge segments based on the target hierarchical information; and creating the target application based on the knowledge information.
[0006] In a third aspect of the disclosure, an apparatus for configuring knowledge information is provided. The apparatus includes an interface presenting 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 presenting module configured to present, in the configuration interface, initial hierarchical information determined by processing the target content, the initial hierarchical information indicating a hierarchy to which a plurality of content portions in the target content correspond; a hierarchy determining module configured to determine, 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 a knowledge organizing module configured to organize the target content into a plurality of knowledge segments based on the target hierarchical information, such that the target application processes a received request based on the plurality of knowledge segments.
[0007] In a fourth aspect of the disclosure, an apparatus for creating an application is provided. The apparatus includes a knowledge configuring 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: presenting, in a configuration interface, initial hierarchical information determined by processing the target content, the initial hierarchical information indicating a hierarchy to which a plurality of content portions in the target content correspond; 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 the plurality of knowledge segments based on the target hierarchical information; and an application creating module configured to create the target application based on the knowledge information.
[0008] In a fifth aspect of the disclosure, an electronic device is provided. The device includes at least one processor; and at least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor. The instructions, when executed by the at least one processor, cause the device to perform the method of the first aspect or the second aspect.
[0009] In a sixth aspect of the disclosure, a computer-readable storage medium is provided. The computer-readable storage medium has stored thereon computer-executable instructions that are executable by a processor to implement the method of the first aspect or the second aspect.
[0010] In a seventh aspect of the disclosure, a computer program product is provided, comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the method according to the first aspect or the second aspect of the disclosure.
[0011] It is to be understood that the content described in this Background section is not to be taken as an acknowledgement that this content is prior art to the present disclosure relative to any present or future application. The content described in this Background section is to be taken as a representation of the inventors’ own knowledge and experience when developing the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0012] The above and other features, advantages and aspects of embodiments of the present disclosure will become more apparent by describing in detail some embodiments thereof with reference to the annexed drawings in which:
[0013] FIG. 1 shows a schematic diagram of an example environment in which embodiments according to the present disclosure can be implemented;
[0014] FIGS. 2A to 2D show example interfaces according to some embodiments of the present disclosure;
[0015] FIG. 3 shows a flowchart of an example process of configuring knowledge information according to some embodiments of the present disclosure;
[0016] FIG. 4 shows a schematic structural block diagram of an example apparatus for configuring knowledge information according to some embodiments of the present disclosure; and
[0017] FIG. 5 shows a block diagram of an electronic device capable of implementing a number of embodiments of the present disclosure. DETAILED DESCRIPTION
[0018] Embodiments of the present disclosure will be described hereinafter with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be embodied in various forms and should not be interpreted as being limited to the embodiments set forth herein; rather, these embodiments are provided so that the present disclosure can be more thoroughly and completely understood. It is to be understood that the drawings and embodiments of the present disclosure are only for illustrative purposes and should not be construed as limiting the scope of protection of the present disclosure.
[0019] It is noted that the headings provided herein are not limitations of the embodiments provided in this document. Various embodiments are described throughout this document and can be included under any heading. Moreover, embodiments described in any heading can be combined with any other embodiment described in the same heading and / or a different heading in any manner.
[0020] In the description of the embodiments of the present disclosure, the term "comprising" and its similar terms shall be understood as open inclusion, i.e., "including but not limited to". The term "based on" shall be understood as "at least partially based on". The term "one embodiment" or "the embodiment" shall be understood as "at least one embodiment". The term "some embodiments" shall be understood as "at least some embodiments". The following can also include other explicit and implicit definitions. The terms "first", "second", etc. can refer to different or same objects. The following can also include other explicit and implicit definitions.
[0021] The embodiments of the present disclosure can involve data of users, acquisition and / or use of data, etc. These aspects all comply with corresponding laws and regulations and relevant provisions. In the embodiments of the present disclosure, all data collection, acquisition, processing, processing, forwarding, use, etc. are performed on the premise that the user is aware of and confirms. Accordingly, when implementing the embodiments of the present disclosure, the type of data or information that can be involved, the use range, the use scenario, etc. should be notified to the user and the authorization of the user should be obtained through appropriate means according to relevant laws and regulations. The specific notification and / or authorization manner can vary according to the actual situation and application scenario, and the scope of the present disclosure is not limited in this aspect.
[0022] In the present specification and embodiments, if the scheme involves processing of personal information, it will be processed on the premise of having a legal basis (for example, obtaining the consent of the subject of personal information, or being necessary for the performance of a contract, etc.), and will only be processed within the prescribed or agreed range. The user refuses to process personal information other than the necessary information required for the basic function, which does not affect the user's use of the basic function.
[0023] The generative model has the ability to process requests with reference to the configured knowledge information. For example, the generative model can process the corresponding request by searching for relevant knowledge segments (also known as slices). However, due to the limitation of the size of the generative model input, the organization method of the knowledge information will directly affect the quality of the model generation result.
[0024] Embodiments of the present disclosure propose a configuration knowledge information scheme. The scheme includes: presenting a configuration interface associated with target content, the target content being added as knowledge information of a target application; presenting initial hierarchical information determined by processing the target content in the configuration interface, the initial hierarchical information indicating a hierarchy corresponding to a plurality of content parts 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 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.
[0025] In this way, embodiments of the present disclosure are able to organize knowledge segments corresponding to content based on the hierarchical structure of the content, thereby improving the utilization efficiency of knowledge information.
[0026] Various example implementations of the approach are described in further detail below in conjunction with the accompanying drawings.
[0027] Example Environment
[0028] FIG. 1 illustrates a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. As shown in FIG. 1, the example environment 100 can include an electronic device 110.
[0029] In this example environment 100, the electronic device 110 can be running an application 120 that supports interface interaction. The application 120 can be any suitable type of application for interface interaction, examples of which can include, but are not limited to, a development application or other suitable application. A user 140 can interact with the application 120 via the electronic device 110 and / or its attached devices.
[0030] In the environment 100 of FIG. 1, the electronic device 110 can present, through the application 120, an interface 150 for supporting configuration of knowledge information if the application 120 is in an active state.
[0031] In some embodiments, the electronic device 110 communicates with a server 130 to implement provisioning of services to the application 120. The electronic device 110 can be any type of mobile terminal, fixed terminal, or portable terminal including a mobile handset, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media player, a multimedia tablet, a palmtop computer, a portable gaming terminal, a VR / AR device, a Personal Communication System (PCS) device, a personal navigation device, a Personal Digital Assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an electronic book device, a game device, or any combination thereof, including an apparatus and peripherals or any combination thereof. In some embodiments, the electronic device 110 can also support any type of interface to a user (such as "wearable" circuitry, etc.).
[0032] 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.
[0033] 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.
[0034] 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.
[0035] The following description will continue with reference to the accompanying drawings, which will provide some exemplary embodiments of this disclosure.
[0036] Example Interaction
[0037] The following description, in conjunction with Figures 2A to 2C, illustrates example interactions of configuration knowledge information according to some embodiments of the present disclosure. Figures 2A to 2C show example interfaces 200A to 200C according to some embodiments of the present disclosure. Interfaces 200A to 200C may, for example, be provided by the electronic device 110 shown in Figure 1.
[0038] 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.
[0039] 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.
[0040] Alternatively, the electronic device 110 can also support user input of a corresponding network address to support adding content corresponding to the network address to the knowledge base. For example, such content can include online documents, webpages, etc.
[0041] As shown in FIG. 2A, the interface 200A can be a knowledge base configuration interface for a 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, the electronic device 110 can present the interface 200A as shown in FIG. 2A.
[0042] In the interface 200A, the electronic device 110 can provide a plurality of options 205, 210, and 215. The option 205, the option 210, and the option 215 can correspond to different knowledge information organization manners. As an example, the option 205 can indicate organizing knowledge segments based on paragraphs of target content; the option 210 can indicate organizing knowledge segments based on a hierarchical structure of target content; and the option 215 can support user customization of specific logic for organizing knowledge segments.
[0043] In some embodiments, the electronic device 110 can also present prompt information associated with the plurality of options 205, 210, and 215 to indicate a pattern matching the target content to be configured. As an example, the electronic device 110 can present a recommendation element 212 associated with the option 210 upon determining that the target content to be configured satisfies a preset condition corresponding to the option 210.
[0044] In some embodiments, the electronic device 110 can perform pre-recognition of a hierarchical structure on the target content to determine whether the recognized hierarchical structure satisfies a preset condition. For example, such a preset condition can indicate whether a number of hierarchical nodes contained in the hierarchical structure is greater than a preset number, whether a hierarchical depth of the hierarchical structure is greater than a preset depth, etc. Alternatively, such a preset condition can also indicate whether a confidence of a hierarchical recognition result generated by a hierarchical structure recognition model is greater than a threshold.
[0045] As an example, upon selection of the option 210, the electronic device 110 can further display a configuration interface 200B as shown in FIG. 2B. The configuration interface 200B can display a list of content to be configured, e.g., “Document A”, “Document B”, and “Document C”.
[0046] Hereinafter, an example interaction of configuring knowledge information will be described taking the target content 220 (i.e., Document A) as an example. As an example, the electronic device 110 can display initial hierarchical information 225 of the target content 220 in the configuration interface 200B.
[0047] In some embodiments, the initial hierarchy information 225 is determined by processing the target content 220, which indicates 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 can be determined based on the table of contents structure of the document.
[0048] In some embodiments, the initial hierarchy information 225 can also be determined by identifying the hierarchy relationship of different segments in the target content 220. Taking an example where the target content 220 includes a Portable Document Format (PDF) file, the hierarchy relationship between different content segments can be determined by identifying the positional relationship of different content segments in the file. For example, the electronic device 110 can determine that a certain segment of content in the file is under the hierarchy of “Title A”, and can associate it with the hierarchy “Title A”.
[0049] It should be appreciated that depending on the specific form of the target content, embodiments of the present disclosure can employ any appropriate manner to extract the hierarchy structure of the content as the initial hierarchy information.
[0050] Taking FIG. 2B as an example, the initial hierarchy information 225 can indicate that the hierarchy “Title A” is the parent hierarchy of the hierarchies “Title B” and “Title C”.
[0051] In some embodiments, the electronic device 110 can also obtain first configuration information, where the first configuration information indicates the maximum number of hierarchies allowed for splitting. As an example, the electronic device 110 can determine the maximum number of hierarchies allowed for splitting via a configuration control associated with the option 210 as shown in FIG. 2A.
[0052] Further, the electronic device 110 or the server 130 can split the target content 220 based on the first configuration information to determine the initial hierarchy information 225. For example, if the user indicates that the maximum number of hierarchies allowed for splitting is 2, then the content portions corresponding to “Title B” and “Title C” will not be further split into more granular hierarchies.
[0053] Further, as shown in FIG. 2B, the configuration interface 200B can also include a first area 230. The first area 230 can display the preview result of the target content 220. As an example, the electronic device 110 can render an image of the target content 220 in the first area 230.
[0054] Additionally, as shown in FIG. 2B, the configuration interface 200B can further include a second region 235. The second region 235 can identify the text recognition result of the target content 220. Taking an example where the target content 220 includes a Portable Document Format (PDF) file, the electronic device 110 or the server 130 can utilize OCR to recognize the textual content contained in the file. Accordingly, the electronic device 110 can display the recognized textual content in the second region 235.
[0055] In some embodiments, the electronic device 110 can further receive a user selection of a target level 240 (e.g., Title B) in the initial level information 225. Accordingly, the electronic device 110 can display the content portion 245 corresponding to the target level 240 in the first region 230; alternatively or additionally, the electronic device 110 can further display the content portion corresponding to the target level in the second region 235, i.e., the text recognition result 250. In this way, the user can intuitively perceive the original content and the recognized content corresponding to each level.
[0056] In some embodiments, the electronic device 110 can receive a user confirmation of the initial level information 225 as the final level information (i.e., the target level information) of the target content 220.
[0057] Additionally, the electronic device 110 can further receive at least one editing operation on the initial level information 225 via the configuration interface 200B to determine the updated level information. Further, the electronic device 110 can determine the edited updated level information as the final level information (i.e., the target level information) of the target content 220.
[0058] In some embodiments, the electronic device 110 can receive a first editing operation by the user to adjust the level associated with at least one content portion. As an example, if the user determines that a certain paragraph should belong to “Title B” instead of “Title C”, the user can, for example, drag the paragraph from a position under “Title C” to a position under “Title B” in the initial level information 225. Accordingly, the paragraph can be associated to the updated level (i.e., Title B).
[0059] Alternatively or additionally, the electronic device 110 can further receive a second editing operation of the user to delete at least one level in the initial level information 225. As an example, the electronic device 110 can perform a preset operation (e.g., right-click) on the level “Title C” in the initial level information 225, and thus a delete control for deleting the level can be displayed. Further, the electronic device 110 can receive a selection of the delete control, and can disassociate the content portions under the level from the level, and associate the level to another level. For example, in the case of deleting the level of “Title C”, one or more paragraphs previously associated with “Title C” can be automatically associated with “Title B”.
[0060] Alternatively or additionally, the electronic device 110 can further receive a third editing operation of the user to merge multiple levels into one level. As an example, the electronic device 110 can receive a selection of “Title B” and “Title C” by the user, and can present a control for merging levels accordingly. Further, the electronic device 110 can receive a selection of the control, and can merge “Title B” and “Title C” into a new level (e.g., “Body”). As an example, the user can define the level identifier of the merged level.
[0061] As an example, multiple citations of a paper can be identified as multiple independent levels. However, a single citation carries less information alone, and the user may, for example, merge multiple citations into a single level.
[0062] In some embodiments, the electronic device 110 can further receive a fourth editing operation of the user to adjust the level identifier of at least one level. For example, the electronic device 110 can support the user to modify the name of each level.
[0063] Based on the above-described processes, embodiments of the present disclosure can support the user to further adjust the automatically identified level information to improve the accuracy of the level information.
[0064] In some embodiments, after the configuration of the level information is completed, the electronic device 110 can further present a viewing interface 200C as shown in FIG. 2C. In the interface 200C, the electronic device 110 can present a set of indices corresponding to the determined target level information 255, for example, “Title A”, “Title B”, and “Title C”, etc.
[0065] Additionally, the electronic device 110 can receive a selection of the target index 260 (e.g., Title C), and can present at least one content portion corresponding to the target index 260 accordingly, for example, paragraph 275-1, paragraph 275-2, and paragraph 275-3.
[0066] Additionally, the electronic device 110 also supports the user to edit the text recognition result of the target content 220 via the viewing interface 200C. For example, the electronic device 110 can click the paragraph 275-1 to enter a text editing state, and can edit the text content in the paragraph 275-1. Additionally, the electronic device 110 may, for example, also support the user to add a new paragraph, delete an existing paragraph, adjust the order of the paragraphs, etc. via the interface 200C.
[0067] In some embodiments, the electronic device 110 can further organize the target content into multiple knowledge segments (or knowledge slices) based on the determined target hierarchical information.
[0068] As an example, each knowledge segment can correspond to a lowest level in the determined target hierarchical information. Taking FIG. 2C as an example, in the case that the document A includes two levels, the multiple paragraphs corresponding to the “Title B” will be organized into the same knowledge segment, and the multiple paragraphs corresponding to the “Title C” will be organized into the same knowledge segment.
[0069] In some embodiments, the electronic device 110 can further obtain second configuration information, where the second configuration information indicates whether the knowledge segment retains the titles of the associated levels. As an example, the electronic device 110 can further obtain the second configuration information via a configuration control associated with the option 210 as shown in FIG. 2A.
[0070] As an example, the configuration control can provide multiple preset modes. The preset modes may, for example, include a first mode indicating that the knowledge segment does not retain the titles of the levels. Or, the preset modes may, for example, include a second mode indicating that the knowledge segment retains the title of the lowest level. Or, the preset modes may, for example, include a third mode indicating that the knowledge segment retains the titles of all the associated levels.
[0071] Taking FIG. 2C as an example, for the level “Title B”, if the second configuration information indicates the first mode, the knowledge segment corresponding to the multiple paragraphs under the “Title B” will not include the text “Title B”. If the second configuration information indicates the second mode, the knowledge segment corresponding to the multiple paragraphs under the “Title B” will only include the text “Title B”. If the second configuration information indicates the third mode, the knowledge segment corresponding to the multiple paragraphs under the “Title B” will include the text “Title A-Title B”.
[0072] Further, after completing the organization of the knowledge segments based on the target hierarchical information, the target application can process the received request based on the organized multiple knowledge segments. As an example, the target application can search for a knowledge segment matching the received request, and reference the knowledge segment to generate corresponding reply content.
[0073] FIG. 2D illustrates an example interaction interface 200D of the target application. As shown in FIG. 2D, the target application can receive a query message 280 from the user, and can generate a corresponding response content 285 by querying the knowledge base. As an example, the response content 285 can be generated based on a knowledge segment corresponding to the hierarchy “Title B” of “Document A” in the knowledge base.
[0074] Accordingly, the target application can present, in the interface 200D, reference information 290 associated with the response content 285 to indicate the hierarchy identification corresponding to the referenced target knowledge segment, e.g., “Title B”.
[0075] In some embodiments, the electronic device 110 can further display, based on the selection of the reference information 290, a viewing interface of the target knowledge segment corresponding to the reference information 290. As an example, the viewing interface can only display the content of the target knowledge segment that is applied in the knowledge file.
[0076] In some embodiments, the electronic device 110 can further display, based on the selection of the reference information 290, a viewing interface of the target content in which the target knowledge segment corresponding to the reference information 290 is located. As an example, the viewing interface can only display the viewing interface of the knowledge file, and can highlight the content of the target knowledge segment that is applied in the viewing interface.
[0077] Based on the above-described processes, embodiments of the present disclosure are capable of organizing knowledge segments corresponding to content based on the hierarchy structure of the content, thereby improving the utilization efficiency of knowledge information.
[0078] In some embodiments, the electronic device 110 can further create, based on the above-mentioned knowledge information configuration process, a corresponding target application, e.g., an agent, a bot, or other suitable application suitable for invoking the knowledge base, e.g., a digital assistant.
[0079] Example Processes
[0080] FIG. 3 illustrates a flowchart of a process 300 of configuring knowledge information, according to some embodiments of the present disclosure. The process 300 can be implemented at the electronic device 110. The process 300 is described below with reference to FIG. 1.
[0081] As shown in FIG. 3, at block 310, the electronic device 110 presents a configuration interface associated with target content that is added as knowledge information of a target application.
[0082] At block 320, the electronic device 110 presents, 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.
[0083] At block 330, the electronic device 110 determines, 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.
[0084] At block 340, the electronic device 110 organizes the target content into a plurality of knowledge segments based on the target hierarchical information, such that the target application processes the received request based on the plurality of knowledge segments.
[0085] In some embodiments, the configuration interface further comprises 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 a text recognition result of the target content.
[0086] In some embodiments, the process 300 further comprises: in response to a selection of a target level in the initial hierarchical information, displaying at least one content part corresponding to the target level in the target style in the first area and / or the second area.
[0087] In some embodiments, the process 300 further comprises: obtaining first configuration information, the first configuration information indicating a maximum number of levels allowed to be split; and splitting the target content based on the first configuration information to determine the initial hierarchical information.
[0088] In some embodiments, organizing the target content into a plurality of knowledge segments based on the target hierarchical information comprises: obtaining second configuration information, the second configuration information indicating whether a knowledge segment retains a title of an associated level; and organizing the target content into a plurality of knowledge segments corresponding to the updated hierarchical information based on the second configuration information.
[0089] In some embodiments, the second configuration information indicates one of: a first mode indicating that a knowledge segment does not retain a title of a level; a second mode indicating that a knowledge segment retains a title of a lowest level; and a third mode indicating that a knowledge segment retains a title of all associated levels.
[0090] In some embodiments, 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.
[0091] In some embodiments, the at least one editing operation comprises: a first editing operation for adjusting a level associated with at least one content part; a second editing operation for deleting at least one level in the initial hierarchical information; a third editing operation for merging a plurality of levels into one level; and a fourth editing operation for adjusting a level identifier of at least one level.
[0092] In some embodiments, the process 300 further includes: presenting a viewing interface of the target content, the viewing interface including a set of indexes corresponding to the target hierarchical information; and in response to a selection of a target index in the set of indexes, displaying at least one content part corresponding to the target index in the viewing interface.
[0093] In some embodiments, the process 300 further includes: editing, via the viewing interface, a text recognition result of the at least one content part.
[0094] In some embodiments, the process 300 further includes: 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 hierarchical identifier corresponding to the target knowledge segment.
[0095] Example apparatus and device
[0096] Embodiments of the present disclosure also provide a corresponding apparatus for implementing the above method or process. FIG. 4 shows a schematic structural block diagram of an example apparatus 400 for configuring knowledge information, according to certain embodiments of the present disclosure. The apparatus 400 can be implemented as or included in the electronic device 110. Various modules / components in the apparatus 400 can be implemented by hardware, software, firmware, or any combination thereof.
[0097] As shown in FIG. 4, the apparatus 400 includes: an interface presentation module 410 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 420 configured to present, 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; a hierarchy determination module 430 configured to determine, via the configuration interface, target hierarchical information of the target content, the target hierarchical information including the 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 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. In some embodiments, the configuration interface further includes a first region and / or a second region, wherein the first region displays a preview result of the target content, and the second region displays a text recognition result of the target content.
[0098] In some embodiments, the apparatus 400 further includes a selection module configured to: in response to a selection of a target hierarchy in the initial hierarchical information, display at least one content part corresponding to the target hierarchy in the target style in the first region and / or the second region.
[0099] In some embodiments, the apparatus 400 further includes a determining module configured to: obtain first configuration information, the first configuration information indicating a maximum number of levels allowed for the segmentation; and based on the first configuration information, segment the target content to determine initial level information.
[0100] In some embodiments, the knowledge organization module 440 is further configured to: obtain second configuration information, the second configuration information indicating whether a title of an associated level is retained for a knowledge segment; and based on the second configuration information, organize the target content into a plurality of knowledge segments corresponding to the updated level information.
[0101] In some embodiments, the second configuration information indicates one of: a first mode indicating that a title of a level is not retained for a knowledge segment; a second mode indicating that a title of a lowest level is retained for a knowledge segment; and a third mode indicating that a title of all associated levels is retained for a knowledge segment.
[0102] In some embodiments, the level determining module 430 is further configured to: receive at least one editing operation for the initial level information to determine the updated level information.
[0103] In some embodiments, the at least one editing operation includes: a first editing operation for adjusting a level associated with at least one content portion; a second editing operation for deleting at least one level in the initial level information; a third editing operation for merging a plurality of levels into a same level; and a fourth editing operation for adjusting a level identifier of at least one level.
[0104] In some embodiments, the apparatus 400 further includes an indexing module configured to: present a viewing interface of the target content, the viewing interface including a set of indices corresponding to the target level information; and in response to a selection of a target index in the set of indices, display at least one content portion corresponding to the target index in the viewing interface.
[0105] In some embodiments, the apparatus 400 further includes an editing module configured to: via the viewing interface, edit a text recognition result of at least one content portion.
[0106] In some embodiments, the apparatus 400 further includes a prompting module configured to: in response to a target application referencing a target knowledge segment in the plurality of knowledge segments to generate a response content, trigger a presentation of the response content and reference information associated with the response content in an interactive interface of the target application, the reference information indicating a level identifier corresponding to the target knowledge segment.
[0107] FIG. 5 illustrates a block diagram of an electronic device 500 in which one or more embodiments of the disclosure can be implemented. It should be understood that the electronic device 500 illustrated in FIG. 5 is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein. The electronic device 500 illustrated in FIG. 5 can be used to implement the electronic device 110 of FIG. 1.
[0108] As illustrated in FIG. 5, the electronic device 500 is in the form of a general electronic device. Components of the electronic device 500 can include, but are not limited to, one or more processors 510, a memory 520, a storage device 530, one or more communication units 540, one or more input devices 550, and one or more output devices 560. The processor 510 can be a real or virtual processor and is capable of performing various processing according to programs stored in the memory 520. In a multi-processor system, multiple processors perform computer-executable instructions in parallel to improve parallel processing capability of the electronic device 500.
[0109] The electronic device 500 typically includes a number of computer storage media. Such media can be any available media that is accessible by the electronic device 500 and includes both volatile and non-volatile media, removable and non-removable media. The memory 520 can be a volatile memory (e.g., registers, cache, random access memory (RAM)), a non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory), or some combination thereof. The storage device 530 can be a removable or non-removable media and can include machine-readable media such as a flash drive, a magnetic disk drive, or any other media that can be used to store information and / or data and that can be accessed by the electronic device 500.
[0110] The electronic device 500 can further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in FIG. 5, a disk drive for reading from or writing to a removable, non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk (e.g., a CD-ROM) can be provided. In such instances, each drive can be connected to the bus (not shown) by one or more data media interfaces. The memory 520 can include a computer program product 525 having one or more program modules configured to carry out the various methods or actions of the various embodiments of the present disclosure.
[0111] The communication unit 540 enables communication through the communication medium with other electronic devices. Additionally, the functionality of the components of the electronic device 500 can be implemented in a single computing cluster or a plurality of computer machines that are capable of communicating over a communication connection. As such, the 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.
[0112] The input device 550 can be one or more input devices, such as a mouse, a keyboard, a trackball, etc. The output device 560 can be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 500 can also communicate with one or more external devices (not shown), such as a storage device, a display device, etc., through the communication unit 540, as necessary, with one or more devices that enable a user to interact with the electronic device 500, or with any device (e.g., a network card, a modem, etc.) that enables the electronic device 500 to communicate with one or more other electronic devices. Such communication can be carried out via an input / output (I / O) interface (not shown).
[0113] According to an example implementation of the present disclosure, there is provided a computer-readable storage medium having computer-executable instructions stored thereon, where the computer-executable instructions are executed by a processor to implement the method described above. According to an example implementation of the present disclosure, there is also provided a computer program product tangibly stored on a non-transitory computer-readable medium and including computer-executable instructions, where the computer-executable instructions are executed by a processor to implement the method described above.
[0114] Various aspects of the disclosure are now described with reference to the drawings. In general, the drawings described below are diagrammatic and schematic representations of actual or conceptual structures and processes, and are not limiting of the scope of the present disclosure. In the drawings, the same reference numerals are used to represent similar components. The embodiments of the present disclosure will be described with reference to the drawings, beginning with FIG. 1.
[0115] These computer readable program instructions can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks. These computer readable program instructions can also be stored in a computer readable storage medium that can include a non-transitory computer readable storage medium that can direct a computer, a programmable data processing apparatus, and / or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including a manufacture including instructions which implement aspects of the function / act specified in the flowchart and / or block diagram block or blocks.
[0116] The computer readable program instructions can also 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 such that the instructions which execute on the computer, other programmable data processing apparatus, or other device implement the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0117] The flow diagrams and the 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 implementations of the present disclosure. In this regard, each block in the flow diagrams and the block diagrams can represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logic functions (s). In some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in some cases, be executed substantially concurrently, or the blocks can sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flow diagrams, and combinations thereof, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and
[0118] implementations. Numerous modifications and adaptations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The herein described subject matter is to be considered in all its novel implications and applications and can be practiced in a variety of environments. It is also to be understood that such features are only examples and that many modifications, additions, or omissions can be made without departing from the scope of the claimed disclosure.
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 hierarchies; 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 processor; and at least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor, the instructions, when executed by the at least one processor, 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 computer-executable instructions stored thereon that are executable by a processor to implement the method according to any one of claims 1-11 or 12.
17. A computer program product comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the method according to any one of claims 1-11 or 12.
Citation Information
Patent Citations
Hierarchical information display method and device and storage medium
CN115358187A
Content auditing method and device, electronic equipment and computer readable storage medium
CN116361591A
System and method for simplified navigation
US20090044150A1
Knowledge graph update using change layers
US20230169059A1