Automatic file organization framework, method and computer program product based on large language model
Through the automatic file organization framework based on the large language model, the problem of low manual efficiency of production file organization is solved, and fast and flexible file organization is achieved, reducing manual operations and improving production efficiency is improved.
Patent Information
- Application Number
- CN202510435254.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-08
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2045-04-08
AI Technical Summary
The existing production file sorting relies on manual labor to cause inefficiency and cannot adapt to file format changes in different projects through traditional matching algorithms.
The automatic file organization framework based on the large language model is adopted, including demonstration creation modules and file processing modules, and the file organization process information is learned through the large language model, the file target path is generated, and the files are automatically sorted into the target folder.
Organize files in batches in a short period of time, reduce the cost of manual sorting, improve sorting efficiency, and adapt to the file sorting requirements of different projects.
Smart Images

Figure CN119961226B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of large language models, and in particular to an automatic file organization framework, method, and computer program product based on large language models. Background Art
[0002] In the current production workflow, after receiving production files from the client, producers must organize them into a unified file format according to internal file specifications. This step involves creating, copying, pasting, and moving numerous files and folders, making manual work time-consuming and labor-intensive. However, there's no standardized input format for organizing files, and the volume and organization requirements vary from project to project, making traditional matching algorithms unsuitable. This results in excessive reliance on manual effort for file organization. Summary of the Invention
[0003] The purpose of this application is to provide a framework, method, and computer program product for automatic file organization based on a large language model to address the technical problem of low efficiency in the existing art of manual file organization for production production. The various technical effects that can be achieved by the preferred technical solution among the various technical solutions provided in this application are detailed below.
[0004] To achieve the above objectives, this application provides the following technical solutions:
[0005] In a first aspect, the present application provides an automatic file organization framework based on a large language model, comprising a demonstration creation module and a file processing module; the demonstration creation module is configured to obtain organization process information of at least one key file among multiple files to be organized, and input the organization process information into the large language model so that the large language model can learn the organization process information; the file processing module is configured to process the multiple files to be organized through the learned large language model, obtain the file target paths of the multiple files to be organized, and organize the files to be organized into a target folder according to the file target paths.
[0006] In some embodiments, the automatic file organization framework based on a large language model further includes an analysis module, and the analysis module is configured to analyze an initial folder including a plurality of files to be organized to obtain a filtered folder list.
[0007] In some embodiments, the file processing module includes a creation agent and a file operation agent; the creation agent is configured to construct multiple empty folders according to the file target path; the file operation agent is configured to copy the corresponding files to be organized in the empty folders to obtain the target folders.
[0008] In some embodiments, the file processing module also includes a filtering agent and a first checking agent; the filtering agent filters the initial folder according to the filtering folder list and sends the filtered initial folder to the file operation agent; the first checking agent is configured to confirm the legitimacy of the multiple empty folders.
[0009] In some embodiments, the large language model-based automatic file organization framework includes an inspection module, which includes a second inspection agent, and the second inspection agent is configured to inspect the target folder to confirm whether the target folder itself and the files in the target folder are complete.
[0010] In some embodiments, the inspection module includes a supplementary agent, which is configured to obtain missing files to be sorted from the initial folder based on the inspection results of the second inspection agent to supplement the target folder and obtain a final target folder.
[0011] In some embodiments, the demonstration creation module converts the format of the organizing process information and inputs it into the large language model, and the creation agent converts the format of the initial folder and inputs it into the learned large language model.
[0012] In some embodiments, the demonstration creation module organizes the key files to obtain the demonstration path of the key files, and the organization process information includes the demonstration path and the initial file path of the key files in the initial folder.
[0013] In the second aspect, the present application provides an automatic file organization method based on a large language model. The automatic file organization method based on a large language model is applied to the automatic file organization framework based on a large language model as described in the first aspect. The automatic file organization method based on a large language model may include: obtaining organization process information of at least one key file among multiple files to be organized, inputting the organization process information into the large language model so that the large language model can learn the organization process information; processing the multiple files to be organized through the learned large language model to obtain the file target paths of the multiple files to be organized, and organizing the files to be organized into a target folder according to the file target path.
[0014] In a third aspect, the present application provides a computer program product, which is stored on a data carrier and is designed to execute the automatic file organization method based on a large language model as described in the second aspect.
[0015] Implementing one of the above-mentioned technical solutions of the present application has the following advantages or beneficial effects: the automatic file sorting framework based on the large language model of the present application demonstrates that the creation module obtains the sorting process information of the files to be sorted, and after the large language model is learned, the file processing module cooperates with the large language model to sort the files to be sorted from the initial folder to the target folder. In this case, the present application can sort files in batches in a short time, and can flexibly adapt to different projects based on the learned large language model, and output sorted files that meet the requirements. The present application can reduce the workload of manual sorting, reduce the time cost of manual sorting, and improve sorting efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. Those skilled in the art can also derive other drawings based on these drawings without inventive work. In the drawings:
[0017] Figure 1 This is a structural diagram of an automatic file organization framework based on a large language model according to an embodiment of the present application;
[0018] Figure 2 1 is a flow chart of an automatic file organization method based on a large language model according to an embodiment of the present application;
[0019] Figure 3 It is a structural block diagram of the processing device of an embodiment of the present application.
[0020] In the figure: 1. Automatic file organization framework based on large language model; 10. Analysis module; 20. Presentation creation module; 30. File processing module; 31. Creation agent; 32. Filtering agent; 33. File operation agent; 34. First inspection agent; 40. Inspection module; 41. Second inspection agent; 42. Supplementary agent; 5. Processing device; 50. Memory; 51. Processor. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of the present application clearer, the various exemplary embodiments to be described below will refer to the corresponding drawings, which constitute a part of the exemplary embodiments, in which various exemplary embodiments that may be used to implement the present application are described. Unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation methods described in the following exemplary embodiments do not represent all implementation methods consistent with the present disclosure. It should be understood that they are only examples of processes, methods and devices that are consistent with some aspects disclosed in the present application as detailed in the appended claims, and other embodiments may also be used, or structural and functional modifications may be made to the embodiments listed herein without departing from the scope and essence of the present application.
[0022] In the description of this application, it should be understood that the terms "center", "longitudinal", "transverse" and the like indicate the orientation or positional relationship based on the figures, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the elements referred to must have a specific orientation, be constructed and operated in a specific orientation. The terms "first", "second" and the like are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. The term "multiple" means two or more. The terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, an integral connection, a mechanical connection, an electrical connection, a communication connection, a direct connection, an indirect connection through an intermediate medium, and can be the internal connection of two elements or the interaction relationship between two elements. The term "and / or" includes any and all combinations of one or more related listed items. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to the specific circumstances.
[0023] In order to illustrate the technical solution described in this application, a specific embodiment is provided below, and only the parts related to the embodiment of this application are shown.
[0024] The present application relates to an automatic file organization framework, which can be constructed based on a large language model and includes multiple cooperating intelligent agents. The automatic file organization framework of the present application can receive at least one initial folder, wherein each initial folder can include multiple files to be organized. The automatic file organization framework can then organize the files to be organized into a target folder according to the file target path, thereby completing the automatic organization of the files to be organized. Accordingly, the initial folder can also include multiple folders to be organized for storing the files to be organized, and the location of the files to be organized in the initial folder can be the file initial path.
[0025] The automatic file organization framework of this application can be applied to scenarios where a large number of files need to be organized according to certain rules. For example, in the field of film production, the files to be organized in this application can be production files. This application does not limit the type of files to be organized, for example, they can be text files, video files, etc.
[0026] like Figure 1 As shown, the present application provides a production automatic file organization framework 1 based on a large language model, including: a presentation creation module 20 and a file processing module 30.
[0027] In some embodiments, the presentation creation module 20 may be configured to obtain the organization process information of at least one key file among the multiple files to be organized, and input the organization process information into the large language model so that the large language model can learn the organization process information.
[0028] In some embodiments, the file processing module 30 can be configured to process multiple files to be sorted through the learned large language model, obtain file target paths of the multiple files to be sorted, and sort the files to be sorted into a target folder according to the file target paths.
[0029] In some embodiments, presentation creation module 20 may receive an initial folder, which may include multiple folders to be organized, each of which may include at least one file to be organized. Presentation creation module 20 may randomly select at least one file to be organized as a key file, or may select all or some of the files to be organized in at least one folder to be organized as key files.
[0030] In some embodiments, the key file organization process information may represent the pre-organization process of organizing the key file from the initial folder to the target folder. The organization process information may be path change information of the key file before and after organization, that is, the file path of the key file in the initial folder and the file path of the key file in the target folder. In this case, the organization process information is obtained through the pre-organization process, and the organization process of other files to be organized can be indicated by the organization process information.
[0031] In some embodiments, the presentation creation module 20 may receive the organization process information provided by the user or the user, thereby being able to make adjustments based on actual project requirements to make the file organization more accurate.
[0032] In some embodiments, the demonstration creation module 20 can organize the key files to obtain the demonstration path of the key files. The organization process information can include the demonstration path and the initial file path of the key files in the initial folder. The demonstration path can refer to the file path of the key files when they need to be organized into the target folder, that is, the demonstration path can be considered to be the same as the target file path of the key files. The organization process information can be a file path pair including the initial file path and the demonstration path, and each key file includes at least one corresponding file path pair.
[0033] In some embodiments, the demonstration creation module 20 can convert the format of the sorting process information and input it into the large language model. Specifically, the demonstration creation module 20 can convert the sorting process information into a string form, and then input the sorting process information in the string form into the large language model. The large language model can learn the mapping relationship between the files to be sorted before and after sorting based on the sorting process information, that is, it can learn the mapping relationship between the file initial path of the files to be sorted and the file target path of the files to be sorted. In this case, the learned large language model can output the file target path based on the file initial path of other files to be sorted based on the mapping relationship, thereby improving the convenience of subsequent sorting and improving the sorting efficiency.
[0034] In some embodiments, the automatic file organization framework 1 based on a large language model may further include an analysis module 10 . The analysis module 10 may be configured to analyze an initial folder including a plurality of files to be organized to obtain a filtered folder list.
[0035] In some embodiments, the filter folder list can be used to prompt the files to be sorted that need to be filtered, such as useless files, duplicate files, etc.
[0036] In some embodiments, the file processing module 30 may include a creation agent 31 and a file operation agent 33. The creation agent 31 may be configured to construct multiple empty folders according to the file target path; the file operation agent 33 may be configured to copy the corresponding files to be sorted in the empty folders to obtain the target folders. Both the creation agent 31 and the file operation agent 33 can obtain the file target path based on the learned large language model, and the large language model can output prompt words and input them to the creation agent 31 and the file operation agent 33. Specifically, when the creation agent 31 receives the corresponding prompt words, the creation agent 31 can create empty folders according to demand, and the empty folders and the prompt words output by the large language model can be used as inputs to the file operation agent 33, and the file operation agent 33 can copy the files to be sorted into the corresponding empty folders. In this way, automatic sorting of files can be achieved through the cooperation of the agent and the large language model.
[0037] In some embodiments, the creation agent 31 can convert the format of the initial folder and input it into the learned large language model, which can then output the target file path. Furthermore, the learned large language model can output a prompt word, which can be input into the creation agent 31 and the file operation agent 33, causing the creation agent 31 to construct an empty folder and the file operation agent 33 to organize the files to be organized into the empty folder, thereby obtaining the target folder.
[0038] In some embodiments, the file processing module 30 may further include a filtering agent 32 and a first checking agent 34. The filtering agent 32 may filter the initial folders according to a filter folder list and send the filtered initial folders to the file operation agent 33. The first checking agent 34 may be configured to verify the legitimacy of multiple empty folders. Accordingly, the learned large language model may output prompts for the first checking agent 34 to guide its operations.
[0039] Specifically, the filtering agent 32 may filter some of the files or folders to be sorted in the initial folder. The creation agent 31 may then input the filtered initial folder into the large language model to obtain a file destination path. Subsequently, after the creation agent 31 creates an empty folder, the first checking agent 34 may verify the legitimacy of the empty folder. The first checking agent 34 may verify the legitimacy of the empty folder by determining whether the file destination path complies with operating system rules, whether the file destination path contains illegal characters, whether the file destination path has access permissions, and whether the file destination path exists.
[0040] In some embodiments, the large language model-based automatic file organization framework 1 may include a check module 40, which may include a second check agent 41. The second check agent 41 may be configured to check the target folder to confirm whether the target folder itself and the files in the target folder are complete. Specifically, the initial folder and the target folder may serve as inputs to the second check agent 41, which may be used to check whether the folders and files in the target folder are missing and output a check result.
[0041] In some embodiments, the inspection module 40 may include a supplement agent 42, which may be configured to retrieve missing files to be organized from the initial folder based on the inspection results of the second inspection agent 41, and supplement the target folder to obtain a final target folder. This ensures the integrity of the target folder and reduces errors in automatic organization.
[0042] The following are test results (see Table 1) of four animation projects used in actual production using the automatic file organization framework 1 based on a large language model according to an embodiment of the present application. The data used for evaluation was checked by professional producers and supervisors:
[0043]
[0044] Table 1
[0045] Test results are evaluated using the following two metrics: Overall file accuracy refers to comparing the standard answer and the files in the framework output folder to ensure they are correctly copied. A higher metric is better, with a maximum of 100. Steps required refers to the number of steps required to convert the file in the output folder to the standard answer, with creating, copying, pasting, and deleting each counting as one step. A lower metric is better, with a minimum of 0.
[0046] It can be seen that the automatic file organization framework 1 based on the large language model of the embodiment of the present application exceeds the non-field practitioners and trainee producers in terms of the overall file accuracy and the indicators of the required steps, and most of the required steps are within 10 steps, which means that the producer only needs to simply check and supplement the remaining operations to achieve file organization, thereby improving the work efficiency of the producer.
[0047] The automatic file organization framework 1 based on the large language model of the present application, the demonstration creation module 20 obtains the organization process information of the files to be organized, and after the large language model is learned, the file processing module 30 cooperates with the large language model to organize the files to be organized from the initial folder to the target folder. In this case, the present application can organize files in batches in a short time, and can flexibly adapt to different projects based on the learned large language model, and output organized files that meet the requirements. The present application can reduce the workload of manual organization, reduce the time cost of manual organization of files, and improve organization efficiency.
[0048] like Figure 2 As shown, the present application also relates to an automatic file organization method based on a large language model. The automatic file organization method based on a large language model is applied to the automatic file organization framework 1 based on a large language model as described above. The automatic file organization method based on a large language model may include:
[0049] S1. Obtaining organization process information of at least one key file among a plurality of files to be organized, and inputting the organization process information into a large language model so that the large language model learns the organization process information;
[0050] S2. Process the multiple files to be sorted by using the learned large language model to obtain target file paths of the multiple files to be sorted, and sort the files to be sorted into target folders according to the target file paths.
[0051] Those skilled in the art will appreciate that all or part of the features / steps of the aforementioned method embodiments may be implemented via methods, data processing systems, or computer programs. These features may be implemented entirely in software, without hardware, or through a combination of hardware and software. The aforementioned computer program may be stored in one or more computer-readable storage media. The storage medium stores the computer program, and when the computer program is executed (e.g., by a processor), it executes the steps of the aforementioned method embodiment for automatic file organization based on a large language model.
[0052] The aforementioned storage media that can store program codes include: static hard disks, solid-state hard disks, random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), optical storage devices, magnetic storage devices, flash memory, magnetic disks or optical disks and / or combinations of the above devices, that is, they can be implemented by any type of volatile or non-volatile storage device or a combination thereof.
[0053] like Figure 3 As shown, the present application also provides an embodiment of a processing device 5, including one or more processors 51 and a memory 50; wherein the memory 50 is used to store one or more computer programs, and the one or more processors 51 are used to execute one or more computer programs stored in the memory 50, so that the processor 51 performs the features / steps of the above-mentioned embodiment of the automatic file organization method based on the large language model.
[0054] The present application also provides a computer program product that is stored on a data carrier and is designed to execute the automatic file organization method based on a large language model as described above. Therefore, the computer program product according to the present application produces the same advantages as those described in detail with reference to the device according to the present application. The computer program product can be executed as computer-readable instruction code in any suitable programming language such as JAVA, C++, etc. In addition, the computer program product can be provided on a network, such as the Internet, or a network, such as an Internet user, can download the computer program product from the network, such as the Internet, when needed. The computer program product can be implemented using a computer program, i.e., software, or using one or more dedicated electronic circuits, i.e., hardware, or in any hybrid form, i.e., using software components and hardware components, or in a hybrid form of software, hardware, or software and hardware.
[0055] The foregoing is merely a preferred embodiment of the present application. Those skilled in the art will appreciate that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present application. Furthermore, under the guidance of this application, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present application. Therefore, the present application is not limited to the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application are intended to be included within the scope of protection of this application.
Claims
1. An automatic file organization framework based on a large language model, characterized by: Includes presentation creation module and file processing module; The demonstration creation module is configured to obtain arrangement process information of at least one key file among the plurality of files to be arranged, and input the arrangement process information into the large language model so that the large language model learns the arrangement process information; The file processing module is configured to process the plurality of files to be sorted using the learned large language model to obtain target file paths of the plurality of files to be sorted, and sort the files to be sorted into a target folder according to the target file paths; The demonstration creation module organizes the key files to obtain a demonstration path of the key files, wherein the organization process information includes the demonstration path and the initial file path of the key files in an initial folder, wherein the initial folder includes a plurality of the files to be organized; The demonstration creation module randomly obtains at least one of the files to be sorted as the key file, and / or obtains all or part of the files to be sorted in at least one folder to be sorted as the key file; The automatic file organization framework based on the large language model further includes an analysis module, wherein the analysis module is configured to analyze an initial folder including a plurality of files to be organized to obtain a filtered folder list; The file processing module includes a creation agent and a file operation agent; the creation agent is configured to construct multiple empty folders according to the file target path; the file operation agent is configured to copy the corresponding files to be organized in the empty folders to obtain the target folder.
2. The automatic file arrangement framework based on a large language model according to claim 1 is characterized in that: The file processing module further includes a filtering agent and a first checking agent; the filtering agent filters the initial folder according to the filtering folder list and sends the filtered initial folder to the file operation agent; The first checking agent is configured to confirm the legitimacy of the multiple empty folders.
3. The automatic file arrangement framework based on a large language model according to claim 2 is characterized in that: The automatic file organization framework based on a large language model includes a checking module, which includes a second checking agent. The second checking agent is configured to check the target folder to confirm whether the target folder itself and the files in the target folder are complete.
4. The automatic file arrangement framework based on a large language model according to claim 3 is characterized in that: The inspection module includes a supplementary agent, which is configured to obtain missing files to be sorted from the initial folder according to the inspection result of the second inspection agent, and supplement the target folder to obtain a final target folder.
5. The automatic file arrangement framework based on a large language model according to claim 1 is characterized in that: The demonstration creation module converts the format of the sorting process information and inputs it into the large language model, and the creation agent converts the format of the initial folder and inputs it into the learned large language model.
6. An automatic file organization method based on a large language model, characterized in that: The automatic file organization method based on a large language model is applied to the automatic file organization framework based on a large language model according to any one of claims 1 to 5, and the automatic file organization method based on a large language model includes: Obtaining arrangement process information of at least one key file among the plurality of files to be arranged, and inputting the arrangement process information into the large language model so that the large language model learns the arrangement process information; Processing the plurality of files to be sorted by using the learned large language model to obtain target file paths of the plurality of files to be sorted, and sorting the files to be sorted into a target folder according to the target file paths; The method further includes: organizing the key files to obtain a demonstration path of the key files, wherein the organizing process information includes the demonstration path and an initial file path of the key files in an initial folder, wherein the initial folder includes a plurality of the files to be organized; The method further includes: randomly obtaining at least one of the to-be-organized files as the key file, and / or obtaining all or part of the to-be-organized files in at least one of the to-be-organized folders as the key file; analyzing an initial folder including multiple to-be-organized files to obtain a filtered folder list; constructing multiple empty folders according to the file target path; and copying the corresponding to-be-organized files in the empty folders to obtain the target folder.
7. A computer program product, characterized in that The computer program product is stored on a data medium and is designed to execute the method for automatic document organization based on a large language model according to claim 6 .
Citation Information
Patent Citations
File processing method and device based on RPA and AI, equipment and medium
CN114024955A
System file downloading method and device based on open gap, equipment and medium
CN119520509A