Model generation method and system, computer equipment, storage medium and program product
By decomposing the task into subtasks and obtaining the implementation model from the model library or external database, the problem of low efficiency of large-scale language model generation is solved and an efficient model generation system is realized.
Patent Information
- Application Number
- CN202410796931.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-15
AI Technical Summary
Large-scale language models suffer from low generation efficiency due to the complexity of their structures and parameters.
By decomposing the task to be processed into multiple subtasks, obtaining the implementation model corresponding to each subtask from the model library and external database of the model generation system, and generating the target model based on these subtask models, a model generation system is provided that can Directly obtain the implementation model of the subtask in the model library or automatically connect to an external database to obtain the implementation model, thereby improving model generation efficiency.
It greatly improves the efficiency of model generation, especially when there is no subtask implementation model in the model library. Automatically connecting to an external database provides another way to obtain the implementation model, which significantly improves the efficiency of target model generation.
Smart Images

Figure CN118779495A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a model generation method, system, computer device, storage medium and program product. Background Art
[0002] Large language model (LLM) is a deep learning model trained based on massive text data. It can not only generate natural language text, but also deeply understand the meaning of text and handle various natural language tasks, such as text summarization, question answering, translation, etc. Therefore, the research on large language models and their application in the field of artificial intelligence has become a hot topic in global scientific and technological research.
[0003] However, large-scale language models or other large models suffer from low generation efficiency due to the complexity of their structures and parameters. Summary of the invention
[0004] Based on this, it is necessary to provide an efficient model generation method, system, computer device, storage medium and program product to address the above technical problems.
[0005] In a first aspect, the present application provides a model generation method, which is applied to a model generation system, comprising:
[0006] Break down pending tasks into multiple subtasks;
[0007] Obtain the implementation model corresponding to each subtask from the model library of the model generation system and the external database;
[0008] Generate the target model corresponding to the task to be processed according to the implementation model corresponding to each subtask.
[0009] The above method provides a model generation system, and the model library of the model generation system includes multiple implementation models. When generating the target model corresponding to the task to be processed, the implementation models of each subtask of the task to be processed can be directly obtained from the model library to generate the target model, which greatly improves the model generation efficiency; in addition, the model generation system also has the function of automatically connecting to an external database, that is, when the implementation model of the subtask does not exist in the model library, the model generation system automatically connects to the external database and obtains the implementation model of the subtask in the external database, which provides another way to obtain the implementation model of the subtask, thereby greatly improving the generation efficiency of the target model when the implementation model of the subtask does not exist in the model library.
[0010] In one embodiment, the above-mentioned obtaining the implementation model corresponding to each subtask from the model library of the model generation system and the external database includes:
[0011] For a subtask, query the model library to see whether there is an implementation model corresponding to the subtask;
[0012] If it exists, extract the implementation model corresponding to the subtask from the model library;
[0013] If it does not exist, query the external database to see whether there is an implementation model corresponding to the subtask, and obtain the implementation model corresponding to the subtask based on the query result.
[0014] The method for obtaining the implementation model corresponding to the subtask provided in the embodiment of the present application is that when the implementation model of the subtask does not exist in the model library, the model generation system automatically connects to the external database and obtains the implementation model of the subtask in the external database, thereby providing another way to obtain the implementation model of the subtask, thereby greatly improving the generation efficiency of the target model when the implementation model of the subtask does not exist in the model library.
[0015] In one embodiment, the method further comprises:
[0016] Display the query page of the external database on the task design interface of the model generation system;
[0017] The above query whether there is an implementation model corresponding to the subtask in the external database includes:
[0018] Based on the query page, query whether the implementation model corresponding to the subtask exists in the external database.
[0019] The task design interface provided in the embodiment of the present application displays the query page of the external database through the task design interface after the model generation system is connected to the external database, and uses the query page as a medium to provide a possibility for the implementation model of querying subtasks in the external database.
[0020] In one embodiment, the obtaining of the implementation model corresponding to the subtask according to the query result includes:
[0021] If the query result indicates that the implementation model corresponding to the subtask exists in the external database, the implementation model corresponding to the subtask is extracted from the external database;
[0022] If the query result indicates that the implementation model corresponding to the subtask does not exist in the external database, then the implementation model corresponding to the subtask is generated.
[0023] The embodiment of the present application provides a model generation method, which provides another way to obtain the implementation model of the subtask when the implementation model of the subtask does not exist in the model library and the external database.
[0024] In one embodiment, the implementation model corresponding to the above-mentioned generation subtask includes:
[0025] An editing interface is displayed on the task design interface of the model generation system; the editing interface is used to obtain the user's editing operation of the initial model corresponding to the subtask;
[0026] In response to the confirmation command triggered by the user in the editing interface, the initial model is trained to obtain the implementation model corresponding to the subtask.
[0027] The embodiment of the present application provides a model generation method, which provides another way to obtain the implementation model of the subtask when the implementation model of the subtask does not exist in the model library and the external database.
[0028] In one embodiment, the above-mentioned generating a target model corresponding to the task to be processed according to the implementation model corresponding to each subtask includes:
[0029] Display the implementation model corresponding to each subtask on the task design interface of the model generation system;
[0030] According to the description of the task to be processed, the implementation models corresponding to each subtask are associated to construct the target model.
[0031] The method for generating a target model provided in an embodiment of the present application associates the implementation models of each subtask based on the relevant description of the task to be processed, thereby providing a possibility for generating a target model.
[0032] In one embodiment, the method further comprises:
[0033] A task list is displayed on the task design interface of the model generation system; the task list includes multiple tasks;
[0034] In response to a selection operation triggered by a user in a task list, the task selected by the selection operation is used as a task to be processed, and a description of the task to be processed is obtained;
[0035] The above decomposes the tasks to be processed into multiple subtasks, including:
[0036] Decompose the task to be processed into multiple subtasks according to the relevant description of the task to be processed.
[0037] The embodiment of the present application provides a method for obtaining tasks to be processed, which selects tasks to be processed in a task design interface based on a selection operation, thereby providing a possibility for obtaining tasks to be processed.
[0038] In a second aspect, the present application further provides a model generation device, which is applied to a model generation system, comprising:
[0039] A decomposition module is used to decompose the task to be processed into multiple subtasks;
[0040] An acquisition module is used to obtain the implementation model corresponding to each subtask from the model library of the model generation system and the external database;
[0041] The generation module is used to generate the target model corresponding to the task to be processed according to the implementation model corresponding to each subtask.
[0042] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0043] Break down pending tasks into multiple subtasks;
[0044] Obtain the implementation model corresponding to each subtask from the model library of the model generation system and the external database;
[0045] Generate the target model corresponding to the task to be processed according to the implementation model corresponding to each subtask.
[0046] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0047] Break down pending tasks into multiple subtasks;
[0048] Obtain the implementation model corresponding to each subtask from the model library of the model generation system and the external database;
[0049] Generate the target model corresponding to the task to be processed according to the implementation model corresponding to each subtask.
[0050] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0051] Break down pending tasks into multiple subtasks;
[0052] Obtain the implementation model corresponding to each subtask from the model library of the model generation system and the external database;
[0053] Generate the target model corresponding to the task to be processed according to the implementation model corresponding to each subtask.
[0054] The above-mentioned model generation method, system, computer device, storage medium and program product, the above-mentioned method provides a model generation system, the model library of the model generation system includes multiple implementation models, when generating the target model corresponding to the task to be processed, the implementation model of each subtask of the task to be processed can be directly obtained from the model library to generate the target model, which greatly improves the model generation efficiency; in addition, the model generation system also has the function of automatically connecting to an external database, that is, when the implementation model of the subtask does not exist in the model library, the model generation system automatically connects to the external database and obtains the implementation model of the subtask in the external database, which provides another way to obtain the implementation model of the subtask, thereby greatly improving the generation efficiency of the target model when the implementation model of the subtask does not exist in the model library. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0056] Figure 1 An application environment diagram of a model generation method in an embodiment;
[0057] Figure 2 A schematic diagram of a flow chart of a model generation method in one embodiment;
[0058] Figure 3 A schematic diagram of a flow chart of a model generation method in another embodiment;
[0059] Figure 4 A schematic diagram of a flow chart of a model generation method in another embodiment;
[0060] Figure 5 A schematic diagram of a flow chart of a model generation method in another embodiment;
[0061] Figure 6 A schematic diagram of a flow chart of a model generation method in another embodiment;
[0062] Figure 7 A schematic diagram of a flow chart of a model generation method in another embodiment;
[0063] Figure 8 A schematic diagram of a flow chart of a model generation method in another embodiment;
[0064] Fig. 9 A schematic diagram of a flow chart of a model generation method in another embodiment;
[0065] FIG. 10 is a structural block diagram of a model generating device in one embodiment. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0067] Large-scale language model (LLM) is a deep learning model trained on massive text data. It can not only generate natural language text, but also deeply understand the meaning of text and handle various natural language tasks, such as text summarization, question answering, translation, etc. Therefore, the research on large-scale language models and their application in the field of artificial intelligence has become a hot topic in global scientific and technological research. However, large-scale language models or other large models have the problem of low generation efficiency due to the complexity of their structure and parameters. This application aims to solve this problem.
[0068] After introducing the background technology of the model generation method provided in the embodiment of the present application, the implementation environment involved in the model generation method provided in the embodiment of the present application will be briefly described below. The model generation method provided in the embodiment of the present application can be applied to Figure 1 In the model generation system shown, the computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the model generation system is used to provide computing and control capabilities. The memory of the model generation system includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the model generation system is used to exchange information between the processor and the external device. The communication interface of the model generation system is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a model generation method is implemented. The display unit of the model generation system is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the model generation system can be a touch layer covering the display screen, or a button, trackball or touchpad set on the shell of the model generation system, or an external keyboard, touchpad or mouse.
[0069] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific terminal may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0070] After introducing the application scenarios of the model generation method provided in the embodiments of the present application, the following focuses on introducing the model generation method described in the present application.
[0071] In one embodiment, Figure 2 As shown, a model generation method is provided, which is applied to Figure 1 The model generation system in is taken as an example to illustrate, which includes the following steps:
[0072] S201, decomposing the task to be processed into multiple subtasks.
[0073] Among them, pending tasks refer to complex and difficult-to-solve tasks, such as competitor analysis tasks, brand positioning analysis tasks, industry analysis tasks, competitive strategy evaluation tasks, product differentiation analysis tasks, and market research tasks.
[0074] Different tasks to be processed have different relevant descriptions. For example, the relevant description of the competitive product analysis task is to conduct an in-depth analysis of competitors' products or services in order to better understand the market conditions, competitive environment and the positioning of one's own products in the market; the relevant description of the brand positioning analysis task is to find unmet market needs based on competitors' brand positioning and plan one's own brand strategy accordingly.
[0075] Among them, the multiple subtasks into which different pending tasks are decomposed can be the same or different. For example, the competitive product analysis task can be decomposed into a crawler task, a summary extraction task, an icon extraction task, a data analysis task, a trend analysis task, and a report generation task. The relevant description of the crawler task refers to being responsible for crawling data and information related to competitive product analysis, the relevant description of the summary extraction task refers to being responsible for extracting the main text content from the crawled data and information, the relevant description of the chart extraction task refers to being responsible for extracting the main chart content from the crawled data and information, the relevant description of the data analysis task refers to performing data analysis on the extracted text content and the extracted text and chart content, the relevant description of the trend analysis task refers to being used to judge future trends, and the relevant description of the report generation task refers to being used to generate a competitive product analysis report based on the data analysis results and trend analysis results.
[0076] In an embodiment of the present application, when it is necessary to train the target model corresponding to the task to be processed, the task to be processed can be first decomposed based on the relevant description of the task to be processed to obtain multiple subtasks. Optionally, the task to be processed can be decomposed into multiple subtasks based on the Chain of Thought (COT) decomposition technology; optionally, the task to be processed can be decomposed into multiple subtasks based on the Tree of Thoughts (TOT) decomposition technology; optionally, the task to be processed can be decomposed into multiple subtasks based on the Graph of Thoughts (GOT) decomposition technology.
[0077] S202: Acquire the implementation model corresponding to each subtask from the model library of the model generation system and the external database.
[0078] The model generation system includes a model library, in which a plurality of implementation models are stored; the external database refers to a database outside the model generation system, for example, an open source database disclosed on the Internet, in which a plurality of implementation models are stored. It should be noted that the model generation system includes a first extension interface, and the platform where the external database is located includes a second extension interface. The first extension interface and the second extension interface are connected correspondingly, so that the model generation system has the function of logging into the external database and obtaining the implementation model of the subtask in the external database.
[0079] In an embodiment of the present application, after the multiple subtasks are acquired as described above, the implementation model corresponding to each subtask is acquired from the model library of the model generation system and the external database in sequence according to the description information of each subtask; optionally, the implementation model of the subtask existing in the model library can be acquired from the model library based on the description information of each subtask, and then the implementation model of the subtask not existing in the model library can be acquired from the external database, thereby obtaining the implementation model of each subtask; optionally, the implementation model of the subtask existing in the external database can be acquired from the external database based on the description information of each subtask, and then the implementation model of the subtask not existing in the external database can be acquired from the model library, thereby obtaining the implementation model of each subtask; optionally, the implementation model of the subtask existing in the external database can be acquired from the external database based on the description information of each subtask, and then the implementation model of the subtask not existing in the external database can be acquired from the model library, thereby obtaining the implementation model of each subtask; optionally, the implementation model corresponding to each subtask can be acquired from both the model library and the external database based on the description information of each subtask, and when the implementation model of the first subtask exists in both the model library and the external database, the implementation model of the first subtask is acquired from the model library.
[0080] S203: Generate a target model corresponding to the task to be processed according to the implementation model corresponding to each subtask.
[0081] In an embodiment of the present application, after the implementation model corresponding to each subtask is obtained as mentioned above, the connection relationship between the subtasks is determined according to the relevant description of the task to be processed, and the implementation models corresponding to the subtasks are connected according to the connection relationship between the subtasks to generate the target model corresponding to the task to be processed.
[0082] The model generation method provided in the embodiment of the present application is applied to the model generation system, decomposes the task to be processed into multiple subtasks, obtains the implementation model corresponding to each subtask from the model library of the model generation system and the external database, and generates the target model corresponding to the task to be processed according to the implementation model corresponding to each subtask. The above method provides a model generation system, the model library of the model generation system includes multiple implementation models, when generating the target model corresponding to the task to be processed, the implementation model of each subtask of the task to be processed can be directly obtained from the model library to generate the target model, which greatly improves the generation efficiency of the model; in addition, the model generation system also has the function of automatically connecting to the external database, that is, when the implementation model of the subtask does not exist in the model library, the model generation system automatically connects to the external database, and obtains the implementation model of the subtask in the external database, which provides another way to obtain the implementation model of the subtask, thereby greatly improving the generation efficiency of the target model when the implementation model of the subtask does not exist in the model library.
[0083] In one embodiment, Figure 2 Based on the embodiment shown, the process of obtaining the implementation model corresponding to each subtask can be described as follows: Figure 3 As shown, the above S202 "obtaining the implementation model corresponding to each subtask from the model library of the model generation system and the external database" includes:
[0084] S301. For a subtask, query whether there is an implementation model corresponding to the subtask in the model library. If so, execute S302; if not, execute S303.
[0085] In an embodiment of the present application, after the multiple subtasks are acquired as described above, for one subtask, the model library is queried whether there is an implementation model corresponding to the subtask according to the relevant description of the subtask; optionally, for one subtask, the implementation model corresponding to the subtask is queried one by one from all the implementation models in the model library according to the relevant description of the subtask, thereby obtaining a query result of whether there is an implementation model corresponding to the subtask in the model library; optionally, a keyword of the subtask-related description is entered in the model library, and after obtaining several implementation models related to the keyword, it is determined from these models whether there is an implementation model corresponding to the subtask.
[0086] S302: Extract the implementation model corresponding to the subtask from the model library.
[0087] In the embodiment of the present application, after it is determined that the implementation model corresponding to the subtask exists in the model library, the implementation model corresponding to the subtask is directly extracted from the model library.
[0088] S303: Query the external database to see whether there is an implementation model corresponding to the subtask, and obtain the implementation model corresponding to the subtask according to the query result.
[0089] The query results include implementation models corresponding to the subtasks that exist in the external database and implementation models corresponding to the subtasks that do not exist in the external database.
[0090] In an embodiment of the present application, after it is determined that there is no implementation model corresponding to the subtask in the model library, the model generation system connects the second extension interface of the external database based on the first extension interface, queries whether there is an implementation model corresponding to the subtask in the external database, and if there is an implementation model corresponding to the subtask in the external database, directly obtains the implementation model corresponding to the subtask from the external database; and if there is no implementation model corresponding to the subtask in the external database, receives the model editing instructions input by the developer and generates the implementation model corresponding to the subtask.
[0091] The method for obtaining the implementation model corresponding to the subtask provided in the embodiment of the present application is that when the implementation model of the subtask does not exist in the model library, the model generation system automatically connects to the external database and obtains the implementation model of the subtask in the external database, thereby providing another way to obtain the implementation model of the subtask, thereby greatly improving the generation efficiency of the target model when the implementation model of the subtask does not exist in the model library.
[0092] In one embodiment, Figure 3 Based on the embodiment shown, Figure 4 As shown, the above method also includes:
[0093] S304. Displaying a query page of the external database on the task design interface of the model generation system.
[0094] In an embodiment of the present application, when it is determined that there is no implementation model corresponding to the subtask in the model library, the first extension interface installed on the model generation system is connected to the second extension interface of the external database, and the query page of the external database is displayed on the task design interface of the model generation system, so that the model generation system can query whether there is an implementation model corresponding to the subtask in the external database on the query page of the external database.
[0095] The above S303 “querying whether there is an implementation model corresponding to the subtask in the external database” includes:
[0096] S303: Based on the query page, query whether there is an implementation model corresponding to the subtask in the external database.
[0097] In an embodiment of the present application, after the query page of the external database is displayed on the task design interface of the model generation system, keywords in the relevant description of the subtask can be entered on the query page so that the external database can query whether there is an implementation model corresponding to the subtask in the external database based on these keywords.
[0098] The task design interface provided in the embodiment of the present application displays the query page of the external database through the task design interface after the model generation system is connected to the external database, and uses the query page as a medium to provide a possibility for the implementation model of querying subtasks in the external database.
[0099] In one embodiment, Figure 4 Based on the embodiment shown, the process of obtaining the implementation model corresponding to the subtask can be described as follows: Figure 5 As shown, the above S303 "According to the query result, obtaining the implementation model corresponding to the subtask" includes:
[0100] S401. If the query result indicates that an implementation model corresponding to the subtask exists in the external database, the implementation model corresponding to the subtask is extracted from the external database.
[0101] In an embodiment of the present application, if the above query result indicates that there is an implementation model corresponding to the subtask in the external database, the implementation model corresponding to the subtask is found from the external database, and the implementation model corresponding to the subtask is directly extracted from the external database.
[0102] S402: If the query result indicates that the implementation model corresponding to the subtask does not exist in the external database, then generate the implementation model corresponding to the subtask.
[0103] In an embodiment of the present application, if the above query result indicates that there is no implementation model corresponding to the subtask in the external database, the designer of the artificial intelligence (AI) task can design the implementation model of the subtask, and upload the relevant description and implementation model of the subtask to the model library of the model generation system, so that the model generation system can obtain the ability to implement the subtask, and then the next time the model generation system is used to generate another target model, and the other target model includes the implementation model of the subtask, the implementation model of the subtask can be directly obtained from the model library, without the need for the designer to regenerate the implementation model of the subtask, thereby improving the generation efficiency of the target model to a certain extent.
[0104] The embodiment of the present application provides a model generation method, which provides another way to obtain the implementation model of the subtask when the implementation model of the subtask does not exist in the model library and the external database.
[0105] In one embodiment, Figure 5 Based on the embodiment shown, the process of generating the implementation model corresponding to the subtask can be described as follows: Figure 6 As shown, the above S402 "generating an implementation model corresponding to the subtask" includes:
[0106] S501. Displaying an editing interface on a task design interface of a model generation system.
[0107] The editing interface is used to obtain the user's editing operation of the initial model corresponding to the subtask.
[0108] In an embodiment of the present application, after the above-mentioned query finds that the implementation model of the subtask does not exist in the external database, and after receiving the editing control triggered by the user on the task design interface in the model generation system, the editing interface is displayed on the task design interface of the model generation system, so that the model generation system can receive the code description corresponding to the implementation model of the subtask edited by the user on the editing interface.
[0109] S502: In response to a confirmation instruction triggered by the user in the editing interface, the initial model is trained to obtain an implementation model corresponding to the subtask.
[0110] In an embodiment of the present application, after the editing interface is displayed on the task design interface of the above-mentioned model generation system, the user can edit the implementation model of the subtask on the editing page, and click the confirmation control of the editing interface after the editing is completed, so that the model generation system responds to the confirmation instruction triggered by the user in the editing interface, trains the initial model corresponding to the user's editing instruction, and thus obtains the implementation model corresponding to the subtask.
[0111] The embodiment of the present application provides a model generation method, which provides another way to obtain the implementation model of the subtask when the implementation model of the subtask does not exist in the model library and the external database.
[0112] In one embodiment, Figure 2-Figure 6 Based on the embodiment shown, the process of generating the target model corresponding to the task to be processed can be described as follows: Figure 7 As shown, the above S203 "generating a target model corresponding to the task to be processed according to the implementation model corresponding to each subtask" includes:
[0113] S601. Displaying the implementation model corresponding to each subtask on the task design interface of the model generation system.
[0114] In an embodiment of the present application, after the implementation model corresponding to each subtask is obtained as described above, and after receiving a user triggering a display control on the task design interface, the implementation model corresponding to each subtask is displayed on the task design interface of the model generation system.
[0115] S602: Associating the implementation models corresponding to the subtasks according to the relevant descriptions of the tasks to be processed, and constructing a target model.
[0116] In an embodiment of the present application, after the implementation model corresponding to each subtask is displayed on the task design interface of the model generation system, the implementation model corresponding to each subtask can be associated according to the relevant description of the task to be processed and the relevant description of each subtask, and the target model can be constructed. For example, the task to be processed is a competitive product analysis task, and the relevant description of the competitive product analysis task is to conduct an in-depth analysis of the competitor's products or services in order to better understand the market conditions, competitive environment and the positioning of its own products in the market. And according to the relevant description of each subtask corresponding to the competitive product analysis task, the implementation models corresponding to the crawler task, summary extraction task, icon extraction task, data analysis task, trend analysis task and report generation task are sequentially associated to obtain the target model.
[0117] The method for generating a target model provided in an embodiment of the present application associates the implementation models of each subtask based on the relevant description of the task to be processed, thereby providing a possibility for generating a target model.
[0118] In one embodiment, Figure 2-Figure 6 Based on the embodiment shown, Figure 8 As shown, the above method also includes:
[0119] S204: Displaying the task list on the task design interface of the model generation system.
[0120] The task list includes multiple tasks.
[0121] In an embodiment of the present application, before generating a target model, the model generation system may be started first, and after the model generation system is started, multiple tasks may be displayed on a task design interface of the model generation system so that the user may select a task to be processed from the multiple tasks.
[0122] S205 . In response to a selection operation triggered by the user in the task list, the task selected by the selection operation is used as a task to be processed, and a relevant description of the task to be processed is obtained.
[0123] In an embodiment of the present application, after multiple tasks are displayed on the task design interface, the user can trigger the selection operation corresponding to the task to be processed on the task design interface, so that the model generation system responds to the selection operation triggered by the user in the task list, and takes the task selected by the selection operation as the task to be processed, and obtains the relevant description of the task to be processed.
[0124] The above S201 “decomposing the task to be processed into multiple subtasks” includes:
[0125] S201. Decompose the task to be processed into multiple subtasks according to the relevant description of the task to be processed.
[0126] In an embodiment of the present application, when it is necessary to train the target model corresponding to the task to be processed, the task to be processed can be first decomposed based on the relevant description of the task to be processed to obtain multiple subtasks. Optionally, the task to be processed can be decomposed into multiple subtasks based on the Chain of Thought (COT) decomposition technology; optionally, the task to be processed can be decomposed into multiple subtasks based on the Tree of Thoughts (TOT) decomposition technology; optionally, the task to be processed can be decomposed into multiple subtasks based on the Graph of Thoughts (GOT) decomposition technology.
[0127] The embodiment of the present application provides a method for obtaining tasks to be processed, which selects tasks to be processed in a task design interface based on a selection operation, thereby providing a possibility for obtaining tasks to be processed.
[0128] In one embodiment, a complete model generation method is also provided, which is applied to a model generation system, such as Fig. 9 As shown, including:
[0129] S10, displaying multiple tasks on the task design interface of the model generation system;
[0130] S11, responding to a selection operation triggered by a user in a task list, taking the task selected by the selection operation as a task to be processed, and obtaining a relevant description of the task to be processed;
[0131] S12, decomposing the task to be processed into multiple subtasks according to the relevant description of the task to be processed;
[0132] S13, for a subtask, query whether there is an implementation model corresponding to the subtask in the model library, if yes, execute S14, if not, execute S15;
[0133] S14, extracting the implementation model corresponding to the subtask from the model library;
[0134] S15, displaying a query page of an external database on a task design interface of a model generation system;
[0135] S16, querying the external database on the query page whether there is an implementation model corresponding to the subtask, if yes, executing S17, if not, executing S18;
[0136] S17, extracting the implementation model corresponding to the subtask from the external database;
[0137] S18, displaying an editing interface on a task design interface of a model generation system;
[0138] S19, responding to the confirmation command triggered by the user in the editing interface, training the initial model to obtain the implementation model corresponding to the subtask;
[0139] S20, displaying the implementation model corresponding to each subtask on the task design interface of the model generation system;
[0140] S21. According to the description of the task to be processed, the implementation models corresponding to each subtask are associated to construct a target model.
[0141] The above method provides a model generation system, and the model library of the model generation system includes multiple implementation models. When generating the target model corresponding to the task to be processed, the implementation models of each subtask of the task to be processed can be directly obtained from the model library to generate the target model, which greatly improves the model generation efficiency; in addition, the model generation system also has the function of automatically connecting to an external database, that is, when the implementation model of the subtask does not exist in the model library, the model generation system automatically connects to the external database and obtains the implementation model of the subtask in the external database, which provides another way to obtain the implementation model of the subtask, thereby greatly improving the generation efficiency of the target model when the implementation model of the subtask does not exist in the model library.
[0142] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0143] Based on the same inventive concept, the embodiment of the present application also provides a model generation device for implementing the model generation method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more model generation device embodiments provided below can refer to the limitations on the model generation method above, and will not be repeated here.
[0144] In an exemplary embodiment, as shown in FIG10 , a model generation device is provided, which is applied to a model generation system, and includes: a decomposition module 10, an acquisition module 11 and a generation module 12, wherein:
[0145] The decomposition module 10 is used to decompose the task to be processed into multiple subtasks.
[0146] The acquisition module 11 is used to acquire the implementation model corresponding to each subtask from the model library of the model generation system and the external database.
[0147] The generation module 12 is used to generate a target model corresponding to the task to be processed according to the implementation model corresponding to each subtask.
[0148] In an exemplary embodiment, the acquisition module 11 includes: a query unit, an extraction unit and an acquisition unit, wherein:
[0149] A query unit is specifically used to query whether there is an implementation model corresponding to a subtask in the model library;
[0150] The extraction unit is specifically used to extract the implementation model corresponding to the subtask from the model library when the implementation model corresponding to the subtask exists in the model library;
[0151] The acquisition unit is specifically used to query whether there is an implementation model corresponding to the subtask in the external database when there is no implementation model corresponding to the subtask in the model library, and acquire the implementation model corresponding to the subtask based on the query result.
[0152] In an exemplary embodiment, the acquisition module 11 further includes: a display unit, specifically configured to display a query page of an external database on a task design interface of the model generation system;
[0153] The query unit is specifically used to query whether there is an implementation model corresponding to the subtask in the external database based on the query page.
[0154] In an exemplary embodiment, the above-mentioned acquisition unit is specifically used to extract the implementation model corresponding to the subtask from the external database if the query result indicates that the implementation model corresponding to the subtask exists in the external database; if the query result indicates that the implementation model corresponding to the subtask does not exist in the external database, generate the implementation model corresponding to the subtask.
[0155] In an exemplary embodiment, the above-mentioned acquisition unit is specifically used to display an editing interface on the task design interface of the model generation system; the editing interface is used to obtain the user's editing operation of the initial model corresponding to the subtask; in response to the confirmation instruction triggered by the user in the editing interface, the initial model is trained to obtain the implementation model corresponding to the subtask.
[0156] In an exemplary embodiment, the above-mentioned generation module includes: a display unit and a construction unit, wherein:
[0157] A display unit, specifically used to display the implementation model corresponding to each subtask on the task design interface of the model generation system;
[0158] The construction unit is specifically used to associate the implementation models corresponding to each subtask according to the relevant description of the task to be processed, and construct a target model.
[0159] In an exemplary embodiment, the above device further includes: a display module and a response module, wherein:
[0160] A display module is used to display a task list on the task design interface of the model generation system; the task list includes multiple tasks;
[0161] The response module is used to respond to the selection operation triggered by the user in the task list, take the task selected by the selection operation as a task to be processed, and obtain the relevant description of the task to be processed.
[0162] The decomposition module 10 is also used to decompose the task to be processed into multiple subtasks according to the relevant description of the task to be processed.
[0163] Each module in the above model generation device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0164] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 1As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, a model generation method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0165] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0166] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0167] Break down pending tasks into multiple subtasks;
[0168] Obtain the implementation model corresponding to each subtask from the model library of the model generation system and the external database;
[0169] Generate the target model corresponding to the task to be processed according to the implementation model corresponding to each subtask.
[0170] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0171] For a subtask, query the model library to see whether there is an implementation model corresponding to the subtask;
[0172] If it exists, extract the implementation model corresponding to the subtask from the model library;
[0173] If it does not exist, query the external database to see whether there is an implementation model corresponding to the subtask, and obtain the implementation model corresponding to the subtask based on the query result.
[0174] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0175] Display the query page of the external database on the task design interface of the model generation system;
[0176] Check whether there is an implementation model corresponding to the subtask in the external database, including:
[0177] Based on the query page, query whether the implementation model corresponding to the subtask exists in the external database.
[0178] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0179] If the query result indicates that the implementation model corresponding to the subtask exists in the external database, the implementation model corresponding to the subtask is extracted from the external database;
[0180] If the query result indicates that the implementation model corresponding to the subtask does not exist in the external database, then the implementation model corresponding to the subtask is generated.
[0181] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0182] An editing interface is displayed on the task design interface of the model generation system; the editing interface is used to obtain the user's editing operation of the initial model corresponding to the subtask;
[0183] In response to the confirmation command triggered by the user in the editing interface, the initial model is trained to obtain the implementation model corresponding to the subtask.
[0184] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0185] Display the implementation model corresponding to each subtask on the task design interface of the model generation system;
[0186] According to the description of the task to be processed, the implementation models corresponding to each subtask are associated to construct the target model.
[0187] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0188] A task list is displayed on the task design interface of the model generation system; the task list includes multiple tasks;
[0189] In response to a selection operation triggered by a user in a task list, the task selected by the selection operation is used as a task to be processed, and a description of the task to be processed is obtained;
[0190] Break down the pending tasks into multiple subtasks, including:
[0191] Decompose the task to be processed into multiple subtasks according to the relevant description of the task to be processed.
[0192] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0193] Break down pending tasks into multiple subtasks;
[0194] Obtain the implementation model corresponding to each subtask from the model library of the model generation system and the external database;
[0195] Generate the target model corresponding to the task to be processed according to the implementation model corresponding to each subtask.
[0196] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0197] For a subtask, query the model library to see whether there is an implementation model corresponding to the subtask;
[0198] If it exists, extract the implementation model corresponding to the subtask from the model library;
[0199] If it does not exist, query the external database to see whether there is an implementation model corresponding to the subtask, and obtain the implementation model corresponding to the subtask based on the query result.
[0200] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0201] Display the query page of the external database on the task design interface of the model generation system;
[0202] Check whether there is an implementation model corresponding to the subtask in the external database, including:
[0203] Based on the query page, query whether the implementation model corresponding to the subtask exists in the external database.
[0204] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0205] If the query result indicates that the implementation model corresponding to the subtask exists in the external database, the implementation model corresponding to the subtask is extracted from the external database;
[0206] If the query result indicates that the implementation model corresponding to the subtask does not exist in the external database, then the implementation model corresponding to the subtask is generated.
[0207] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0208] An editing interface is displayed on the task design interface of the model generation system; the editing interface is used to obtain the user's editing operation of the initial model corresponding to the subtask;
[0209] In response to the confirmation command triggered by the user in the editing interface, the initial model is trained to obtain the implementation model corresponding to the subtask.
[0210] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0211] Display the implementation model corresponding to each subtask on the task design interface of the model generation system;
[0212] According to the description of the task to be processed, the implementation models corresponding to each subtask are associated to construct the target model.
[0213] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0214] A task list is displayed on the task design interface of the model generation system; the task list includes multiple tasks;
[0215] In response to a selection operation triggered by a user in a task list, the task selected by the selection operation is used as a task to be processed, and a description of the task to be processed is obtained;
[0216] Break down the pending tasks into multiple subtasks, including:
[0217] Decompose the task to be processed into multiple subtasks according to the relevant description of the task to be processed.
[0218] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0219] Break down pending tasks into multiple subtasks;
[0220] Obtain the implementation model corresponding to each subtask from the model library of the model generation system and the external database;
[0221] Generate the target model corresponding to the task to be processed according to the implementation model corresponding to each subtask.
[0222] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0223] For a subtask, query the model library to see whether there is an implementation model corresponding to the subtask;
[0224] If it exists, extract the implementation model corresponding to the subtask from the model library;
[0225] If it does not exist, query the external database to see whether there is an implementation model corresponding to the subtask, and obtain the implementation model corresponding to the subtask based on the query result.
[0226] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0227] Display the query page of the external database on the task design interface of the model generation system;
[0228] Check whether there is an implementation model corresponding to the subtask in the external database, including:
[0229] Based on the query page, query whether the implementation model corresponding to the subtask exists in the external database.
[0230] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0231] If the query result indicates that the implementation model corresponding to the subtask exists in the external database, the implementation model corresponding to the subtask is extracted from the external database;
[0232] If the query result indicates that the implementation model corresponding to the subtask does not exist in the external database, then the implementation model corresponding to the subtask is generated.
[0233] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0234] An editing interface is displayed on the task design interface of the model generation system; the editing interface is used to obtain the user's editing operation of the initial model corresponding to the subtask;
[0235] In response to the confirmation command triggered by the user in the editing interface, the initial model is trained to obtain the implementation model corresponding to the subtask.
[0236] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0237] Display the implementation model corresponding to each subtask on the task design interface of the model generation system;
[0238] According to the description of the task to be processed, the implementation models corresponding to each subtask are associated to construct the target model.
[0239] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0240] A task list is displayed on the task design interface of the model generation system; the task list includes multiple tasks;
[0241] In response to a selection operation triggered by a user in a task list, the task selected by the selection operation is used as a task to be processed, and a description of the task to be processed is obtained;
[0242] Break down the pending tasks into multiple subtasks, including:
[0243] Decompose the task to be processed into multiple subtasks according to the relevant description of the task to be processed.
[0244] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0245] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0246] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0247] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A model generation method, characterized in that: The method is applied to a model generation system, and the method comprises: Break down pending tasks into multiple subtasks; Acquire the implementation model corresponding to each of the subtasks from the model library of the model generation system and the external database; Generate a target model corresponding to the task to be processed according to the implementation model corresponding to each of the subtasks.
2. The method according to claim 1, characterized in that The acquiring the implementation model corresponding to each of the subtasks from the model library of the model generation system and the external database includes: For one of the subtasks, querying the model library to see whether there is an implementation model corresponding to the subtask; If it exists, extracting the implementation model corresponding to the subtask from the model library; If not, query the external database to see whether there is an implementation model corresponding to the subtask, and acquire the implementation model corresponding to the subtask according to the query result.
3. The method according to claim 2, characterized in that The method further comprises: Displaying a query page of the external database on a task design interface of the model generation system; The querying whether the external database has an implementation model corresponding to the subtask includes: Based on the query page, the external database is queried whether there is an implementation model corresponding to the subtask.
4. The method according to claim 3, characterized in that The obtaining, according to the query result, an implementation model corresponding to the subtask includes: If the query result indicates that the implementation model corresponding to the subtask exists in the external database, extracting the implementation model corresponding to the subtask from the external database; If the query result indicates that the implementation model corresponding to the subtask does not exist in the external database, then the implementation model corresponding to the subtask is generated.
5. The method according to claim 4, characterized in that The generating the implementation model corresponding to the subtask includes: An editing interface is displayed on the task design interface of the model generation system; the editing interface is used to obtain the user's editing operation of the initial model corresponding to the subtask; In response to a confirmation instruction triggered by the user in the editing interface, the initial model is trained to obtain an implementation model corresponding to the subtask.
6. The method according to any one of claims 1 to 5, characterized in that: Generating the target model corresponding to the task to be processed according to the implementation model corresponding to each of the subtasks includes: Displaying the implementation model corresponding to each of the subtasks on the task design interface of the model generation system; According to the relevant description of the task to be processed, the implementation model corresponding to each subtask is associated to construct the target model.
7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Displaying a task list on the task design interface of the model generation system; the task list includes a plurality of tasks; In response to a selection operation triggered by a user in the task list, the task selected by the selection operation is used as the task to be processed, and a relevant description of the task to be processed is obtained; Decomposing the task to be processed into a plurality of subtasks comprises: Decompose the task to be processed into multiple subtasks according to the relevant description of the task to be processed.
8. A model generation device, characterized in that: Applied to a model generation system, the device comprises: A decomposition module is used to decompose the task to be processed into multiple subtasks; An acquisition module, used for acquiring the implementation model corresponding to each of the subtasks from the model library of the model generation system and an external database; A generation module is used to generate a target model corresponding to the task to be processed according to the implementation model corresponding to each of the subtasks.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
