Method executed by electronic equipment, electronic equipment and computer readable storage medium
Generating and managing file structure information in electronic devices through multiple AI models solves the problem of inefficiency in fragmented information management, enables efficient information management and query, and improves user experience.
Patent Information
- Application Number
- CN202310410114.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-17
- Publication Date
- 2024-10-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technology is difficult to effectively manage and organize a large amount of fragmented information in electronic devices, resulting in low efficiency for users when using these files, and the inability to efficiently identify information and analyze the association between files.
By using multiple AI models to generate file structure information, including file feature representation, category information, summary information, tag information, entity information and event information, combined with natural language understanding capabilities, the generation and management of file structure information are automated to provide personalized, Hierarchical and associative file structure.
It enables users to efficiently manage information in electronic devices, quickly query and search files, improves user experience, automates the management and maintenance of file structure information, and takes into account the generalization and unique characteristics of files.
Smart Images

Figure CN118820175A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of information processing, and more particularly, to a method executed by an electronic device and a computer-readable storage medium. Background Art
[0002] With the widespread use of electronic devices (such as smart phones, tablets, etc.) that can perform mobile office and online learning operations, users often access a large number of files through electronic devices, and users have a need to extract and organize information from a large number of files. Figure 1 As shown in the exemplary display interface in , during the use of an electronic device, there may be multiple note files containing a large amount of fragmented information. Since users can obtain these files through electronic devices at any time and in any way, and these files are usually saved independently in electronic devices, it may be difficult for users to fully understand the complicated and fragmented information included in these files. These scattered, unsystematic and unrelated fragmented information may make it impossible for users to efficiently manage these files, so that when users use these files in electronic devices with high productivity, they need to inefficiently identify the information in the files and analyze the relationship between independent files by themselves, which results in problems of low efficiency and low output. Summary of the invention
[0003] An exemplary embodiment of the present disclosure is to provide a method performed by an electronic device, and a computer-readable storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a method executed by an electronic device is provided, comprising: receiving user input indicating generation of corresponding file structure information for at least one file; in response to receiving the user input, based on a set of prompts for a first artificial intelligence (AI) model, using the first AI model to generate file structure information corresponding to the at least one file, wherein each prompt in the set of prompts for the first AI model is used to instruct the first AI model to perform a corresponding operation.
[0005] Optionally, the set of prompts for the first AI model includes prompts for obtaining at least one of the following file information: feature representation of the file; category information of the file; summary information of the file; tag information of the file; entity information in the file; relationship information between entities in the file; and event information corresponding to the file.
[0006] Optionally, based on a set of prompts for a first AI model, file structure information corresponding to the at least one file is generated using the first AI model, including: inputting the set of prompts and the at least one file into the first AI model; and generating file structure information of the at least one file based on the file information output by the first AI model.
[0007] Optionally, based on the file information output by the first AI model, the file structure information of the at least one file is generated, including: fusing the file information output by the first AI model to obtain a fused first feature representation; based on the fused first feature representation, the file structure information of the at least one file is generated.
[0008] Optionally, generating file structure information of the at least one file based on the fused first feature representation includes: obtaining a second feature representation of the reference file structure information; and generating file structure information of the at least one file based on the first feature representation and the second feature representation.
[0009] Optionally, obtaining a second feature representation of the reference file structure information includes: based on the reference file structure information and a set of prompts for a second AI model, using the second AI model to obtain a second feature representation of the reference file structure information.
[0010] Optionally, obtaining the second feature representation of the reference file structure information includes: for each node in the reference file structure information, fusing feature representations of multiple files associated with the node to obtain the second feature representation of the reference file structure information.
[0011] Optionally, the feature representations of multiple files associated with the node are fused, including: when the node is a leaf node in the reference file structure information, by fusing the feature representations of all files corresponding to the leaf node; and when the node is a non-leaf node in the reference file structure information, by fusing the feature representations of all child nodes of the non-leaf node.
[0012] Optionally, based on the first feature representation and the second feature representation, generating file structure information of the at least one file includes: matching the first feature representation with the second feature representation, wherein each second feature representation corresponds to a node of the reference file structure; determining at least one node in the reference file structure corresponding to the at least one file based on the matching result; and generating file structure information of the at least one file based on the determined at least one node, wherein each node in the generated file structure information corresponds to at least one file.
[0013] Optionally, matching the first feature representation with the second feature representation includes: mapping the first feature representation and the second feature representation to a target space; and matching the first feature representation and the second feature representation in the target space by using a third AI model.
[0014] Optionally, matching the first feature representation with the second feature representation includes: when at least one determined node is a non-leaf node, based on the path of the non-leaf node and a set of prompts for the fourth AI model, using the fourth AI model to generate relationship information between the non-leaf node and the at least one file; based on the relationship information, determining whether to add a new node in the layer below the non-leaf node; if a new node is added in the layer below the non-leaf node, the at least one file corresponds to the new node.
[0015] Optionally, based on the relationship information, determining whether to add a new node in the layer below the non-leaf node includes: based on the relationship information, using the fifth AI model to obtain a third feature representation of the relationship information; based on the third feature representation, using the sixth AI model to determine whether to add a new node in the layer below the non-leaf node.
[0016] Optionally, the generated file structure information is displayed in a user interface in the form of a visual mind map.
[0017] Optionally, the method executed by the electronic device also includes: adding nodes and node labels in the generated file structure information, deleting nodes, filtering nodes, modifying node labels, creating association information between new nodes, and / or viewing one or more files corresponding to the nodes through user input.
[0018] Optionally, the method executed by the electronic device further comprises: sorting the files and / or sub-nodes corresponding to each node in the generated file structure information in a predetermined order.
[0019] Optionally, the file includes files related to at least one of the following: text, image, video, audio.
[0020] According to a second aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: at least one processor; and at least one memory storing computer executable instructions, wherein the computer executable instructions, when executed by the at least one processor, prompt the at least one processor to execute the method described above.
[0021] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein, when instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is prompted to execute the method as described above.
[0022] According to the method, electronic device and computer-readable storage medium executed by the embodiment of the present disclosure, it is possible to provide the hierarchical, sequential and associative file structure information required by the user and personalized and customized. For example, it is possible to automatically generate the user's file structure information based on a large number of files to help the user with information management, information search and even entity information discovery. It also has a good interactive mechanism and can automatically or upon request manage the file structure information in response to user input, thereby further helping the user with personalized customization. Based on the natural language understanding ability of the powerful AI model and / or neural network model, prompts are designed to assist in the generation of file structure information, thereby automating the generation of file structure information and improving the user experience. It is also possible to combine the inherent hierarchical information of the file structure information with the generated file structure information, thereby taking into account both the generalization characteristics and uniqueness characteristics of the file information of each user.
[0023] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The above and other aspects, features and advantages of certain embodiments of the present disclosure will become more apparent through the following description in conjunction with the accompanying drawings, in which:
[0025] Figure 1 is a diagram illustrating an exemplary application scenario according to an embodiment of the present disclosure;
[0026] Figure 2 is a diagram illustrating an exemplary application of a method performed by an electronic device according to an embodiment of the present disclosure;
[0027] Figure 3a , Figure 3b and Figure 3c is a diagram illustrating an example of a method performed by an electronic device to which an embodiment of the present disclosure is applied;
[0028] Figure 4 is a flowchart illustrating a method performed by an electronic device according to an embodiment of the present disclosure;
[0029] Figure 5 is a diagram illustrating an exemplary process of generating file structure information according to an embodiment of the present disclosure;
[0030] Figure 6is a diagram illustrating an exemplary process of generating and determining a newly added node according to an embodiment of the present disclosure;
[0031] Figure 7 is a diagram illustrating an exemplary process of generating file structure information according to an embodiment of the present disclosure;
[0032] Figure 8 is a block diagram illustrating an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0033] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0034] The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of the embodiments of the present disclosure as defined by the claims and their equivalents. Various specific details are included to assist in understanding, but these details are considered to be exemplary only. Therefore, one of ordinary skill in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. In addition, descriptions of well-known functions and structures are omitted for clarity and brevity.
[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein.
[0036] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.
[0037] In the related art, in order to process fragmented information as a whole, complex information can be displayed through mind maps, but the information management method based on mind maps mainly relies on mind map creation tools. Specifically, users usually manually construct, organize and maintain information in the form of mind maps using mind map making products on the market. Since the relevant mind map making tools can only provide a process framework for establishing a mind map, and cannot provide analysis of the specific content of the file, this method still requires users to read a large amount of fragmented information to be sorted and build a mind map based on the user's own analysis. This method also requires users to manually update information continuously or periodically, which consumes a lot of user time and energy. In addition, when the amount of information contained in the text is large, the workload of organizing and analyzing the information may far exceed the scope of human power. In the current era of information explosion, there is no advantage in using this method for information processing.
[0038] In addition, in the related art, information extraction methods based on natural language processing (NLP) can also be used to process the information in the file. Specifically, the information extraction method based on NLP can realize the automatic extraction of information, but the related NLP technology can only organize the text content information of a single document (such as extracting the text content structure, organizing the article context, etc.), and it cannot be applied to multiple documents to build a system for multiple documents. On the other hand, the related information extraction method usually needs to collect data training models for each vertical field separately, and the related technology cannot realize a general model that supports all vertical fields. Therefore, the information extraction method based on NLP cannot meet the user's needs for information processing of multiple files.
[0039] In recent years, artificial intelligence (AI) technology has developed rapidly, and the application of AI technology has brought great convenience to users. The latest AI model has developed into a general model that can be applied to multiple vertical fields, not just a single or a few vertical fields. How to use AI technology to better solve practical problems has become a research hotspot. In order to at least solve the above-mentioned problems and / or shortcomings in the related art, the present disclosure proposes a method executed by an electronic device, an electronic device, and a computer-readable storage medium for generating file structure information by using an AI model. The following will be combined with Figures 2 to 7 To describe exemplary embodiments according to the present disclosure.
[0040] Let's first combine Figure 2 , Figure 3a , Figure 3b and Figure 3c A scenario in which a method performed by an electronic device according to an embodiment of the present disclosure is applied is described. Figure 2is a diagram illustrating an exemplary application of a method performed by an electronic device according to an embodiment of the present disclosure. Figure 3a , Figure 3b and Figure 3c is a diagram illustrating an exemplary user interface to which a method performed by an electronic device according to an embodiment of the present disclosure is applied.
[0041] The method performed by the electronic device according to the embodiment of the present disclosure can be used for information processing of multiple files in the electronic device, for example, can be used for Figure 2 The application scenario shown is for automated information processing of various types of files in an electronic device.
[0042] According to an embodiment of the present disclosure, a file may include a file related to at least one of the following: text, image, video, audio. For example, a file may include a note file, an email file, a bookmark file, a text message file, a photo file, a screenshot file, a painting file, an audio and video playback file, a recording file, a screen recording file, a presentation file, etc.
[0043] According to an embodiment of the present disclosure, a file may include files of various formats. For example, the format of a text file may include, but is not limited to, TXT format, DOC format, DOCX format, XLS format, XLSX format, WPS format, PPT format, XML format, etc. For example, the format of an image file may include, but is not limited to, JPG format, PNG format, GIF format, JPEG format, BMP format, PDF format, PPT format, etc. For example, the format of a video file may include, but is not limited to, WMV format, MP4 format, AVI format, MKV format, etc. For example, the format of an audio file may include, but is not limited to, MP3 format, WAV format, etc.
[0044] According to an embodiment of the present disclosure, when an electronic device includes a file containing a large amount of information, the method of the electronic device according to an embodiment of the present disclosure can be applied to provide personalized file structure information generated based on the file. For example, based on a file containing fragmented information, the following is generated: Figure 2 The user's file structure information is shown in .
[0045] According to an embodiment of the present disclosure, the method performed by the electronic device according to an embodiment of the present disclosure may be performed in response to a user input by providing a user interface to the user. Figure 3a and Figure 3b The note display interface of the electronic device on the left side of the figure receives user input by providing a user interface about the file to the user through the electronic device. Figure 3c The left part of is input by the user through voice input of “find information about the meeting with A”.
[0046] According to an embodiment of the present disclosure, user input may be directly received by the electronic device or indirectly received by an external device connected to the electronic device. Here, the way to implement user input may include but is not limited to touch input, voice input, click input, drag input, gesture input, etc. According to an embodiment of the present disclosure, user input may include but is not limited to input of file selection, input of confirming the generation of file structure information, input of operating file structure information, etc.
[0047] exist Figure 3a and Figure 3b In response to user input, the method executed by the electronic device according to the embodiment of the present disclosure processes the file and generates the following Figure 3a The mind map on the right side of the figure shows the personalized file structure information for users to view. Further, Figure 3b As shown in the note display interface of the electronic device on the right side of the figure, the file and the file structure information generated based on the file are displayed together in the user interface. Figure 3c In response to the user's voice input, the method performed by the electronic device according to the embodiment of the present disclosure processes the file and generates the following Figure 3c The file structure information with timeline is shown on the right side of the . Through the file structure information shown, users can quickly query or search for the required files, and Figure 3c As shown in , the file structure information can be displayed as a one-way guide map including a timeline from top to bottom, wherein each time node includes specific matter information (such as transportation, meeting schedule, report, etc.).
[0048] This allows users to fully understand the information contained in the file through an easy-to-understand and highly operable user interface, and to perform operations such as file management, viewing, and modification. Figure 3a , Figure 3b and Figure 3c The user interface of the method executed by the electronic device shown in the figure is a note display interface, but the user interface showing the file structure information according to the embodiment of the present disclosure is not limited thereto, and the form of the file structure information is not limited thereto.
[0049] It should be understood that the above application scenarios are only examples, and the exemplary embodiments according to the present disclosure are not limited to the above application scenarios.
[0050] According to an embodiment of the present disclosure, an electronic device for executing the method may include at least one of the following items: a smart phone, a tablet personal computer (PC), a mobile phone, a video phone, an e-book reader, a desktop PC, a laptop computer, a netbook computer, a workstation, a server, a personal digital assistant (PDA), a portable multimedia player (PMP), a camera, and a wearable device (such as a smart watch or smart glasses), but is not limited thereto.
[0051] Figure 4 is a flowchart illustrating a method performed by an electronic device according to an embodiment of the present disclosure.
[0052] Reference Figure 4 In step S410, a user input instructing to generate corresponding file structure information for at least one file is received.
[0053] According to an embodiment of the present disclosure, a user input for indicating generation of file structure information may be received through a user interface of an electronic device. As an example, the user input may be input by a user in any appropriate manner such as touch input, voice input, click input, drag input, gesture input, etc. As an example, the user input for indicating generation of file structure information may include a user confirmation input by a user to determine generation of file structure information corresponding to a file.
[0054] According to an embodiment of the present disclosure, the user input indicating the generation of corresponding file structure information for at least one file may also include the user input of selecting at least one file. As an example, the user input of selecting at least one file may include, but is not limited to, the user input of directly selecting at least one file from multiple files (such as checking the file to be processed, dragging the file to be processed to a predetermined area, etc.), the user setting file selection conditions (file subject or category, file save time, file save address range, file type (such as text, image, audio or video) or format, file size, etc.) or file exclusion conditions (such as text, image, audio or video) or format, file size, etc.) to automatically filter the user input of at least one file, etc.
[0055] In step S420, in response to receiving the user input, based on a set of prompts for a first artificial intelligence (AI) model, file structure information corresponding to the at least one file is generated using the first AI model.
[0056] According to an embodiment of the present disclosure, in response to receiving a user input for determining to generate file structure information, file structure information is generated.
[0057] According to an embodiment of the present disclosure, file structure information may also be automatically generated in response to generation conditions set by user input. For example, the generation conditions may include but are not limited to a predetermined time, expiration of a set period, occurrence of a predetermined event, etc.
[0058] According to an embodiment of the present disclosure, file structure information may include but is not limited to at least one of the following file information: a feature representation of a file, such as but not limited to an embedding vector of a file; category information of a file, such as but not limited to the category of information contained in a file; summary information of a file, such as but not limited to an overview of entity information contained in a file; tag information of a file, such as but not limited to the index or path of a file in the file structure information, the subject of a file; entity information in a file, such as but not limited to the content contained in a file; relationship information between entities in a file, such as but not limited to the relationship between the content contained in a file; event information corresponding to a file, such as but not limited to the file save time, the file save address range, file modification event information, etc.; and any other information related to a file.
[0059] According to an embodiment of the present disclosure, the file structure information may be in the form of a multi-layer structure with nodes, and each node in the file structure information may correspond to at least one file. According to an embodiment of the present disclosure, a node of the first layer (i.e., the highest layer) of the file structure information may be referred to as a root node, a node without a child node of the last layer (i.e., the lowest layer) of the file structure information may be referred to as a leaf node, and a node of an intermediate layer of the file structure information may be referred to as a non-leaf node.
[0060] According to an embodiment of the present disclosure, each node may have at least one item of node information including but not limited to the following: category information of the node, such as but not limited to the category of information contained in at least one file corresponding to the node; summary information of the node, such as but not limited to, a general overview of entity information contained in at least one file corresponding to the node; tag information of the node, such as but not limited to, the index or path of the node in the file structure information, the general theme of at least one file corresponding to the node, etc.; entity information in at least one file corresponding to the node, such as but not limited to, the content contained in at least one file corresponding to the node; relationship information between entities in at least one file corresponding to the node, such as but not limited to, the relationship between the content contained in at least one file corresponding to the node; event information corresponding to at least one file corresponding to the node, such as but not limited to, the save time of at least one file corresponding to the node, the save address range of at least one file corresponding to the node, modification event information of at least one file corresponding to the node, etc.; and any other information related to the node.
[0061] According to an embodiment of the present disclosure, the file structure information may include information in various suitable forms that can be recognized by the user, such as, but not limited to, the file structure information may be in the form of a visual mind map (e.g., Figure 3a ) are displayed in the user interface.
[0062] According to an embodiment of the present disclosure, the AI model may include an artificial general intelligence (AGI) model, such as, but not limited to, a Chat Generative Pre-trained Transformer (ChatGPT). The AI model according to an embodiment of the present disclosure may be applied to the following aspects: language understanding, including natural language processing, machine translation, conversational systems, question and answer, speech recognition / synthesis, etc.; visual understanding, including object recognition, object tracking, image search, human recognition, scene understanding, spatial understanding, image improvement, etc.; reasoning / prediction, reasoning based on knowledge / probability, optimal prediction, preference-based planning, recommendation, etc.; knowledge representation, including knowledge construction (data creation / classification), knowledge management (data use), etc.
[0063] As an example, the AI model according to the embodiments of the present disclosure can understand multimodal inputs from various vertical fields and provide a conversation-based dialog box, wherein the dialog box can remember previous conversations to provide more targeted and relevant results. In other words, in the embodiments of the present disclosure, corresponding information processing operations can be performed through interaction with the AI model.
[0064] According to an embodiment of the present disclosure, a prompt for the AI model is input into the AI model and an output of the AI model is obtained to achieve interaction with the AI model. According to an embodiment of the present disclosure, each prompt in the set of prompts for the first AI model is used to instruct the first AI model to perform a corresponding operation.
[0065] According to an embodiment of the present disclosure, the set of prompts for the first AI model includes prompts for obtaining at least one of the following file information: feature representation of the file; category information of the file; summary information of the file; tag information of the file; entity information in the file; relationship information between entities in the file; and event information corresponding to the file.
[0066] According to an embodiment of the present disclosure, a set of prompts for an AI model may be pre-designed based on a prompt template to generate standardized prompts.
[0067] The following describes in detail the process of generating the file structure information corresponding to the at least one file using the first AI model based on the set of prompts for the first AI model in step S420.
[0068] According to an embodiment of the present disclosure, based on a set of prompts for a first AI model, file structure information corresponding to the at least one file is generated using the first AI model, including: inputting the set of prompts and the at least one file into the first AI model; and generating file structure information of the at least one file based on the file information output by the first AI model.
[0069] According to an embodiment of the present disclosure, inputting the set of prompts and the at least one file into the first AI model may include: inputting all or some of the prompts in the set of prompts and the at least one file into the first AI model to obtain file information output by the first AI model for generating file structure information. That is, the file information may be obtained by inputting multiple prompts in the set of prompts into the first AI model at one time.
[0070] According to an embodiment of the present disclosure, inputting the set of prompts and the at least one file into the first AI model may include: inputting one or more prompts in the set of prompts and the at least one file into the first AI model to obtain a first result output by the first AI model; inputting one or more prompts in the set of prompts that are the same as / different from the one or more prompts and the first output result into the first AI model to obtain a second result output by the first AI model; repeating the above process of inputting one or more prompts in the set of prompts and the result of the last output of the first AI model into the first AI model until the file information output by the first AI model for generating file structure information is obtained. That is, file information can be obtained by inputting one or more prompts in the set of prompts into the first AI model in sequence.
[0071] According to an embodiment of the present disclosure, the file information used to generate file structure information may include but is not limited to at least one of the following file information: a feature representation of the file, such as but not limited to a feature representation of entity information in the file, a feature representation of category information of the file, a feature representation of summary information of the file, etc.; category information of the file, such as but not limited to the category of entity information contained in the file; summary information of the file, such as but not limited to an overview of the entity information contained in the file; tag information of the file, such as but not limited to the index or path of the file in the file structure information, the subject of the file; entity information in the file, such as but not limited to the content contained in the file; relationship information between entities in the file, such as but not limited to the relationship between the content contained in the file; event information corresponding to the file, such as but not limited to the file save time, the file save address range, file modification event information, etc.; and any other information related to the file.
[0072] The following will be combined Figures 5 to 7 The steps for generating the file structure information of the file are described in detail.
[0073] Figure 5 is a diagram illustrating an exemplary process of generating file structure information according to an embodiment of the present disclosure.
[0074] According to an embodiment of the present disclosure, the file structure information of the at least one file is generated based on the file information output by the first AI model, including: fusing the file information output by the first AI model to obtain a fused first feature representation; and generating the file structure information of the at least one file based on the fused first feature representation.
[0075] According to an embodiment of the present disclosure, the feature representation may include but is not limited to an embedding vector. According to an embodiment of the present disclosure, the embedding vector of the file is obtained by performing feature engineering on the file information using an AI model. According to an embodiment of the present disclosure, the step of obtaining the feature representation may include: obtaining the embedding vector of the file by inputting the file content by calling an API interface of the AI model for obtaining the embedding vector of the file content.
[0076] According to an embodiment of the present disclosure, the step of fusing the file information output by the first AI model to obtain a fused first feature representation includes: fusing the feature representation of the entity information in the file output by the first AI model, the feature representation of the category information of the file, and the feature representation of the summary information of the file to obtain a fused first feature representation.
[0077] Reference Figure 5 , a user selects at least one file, inputs one of the at least one file into the AI model, and based on at least one prompt in a set of prompts for the AI model, the AI model outputs a feature representation of entity information in the file (e.g., an embedding vector), category information of the file, and summary information of the file. By inputting the output category information and summary information of the file into the AI model or another AI model different from the AI model again, respectively, based on at least one prompt in a set of prompts for the AI model or the other AI model, a feature representation of the category information of the file (e.g., an embedding vector) and a feature representation of the summary information (e.g., an embedding vector) are obtained respectively. By fusing (e.g., concatenating) the feature representation of the entity information in the file, the feature representation of the category information of the file (e.g., an embedding vector), and the feature representation of the summary information of the file (e.g., an embedding vector), a fused first feature representation of the file is obtained.
[0078] Like this, through the use of AI models, the feature representation of any type of file can be automatically determined. By converting different types of files that are difficult to identify into feature vectors in a unified format, it helps in the subsequent processing of generating file structure information.
[0079] According to an embodiment of the present disclosure, generating file structure information of the at least one file based on the fused first feature representation includes: obtaining a second feature representation of the reference file structure information; and generating file structure information of the at least one file based on the first feature representation and the second feature representation.
[0080] According to an embodiment of the present disclosure, the reference file structure information may have similar characteristics to the generated file structure information and may be pre-set. According to an embodiment of the present disclosure, the reference file structure information may be in the form of a multi-layer structure with nodes, and each node in the file structure information may correspond to at least one reference file. According to an embodiment of the present disclosure, the node of the reference file structure information may include reference node information similar to the node information included in the node in the file structure information.
[0081] According to an embodiment of the present disclosure, the reference file structure information may be, for example, but not limited to, file structure information that is preset or inherent based on experience (such as library subject classification information with detailed information classification standards, etc.), file structure information for a specific field (such as concepts, file divisions, and reference files about a specific field, etc.). For example, the reference file structure information for multiple learning knowledge points may be in the following form: the label information of the root node of the first layer is "learning"; the label information of multiple non-leaf nodes of the second layer of the root node are respectively "mathematics", "Chinese", and "English" related to the subject to which the knowledge point belongs; the label information of multiple leaf nodes of the third layer of the "mathematics" node are respectively "geometry", "algebra", "statistics and probability", and "function", etc.
[0082] According to an embodiment of the present disclosure, the second feature representation of the reference file structure information may be one or more, and the number of the second feature representations may correspond to the number of nodes of the reference file structure information.
[0083] According to an embodiment of the present disclosure, a second characteristic representation of the reference file structure information may correspond to a node in the reference file structure information.
[0084] According to an embodiment of the present disclosure, obtaining a second feature representation of the reference file structure information includes: based on the reference file structure information and a set of prompts for a second AI model, using the second AI model to obtain the second feature representation of the reference file structure information.
[0085] According to an embodiment of the present disclosure, the second AI model may be an AI model of the same type or a different type as the first AI model.
[0086] According to an embodiment of the present disclosure, the set of prompts for the second AI model may be a set of prompts that is the same as or different from the set of prompts for the first AI model.
[0087] According to an embodiment of the present disclosure, based on reference file structure information and a set of prompts for a second AI model, the step of obtaining a second feature representation of the reference file structure information using the second AI model includes: inputting the set of prompts for the second AI model and the node information of a node of the reference file structure information into the second AI model; fusing the reference file information of the node output by the second AI model to obtain a fused second feature representation of the node of the reference file structure information.
[0088] Reference Figure 5 , inputting a set of prompts for the AI model and the reference file structure information into the AI model, and obtaining at least one second feature representation of the reference file structure information. Here, the second AI model is shown as an AI model that is the same as the first AI model.
[0089] Since the process of obtaining the second feature representation by using the second AI model is similar to the above-mentioned process of obtaining the first feature representation by using the first AI model, repeated description is omitted here.
[0090] According to an embodiment of the present disclosure, obtaining the second feature representation of the reference file structure information further includes: for each node in the reference file structure information, fusing the feature representations of multiple files associated with the node to obtain the second feature representation of the reference file structure information.
[0091] According to an embodiment of the present disclosure, the step of fusing the feature representations of the multiple files associated with the node includes: weighted averaging the feature representations (eg, embedding vectors) of the multiple files associated with the node.
[0092] According to an embodiment of the present disclosure, feature representations of multiple files associated with the node are fused, including: when the node is a leaf node in the reference file structure information, by fusing the feature representations of all files corresponding to the leaf node; and when the node is a non-leaf node in the reference file structure information, by fusing the feature representations of all child nodes of the non-leaf node.
[0093] According to an embodiment of the present disclosure, when a first feature representation of a file and a second feature representation referring to file structure information are obtained, file structure information of at least one file may be generated based on the first feature representation and the second feature representation.
[0094] According to an embodiment of the present disclosure, generating file structure information of the at least one file based on the first feature representation and the second feature representation includes: matching the first feature representation with the second feature representation, wherein each second feature representation corresponds to a node of the reference file structure; determining at least one node in the reference file structure corresponding to the at least one file based on the matching result; and generating file structure information of the at least one file based on the determined at least one node, wherein each node in the generated file structure information corresponds to at least one file.
[0095] According to an embodiment of the present disclosure, matching the first feature representation with the second feature representation includes: mapping the first feature representation and the second feature representation to a target space; and matching the first feature representation and the second feature representation in the target space by using a third AI model.
[0096] According to an embodiment of the present disclosure, the first feature representation and / or the second feature representation can be input into a first neural network model to obtain a feature representation of the first feature representation and / or the second feature representation in a target space.
[0097] According to an embodiment of the present disclosure, the first neural network model may include various types of neural network models, such as but not limited to, a Convolutional Neural Network (CNN) model, a Recurrent Neural Network (RNN) model, and a Multi-Layer Perception (MLP) model.
[0098] According to an embodiment of the present disclosure, the third AI model may be an AI model of the same type or a different type as the first AI model.
[0099] According to an embodiment of the present disclosure, the first feature representation and the second feature representation are matched in the target space by using an optimization function.
[0100] According to an embodiment of the present disclosure, when the correspondence between a file and a certain node of the reference file structure information is good, the feature representations of the first feature representation of the file and the second feature representation of the node in the target space should be close to each other, and when the correspondence between a file and a certain node of the reference file structure information is poor, the feature representations of the first feature representation of the file and the second feature representation of the node in the target space should be far away from each other. According to an embodiment of the present disclosure, optimal matching can be performed by using two optimization objective functions, wherein one optimization objective function is used to make the distance between the two feature representations with good correspondence tend to be small, and one optimization objective function is used to make the distance between the two feature representations with poor correspondence tend to be large, and the final optimization function for determining the optimal match is determined by weighting the two optimization objective functions. According to an embodiment of the present disclosure, by using various other optimization methods that can determine the optimal match, such as the optimization objective function, the optimal second feature representation that optimally matches the file is determined. Here, this is not described in detail.
[0101] Reference Figure 5 , when the first feature representation of the file and the second feature representation of the reference file structure information are input to the third AI model, an output of a node as a matching result is obtained.
[0102] According to an embodiment of the present disclosure, when the second feature representation that best matches the first feature representation of a file is determined, the node corresponding to the second feature representation is determined as the node of the file. According to an embodiment of the present disclosure, once the optimal second feature representation corresponding to a file is determined, the node corresponding to the optimal second feature representation in the reference file structure information can be regarded as the node corresponding to the file. Here, one optimal second feature representation can correspond to one or more files, that is, there can be a situation where several files belong to one node.
[0103] In this way, by using the reference file structure information, it is possible to provide basic information for reference when generating file structure information to help quickly establish the user's personalized file structure information, and it is possible to avoid incorrect file structure information being determined for some files due to the presence of ambiguous information by introducing predetermined file structure information that meets common standards. For example, a file containing writing skills content can be determined to correspond to "education and training" or to "artistic creation". If the node corresponding to it in the reference file structure information is the "secondary education" node, then the file is determined to correspond to "secondary education".
[0104] According to an embodiment of the present disclosure, when at least one node corresponding to at least one file in the reference file structure is determined, file structure information of the at least one file is generated based on node information of the at least one node.
[0105] According to an embodiment of the present disclosure, based on the determined at least one node, the step of generating the file structure information of the at least one file includes: based on the determined index information of the at least one node, generating at least one node of the at least one file, and generating the file structure information based on the generated at least one node. That is, at least one node with the same index information of the at least one file can be generated according to the index information of the at least one node in the reference file structure information, and the file structure information is generated based on the generated at least one node and its index information.
[0106] In this way, by referring to the preset reference file structure information, the file structure information required by the user can be generated more accurately and quickly for use.
[0107] However, since the reference file structure information is not updated dynamically and it may be difficult to pre-set reference file structure information that fully meets user needs in actual applications, there may be a situation where the nodes of the file determined based on the reference file structure information cannot meet expectations.
[0108] Generally, since it is easy to pre-set higher-level nodes (e.g., non-leaf nodes) for various types of file information, when the reference file structure information does not contain enough lower-level nodes (e.g., leaf nodes) to perfectly match the file, the file will be matched to the higher-level nodes. For example, when the reference file structure information only includes a "solid geometry" node but not a "plane geometry" node, files related to "plane geometry" may be matched to the "geometry" node of the upper layer of "solid geometry", which may not meet the user's needs for sufficiently detailed information processing. In response to this situation, the present disclosure proposes processing of newly added nodes for files that do not properly match nodes.
[0109] According to an embodiment of the present disclosure, the first feature representation is matched with the second feature representation, including: when at least one node is determined to be a non-leaf node, based on the path of the non-leaf node and a set of prompts for the fourth AI model, using the fourth AI model to generate relationship information between the non-leaf node and the at least one file; based on the relationship information, determining whether to add a new node in the layer below the non-leaf node; if a new node is added in the layer below the non-leaf node, the at least one file corresponds to the new node.
[0110] According to an embodiment of the present disclosure, the fourth AI model may be an AI model that is the same as or a different type than the first AI model.
[0111] According to an embodiment of the present disclosure, the set of prompts for the fourth AI model may be a set of prompts that is the same as or different from the set of prompts for the AI model.
[0112] According to an embodiment of the present disclosure, the relationship information between the non-leaf node and the at least one file may include, but is not limited to, a description of the relationship between the category information of the two, a description of the relationship between the summary information of the two, a description of the same / different entity information of the two, a description of the relationship between the tag information of the two, etc. According to an embodiment of the present disclosure, the representation form of the relationship information may include, but is not limited to, audio, text, image, video, etc.
[0113] According to an embodiment of the present disclosure, for a file and its corresponding non-leaf node, the fourth AI model can be used multiple times based on different prompts to determine at least one relationship information. Such multiple outputs of diverse relationship information help to fully understand the relationship between the two, which is conducive to improving the accuracy of subsequent new node processing.
[0114] As an example, when the input file and non-leaf nodes are both related to CNN, the at least one relationship information can be a description such as "Both introduce the structure and development history of convolutional neural networks (CNN), where the former introduces common structures such as LeNet-5, AlexNet, VGGNet, Inception Net, etc., while the latter focuses on the design of ResNet and the problems it solves. It can be said that the two texts have similar themes and contents, and the latter can also be regarded as a further development of the convolutional neural network introduced by the former. Therefore, they are related.".
[0115] Although the examples of relationship information shown herein are displayed in a text form, the description according to the exemplary embodiments of the present disclosure is not limited to the text form and may include any type of information.
[0116] According to an embodiment of the present disclosure, based on the relationship information, determining whether to add a new node in the layer below the non-leaf node includes: based on the relationship information, using the fifth AI model to obtain a third feature representation of the relationship information; based on the third feature representation, using the sixth AI model to determine whether to add a new node in the layer below the non-leaf node.
[0117] According to an embodiment of the present disclosure, the fifth AI model may be an AI model that is the same as or a different type than the first AI model.
[0118] According to an embodiment of the present disclosure, the set of prompts for the fifth AI model may be a set of prompts that is the same as or different from the set of prompts for the AI model.
[0119] According to an embodiment of the present disclosure, based on the relationship information, using the fifth AI model, the process of obtaining the third feature representation of the relationship information can be similar to the process of obtaining the first feature representation of the file mentioned above, which is not described in detail.
[0120] According to an embodiment of the present disclosure, the sixth AI model may be an AI model that is the same as or a different type than the first AI model.
[0121] According to an embodiment of the present disclosure, the set of prompts for the sixth AI model may be a set of prompts that is the same as or different from the set of prompts for the AI model.
[0122] According to an embodiment of the present disclosure, based on the third feature representation, a second neural network model is used to determine whether to add a new node in the layer below the non-leaf node.
[0123] According to an embodiment of the present disclosure, the second neural network model may be a neural network model that is the same as or different from the first neural network model.
[0124] According to an embodiment of the present disclosure, whether to add a new node at a layer below the non-leaf node can be determined based on the determined relationship information by using a pre-trained sixth AI model or a second neural network model, or by a set of prompts for the sixth AI model.
[0125] According to an exemplary embodiment of the present disclosure, a newly added node is determined when the relationship information satisfies a predetermined condition. For example, when it is determined based on the relationship information by using the sixth AI model or the second neural network model that the degree of association between the file and the non-leaf node is high, it is determined not to add a new node. For example, when it is determined based on the relationship information by using the sixth AI model or the second neural network model that the degree of association between the file and the non-leaf node is not high, it is determined to add a new node. Here, the predetermined condition is only used as an example, and whether to add a new node can be determined based on user input and / or any pre-set condition.
[0126] Figure 6 is a diagram illustrating an exemplary process of generating and determining a newly added node according to an embodiment of the present disclosure.
[0127] Reference Figure 6 , input the file and the non-leaf node into the fourth AI model, and output the relationship information used to represent the relationship between the two. The relationship information output by the fourth AI model is input into the fifth AI model to output the third feature representation of the relationship information (for example, an embedding vector). Here, the relationship information can be repeatedly input into the fifth AI model to obtain at least one third feature representation. The third feature representation of the relationship information output by the fifth AI model is input into the sixth AI model, and whether a new node is added is output as the output result.
[0128] According to an embodiment of the present disclosure, if it is determined based on the output result of the sixth AI model that a new node is added at a layer below a non-leaf node, then based on the file information of the file, a new node corresponding to the file is added.
[0129] According to an embodiment of the present disclosure, a newly added node and node information of the node may be generated based on the file information of the file.
[0130] According to an exemplary embodiment of the present disclosure, the specific details of the newly added node generated corresponding to the file are similar to the specific details of any other nodes described above, and are not described in detail here.
[0131] Refer to the following Figure 7 right Figures 5 and 6 The processing is generally described. Figure 7 is a diagram illustrating an exemplary process of generating file structure information according to an embodiment of the present disclosure.
[0132] Reference Figure 7 , by inputting multiple files of multiple types into the first AI model respectively, a fused first feature representation is obtained. Here, the first feature representation of the generated file is referred to above Figure 5 A detailed description has been given and will not be repeated here.
[0133] Based on the first feature representation of the file, file structure information of the file is generated by using a third AI model.
[0134] As an example, in Figure 7 In the generated file structure information, the nodes of the second layer are "economy" and "society", and the nodes of the third layer are "debt" and "income", among which the nodes of the highest layer can be regarded as the root node of the current file structure information, and "debt" and "income" can be regarded as the leaf nodes of the current file structure information.
[0135] When a node of a certain file is determined (for example, Figure 7 When the "economic node" and "social" node in the file are non-leaf nodes, determine whether to add a new node for the file.
[0136] As an example, when the node of a file is determined to be "economy", since the "economy" node is a non-leaf node, the file and the reference file structure information (more specifically, the node information of the "economy" node of the reference file structure information) are input into the fourth AI model to output at least one relationship information about the file and the "economy" node. The third feature representation of the at least one relationship information is obtained by inputting the at least one relationship information into the fifth AI model. Based on the third feature representation, the file is determined to be related to "economy" by using the sixth AI model without adding a new node.
[0137] As an example, when a node of a file is determined to be "social", since the "social" node is a non-leaf node, the file and the reference file structure information (more specifically, the node information of the "social" node of the reference file structure information) are input into the fourth AI model to output at least one relationship information about the file and the "social" node, and the third feature representation of the at least one relationship information is obtained by inputting the at least one relationship information into the fifth AI model. Based on the third feature representation, it is determined by using the sixth AI model that the file is weakly correlated with "social" and a new node needs to be added. Based on the determination of the new node, a node corresponding to the file is added to the file structure information (for example, Figure 7 The nodes in the next layer below the "Society" node in the graph).
[0138] Based on the above steps, when the file structure information for multiple files is determined, the user can operate the nodes in the file structure information.
[0139] According to an embodiment of the present disclosure, the category information of the file corresponding to the node in the generated file structure information can be refined layer by layer from the highest level to the lowest level. Figure 3a and Figure 3b In the file structure information shown on the right side, each category of information is refined layer by layer. Through the implementation of multi-level file structure information, the hierarchical presentation of file information is achieved. For example, when a file is related to a large amount of knowledge content, the multi-level file structure information can help users gradually learn knowledge points from the shallow to the deep.
[0140] According to an embodiment of the present disclosure, the generated file structure information is displayed in a user interface in the form of a visual mind map. Figure 3a , Figure 3b and Figure 3c In the file structure information shown on the right side of the figure, the generated file structure information is displayed in a visual and coarse-grained mind map format. When the user needs to pay attention to the specific details of a specific node, the user can view or limit the node in the coarse-grained display interface to expand the various sub-nodes and related information under the node. As an example, the visual mind map format of the file structure information may include, but is not limited to, a one-way guide map, a fishbone diagram, a tree diagram, a bubble diagram, and the like.
[0141] As an example, the user may manually operate the visualized file structure information.
[0142] According to an embodiment of the present disclosure, the method performed by the electronic device further includes: adding nodes and node labels, deleting nodes, filtering nodes, modifying node labels, creating association information between new nodes, and / or viewing one or more files corresponding to the nodes in the generated file structure information through user input. As an example, any form of operation such as access, addition, deletion, modification, selection, and viewing can be performed on the files corresponding to the nodes through user input.
[0143] According to an embodiment of the present disclosure, each node in the generated file structure information corresponds to at least one file among the multiple files.
[0144] According to an embodiment of the present disclosure, the node information of each node in the generated file structure information includes the path of the corresponding node in the file structure information. That is, the specific position of the node in the file structure information can be determined based on the node information. As an example, the overall path indexed to the node in the file structure information can be determined based on the node information of the node.
[0145] As an example, a node may be selected through user input to view part or all of the node information.
[0146] According to an embodiment of the present disclosure, the method performed by the electronic device also includes: generating association information between files based on file information of the multiple files by using an AI model; and displaying the generated association information between the files in the generated file structure information.
[0147] According to the embodiments of the present disclosure, the association information between files can be represented in any appropriate form. Figure 3a and Figure 3b As shown on the right side of the figure, two nodes with association are represented by dotted lines to indicate the association information of the corresponding two files. By automatically generating association information between files and / or nodes, the contents of the files can be integrated in series, which helps users to grasp the file information in general when viewing the file structure information. For example, when a file is related to a large amount of knowledge content, the file structure information helps users quickly understand the association between related knowledge points and improve learning efficiency.
[0148] According to an embodiment of the present disclosure, the method performed by the electronic device further includes: sorting the files and / or subnodes corresponding to each node in the generated file structure information in a predetermined order. According to an embodiment of the present disclosure, the files and / or subnodes corresponding to each node in the file structure information may be sorted in any appropriate order (e.g., time, category information, tag information, file size, etc.). The file structure information that sorts the files or subnodes according to user needs has better order, which helps to personalize the file structure information.
[0149] According to an embodiment of the present disclosure, the method performed by the electronic device further includes: when there is a newly added or modified file, automatically updating the file structure information based on the file information of the newly added or modified file. As an example, when there is a newly added or modified file, automatically generating, adding, modifying, and updating nodes by using one or more of the above-mentioned AI models to achieve real-time update of the file structure information.
[0150] According to an embodiment of the present disclosure, the step of automatically updating the file structure information based on the file information of the newly added or modified file includes: based on a set of prompts for the first AI model, using the first AI model to output the file information of the newly added or modified file; fusing the file information output by the first AI model to obtain a fused first feature representation; obtaining a second feature representation of the file structure information; matching the first feature representation with the second feature representation, and determining the node in the file structure information corresponding to the newly added or modified file or adding a new node corresponding to the newly added or modified file based on the matching result.
[0151] Here, except for replacing the above-mentioned reference file structure information with the generated file structure information, the processing for the newly modified or added file is similar to the above-mentioned processing for generating the file structure information, and will not be described in detail here.
[0152] As such, by updating the file structure information in real time, the user's time and energy can be saved, and the defect that the user needs to manually operate the file structure information every time there is a change in the file is avoided.
[0153] According to an exemplary embodiment of the present disclosure, the method performed by the electronic device also includes: Also included: Before any one of the prompts in the set of prompts for multiple AI models is input into the corresponding AI model, receiving a user's confirmation input. When there is any change in the file structure information, a reminder can be displayed on the user interface to prompt the user to make relevant confirmations. For example, when a new node is added, a reminder of the new node can be displayed to confirm whether the user needs to perform corresponding processing. Based on the result of the user's confirmation, corresponding processing can be performed or error correction processing can be performed based on the user's denial.
[0154] As an example, the above-mentioned functions associated with the AI model can be performed by a non-volatile memory, a volatile memory, and a processor.
[0155] The AI model can be processed by an AI-dedicated processor that is designed with a hardware structure specifically designed for AI model processing.
[0156] Figure 8is a block diagram illustrating an electronic device 800 according to an embodiment of the present disclosure.
[0157] Reference Figure 8 The electronic device 800 includes: at least one processor 810; at least one memory 820 storing computer executable instructions, wherein when the computer executable instructions are executed by the at least one processor, the at least one processor 810 is prompted to execute the method as described above.
[0158] As an example, the electronic device 800 may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above instruction set. Here, the electronic device 800 is not necessarily a single electronic device, but may also be any device or circuit assembly capable of executing the above instruction (or instruction set) individually or in combination.
[0159] The electronic device 800 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that is interconnected with an interface locally or remotely (e.g., via wireless transmission). The processor 810 may include one or more processors. At this time, one or more processors may be general-purpose processors, such as a central processing unit (CPU), an application processor (AP), etc., a processor used only for graphics (e.g., a graphics processing unit (GPU), a visual processing unit (VPU), and / or an AI-specific processor (e.g., a neural processing unit (NPU)). One or more processors control the processing of input data according to predefined operating rules or AI models stored in non-volatile memory and volatile memory. The predefined operating rules or AI models may be provided by training or learning. Here, providing by learning means that by applying a learning algorithm to multiple learning data, a predefined operating rule or AI model with desired characteristics is formed. Learning can be performed in the device itself that performs AI according to the embodiment, and / or can be implemented by a separate server / device / system.
[0160] A learning algorithm is a method of using multiple learning data to train a predetermined target device (e.g., a robot) to enable, allow, or control the target device to make a determination or prediction. Examples of learning algorithms include, but are not limited to, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning.
[0161] The AI model can be obtained through training. Here, "obtained through training" means training a basic AI model with multiple training data through a training algorithm to obtain a predefined operating rule or AI model, which is configured to perform the desired features (or purposes).
[0162] As an example, the AI model may include multiple neural network layers. Each of the multiple neural network layers includes multiple weight values, and the neural network calculation is performed by calculating between the calculation result of the previous layer and the multiple weight values. Examples of neural networks include, but are not limited to, convolutional neural networks (CNNs), deep neural networks (DNNs), recurrent neural networks (RNNs), restricted Boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), generative adversarial networks (GANs), and deep Q networks.
[0163] The processor 810 may execute instructions or codes stored in the memory 820, which may also store data. Instructions and data may also be sent and received over a network via a network interface device, which may employ any known transmission protocol.
[0164] The memory 820 may be integrated with the processor 810, for example, by placing RAM or flash memory within an integrated circuit microprocessor or the like. In addition, the memory 820 may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The memory and processor may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor can read files stored in the memory.
[0165] In addition, the electronic device 800 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the electronic device 800 may be connected to each other via a bus and / or a network.
[0166] According to an embodiment of the present disclosure, a computer-readable storage medium storing instructions may further be provided, wherein when the instructions are executed by at least one processor, the at least one processor is prompted to execute the method as described in the above exemplary embodiment.
[0167] Examples of computer-readable storage media include read-only memory (ROM), random-access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random-access memory (RAM), dynamic random-access memory (DRAM), static random-access memory (SRAM), flash memory, nonvolatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.
[0168] According to an embodiment of the present disclosure, a computer software may be provided. Instructions in the computer software may be executed by at least one processor to complete the method described above.
[0169] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0170] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the claims.
Claims
1. A method performed by an electronic device, include: receiving a user input instructing to generate corresponding file structure information for at least one file; In response to receiving the user input, based on a set of prompts for a first artificial intelligence (AI) model, using the first AI model to generate file structure information corresponding to the at least one file, Each prompt in the set of prompts for the first AI model is used to instruct the first AI model to perform a corresponding operation.
2. The method according to claim 1, in, The set of prompts for the first AI model includes prompts for obtaining at least one of the following file information: Feature representation of the file; category information of the file; summary information of the file; tag information of the file; entity information in the file; relationship information between entities in the file; event information corresponding to the file.
3. The method according to claim 1 or 2, in, Based on a set of prompts for a first AI model, using the first AI model to generate file structure information corresponding to the at least one file includes: inputting the set of prompts and the at least one file into the first AI model; Based on the file information output by the first AI model, file structure information of the at least one file is generated.
4. The method according to claim 3, in, Generating file structure information of the at least one file based on the file information output by the first AI model includes: Fusing the file information output by the first AI model to obtain a fused first feature representation; Based on the fused first feature representation, file structure information of the at least one file is generated.
5. The method according to claim 4, in, Generating file structure information of the at least one file based on the fused first feature representation includes: Obtaining a second feature representation of the reference file structure information; Based on the first feature representation and the second feature representation, file structure information of the at least one file is generated.
6. The method according to claim 5, obtaining a second feature representation of the reference file structure information, include: Based on the reference file structure information and a set of prompts for the second AI model, the second AI model is used to obtain a second feature representation of the reference file structure information.
7. The method according to claim 5, obtaining a second feature representation of the reference file structure information, include: For each node in the reference file structure information, feature representations of multiple files associated with the node are fused to obtain a second feature representation of the reference file structure information.
8. The method according to claim 7, in, The feature representations of the multiple files associated with the node are merged, including: When the node is a leaf node in the reference file structure information, fusing feature representations of all files corresponding to the leaf node; and When the node is a non-leaf node in the reference file structure information, the feature representations of all child nodes of the non-leaf node are fused.
9. The method according to any one of claims 5 to 8, in, Generating file structure information of the at least one file based on the first feature representation and the second feature representation includes: Matching the first feature representation with the second feature representation, wherein each second feature representation corresponds to a node of the reference file structure; Determine at least one node in the reference file structure corresponding to the at least one file based on the matching result; Based on the determined at least one node, file structure information of the at least one file is generated, wherein each node in the generated file structure information corresponds to at least one file.
10. The method according to claim 9, in, Matching the first feature representation with the second feature representation includes: Mapping the first feature representation and the second feature representation to a target space; The first feature representation is matched with the second feature representation in the target space by using a third AI model.
11. The method according to claim 9 or 10, matching the first feature representation with the second feature representation, include: When the determined at least one node is a non-leaf node, generating relationship information between the non-leaf node and the at least one file using the fourth AI model based on a path of the non-leaf node and a set of prompts for the fourth AI model; Based on the relationship information, determine whether to add a new node in a layer below the non-leaf node; If a new node is added at a layer below the non-leaf node, the at least one file corresponds to the new node.
12. The method according to claim 11, in, Based on the relationship information, determining whether to add a new node in a layer below the non-leaf node includes: Based on the relationship information, using a fifth AI model, obtaining a third feature representation of the relationship information; Based on the third feature representation, use the sixth AI model to determine whether to add a new node in the layer below the non-leaf node.
13. The method according to any one of claims 1 to 12, in, The generated file structure information is displayed in the user interface in the form of a visual mind map.
14. The method according to any one of claims 1 to 13, further comprising: include: Through user input, nodes and node labels are added to the generated file structure information, nodes are deleted, nodes are filtered, node labels are modified, association information between new nodes is created, and / or one or more files corresponding to the nodes are viewed.
15. The method according to any one of claims 1 to 14, further comprising: include: The files and / or sub-nodes corresponding to each node in the generated file structure information are sorted in a predetermined order.
16. The method according to any one of claims 1 to 15, in, The file includes files related to at least one of the following: text, image, video, audio.
17. An electronic device, include: at least one processor; at least one memory storing computer executable instructions, When the computer executable instructions are executed by the at least one processor, the at least one processor is prompted to perform the method according to any one of claims 1 to 16.
18. A computer-readable storage medium, in, When the instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is prompted to perform the method according to any one of claims 1 to 16.
