Task processing model training system and method, and related apparatus
By comprehensively scheduling intelligent agents and other combined intelligent agents, the training process of the task processing model is optimized, solving the problems of unstable training results and low efficiency, and realizing efficient and intelligent task processing model training.
Patent Information
- Application Number
- PCT/CN2026/089199
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-19
- Filing Date
- 2026-04-07
- Publication Date
- 2026-11-26
AI Technical Summary
Existing technologies suffer from unstable training results, low efficiency, difficulty in generating accurate task processing results, and high costs due to reliance on manual configuration by developers, making it difficult for non-developers to efficiently complete model training.
A combined system of integrated scheduling agent, template agent, function scheduling agent, function agent and training agent is adopted. By generating training configuration information, template configuration information and input configuration information, the system can intelligently schedule and adjust prompt templates to optimize the training process.
It significantly reduces the training cost of task processing models, improves training efficiency and effectiveness, and enables non-developers to efficiently train target task processing models and generate prompt templates that meet their needs.
Smart Images

Figure CN2026089199_26112026_PF_FP_ABST
Abstract
Description
Training system, method and related apparatus for task processing model
[0001] Related applications
[0002] This application claims priority to Chinese patent application filed on May 19, 2025, with application number 202510646390.8, entitled “A training system, method and related apparatus for a task processing model”, the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of data processing technology, and in particular to a training system, method and related apparatus for a task processing model. Background Technology
[0004] With the development of large model technology, the processing capabilities of large models can be integrated into task processing scenarios to generate large model applications, enabling more efficient task processing based on these applications.
[0005] When training a large model for task processing, the developers typically configure appropriate prompt templates and training configuration information based on the target task to be processed. Then, based on the training samples, prompt templates, and training configuration information, the pre-set large model is trained to obtain the task processing model.
[0006] Currently, in order to improve the training effect of task processing models, the process of constructing prompt templates is usually improved to generate prompt templates faster.
[0007] However, since the training process of a task processing model involves many steps and relies on configuration by developers, the stability of the training effect cannot be guaranteed. In addition, improvements to a single step are unlikely to bring significant efficiency improvements to the overall training process and cannot guarantee the training effect of the task processing model. This makes it difficult to obtain accurate task processing results when large-scale model applications use internal task processing models for task processing, thus greatly reducing task processing efficiency. Summary of the Invention
[0008] This application provides a training system, method, and related apparatus for a task processing model.
[0009] Firstly, a training system for a task processing model is proposed, comprising a comprehensive scheduling agent, a template agent, a function scheduling agent, various function agents, and a training agent, wherein...
[0010] The integrated scheduling agent is used to generate training configuration information, template configuration information, and at least one input configuration information based on the task description data of the target task; send the at least one input configuration information to the functional scheduling agent, and send the template configuration information to the template agent;
[0011] The function scheduling agent is used to schedule the corresponding function agent using the calling information generated based on each input configuration information, and to obtain the constraint information fed back by the function agent.
[0012] The functional intelligent agent is used to generate constraint information for one constraint dimension based on a call message;
[0013] The template agent is used to generate an initial prompt template based on the template configuration information;
[0014] The integrated scheduling agent is further configured to adjust the initial prompt template sent by the template agent based on at least one constraint information sent by the functional scheduling agent to obtain a target prompt template; and send the target prompt template, the training configuration information, and the sample set of the target task to the training agent.
[0015] The training agent is used to train a pre-set large model based on the target prompt template, the training configuration information, and the sample set, to obtain a task processing model for processing the target task.
[0016] Secondly, a training method for a task processing model is proposed, executed by an electronic device, including:
[0017] Obtain task description data constructed for the target task, as well as a sample set of the target task;
[0018] Based on the task description data, generate training configuration information, template configuration information, and at least one input configuration information;
[0019] An initial prompt template is generated based on the task description data, and constraint information under the corresponding constraint dimension is generated based on at least one input configuration information. The target prompt template is obtained by integrating at least one constraint information and the initial prompt template.
[0020] Based on the target prompt template, the training configuration information, and the sample set, a pre-set large model is trained to obtain a task processing model for processing the target task.
[0021] Thirdly, a training device for a task processing model is proposed, comprising:
[0022] The acquisition unit is used to acquire task description data constructed for the target task, as well as a sample set of the target task;
[0023] The generation unit is used to generate training configuration information, template configuration information, and at least one input configuration information based on the task description data.
[0024] An integration unit is used to generate an initial prompt template based on the task description data, and to generate constraint information under the corresponding constraint dimensions based on at least one input configuration information, and to integrate at least one constraint information and the initial prompt template to obtain a target prompt template.
[0025] The training unit is used to train a pre-set large model based on the target prompt template, the training configuration information, and the sample set, so as to obtain a task processing model for processing the target task.
[0026] Fourthly, an electronic device is proposed, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described method.
[0027] Fifthly, a computer-readable storage medium is proposed, on which a computer program is stored, which, when executed by a processor, implements the above-described method.
[0028] Sixthly, a computer program product is proposed, comprising a computer program that, when executed by a processor, implements the above-described method.
[0029] This application provides a training system, method, and related apparatus for a task processing model. The training system includes a comprehensive scheduling agent, a template agent, a function scheduling agent, various function agents, and a training agent. In this system, the comprehensive scheduling agent generates corresponding configuration information for the prompt template generation and model training stages, enabling intelligent configuration of each stage of the trained task processing model. Furthermore, through the cooperation of the comprehensive scheduling agent, template agent, function scheduling agent, function agents, and training agent, intelligent decision-making and judgment are made at each stage of the trained task processing model. This significantly reduces the training cost, improves training efficiency and effectiveness, and allows non-developers to efficiently train the task processing model for the target task, thereby obtaining a target prompt template and task processing model that meet the requirements of the target task. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the published drawings without creative effort.
[0031] Figure 1 is a possible system architecture diagram of the training system for the task processing model in the embodiments of this application;
[0032] Figure 2 is a schematic diagram of possible application scenarios in the embodiments of this application;
[0033] Figure 3 is a schematic diagram of the interaction process of each agent in the training system of the task processing model in the embodiment of this application;
[0034] Figure 4 is a schematic diagram of the page when entering task description data for categorized tasks in an embodiment of this application.
[0035] Figure 5 is a schematic diagram of the page when entering task description data for a regression task in an embodiment of this application;
[0036] Figure 6 is a schematic diagram of the page when entering task description data for categorized tasks in an embodiment of this application;
[0037] Figure 7 is a schematic diagram of the process of selecting a task dataset in an embodiment of this application;
[0038] Figure 8 is a schematic diagram of the interaction process during data preprocessing in an embodiment of this application;
[0039] Figure 9 is a schematic diagram of the function call of the function scheduling agent at different stages in the embodiments of this application;
[0040] Figure 10 is a possible scheduling diagram of the functional scheduling agent in the embodiments of this application;
[0041] Figure 11 is a schematic diagram of the writing framework of the prompt template in the embodiment of this application;
[0042] Figure 12 is a schematic diagram of the internal functions of the template agent in an embodiment of this application;
[0043] Figure 13 is a schematic diagram of the generation of the initial prompt template in an embodiment of this application;
[0044] Figure 14 is a schematic diagram of some scheduling results of the integrated scheduling agent configuration in the embodiments of this application;
[0045] Figure 15 is a functional diagram of each responsibility layer in the template agent in the embodiment of this application;
[0046] Figure 16 is a flowchart illustrating the training method of the task processing model in an embodiment of this application;
[0047] Figure 17 is a schematic diagram of the possible composition of the training system in an embodiment of this application;
[0048] Figure 18 is a schematic diagram of the task description data constructed for the write operation use case missing check task in an embodiment of this application;
[0049] Figure 19 is a schematic diagram of the task description data constructed for the missing process kill test case check task in the embodiments of this application;
[0050] Figure 20 is a flowchart illustrating the task processing model trained in an embodiment of this application;
[0051] Figure 21 is a schematic diagram of the logical structure of the training device for the task processing model in an embodiment of this application;
[0052] Figure 22 is a schematic diagram of the structure of a server provided by an exemplary embodiment of this application;
[0053] Figure 23 is a schematic diagram of the hardware composition structure of an electronic device using an embodiment of this application. Detailed Implementation
[0054] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments of this application. Obviously, the described embodiments are only some embodiments of the technical solutions of this application, and not all embodiments. Based on the embodiments recorded in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the technical solutions of this application.
[0055] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in sequences other than those illustrated or described herein.
[0056] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0057] The following explanations of some terms used in the embodiments of this application are provided to facilitate understanding by those skilled in the art.
[0058] An intelligent agent is an entity capable of autonomously perceiving its environment, making decisions, and executing corresponding actions to achieve a specific task. It can be pure software or a combination of software and hardware, capable of decision-making, planning, execution, and result feedback. In the embodiments of this application, the intelligent agent involved can rely on a large model for decision-making. The training system of this application includes intelligent agents implementing various functions, such as a comprehensive scheduling agent, a template agent, a function scheduling agent, and a training agent.
[0059] Large models, also known as large language models (LLMs), are ultra-large deep learning models that are pre-trained on a large amount of data.
[0060] Large-scale model application refers to the product or service obtained by combining the processing capabilities of a large model with specific application scenarios. The essence of large-scale model application depends on both the core capabilities of the large model (i.e., the internal task processing model) and the design and implementation of the application layer. The two are complementary.
[0061] Task description data: This data describes the target task that the task processing model needs to handle. Task description data typically includes: basic description information of the target task, as well as input and output description information. For example, basic description information describes fundamental information related to the target task, including, but not limited to, any one or a combination of the following: task name, task type, and task processing example. Input description information describes the content input to the model, including, but not limited to, any one or a combination of the following: descriptive text and content examples. Output description information describes the content output by the model, including, but not limited to, any one or a combination of the following: result name, result definition, and result example.
[0062] The design concept of the embodiments of this application is briefly introduced below:
[0063] Large model technology has been gaining popularity since its inception, attracting widespread attention across various industries. As the fundamental capabilities of large models continue to improve, more and more developers are turning their attention to the development of model applications, attempting to integrate model capabilities into specific application scenarios and enable large models to function at the application layer. However, a significant gap remains between model capabilities and application effectiveness, resulting in high costs for the development of large model applications. Furthermore, optimizing the effects of large model applications is difficult and presents a high technical barrier, making it challenging for non-developers to complete the development of large model applications. This significantly hinders the development of large model applications.
[0064] When training a large model for task processing, the developers typically configure appropriate prompt templates and training configuration information based on the target task to be processed. Then, based on the training samples, prompt templates, and training configuration information, the pre-set large model is trained to obtain the task processing model.
[0065] Currently, in order to improve the training effect of task processing models, single-step automation tools are usually used to assist developers in automating certain steps of model training; specifically, they assist developers in writing or modifying prompt templates.
[0066] However, while automation tools for a single stage can improve the efficiency of that stage, model training is a complex and systematic process involving numerous steps. Developers need a holistic and unified understanding to make decisions and schedules, thus compromising the stability of the training process. Furthermore, improving the efficiency of a single stage does not lead to significant cost reductions, making it difficult to improve the overall training efficiency and guarantee the training effect of the task processing model. This makes it difficult to obtain accurate task processing results when large-scale applications use internal task processing models, significantly reducing task processing efficiency.
[0067] In view of this, this application proposes a training system, method, and related apparatus for a task processing model. The training system includes a comprehensive scheduling agent, a template agent, a functional scheduling agent, various functional agents, and a training agent. The comprehensive scheduling agent generates training configuration information, template configuration information, and at least one input configuration information based on the task description data of the target task; it sends at least one input configuration information to the functional scheduling agent and template configuration information to the template agent. The functional scheduling agent schedules the corresponding functional agents using the calling information generated based on each input configuration information. Obtain constraint information from the functional agent; the functional agent generates constraint information for one constraint dimension based on a call message; the template agent generates an initial prompt template based on template configuration information; the comprehensive scheduling agent adjusts the initial prompt template sent by the template agent based on at least one constraint message sent by the functional scheduling agent to obtain the target prompt template; the target prompt template, training configuration information, and a sample set of the target task are sent to the training agent; the training agent trains a pre-defined large model based on the target prompt template, training configuration information, and sample set to obtain a task processing model for handling the target task.
[0068] Thus, in the training system proposed in this application, the integrated scheduling agent can generate corresponding configuration information for the prompt template generation stage and the model training stage during the model training process, enabling intelligent configuration of each stage of the trained task processing model. Moreover, through the cooperation between the integrated scheduling agent, template agent, function scheduling agent, function agent, and training agent, intelligent decision-making and judgment can be made at each stage of the trained task processing model, thereby significantly reducing the training cost of the task processing model, improving the training efficiency and training effect, and enabling non-developers to efficiently complete the training of the task processing model for the target task to be implemented, thereby obtaining the target prompt template and task processing model that meet the requirements of the target task processing.
[0069] The preferred embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are for illustration and explanation only and are not intended to limit this application. Furthermore, the embodiments and features in the embodiments of this application can be combined with each other without conflict.
[0070] Referring to Figure 1, which is a possible system architecture diagram of the training system of the task processing model in the embodiments of this application, in feasible embodiments of this application, the training system 100 of the task processing model includes: a comprehensive scheduling agent 110, a template agent 120, a function scheduling agent 130, a function agent 140, and a training agent 150.
[0071] In some feasible embodiments, the integrated scheduling agent 110 is used to determine training configuration information and at least one input configuration information based on task description data constructed for the target task; send at least one input configuration information to the functional scheduling agent 130 to obtain at least one constraint information, and send template configuration information generated based on the task description data to the template agent 120 to obtain an initial prompt template; the template agent 120 is used to generate an initial prompt template based on the template configuration information; the functional scheduling agent 130 schedules the corresponding functional agents using the call information generated based on each input configuration information to obtain the feedback constraint information; the functional agent 140 is used to generate constraint information under a constraint dimension based on the obtained call information; the integrated scheduling agent 110 is also used to adjust the initial prompt template based on at least one constraint information to obtain the target prompt template, and then send the target prompt template, training configuration information, and a sample set associated with the target task to the training agent 150; the training agent 150 is used to train a preset large model based on the target prompt template, training configuration information, and sample set to obtain a task processing model for processing the target task.
[0072] In some feasible embodiments, each agent in the training system provided in this application may specifically run on at least one device, wherein the device type running each agent may be any one or a combination of a terminal or a server.
[0073] For example, taking the deployment of agents in the training system on servers as an example, the comprehensive scheduling agent 110, template agent 120, function scheduling agent 130, function agent 140, and training agent 150 may be deployed on different servers; or, the comprehensive scheduling agent 110, template agent 120, function scheduling agent 130, function agent 140, and training agent 150 may be deployed on the same server; or, depending on the actual processing needs, some agents may be deployed on the same server, or some agents may be deployed independently on different servers.
[0074] Terminals include, but are not limited to, smartphones, tablets, desktop computers, laptops, e-book readers, smart voice interaction devices, smart home appliances, and in-vehicle terminals.
[0075] A server can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0076] Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or local area network to achieve data computing, storage, processing, and sharing.
[0077] Referring to Figure 2, which is a schematic diagram of a possible application scenario in an embodiment of this application, the schematic diagram includes a client device 200 and a training system 100.
[0078] In feasible embodiments of this application, the training system 100 can acquire task description data and sample sets constructed by the client device 200 for the target task, and then generate training configuration information, template configuration information and at least one input configuration information based on the task description data; furthermore, the training system 100 generates an initial prompt template based on the task description data, and generates constraint information under the corresponding constraint dimensions based on at least one input configuration information, and integrates at least one constraint information and the initial prompt template to obtain a target prompt template; then, the training system 100 trains a preset large model based on the target prompt template, training configuration information and sample sets to obtain a task processing model for processing the target task.
[0079] In other feasible embodiments of this application, after the training system 100 completes the training of the task processing model, it can build and deploy a large model application based on the task processing model and in conjunction with auxiliary functions. Furthermore, after receiving business text sent from the client device 200 to the large model application by the business object, the large model application obtains the task processing result matching the business object based on the business text, and sends the task processing result to the client device 200. When the client device 200 displays the task processing result to the business object, the task processing result is readable by the business object on the client device 200. Specifically, the business object can be a user who requests the large model application to perform task processing after the large model application has been developed.
[0080] Client devices 200 include, but are not limited to, smartphones, tablets, desktop computers, laptops, e-book readers, smart voice interaction devices, smart home appliances, and in-vehicle terminals.
[0081] In this embodiment, the client device 200 and the training system 100 of the task processing model can communicate via a wired network or a wireless network. The following description focuses only on the composition and interaction of the training system 100.
[0082] The following provides an illustrative illustration of possible application scenarios for training systems for task processing models:
[0083] Application Scenario 1: Generate task processing models capable of performing task processing in various task processing scenarios.
[0084] Specifically, the target audience can determine the target tasks to be processed based on actual business processing needs, and construct task description data and sample sets for the target tasks; among them, the target audience can be developers, or personnel without development experience.
[0085] Furthermore, the integrated scheduling agent in the training system generates training configuration information, template configuration information, and at least one input configuration information based on the task description data. This enables the integrated scheduling agent to integrate at least one constraint information and the initial prompt template generated by the template agent based on the template configuration information to obtain the target prompt template after the functional scheduling agent schedules at least one corresponding functional agent based on at least one input configuration information and obtains constraint information under at least one constraint dimension.
[0086] Furthermore, the training agent in the training system can train a pre-set large model based on the target prompt template, training configuration information, and sample set, to obtain a task processing model that can handle the target task, so that the target object can call the task processing model to perform task processing.
[0087] Application Scenario 2: In the development scenario of large model applications, generate the task processing model on which the large model application relies.
[0088] Specifically, when the target object needs to develop a large model application to handle the target task, the target object can determine the target task to be handled according to the actual business processing needs, and build task description data and sample sets for the target task; where the target object can be a developer, or it can be a person without development experience.
[0089] Furthermore, the integrated scheduling agent in the training system generates training configuration information, template configuration information, and at least one input configuration information based on the task description data. This enables the integrated scheduling agent to integrate at least one constraint information and the initial prompt template generated by the template agent based on the template configuration information to obtain the target prompt template after the functional scheduling agent schedules at least one corresponding functional agent based on at least one input configuration information and obtains constraint information under at least one constraint dimension.
[0090] Furthermore, the training agent in the training system can train a pre-set large model based on the target prompt template, training configuration information, and sample set, thereby obtaining a task processing model capable of handling the target task.
[0091] After the task processing model is developed, application layer functions such as web page input can be customized according to the processing needs of the target object, based on the task processing model, and finally integrated to obtain a large model application; furthermore, in a feasible implementation, it can be opened to the enterprise or group to which the target object belongs, so as to achieve targeted processing of the target task.
[0092] Furthermore, all information, data (including but not limited to data used for analysis, stored data, and displayed data), and signals involved in this application are authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant regions. For example, user requests and operational data involved in this application were obtained with full authorization.
[0093] The interaction process between the agents in the training system of the task processing model is explained below with reference to the accompanying diagram:
[0094] Referring to Figure 3, which is a schematic diagram of the interaction process of various agents in the training system of the task processing model in this embodiment of the application, the following is a detailed description with reference to Figure 3:
[0095] Step 301: The integrated scheduling agent generates training configuration information, template configuration information, and at least one input configuration information based on the task description data of the target task.
[0096] Among them, the integrated scheduling agent in the training system of the task processing model (hereinafter referred to as the training system) schedules other agents to cooperate in the training process of the task processing model.
[0097] It should be understood that, in the embodiments of this application, for each other intelligent agent included in the training system, each other intelligent agent is directly or indirectly scheduled by the integrated scheduling intelligent agent. Moreover, the integrated scheduling intelligent agent can generate configuration information for other directly scheduled intelligent agents and undertake the function of data transmission between the other directly scheduled intelligent agents.
[0098] Specifically, the integrated scheduling agent can generate at least one input configuration information for the functional scheduling agent, training configuration information for the training agent, and template configuration information for the template agent, based on the task description data of the target task.
[0099] Among them, one input configuration information is used to indicate the information on which the function scheduling agent schedules a function agent, so that the function scheduling agent can obtain the constraint information under a constraint dimension fed back by the function agent; the training configuration information is used to indicate the parameters on which the training process is based; and the template configuration information is used to indicate the information on which the prompt template is based.
[0100] Input configuration information is a set of information generated by the comprehensive scheduling agent for the functional scheduling agent based on the task description data of the target task. It serves as the basis for the functional scheduling agent to schedule functional agents, and includes the functional scheduling agent's state information, constraints on the functional agents, and input content for the functional agents. The purpose is to enable the functional agents to generate constraint information for adjusting the prompt templates and optimize the prompt templates from different constraint dimensions.
[0101] Training configuration information is a set of parameters defined for the training agent based on task description data of the target task. It clarifies the model information used in the training process, the model's hyperparameters, and key parameters such as the number of training epochs, batch size, and training duration. It provides specific guidance and constraints for training large-scale pre-set models, ensuring the effectiveness and standardization of the training process.
[0102] Template configuration information is generated by the integrated scheduling agent for the template agent based on the task description data of the target task. It includes descriptive information based on the task description data and configuration parameters for the template agent, providing specific requirements and guidance for the template agent to generate initial prompt templates, ensuring that the generated prompt templates meet the processing needs of the target task.
[0103] Constraint information is information generated by the functional agent after processing the invocation information sent by the functional scheduling agent, reflecting specific constraint dimensions. It adds constraints to the prompt template of the task processing model from different perspectives, improving the accuracy, controllability, and stability of the model in handling the target task by introducing additional knowledge, rules, or conditions.
[0104] Regarding the input configuration information, different input configuration information includes different information content depending on the functional agent to be invoked. In feasible embodiments, an input configuration information may include at least one or a combination of the following: state information determined for the functional scheduling agent (denoted as current_state), constraint information determined for the functional agent (denoted as task_requirements), and input content configured for the functional agent.
[0105] The input content can be the retrieval basis extracted from the task description data of the target task; in feasible embodiments, the state information may include: the current model version (denoted as model_version), the current callable functions (denoted as available_abilities), and the current performance quantification metrics (denoted as performance_metrics), wherein the performance quantification metrics include, but are not limited to, accuracy (denoted as accuracy) and response time (denoted as response_time); the constraint information (denoted as task_requirements) may include: the functional identification information of the functional agent, and the capability requirements for the functional agent.
[0106] For example, an input configuration might be: "current_state":{"model_version":"v1","available_abilities":["RaG (Retrieval Enhancement Generation)","CoT (Coarse Thought Chain Statement Generation)","formator (Formatting Processing)"],"performance_metrics":{"accuracy":0.92","response_time":1.2}},"task_requirements":{"required_abilities":["RaG"],"performance_metrics":{"accuracy":0.95}}.
[0107] In feasible embodiments, the training configuration information includes selected model information and related parameters of the model (denoted as hyperparameters). Specifically, the training configuration information includes, but is not limited to, at least one or a combination of the following information: total number of training epochs, number of training batches (denoted as batch_size), model information of the large model to be trained (denoted as base_model), various hyperparameters configured for the large model to be trained, and training time.
[0108] For example, the training configuration information is as follows: {"base_model":"chatglm3-6b","hyperparameters":{"learning rate(learning_rate)":2e-5,"batch_size":32,"epochs":5}}.
[0109] For template configuration information, it may include descriptive information generated based on task description data, as well as configuration parameters determined for the template agent.
[0110] For example, the description information (denoted as task_context) includes any one or a combination of the following: task type, task objectives, and sample data. The configuration parameters (denoted as constraints) determined for the template agent include, but are limited to, any one or a combination of the following: length limit and style requirements.
[0111] For example, template configuration information could be {"task_context":{"task_type":"text classification","objectives":["distinguish comment sentiment"],"sample_data":[{"input":"fast logistics and beautiful packaging","output":"positive"},{"input":"product defective and poor customer service attitude","output":"negative"}]},"constraints":{"length_limit":500,"style_requirements":["use explicit imperative language"]}}.
[0112] It should be noted that, in the embodiments of this application, the task description data of the target task may be obtained in advance before the processing of the training system, or it may be obtained during the processing of the training system in this application; this application does not impose specific limitations on this. The task description data may be obtained through a page, or it may be received directly; this application does not impose specific limitations on this. It should be understood that the training system proposed in this application can achieve the training and generation of task processing models for various target tasks.
[0113] In feasible embodiments of this application, the data entered by the target object can be used as task description data. The entered data can be entered into a webpage or a document, and the document can be obtained through a document upload page to obtain the task description data. Based on this, in order to obtain the task description data of the target task, the training system also includes an input control component. Thus, the training system can obtain the task description data configured for the target object by means of the input control component.
[0114] Taking the input of task description data into a webpage as an example, the input control component is used to: respond to the task setting request of the target object and present an initial setting page to the target object; after the target object completes the input of basic description information and input description information for the target task in the initial setting page, present an output content setting page that matches the target task to the target object, and obtain the output description information entered by the target object for the target task in the output content setting page; and send the basic description information, input description information and output description information as the task description data of the target task to the integrated scheduling agent.
[0115] The target object can be a user with a need for training a task processing model, or it can be a developer of the training system. In feasible embodiments, the basic description information includes the task type, task name, and task description. The output content setting page that matches the target task specifically refers to the output content setting page that matches the task type of the target task. Different types of tasks correspond to different output content setting pages. The selectable task types may include: classification tasks, generation tasks, clustering tasks, regression tasks, information extraction tasks, text summarization tasks, question answering tasks, and keyword extraction tasks, etc. This application does not impose specific restrictions on these.
[0116] It should be understood that, in order to assist the target object in information entry, different content entry templates can be defined for different types of target tasks, and the content entry templates can be displayed on the initial settings page and the output content settings page.
[0117] It should be noted that the output content settings page can be automatically triggered after all content is entered in the initial settings page; or, it can be triggered by the target object after all content is entered. The target object can trigger the output content settings page by pressing a specified key, such as the Enter key, after completing the input.
[0118] For example, referring to Figure 4, which is a schematic diagram of the page when entering task description data for a classification task in an embodiment of this application, as shown in Figure 4, when obtaining the task description data of a classification task, the initial setting page in Figure 4 can be presented to the target object first. Then, when the target object selects a classification task on the initial setting page and completes the entry of the basic information part (i.e., the corresponding basic description information) and the input information part (i.e., the corresponding input description information), the output content setting page shown in Figure 4 is displayed to the target object, so that after the target object completes the information entry on the output content setting page, it can obtain the output description information configured by the target object.
[0119] For example, referring to Figure 5, which is a schematic diagram of the page when entering task description data for a regression task in an embodiment of this application, as shown in Figure 5, when obtaining the task description data of the regression task, the initial settings page in Figure 5 can be presented to the target object first. Then, when the target object selects the regression task on the initial settings page and completes the entry of the basic information part (i.e., the corresponding basic description information) and the input information part (i.e., the corresponding input description information), the output content settings page shown in Figure 5 is displayed to the target object, so that after the target object completes the information entry on the output content settings page, it can obtain the output description information configured by the target object.
[0120] For example, referring to Figure 6, which is a schematic diagram of the page when entering task description data for generating a task in an embodiment of this application, as shown in Figure 6, when obtaining the task description data for generating a task, the initial settings page in Figure 6 can be presented to the target object first. Then, when the target object selects to generate a task on the initial settings page and completes the entry of the basic information part (i.e., the corresponding basic description information) and the input information part (i.e., the corresponding input description information), the output content settings page shown in Figure 6 is displayed to the target object, so that after the target object completes the information entry on the output content settings page, it can obtain the output description information configured by the target object.
[0121] In this way, based on the information entered by the target object, the definition of the target task can be obtained, thereby determining the target object's processing requirements for the target task; moreover, with the help of the initial settings page and the input content settings pages for various task types, corresponding content definition templates can be provided for each task type, thereby obtaining the task description data defined by the target object.
[0122] In the embodiments of this application, for the sample set used when training the task processing model, in some feasible embodiments, it can be the target object directly uploaded; in other feasible embodiments, it can be the target object labeled with the assistance of the data labeling model, wherein a sample includes a sample input text and a sample output text.
[0123] When labeling the sample output text using a data labeling model, the input control component in the training system can also be used to obtain the sample input text in response to the sample set generation instruction triggered by the target object; then, using a preset data labeling model, the corresponding initial output text is generated based on each sample input text, and each initial output text is adjusted in response to the target object's adjustment instruction for each initial output text to obtain the sample output text; finally, the sample set constructed based on each sample input text and each sample output text is sent to the integrated scheduling agent.
[0124] The data annotation model can be a selected large model used to implement data annotation. The selected large model can be the large model used to train the task processing model, or it can be an additional large model. Obviously, due to the limitations of the annotation effect of the data annotation model, the initial output text obtained by the selected large model based on the sample input text may not be fully adapted to the output requirements of the target task. In this way, the input control component can correct each initial output text according to the adjustment instructions of the target object to obtain the corresponding sample output text.
[0125] In some feasible embodiments of the input control component acquiring each sample input text, the input control component can directly acquire each sample input text sent by the target object.
[0126] Specifically, the input control component can directly receive sample input texts sent by the target object through the network interface. During the receiving process, the input control component will perform an integrity check on the data. If the data is complete, it will be stored in the local cache; if it is incomplete, a resend request will be sent to the target object.
[0127] In other feasible embodiments where the input control component acquires each sample input text, the input control component is also used to acquire the storage location of the target document; and to send a data reading instruction containing the storage location to a plug-in scheduling agent through a comprehensive scheduling agent; the plug-in scheduling agent in the training system is also used to use a matching document reading plug-in to read each sample input text in the target document based on the storage location in the data reading instruction, and to send each sample input text to the input control component through the comprehensive scheduling agent.
[0128] Specifically, the input control component can obtain the storage location of the target document entered by the target object by displaying a data entry page to the target object; then, it sends a data reading instruction containing the storage location to the plug-in scheduling agent through the integrated scheduling agent. Upon receiving the data reading instruction, the plug-in scheduling agent determines a document reading plug-in capable of reading the target document from a pre-configured list of document reading plug-ins based on the document format of the target document, calls that plug-in to read each sample input text from the target document based on the storage location in the data reading instruction, and then sends each sample input text to the input control component through the integrated scheduling agent. In some feasible embodiments where the input control component obtains each sample input text, the input control component presents a task dataset selection page to the target object, displaying a list of selectable task datasets containing information such as the name, description, and number of samples of each task dataset. Based on the target object's trigger instruction, further detailed information about the selected task dataset is displayed, and each input data contained in the task dataset selected by the target object is used as each sample input text.
[0129] The storage location of the target document can be either entered by the target object or determined by the input control component after it obtains and stores the target document uploaded by the target object. In a feasible embodiment, when obtaining the storage location entered by the target object or the target file uploaded by the target object, the input control component can display a data entry page to the target object to obtain the target file or its storage location.
[0130] It should be understood that, in the embodiments of this application, the plug-in scheduling agent in the training system is used to call external plug-ins according to the instructions of the comprehensive scheduling agent at various stages in the process of training the task processing model. The functions that the plug-in scheduling agent can achieve by calling the plug-ins include data acquisition and format conversion. In addition, the called plug-ins are independent of the model training process, which enables the training system to provide additional capabilities.
[0131] When the input control component acquires the target document entered by the target object, it can present a data entry page to the target object, enabling the target object to upload the target document on the data entry page. The plugin scheduling agent uses a matching document reading plugin. When reading each sample input text in the target document, the plugin scheduling agent can determine the document reading plugin that can read the target document based on the document format of the target document.
[0132] In this way, by using a plug-in scheduling agent, it is possible to effectively read sample input text for target documents of various formats.
[0133] In some feasible embodiments of the input control component acquiring sample input text, the input control component may provide the target object with selectable task datasets and acquire the sample input text contained in the task dataset selected by the target object. A task dataset may include: sample input texts that the target object or other objects associated with the target object have uploaded for a task; or, sample input texts that the target object or other objects associated with the target object have uploaded for a task.
[0134] Specifically, the input control component can present a task dataset selection page for the target object, and display the selectable task datasets according to the target object's trigger instructions, and use the input data contained in the task dataset selected by the target object as the sample input text.
[0135] For example, referring to Figure 7, which is a schematic diagram of the process of selecting a task dataset in an embodiment of this application, as shown in Figure 7, the input control component can display the task dataset selection page to the target object, and in response to the "click to upload" instruction triggered by the target object, present the task dataset display page to the target object; furthermore, assuming that the task dataset is a dataset of classification tasks, the input control component can use the classification data contained in the task dataset selected by the target object as the input text of each sample.
[0136] Furthermore, after obtaining the input text of each sample, the input control component can use a preset data annotation model to perform coarse annotation processing on each sample input text to obtain each initial output text. Then, according to the adjustment instruction triggered by the target object, the initial output text is adjusted to obtain each sample output text.
[0137] Specifically, the input control component can respond to the annotation instruction triggered by the target object, first use the selected data annotation model to obtain the initial output text after coarse annotation of each sample input text, and display the coarsely annotated initial output text to the target object, and then respond to the adjustment instruction triggered by the target object for the initial output text to adjust the coarsely annotated initial output text to obtain the sample output text, and finally construct the corresponding sample set.
[0138] Specifically, when the input text of each sample is obtained by selecting a task dataset, and the selected task dataset includes each sample, the input control component can directly correct the output text of each sample in response to the annotation instruction triggered by the target object for the task dataset, and obtain the corresponding output text of the sample; then, the processed task dataset is used as the sample set.
[0139] It should be noted that when constructing the sample set, since the sample set can be used in the training, testing, and tuning of the model, the constructed sample set should, as far as possible, cover the task hypothesis space of the target task (or cover various processing situations under the target task) to obtain better model training results. Typically, a sample set includes one sample input text and one sample output text to indicate the input and output content of the large model to be trained.
[0140] In this way, by using the selected data annotation model, the target object can be assisted in generating the annotation text of the sample output more quickly during the sample set generation process, thereby improving the efficiency of sample set construction.
[0141] Furthermore, after the integrated scheduling agent obtains the task description data and sample set, in some feasible embodiments, if the task description data and sample set meet the training requirements, the functional agent can be invoked to perform preprocessing operations; in other feasible embodiments, preprocessing instructions can be triggered directly for part or all of the content in the task description data and sample set, thereby obtaining preprocessed task description data and sample set; wherein, the task description data includes the basic description information, input description information, and output description information; the sample set includes the input text of each sample and the output text of each sample.
[0142] Referring to Figure 8, which is a schematic diagram of the interaction process during data preprocessing in an embodiment of this application, the following detailed description of the interactions involved when preprocessing is required will be provided in conjunction with Figure 8:
[0143] Step 801: The integrated scheduling agent generates at least one preprocessing instruction based on the initial data; the initial data includes basic description information, input description information, output description information, input text of each sample, and content of at least one type in the output text of each sample.
[0144] In this embodiment of the application, the initial data is a collective term for task description data and sample set content. The task description data includes basic description information, input description information, and output description information; the sample set includes the input text of each sample and the output text of each sample.
[0145] A preprocessing instruction is a command generated by the integrated scheduling agent based on the characteristics of the initial data and the requirements of model training. It instructs the functional scheduling agent to call the corresponding functional agent to preprocess the initial data. Preprocessing dimensions include data parsing, data formatting, and data cleaning, with the aim of ensuring the initial data meets the requirements of model training and improving the effectiveness and efficiency of model training. A preprocessing instruction directs the functional scheduling agent to call a functional agent that implements data preprocessing functions to perform one preprocessing dimension of processing on the initial data.
[0146] The integrated scheduling agent generates at least one preprocessing instruction based on the initial data in the following manner: Let the initial data be D, which includes basic descriptive information D. base Input description information D input Output description information D output Input text D for each sample sample_input and the output text D of each sample sample_outputThe integrated scheduling agent first analyzes the characteristics of the initial data, such as data format, content complexity, and data volume. If the data format does not meet the model training requirements, it generates a data formatting preprocessing instruction; if outliers or noise exist in the data, it generates a data cleaning preprocessing instruction; if the data content is complex and requires text understanding and analysis, it generates a data parsing preprocessing instruction. For example, if the initial data contains multimodal data or large blocks of text, the integrated scheduling agent generates a data parsing preprocessing instruction, instructing the functional scheduling agent to call the functional agent that implements the data parsing function to process the data. The specific preprocessing instruction can be represented as PI = {PI1, PI2, ..., PI...} n}, where PI i This represents the i-th preprocessing instruction, where n is the number of preprocessing instructions. Each preprocessing instruction contains preprocessing dimension information, such as data parsing, data formatting, and data cleaning.
[0147] Step 802: The integrated scheduling agent sends at least one preprocessing instruction and initial data to the functional scheduling agent.
[0148] Step 803: The functional scheduling agent schedules the corresponding functional agent based on each preprocessing instruction to process the current initial data and obtain the processed initial data.
[0149] It should be understood that when there is at least one preprocessing instruction for the initial data, the initial data needs to be processed step by step in at least one corresponding preprocessing dimension.
[0150] During a processing step, the functional scheduling agent schedules the corresponding functional agent based on a preprocessing instruction to process the current initial data and obtain the processed initial data.
[0151] The function of the functional agent in the training system will be explained below:
[0152] In this embodiment, to ensure the training effect of the task processing model and improve the scalability of the training system, enabling the training of corresponding task processing models for various tasks, the functional scheduling agent in the training system can plan, schedule, and instruct the execution of various capabilities required during model training. Furthermore, in feasible embodiments, functional agents implementing specific functions can be customized according to actual training needs. Therefore, the training system in this application possesses very high scalability, enabling it to adapt to the training needs of various types of tasks.
[0153] In summary, the functional scheduling agent in the training system can play a role in the pre-processing stage before training execution, the model inference stage, and the post-processing stage after model inference is completed by calling the functional agents.
[0154] Referring to Figure 9, which is a schematic diagram of the function call of the function scheduling agent at different stages in the embodiments of this application, as shown in Figure 9, in the preprocessing stage before training execution, the types of capabilities that the function scheduling agent can call include: data parsing, data formatting, and data cleaning. Among them, data parsing refers to the need to understand the data in advance for particularly complex data or data containing a lot of content, so that the data can be analyzed through methods such as text understanding, text summarization, and keyword understanding, so that the model can better understand it. For example, analyzing at least one type of content such as requirement documents used to describe the processing requirements of the target task, multimodal data, and long texts; data formatting refers to organizing the data according to a specified format, so that the large model to be trained can be better trained in combination with the prompt template, thereby improving the model performance; abnormal data checking is used to identify abnormal data content in a timely manner, so as to avoid misleading the large model to be trained during the subsequent model training process and improve the stability of the model.
[0155] Continuing with the explanation in conjunction with Figure 9, during the model inference phase, the functional scheduling agent can invoke the following capabilities: prompt template modification and requirement constraints. Prompt modification refers to adding extra constraint information to the prompt template, or modifying the content of the prompt template to improve model performance. For example, retrieval-augmented generation (RaG) can be performed in the knowledge base, allowing the model to compensate for data deficiencies by introducing additional knowledge or contextual data based on the generated constraint information. Requirement constraints refer to improving the controllability of model performance through the generation of constraint information, such as introducing typical black / white list constraints or output word count constraints. This allows large models to achieve better inference performance during training.
[0156] Continuing with the explanation in conjunction with Figure 9, in the post-processing stage, the functional scheduling agent can invoke the following capabilities: result content processing and result verification. Result content processing refers to generating content that meets the generation requirements based on the output of the large model when the model output contains content unrelated to the processing target, or does not directly contain the expected target content. For example, in a classification task, the output of the large model can be converted into the corresponding category. Result verification refers to the additional testing or verification logic introduced to improve the accuracy of the large model output, such as a reflection mechanism. In this way, the output of the large model can be processed to obtain output results that meet the task processing requirements in terms of content, thereby effectively improving the stability of the model output.
[0157] For example, referring to Figure 10, which is a possible scheduling diagram of the function scheduling agent in an embodiment of this application, it can be seen from the content shown in Figure 10 that in a feasible embodiment, in the training system of this application, the function scheduling agent can schedule various functions to operate at different stages of the training process according to the scheduling instructions of the comprehensive scheduling agent or the scheduling instructions triggered by humans. As shown in the example of Figure 10, when the task description data contains images, or when the obtained sample set contains images, the function scheduling agent can schedule the image data parsing function and the abnormal data checking function for processing during the preprocessing process before training; and during the model inference process, it can schedule the RaG knowledge base function to obtain the results generated by retrieval enhancement; in addition, in the post-processing stage after the model inference is completed, it can call the JavaScript Object Notation (JSON) format conversion function to convert the output content after model inference into JSON format.
[0158] It should be noted that in the training system of this application, the processing capabilities are classified according to the implemented capabilities, and based on a unified underlying structure, functional agents that implement various functions are obtained, which greatly improves the scalability of the callable functions and supports the target object to customize various types of capabilities according to its needs. In some feasible embodiments, each reusable "model application" can become a general external capability. In other words, the developed large model application can be added to the training system as a callable functional agent, thereby adding callable functions to the training system.
[0159] It should be understood that, in the embodiments of this application, the various functions scheduled by the functional scheduling agent can be implemented by the corresponding functional agents; moreover, the responsibilities of the functional agents can be uniformly divided into four parts: decision-making, planning, execution, and results; this is equivalent to standardizing the development and application methods of various capabilities, thereby improving the scalability of capabilities. Additionally, it should be noted that, in terms of capability invocation, a "self-scheduled agent" approach is adopted, or human intervention is also supported, thereby enabling flexible invocation of corresponding capabilities at various training stages.
[0160] Furthermore, when executing step 803, the functional scheduling agent can determine the functional agents to be scheduled in each functional type of the "preprocessing stage" according to each preprocessing instruction, so that the corresponding functional agents can be scheduled to process the current initial data.
[0161] Step 804: Implement the data preprocessing function. The agent performs data processing on one dimension based on the currently obtained initial data to obtain the processed initial data.
[0162] Specifically, after obtaining the current initial description data, the intelligent agent can perform data processing on the current initial description data in one dimension to obtain the processed initial description data.
[0163] For example, a preprocessing dimension could be one of data parsing, data formatting, or data cleaning.
[0164] Step 805: The function scheduling agent obtains the processed initial description data fed back by each function agent that is called.
[0165] Specifically, after receiving processed initial description data from another functional agent, the functional scheduling agent can update the processed initial description data to the current initial description data.
[0166] It should be understood that in the embodiments of this application, when data processing of N preprocessing dimensions is required, the processing steps 802-804 need to be executed N times, where N is a positive integer not less than 1.
[0167] Step 806: The functional scheduling agent sends the initial data after processing at least one preprocessing dimension to the comprehensive scheduling agent.
[0168] Specifically, based on at least one preprocessing instruction, after performing data processing on at least one preprocessing dimension for the initial data step by step, the initial data after completing data processing on at least one preprocessing dimension can be sent to the integrated scheduling agent to update the content, so that the integrated scheduling agent can adjust the task description data and sample set based on the processed initial data.
[0169] In this way, by preprocessing the initial data, compliance adjustments can be made to the initial data. Moreover, in feasible embodiments, the content in the task description data can be parsed to analyze the content that the integrated scheduling agent can better understand, so that the integrated scheduling agent can better complete the function scheduling and configuration information generation.
[0170] Step 302: The integrated scheduling agent sends at least one input configuration information to the functional scheduling agent.
[0171] The integrated scheduling agent and the functional scheduling agent can establish a communication connection through a wired network or a wireless network, and this application does not impose specific restrictions on this.
[0172] Step 303: The function scheduling agent uses the call information generated based on each input configuration information to schedule the corresponding function agent.
[0173] In the training system, the functional scheduling agent is used to schedule the capabilities provided by various functional agents according to the actual situation, so as to optimize the model processing effect during the training process of the task processing model. Moreover, the functional agents that the functional scheduling agent can schedule can be horizontally expanded according to the actual processing needs. It should be understood that the scheduling implemented by the functional scheduling agent can configure the calling information on the one hand, and determine the order of functional processing on the other hand.
[0174] For example, during training, the functional agents scheduled by the functional scheduling agent include: functional agents that implement Retrieval Enhancement Generation (RaG), and functional agents that implement Hidden Chain-of-Thought (Hidden-CoT) generation, etc.
[0175] It should be understood that, in a feasible embodiment, when training the task processing model, the comprehensive scheduling agent sends at least one input configuration information to the functional scheduling agent to instruct the functional scheduling agent to call each corresponding functional agent to generate constraint information for adjusting the prompt template; wherein, the constraint information of different constraint dimensions is used to add constraints to the prompt template of the task processing model from different angles (or constraint dimensions).
[0176] In addition, based on actual processing needs, the function scheduling agent can generate call information for the corresponding function agent based on each input configuration information. The call information is used to indicate the processing basis of the function agent.
[0177] For example, suppose an input configuration is used to invoke a functional agent that implements the RaG function. The invocation information generated by the functional scheduling agent could be: {"Function configuration content (ability_config)":{"Selected capabilities (selected_abilities)":["RaG"],"Configuration content generated by the retrieval enhancement (RaG_config)":{"Knowledge base (knowledge_base)":" / x / p1_knowledge","Retrieval result range (top_k)":5}}}. Here, `knowledge_base` indicates the retrieval location; `top5` refers to the top k most similar results retrieved. Thus, this invocation information indicates: Retrieve the 5 most similar data entries at the retrieval location to the retrieval criteria, and generate constraint information based on these 5 retrieved data entries; the retrieval criteria are generated based on the task description data.
[0178] For example, suppose an input configuration is used to invoke a functional agent that implements the Chain-of-Thought (CoT) function. Then, the invocation information generated by the functional scheduling agent could be: {"Function configuration (ability_config)":{"Selected capabilities (selected_abilities)":["CoT"],"Chain-of-Thought generation configuration (CoT_config)":{"Maximum reasoning steps (max_reasoning_steps)":"4","Verification setting for self-verification mechanism (verification)":"true"}}}. Here, the maximum reasoning steps indicate the maximum number of reasoning steps the functional agent must take to generate the chain-of-thought statement. "Verification" being true indicates that verification of the result is required. Thus, this invocation information means: after 4 steps of reasoning and verification, the chain-of-thought statement is obtained.
[0179] Specifically, when at least one constraint information includes the retrieval enhancement generation result, and the retrieval scope when generating the retrieval enhancement generation result includes the target location, the function scheduling agent is further configured to: send a content reading instruction containing the target location to the plug-in scheduling agent through the comprehensive scheduling agent; the plug-in scheduling agent is further configured to: determine a matching data reading plug-in based on the target location in the content reading instruction, and use the data reading plug-in to read the data content at the target location; send the data content to the function scheduling agent through the comprehensive scheduling agent; and the function agent that implements the retrieval enhancement generation function is configured to perform retrieval enhancement generation processing based on the data content sent by the function scheduling agent to obtain the retrieval enhancement generation result.
[0180] In the specific interaction process, the functional scheduling agent sends a content reading instruction containing the target location to the comprehensive scheduling agent. This content reading instruction can be self-generated or sent by a functional agent implementing the retrieval enhancement generation function. Then, the comprehensive scheduling agent sends the content reading instruction containing the target location to the plug-in scheduling agent. Subsequently, the plug-in scheduling agent invokes a data reading plug-in capable of reading data content at the target location, reads the data content at the target location, and sends the data content to the comprehensive scheduling agent. Finally, the comprehensive scheduling agent sends the data content at the target location to the functional scheduling agent, enabling the functional scheduling agent to further schedule the functional agent implementing the retrieval enhancement generation function to perform content retrieval and generation.
[0181] In this way, with the cooperation of the plugin scheduling agent, retrieval enhancement generation can be performed based on the data content stored at the target location, thereby ensuring the smooth progress of the retrieval enhancement generation process.
[0182] Step 304: The functional agent generates constraint information for one constraint dimension based on a call message.
[0183] The training system of this application includes functional agents. In the process of generating at least one constraint information based on the adjustment prompt template, each functional agent that is called can process the call information sent by the functional scheduling agent to generate constraint information under a constraint dimension and feed back the obtained constraint information to the functional scheduling agent.
[0184] When executing step 304, each functional agent that receives the call information can generate a processing result based on the obtained call information; moreover, in this embodiment, the constraint information under a constraint dimension specifically refers to the processing result obtained after performing a functional processing.
[0185] Step 305: The function scheduling agent obtains the constraint information fed back by the function agent corresponding to each call information.
[0186] In this embodiment of the application, when the input configuration information sent by the comprehensive scheduling agent is at least one, the functional scheduling agent can generate corresponding calling information based on at least one input configuration information, so as to schedule at least one corresponding functional agent to process, thereby obtaining the constraint information fed back by each of the at least one corresponding functional agent.
[0187] Step 306: The integrated scheduling agent sends template configuration information to the template agent.
[0188] The integrated scheduling agent and the template agent can establish a communication connection through a wired network or a wireless network, and this application does not impose specific restrictions on this.
[0189] Step 307: The template agent generates an initial prompt template based on the template configuration information.
[0190] The following section will explain the functionality and internal generation logic of the template agent:
[0191] In this embodiment, it should be understood that template engineering is an important step in the training process of large models. In this embodiment, the template agent (denoted as Prompt Agent) is used to write and manage the prompt template. In feasible embodiments, the template agent can autonomously complete the writing and adjustment of the prompt based on the template configuration information and the Prompt framework, thereby assisting the large model to be trained in generating more accurate content and playing a key role in improving the generation effect of the large model to be trained.
[0192] In some feasible embodiments, referring to Figure 11, which is a schematic diagram of the writing framework of the prompt template in the embodiments of this application, it can be seen from the content shown in Figure 11 that the writing framework of the prompt template is as follows: first, a static prompt template is defined; then, the content of each part of the template is refined and the overall input format is organized; then, more information is added to the template; in addition, reasoning ability can be enhanced, sub-tasks can be decomposed, and more optimization techniques can be integrated. Among them, the static prompt template consists of four parts: defining the role, stating the problem, setting the goal, and supplementing the requirements; the static prompt template is a predefined, fixed-structure prompt format used to standardize the input of large models and ensure the consistency and controllability of the output; defining the role refers to setting a specific identity or role for the model to limit the perspective and professional field of the answer; stating the problem refers to clearly describing the specific problem to be solved or the input content; setting the goal refers to clarifying the form, format or specific goal to be achieved in the output; supplementing the requirements refers to adding detailed constraints or special requirements to further refine the output.
[0193] Continuing with the explanation in conjunction with Figure 11, when adding more information to the template, the system can automatically perform retrieval enhancement generation to obtain professional and business knowledge. Simultaneously, it can add remembered content and few-shot examples. For enhanced reasoning capabilities, subtask decomposition requires the use of internal CoT generation technology to break down the target task into individual subtasks. For further optimization techniques, parameter tuning is used to optimize controllable variables in the template (such as temperature parameters) to balance the diversity and determinism of the generated results; Automatic Prompt Engineering (APE) is used to automatically generate and optimize prompt templates, reducing the cost of manual trial and error, such as optimizing prompt words based on model processing accuracy; Self-Consistency is used to improve the reliability of complex reasoning tasks (such as mathematical problems and multi-step reasoning) through multiple sampling and voting mechanisms; and Reflection is used to optimize templates based on model processing results.
[0194] In this embodiment, a template agent is constructed based on the Prompt writing framework, which enables the automatic writing of prompt templates according to task processing needs. Based on the completion of the writing of each part of the prompt template, optimization and rewriting are performed to obtain an initial prompt template with overall content coordination, thereby ensuring the generation quality of the initial prompt template in terms of content and format.
[0195] It should be noted that, in the embodiments of this application, the model training process may be executed multiple times according to actual processing needs. In different model training processes, the comprehensive scheduling agent can generate different template configuration information for the template agent based on different task description data, so that the template agent can regenerate the initial prompt template in different model training processes.
[0196] Referring to Figure 12, which is a schematic diagram of the internal functions of the template agent in this embodiment, when generating a prompt template, the template agent can understand the task definition, task data, and constraints based on the template configuration information, and obtain the personalized configuration of the target object. Therefore, when generating a prompt template, it can realize role generation, question generation, target generation, requirement generation, content rewriting, and format rewriting.
[0197] In some feasible embodiments of this application, considering that the task processing model may involve multiple model inferences when processing the target task, and each model inference has a corresponding input, it is necessary to configure corresponding sub-hint templates for each inference stage. Therefore, the number of sub-hint templates should be consistent with the number of model inferences, rather than one per task.
[0198] Based on this, this training system adopts a different approach from traditional prompt template writing methods. It introduces the concept of "CoT" into the template agent. Unlike the direct mapping from input to output, the target task is broken down into multiple reasoning sub-tasks to improve the model's performance, namely: input-coherent-output.
[0199] The inference subtask is a subtask obtained by the template agent based on template configuration information and by decomposing the target task through thought chain parsing. It breaks down the target task into multiple subtasks with a logical order, and each subtask corresponds to a reasoning step, which helps to improve the model's reasoning ability and processing effect when handling the target task.
[0200] Specifically, the template agent can perform thought chain parsing based on the obtained template configuration information to obtain various inference subtasks generated based on the template configuration information. Then, it generates corresponding subtask templates for each inference subtask and concatenates the subtask prompt templates to obtain the initial prompt template. The subtask template is a prompt template generated by the template agent for each inference subtask, based on the prompt template and using a static prompt template as a foundation. It provides specific input and output requirements for each inference subtask, ensuring that the model has clear guidance when processing each subtask. Finally, the initial prompt template is formed by concatenating the subtask prompt templates.
[0201] Among the feasible ways to generate each reasoning subtask, the template agent can generate the thought chain statement of the target task based on the template configuration information, and then split the thought chain statement to obtain each sub-statement, where each sub-statement corresponds to one reasoning subtask. The way to split the thought chain statement can be based on preset content keywords; a content splitting model; or the template agent can directly split the thought chain statement by means of the large model on which the internal processing relies.
[0202] When generating subtask prompt templates, the template agent can write a framework based on the prompt templates, and generate subtask prompt templates for each inference subtask based on the static prompt templates.
[0203] For example, referring to Figure 13, which is a schematic diagram of the generation of the initial prompt template in an embodiment of this application, the generation logic of the initial prompt template is that the template agent, based on the template configuration information determined by the corresponding target task, splits into various inference sub-tasks. The three inference sub-tasks shown in Figure 13 are only illustrative. Then, the template agent generates corresponding sub-prompt templates for each inference sub-task, and then integrates the sub-prompt templates to obtain the initial prompt template.
[0204] Continuing with the explanation in conjunction with Figure 13, taking a specific example, when the target task is a use case inspection task, the template agent can break down the use case inspection task into three reasoning sub-tasks: content understanding task, problem inspection task, and reflection confirmation task. Then, the template agent can generate corresponding sub-prompt templates based on the three reasoning sub-tasks. After that, the sub-prompt templates of the content understanding task, the problem inspection task, and the reflection confirmation task are integrated to obtain the initial prompt template.
[0205] In this way, by splitting the reasoning statements based on the thought chain to obtain each reasoning subtask, and generating corresponding sub-hint templates for each reasoning subtask, the initial hint template generated for the target task contains corresponding template content for each reasoning step required to process the target task. This can greatly improve the overall processing effect of the large model to be trained in the target task, while also improving the output stability and controllability of the large model to be trained.
[0206] Step 308: The integrated scheduling agent adjusts the initial prompt template sent by the template agent based on at least one constraint information sent by the functional scheduling agent to obtain the target prompt template; the target prompt template, training configuration information and sample set of the target task are sent to the training agent.
[0207] Specifically, after receiving at least one constraint information sent by the functional scheduling agent and the initial prompt template sent by the template agent, the integrated scheduling agent can use at least one constraint information to adjust the initial prompt template to obtain the target prompt template.
[0208] The target prompt template is the final prompt template obtained by the integrated scheduling agent after adjusting the initial prompt template using at least one constraint information fed back by the functional scheduling agent. Adjustment methods include adding constraint information and replacing parts of the template content to ensure that the prompt template better adapts to the processing requirements of the target task, thereby improving the training effect and processing capability of the task processing model.
[0209] A sample set is a collection of data consisting of a series of samples, each containing one input text and one output text, used to train a pre-defined large model. The construction of the sample set needs to cover as many processing scenarios as possible for the target task to ensure that the large model can learn sufficient features and patterns during training, thereby improving the generalization ability and processing accuracy of the task processing model.
[0210] In some feasible embodiments, when adjusting the initial prompt template, at least one constraint can be added to the initial prompt template.
[0211] In other feasible embodiments, when adjusting the initial prompt template, at least one constraint information can be used to replace part of the template content in the initial prompt template.
[0212] For example, if at least one constraint is a retrieval enhancement result obtained through retrieval enhancement, a more professional retrieval enhancement result generated by a functional agent can replace the retrieval result contained in the initial prompt template. The retrieval enhancement result is the result obtained by a functional agent that implements the retrieval enhancement function, within a specific retrieval range, after performing retrieval and generation processing based on the data content provided by the functional agent. It can provide additional knowledge and information to the prompt template, compensate for the model's data deficiencies, and improve the model's processing power and accuracy.
[0213] In other feasible embodiments, different functional agents can be identified to distinguish the adjustment methods when adjusting the initial prompt template based on the constraint information generated by the functional agents. For example, constraint information generated by some functional agents can be set to add content to the initial prompt template, and constraint information generated by other functional agents can be set to replace the corresponding template content in the initial prompt template.
[0214] In one specific embodiment, the adjustment method is as follows: Let the constraint information set be C = {C1, C2, ..., C...}m The initial prompt template is PT. initial The target prompt template is PT. target For each constraint information C i Depending on the type and function of the constraint information, different adjustment methods are adopted. If the constraint information is a search enhancement result and the initial prompt template contains a related search result, the search enhancement result is used to replace the corresponding search result in the initial prompt template. If the constraint information is a limitation on the number of output characters, a requirement regarding the number of output characters is added to the initial prompt template. If the constraint information is a typical black / white list constraint, the corresponding constraint rules are added to the initial prompt template. For example, if C1 is a search enhancement result obtained through search enhancement, and the initial prompt template PT... initial Some of the content is the original search results, including PT. initial The original search results in this section are replaced with C1 to obtain the adjusted suggestion template. The above process is repeated to process all constraint information, ultimately yielding the target suggestion template PT. target .
[0215] Furthermore, the integrated scheduling agent can send the target prompt template, training configuration information, and target task sample set to the training agent.
[0216] Step 309: The training agent trains a pre-set large model based on the target prompt template, training configuration information and sample set to obtain a task processing model for handling the target task.
[0217] The training agent is used to train the model. Specifically, the training agent can schedule various model training scripts, process sample sets, and connect the model training process to complete the model training.
[0218] Specifically, after the training agent obtains the target prompt template, training configuration information and sample set, it can train the preset large model according to the training configuration information, and use the trained large model as the task processing model for the target task. The training configuration information indicates the total number of training rounds and the number of batches.
[0219] During an iterative training process, the training agent can obtain a batch of sample input texts from the sample set, and combine each sample input text with the target prompt template to obtain the corresponding model input content. Then, the training agent uses a pre-set large model to obtain the corresponding initial prediction text based on the input content of each model. Subsequently, the model parameters of the large model are adjusted based on the content differences between each initial prediction text and the corresponding sample output text.
[0220] In particular, in some feasible embodiments, the initial predicted text output by the pre-set large model may have a different format from the sample output text, making it impossible to directly compare the content differences between the initial predicted text and the corresponding sample output text. In this case, the comprehensive scheduling agent in the training system is also used to send the initial predicted texts and format conversion requests output by the large model in each round of training, sent by the training agent, to the plugin scheduling agent when the format of the sample content in the sample set is different from the format of the initial predicted text output by the large model to be trained. The plugin scheduling agent is used to call the matching format conversion plugin to process each initial predicted text according to the plugin call information to obtain each target predicted text in the sample content format. The comprehensive scheduling agent is also used to forward each target predicted text sent by the plugin scheduling agent to the training agent. The training agent is also used to continue training the large model based on the target predicted text.
[0221] The matching format conversion plugin is used to convert the initial predicted texts output by the large model into target predicted texts in the sample content format.
[0222] In this way, with the help of the integrated scheduling agent and the plug-in scheduling agent, the training agent can obtain the target prediction text under the sample content format, so as to compare the content difference between the output of the large model and the sample output text, and then continue to train the large model.
[0223] In this way, by training the agent according to the total number of training rounds in the training configuration information, and similarly performing multiple rounds of iterative training, a task processing model can be obtained.
[0224] It should be understood that, with the help of the interactive processing in steps 301-309, the training system can train a task processing model capable of handling the target task based on a pre-set large model.
[0225] In a feasible training process, the integrated scheduling agent plays a role in configuring the input content and planning the scheduling order for other agents. That is, the integrated scheduling agent is also used to determine the corresponding scheduling order and configuration information for the template agent, the functional scheduling agent, and the training agent based on the task description data, so as to execute the training of the task processing model according to the scheduling order. The configuration information for the template agent can also be specifically called template configuration information; the configuration information for the functional scheduling agent can also be specifically called input configuration information; and the configuration information for the training agent can also be specifically called training configuration information. The scheduling order is used to indicate the order in which other agents that directly interact with the model are scheduled to assist in processing during the model training process.
[0226] For example, referring to Figure 14, which is a partial scheduling result of the integrated scheduling agent configuration in the embodiment of this application, it can be seen from Figure 14 that the integrated scheduling agent can configure the corresponding scheduling order (such as step S1, step S2, step S3, step S4...) and configuration information (such as input configuration information) for each scheduled agent to realize the execution plan of each agent.
[0227] In this way, the integrated scheduling agent can also generate corresponding scheduling order and configuration information for other agents that interact directly, thereby enabling the planning of the overall training process.
[0228] Furthermore, based on the current task description data and sample set, after training a large model to obtain a task processing model, the training system proposed in this application can also evaluate the training effect of the task processing model, regenerate new task description data, and then execute the training process of steps 301-309 based on the new task description data and sample set. This allows the training process to be re-executed for the task processing model, enabling continued training of the task processing model and obtaining a retrained task processing model. Similarly, the training process of steps 301-309 can be executed multiple times based on different task description data until the preset conditions are met, resulting in the final trained task processing model. The preset conditions can be set according to actual processing needs, such as the accuracy reaching a set threshold. The value of the set threshold is set according to actual processing needs.
[0229] In this embodiment of the application, after each execution of the training process of steps 301-309, the training system can trigger a testing process for the task processing model. In this case, the comprehensive scheduling agent and the plug-in scheduling agent in the training system need to cooperate in processing.
[0230] The integrated scheduling agent is used to send test instructions to the plugin scheduling agent based on the test set of the target task after the task processing model is trained. The plugin scheduling agent is used to schedule the corresponding test plugins based on the test instructions and obtain the test results obtained after testing the task processing model based on the test set. The integrated scheduling agent is also used to receive the adjustment description text for the task processing model and to receive the test results sent by the plugin scheduling agent.
[0231] The test set for the target task can be constructed in the same way as the training set, or it can be pre-stored for the testing process, or it can be split from the sample set. Furthermore, the testing plugin can use the test set, combined with the target prompt template determined in the current training process, to determine the model input content for the testing process.
[0232] In this way, by scheduling the plugin agent, the task processing model can be tested using the test plugin.
[0233] Furthermore, when re-triggering the training of the task processing model, the training process can be re-triggered based on the test results and the adjustment description text of the task processing model configuration for the target object.
[0234] In this case, the training system also needs to include an optimization agent. The overall scheduling agent is also used to receive the adjustment description text for the task processing model and send the adjustment description text and test results to the optimization agent. The optimization agent is used to generate optimization description text based on the adjustment description text and test results. The overall scheduling agent is also used to integrate the task description data and the optimization description text sent by the optimization agent to obtain new task description data, and to trigger the training process for the task processing model based on the new task description data.
[0235] The optimization agent is used to obtain an improvement plan (i.e., optimize the description text) based on the test results and the modification suggestions for the target object (i.e., adjust the description text), and provide the improvement plan to the comprehensive scheduling agent to achieve continuous optimization and iteration of the task processing model. The test results may include bad cases of the test model and quantitative evaluation indicators. The evaluation indicators may be indicators such as accuracy that can evaluate the output effect of the model.
[0236] Let the adjustment description text be AD, the test result be TR, and the optimization description text be OD. The optimization agent first analyzes the test result TR, extracting key information such as bad cases and quantifiable evaluation metrics (e.g., accuracy, recall). Based on the modification suggestions in the adjustment description text AD, and combined with the analysis of the test result, an optimization strategy is generated. For example, if the test result shows that the model has low accuracy on a certain type of data, and the adjustment description text suggests increasing the number of training samples for that type of data, the optimization agent's generated optimization strategy could be to increase the number of samples for that type of data and adjust the training parameters to improve the model's ability to process that type of data. The optimization strategy is then organized into the optimization description text OD, which can include suggestions for adjusting the model structure, training data, and training parameters.
[0237] In feasible embodiments, when the comprehensive scheduling agent integrates the task description data and the optimized description text sent by the optimization agent to obtain new task description data, the task description data and the optimized description text can be concatenated to obtain new task description data.
[0238] In particular, in some feasible embodiments, the input control component in the training system can also reacquire the task description data and sample set of the target object based on the target task configuration. The acquisition process of the task description data and sample set is the same as described above and will not be repeated here. Furthermore, the integrated scheduling agent can receive the reconfigured task description data sent by the input control component and concatenate the reconfigured task description data and the optimized description text to obtain new task description data.
[0239] Thus, in the training system proposed in this application, the comprehensive scheduling agent can re-trigger the iterative optimization of the task processing model based on the optimized description text obtained by the optimization agent, thereby enabling the continued training of the task processing model and allowing a model that better meets the needs of the target task processing to be trained.
[0240] It should be noted that the training system of this application includes the interaction and cooperation of multiple agents. Therefore, in order to generate suitable agents according to actual processing needs, the training system of this application may also include an agent generation component. The agent generation component is used to: determine the base model among various candidate large models; obtain matching training samples according to the preset agent task; wherein, a training sample includes: a sample input statement, and a sample output statement obtained based on the sample input statement under the agent task; use each training sample to perform multiple rounds of iterative training on the base model to obtain the trained target model, and encapsulate the target model and the developed auxiliary functions into the generated agent.
[0241] The agent generation component can be used to determine the base model from various candidate large models using the following method. Let the set of candidate large models be M = {M1, M2, ..., M}. n Let the agent's task be T. First, based on the type and requirements of the agent's task T, define a series of evaluation metrics, such as the model's processing power, accuracy, and response time, denoted as E = {E1, E2, ..., E...}. k For each candidate large model M i The test is conducted on a pre-defined test dataset to obtain the evaluation value for each evaluation indicator, forming an evaluation value vector V. i ={V i1 V i2 ,…,V ik Then, assign a weight to each evaluation indicator, denoted as W = {W1, W2, ..., W...}. k The weights sum to 1. Calculate the overall evaluation score S for each candidate large model. i The calculation formula is: Finally, the candidate large model with the highest comprehensive evaluation score is selected as the base model, namely the base model M.base =arg max i (S i ).
[0242] The base model can be selected based on actual processing needs, and the various candidate large models can specifically be various large language models.
[0243] In the training system of this application, the agent generation component learns to process the corresponding agent task by training a base model to obtain a target model. Moreover, during each round of iterative training of the base model, the model parameters can be adjusted based on the content difference between the predicted content of the base model and the corresponding sample output statements in the training samples. Then, after reaching the preset convergence condition, the trained target model is obtained. The convergence condition can be that the total number of training rounds reaches a first set value, or that the number of times the model loss value calculated based on the content difference is continuously lower than a second set value reaches a third set value. The values of the first set value, the second set value, and the third set value are set according to the actual processing needs.
[0244] Furthermore, considering that in addition to the target model on which the intelligent agent relies, it may also need auxiliary functions, the target object and the developed auxiliary functions can be encapsulated into the generated intelligent agent; for example, the auxiliary functions include data interaction functions, etc.
[0245] In this way, the agent generation component can train agents with various functions according to actual processing needs.
[0246] Furthermore, in this embodiment, a unified agent structure is adopted for the implementation of the training system, and a single agent can be treated as a single module, enabling efficient collaboration within a single agent and between multiple agents. Optionally, this application can adopt a four-layer responsibility division framework, forming a unified agent structure at the bottom layer, namely a decision layer, a plan layer, an action layer, and a result layer; wherein,
[0247] The decision-making level is responsible for analyzing the current task, understanding the input and context, deciding on the capabilities to be applied in the training system, and the specific application methods for each capability.
[0248] The planning layer is responsible for the specific implementation of planning capabilities, planning workflows, and guiding the execution layer to carry out their work in an orderly manner.
[0249] The execution layer is responsible for implementing specific tasks and completing the tasks of each atomic unit. Moreover, in feasible embodiments, for an agent that can achieve scheduling of multiple agents, the processing results of each agent module can be chained together to produce the final execution result. The task of the atomic unit is the smallest indivisible task unit in the system or workflow. Its core characteristic is that it is either fully executed or not executed at all, and there is no "partially completed" state.
[0250] The results layer is responsible for collecting the results from the execution layer and feeding them back to the decision-making layer, serving as the main input for the decision-making layer's next steps.
[0251] For example, referring to Figure 15, which is a functional diagram of each responsibility layer in the template agent in this embodiment, it can be seen from the content shown in Figure 15 that the decision layer of the template agent is used to: analyze the current task, and determine the prompt template writing type according to the task situation, determine the prompt template framework, and the capabilities to be used in the prompt template; the planning layer of the template agent is used to: understand the user's needs and data, and determine the workflow for writing the prompt template and the capabilities to be used according to the decision results; the execution layer of the template agent is used to: complete the work according to the plan, complete the writing of roles, problems, goals, and requirements in sequence, and complete the writing of the prompt template as a whole in combination with the prompt template framework; the result layer of the template agent is used to: feed back the result of the prompt template writing to the decision layer for the next step.
[0252] In feasible embodiments of this application, after training the task processing model, a target prompt template corresponding to the task processing model can be obtained; then, a large model application can be built based on the task processing model, so that the large model application can be used as a whole to provide target task processing functions to the outside world, thereby generating an overall task processing result.
[0253] In this case, the training system of this application also includes a deployment component, which is used to: build a large model application based on the task processing model; and receive business text sent by a business object to the large model application, and use the large model application to obtain the task processing result matched by the business object based on the business text, and send the task processing result to the business object; wherein the business text is sent through a preset application programming interface, or in a chat window associated with the large model application.
[0254] Business text refers to textual information related to the target task sent by a business object to the large model application. It serves as input data for the large model application to process the task. The large model application processes the business text and the target prompt template to provide the business object with a matching task processing result.
[0255] In feasible implementations, when building a large-scale application based on a task processing model, application-layer development functions (such as chat windows, API interfaces, and voice interaction), input data cleaning functions, and content review functions can be added to the task processing model according to actual processing needs, thus obtaining a large-scale application.
[0256] When large-scale model applications process business text, the business text and target prompt template can be integrated to obtain integrated data. Then, the integrated data can be processed using a task processing model to obtain task processing results. Furthermore, based on the data format that the object device of the business object can display, the task processing results directly output by the task processing model can be processed into task processing results that the business object can read (i.e., task processing results that match the business object).
[0257] Furthermore, it should be understood that, in the embodiments of this application, for the large model application being constructed, the deployment method provided may be to provide a unified API interface capability to facilitate integration in various scenarios; or, it may be deployed in the form of a "chat window" so that business objects can send business text in the chat window to realize the invocation of the processing function of the target task.
[0258] The deployment component can be used to build large-scale application models based on the task processing model, following the specific process below. Let the task processing model be TM. First, based on the actual processing needs, determine the application-layer development functions that need to be added, such as chat windows, API interfaces, voice interaction, etc., denoted as F = {F1, F2, ..., F...}. m At the same time, other necessary functions such as input data cleaning and content review are determined, denoted as G = {G1, G2, ..., G}. n For each application layer, develop functionalities F. i Develop the corresponding code modules. Taking the chat window function as an example, build the front-end interface code for user interaction, and simultaneously write the back-end code to establish a connection with the task processing model TM. When the user enters business text in the chat window, the input data is first cleaned and preprocessed by the corresponding module in the input data cleaning function G to remove noise and invalid information, resulting in cleaned input data D. clean Then D cleanThe input is processed in the task processing model TM to obtain the task processing result R. For the content moderation function G, the task processing result R is reviewed to check if it conforms to preset rules and standards. If the review passes, the result is formatted according to the display requirements of the chat window interface and displayed to the user; if the review fails, appropriate processing is performed according to the review rules, such as prompting the user to re-enter or providing error messages. For the API interface function, interface code is developed, and the task processing model TM is encapsulated as a callable service. When an external system sends business text through the API interface, the input data is also cleaned and preprocessed before being input into the task processing model TM, and the processing result is returned to the caller. All functional modules are integrated together to form a complete large model application. During the integration process, functional and performance tests are performed.
[0259] In this way, by adding application-layer development functions to large-scale model applications, it is possible to obtain business text sent by business objects in various scenarios, thereby realizing target task processing based on business text.
[0260] Optionally, the deployment component is also used to: obtain the task script for implementing the scheduled task, and obtain the text to be processed for each scheduled task by executing the task script, and when the scheduled timing is reached, use the large model application to process each text to be processed to obtain the output text of each task.
[0261] For scheduled tasks, only simple script writing is required to deploy them, thereby enabling the application of model capabilities in batches on a regular basis.
[0262] In this way, by executing task scripts, large model applications can be periodically requested to process target tasks, thereby improving the processing efficiency of large model applications.
[0263] Based on the same inventive concept, this application also provides a training method for a task processing model. Referring to Figure 16, which is a flowchart of the training method for the task processing model in this application, this method can be applied to the above-mentioned task processing model training system. The specific implementation process is as follows:
[0264] Step 1601: Obtain the task description data constructed for the target task, as well as the sample set of the target task.
[0265] Step 1602: Based on the task description data, generate training configuration information, template configuration information, and at least one input configuration information.
[0266] Step 1603: Generate an initial prompt template based on the task description data, and generate constraint information under the corresponding constraint dimensions based on at least one input configuration information, and integrate at least one constraint information and the initial prompt template to obtain the target prompt template.
[0267] Step 1604: Based on the target prompt template, training configuration information and sample set, train the preset large model to obtain the task processing model for processing the target task.
[0268] The above steps can be performed by the agents in the training system of the task processing model, as detailed in the relevant sections above. Optionally, the training method of the task processing model proposed in this application also includes other processing performed by the agents in the training system of the task processing model, which will not be elaborated here.
[0269] In practical application, the training system of this application can greatly improve the training efficiency of the task processing model when training the model to handle the target task.
[0270] The training effect of the training system of this application in a practical scenario is described below:
[0271] Practical scenario: It is necessary to train a task processing model to classify user feedback and detect abnormal problem types reported by users, such as white screen issues, message import failures, application data corruption issues, and privacy-related issues.
[0272] Through practical testing, the applicant discovered that, with the help of the training system described in this application, the training time of the task processing model can be significantly reduced while ensuring model accuracy. Moreover, the reduction in training time is specifically reflected in the following aspects:
[0273] Modeling framework: By presenting pages for entering task description data and uploading sample sets, and displaying "modeling" templates (i.e. content definition templates) for different types of tasks, the definition and data preparation work before training can be completed efficiently by clearly defining the content that needs to be filled in for the target task. Therefore, with the help of a clear workflow, the efficiency of data preparation before training can be improved, which can usually shorten the time taken from 2 days to 1 day.
[0274] Auxiliary data annotation: The training system includes a powerful data annotation model, enabling auxiliary data annotation when labeling sample sets. By first using the data annotation model for coarse data annotation and then manually adjusting it, the efficiency of data annotation can be significantly improved. A closed-source model refers to a model whose core code, architecture, training data, or parameters are not publicly available. With the help of auxiliary data annotation, the time for building a sample set can typically be reduced from 2 days to 0.5 days.
[0275] Prompt Writing: By tooling the prompt writing process and building intelligent agent capabilities, manual writing and repeated debugging are no longer required when writing prompt templates. Users only need to input task description data and sample sets, and the template agent in the training system can be scheduled to complete the prompt template writing work. This can shorten the prompt template writing time from 3 days to 0.5 days.
[0276] Capability Invocation: The training system encapsulates various capabilities and uses a function scheduling agent to autonomously invoke these capabilities, eliminating the costs of capability development and introduction. Furthermore, the function scheduling agent can schedule capabilities including RaG knowledge base-based retrieval enhancement generation, CoT, reflection, and specialized term explanation, among others. This allows for invocation based on task conditions without secondary development, typically reducing processing time from 7 days to 1 day.
[0277] Plugin Invocation: In addition to the model's capabilities, the training system also encapsulates several plugins that can be selectively invoked at various stages of the training process. These include plugins for document reading and writing, data reading and writing, and data format conversion, avoiding the costs of secondary development. This typically reduces processing time from one day to one hour.
[0278] Deployment: The training system provides automatic deployment capabilities with model capabilities, and can generate interfaces for users to call through configuration; in addition, it provides a variety of deployment methods: such as deployment of scheduled tasks in combination with user-provided scripts; in practical scenarios, by deploying scheduled tasks, user feedback data can be checked regularly, thereby reducing the relevant processing time from 3 days to 1 day.
[0279] Process integration: In addition to improving the efficiency of each individual step, the training system also standardizes and integrates the overall model training process, thereby improving training efficiency and reducing the related processing time from 3 days to 1 day.
[0280] Performance tuning and optimization: The training system involves multiple processing stages and incorporates corresponding intelligent agent capabilities and data-driven methods to semi-automatically assist in model optimization. Compared to traditional methods that rely on manual adjustments based on evaluation results, this significantly improves efficiency, reducing processing time from one week to two days.
[0281] The following section explains the process of training a task processing model using a specific task scenario:
[0282] The training system proposed in this application can be understood as a multi-agent system. By scheduling the various agents involved in the model training process, the training process of the task processing model is connected in a whole, enabling the intelligent training of the model's processing capabilities.
[0283] Referring to Figure 17, which is a schematic diagram of the possible composition of the training system in this embodiment, the training system can be divided into six agent modules. Each agent module contains multiple model capabilities, covering the complete training process of the task processing model. Among them, the comprehensive scheduling agent is the decision center of the training system, responsible for understanding the input, analyzing and decomposing the task, formulating the execution plan, and scheduling other agent modules. The template agent is responsible for writing and managing the Prompt, completing the writing in conjunction with the Prompt framework, and continuously optimizing it based on the results. The training agent is responsible for model training, scheduling various model training scripts, processing training datasets, connecting the model training process, and completing model training. The function scheduling agent is responsible for scheduling various capabilities to optimize model performance according to actual conditions, such as RaG and CoT Reflection. Each capability also acts as a function agent and supports horizontal expansion. The plugin scheduling agent is responsible for calling external plugins at various stages, such as data acquisition, format conversion, and model testing. Plugins are independent of the model training process and provide additional capabilities to the system. The optimization agent is responsible for understanding the test results (or evaluation results), generating modification suggestions based on bad cases and human feedback, or generating improvement plans based on the legal analysis results of the test results and human feedback; and providing the improvement plans to the comprehensive scheduling agent for continuous optimization and iteration.
[0284] The training system of this application, with the help of six intelligent agent modules, can autonomously train a task processing model. Typically, the scheduling relationship between these six intelligent agent modules is as follows: a comprehensive scheduling agent, which understands the user-provided input (task modeling, data), produces the training process, and schedules the other intelligent agent modules; a template agent, which receives configuration information from the comprehensive scheduling agent and completes the writing of the initial prompt template; a training agent, which receives configuration information from the comprehensive scheduling agent and, in conjunction with the associated sample set, completes model fine-tuning; a function scheduling agent, which receives input from the comprehensive scheduling agent and schedules various capabilities based on the current task status, such as RaG and CoT Reflection; a plugin scheduling agent, which schedules test plugins to test the task processing model and obtain test results; an optimization agent, which receives test results and manual adjustment suggestions from the comprehensive scheduling agent and outputs an improvement plan; and finally, the comprehensive scheduling agent receives input from the optimization agent to conduct a new round of iterative optimization.
[0285] The following uses the "use case inspection" task as an example to illustrate the process of training the corresponding task processing model:
[0286] It should be noted that in the exploration of combining large models and the quality and efficiency of "use case domains", "use case inspection" is the most widely used and effective capability. By inspecting test cases, problems in test cases can be found, thereby improving the quality of test cases and avoiding online problems caused by missed tests (i.e., failure to cover the corresponding scenarios).
[0287] In test case inspection scenarios, building checkpoints effectively identifies issues within test cases and drives their remediation, ensuring that covered checkpoints don't cause online problems due to missed checks. However, test cases often have numerous checkpoints, differentiated by business needs. Combined with the maintained "test case checklist," businesses typically accumulate hundreds of checkpoints (i.e., dimensions that test cases need to verify). Continuing with a centralized incubation model is insufficient to meet business demands. This centralized model, which involves uniformly designing and maintaining all checkpoints and test case templates, suffers from slow response times, insufficient flexibility, and high maintenance costs. This application proposes a training system that assists non-developers in developing checkpoints, thereby building the model's ability to inspect test cases.
[0288] The training system can configure different content definition templates for different types of tasks, allowing the target object to define the task to be processed by entering information into the content definition template. During the optimization of task description data, new task description data can be determined based on the test results of the currently trained task processing model and the adjustments made to the original task description data. Then, based on the new task description data, the task processing model can be further trained, thereby improving the model's processing performance.
[0289] For example, referring to Figure 18, which is a schematic diagram of task description data constructed for the write operation test case missing check task in an embodiment of this application, after the target object completes the task definition based on the write operation test case missing check task, the training system can obtain the task description data as shown in Figure 18.
[0290] Referring to Figure 19, which is a schematic diagram of the task description data constructed for the process killing test case missing check task in an embodiment of this application, after the target object completes the task definition based on the process killing test case missing check task, the training system can obtain the task description data as shown in Figure 19. The part marked by the horizontal line in Figure 19 can be understood as the adjustment made to the task description data, so that it can be processed based on different task description data in different training processes for the task processing model that implements the process killing test case missing check task.
[0291] In addition, in this embodiment of the application, after training the task processing model for the test case inspection task and building a large model application for test case inspection, the training system also provides a convenient deployment method. Specifically, in addition to providing API interfaces, the test case inspection capability of the large model application can be launched to the "intelligent test case platform" (an application platform for test case inspection) with one click, and a scheduled task can be automatically created to periodically inspect test cases.
[0292] In this way, the training system can improve each step of the original model training method, thereby reducing the R&D cost of model capabilities across the entire chain, enabling non-developers to train a task processing model that meets their needs while ensuring the quality of model training.
[0293] Specifically, referring to Figure 20, which is a flowchart of the task processing model trained in this embodiment of the application, it can be seen from the content shown in Figure 20 that the training process of the task processing model can be standardized into 5 parts. The target object only needs to complete the basic processing such as modeling the target task to be processed and data preparation, thereby improving the training efficiency of the task processing model and reducing the model training cost and technical barriers. The various intelligent agents in the training system cooperate to complete the training of the task processing model and the construction of the large model application, and finally deploy and maintain the large model application.
[0294] Continuing with the explanation in conjunction with Figure 20, in a feasible embodiment, during the training process of the task processing model, the processing undertaken by the target object includes: problem definition: in the case detection scenario, this specifically refers to entering the checkpoint definition; problem modeling: this refers to translating the detection task into a classification task and filling in the corresponding modeling template; raw data collection: this refers to collecting the sample data required for task processing; and data cleaning / computation: this refers to unifying the data structure in the sample data so that no additional cleaning / computation is required in the subsequent training process.
[0295] The processing completed by the training system in collaboration with the target object includes: data annotation: which refers to using a data annotation model to coarsely label the data, and then confirming it manually to complete the annotation work; optimization and adjustment: the training system uses the evaluation results (such as bad case data) and human modification opinions to optimize the model training scheme so that the accuracy of the task processing model obtained by the final training reaches the application standard (i.e., >80%).
[0296] The training system performs the following processes: Model debugging: This refers to scheduling various agents to learn how to handle target tasks through training tasks, thereby building model capabilities; Performance evaluation: This refers to automatically generating evaluation results (or test results) on the dataset, obtaining results based on data metrics such as accuracy, recall, and precision; Deployment and maintenance: This refers to automatically deploying model capabilities online. In addition to providing API interfaces, the inspection capabilities can be deployed to the "Intelligent Use Case Platform" (an application platform for use case inspection) with one click, and can automatically create scheduled tasks to periodically inspect use cases.
[0297] In summary, the training system in this application can train task processing models capable of handling corresponding tasks according to different task processing needs, thereby significantly improving model training efficiency and reducing model training costs while ensuring effectiveness. Based on agent technology, the training system of this application realizes the training of task processing models and the construction of large-scale model applications, thus achieving low-cost model application development. In the training system of this application, the target object only needs to complete basic tasks such as task definition and data preparation. The training system then uses the processing capabilities of the agents to autonomously make intelligent judgments and decisions, enabling various agents to collaborate in training the task processing model, giving the model the ability to handle the target task. The training process involves writing prompts, model fine-tuning, and targeted scheduling of various additional capabilities, such as RaG, Hidden-CoT, and reflection. The training system proposed in this application can significantly reduce model training costs and improve model training efficiency, enabling non-developers to efficiently generate model applications.
[0298] Based on the same inventive concept, referring to Figure 21, which is a schematic diagram of the logical structure of the training device for the task processing model in an embodiment of this application, the training device 2100 for the task processing model includes an acquisition unit 2101, a generation unit 2102, an integration unit 2103, and a training unit 2104, wherein,
[0299] The acquisition unit 2101 is used to acquire task description data constructed for the target task, as well as a sample set of the target task;
[0300] The generation unit 2102 is used to generate training configuration information, template configuration information and at least one input configuration information based on task description data;
[0301] Integration unit 2103 is used to generate an initial prompt template based on task description data, and generate constraint information under the corresponding constraint dimension based on at least one input configuration information, and integrate at least one constraint information and the initial prompt template to obtain a target prompt template;
[0302] Training unit 2104 is used to train a pre-set large model based on the target prompt template, training configuration information and sample set, to obtain a task processing model for processing the target task.
[0303] For ease of description, the above sections are divided into modules (or units) according to their functions and described separately. Of course, in implementing this application, the functions of each module (or unit) can be implemented in one or more software or hardware components.
[0304] Having introduced the training system, method, and apparatus for the task processing model according to exemplary embodiments of this application, we will now introduce an electronic device according to another exemplary embodiment of this application.
[0305] Those skilled in the art will understand that various aspects of this application can be implemented as a system, method, or program product. Therefore, various aspects of this application can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, collectively referred to herein as a "circuit," "module," or "system."
[0306] Based on the same inventive concept as the above embodiments, this application also provides an electronic device. Referring to Figure 22, which is a schematic diagram of the structure of a server provided by example in the embodiments of this application, when the electronic device is a server, the structure of the electronic device can be as shown in Figure 22, including a memory 2201, a communication module 2203, and one or more processors 2202.
[0307] The memory 2201 is used to store computer programs executed by the processor 2202. The memory 2201 may mainly include a program storage area and a data storage area. The program storage area may store the operating system and programs required to run instant messaging functions, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.
[0308] Memory 2201 may be volatile memory, such as random-access memory (RAM); memory 2201 may also be non-volatile memory, such as read-only memory, flash memory, hard disk drive (HDD), or solid-state drive (SSD); or memory 2201 may be any other medium capable of carrying or storing a desired computer program having the form of instructions or data structures and accessible by a computer, but is not limited thereto. Memory 2201 may be a combination of the above-described memories.
[0309] The processor 2202 may include one or more central processing units (CPUs) or digital processing units, etc. The processor 2202 is used to implement the training method of any of the task processing models described in the above embodiments when calling the computer program stored in the memory 2201.
[0310] The communication module 2203 is used to communicate with client devices and servers.
[0311] This embodiment does not limit the specific connection medium between the memory 2201, communication module 2203, and processor 2202. In Figure 22, the memory 2201 and processor 2202 are connected via a bus 2204, which is depicted as a thick line. The connection methods between other components are merely illustrative and not intended to be limiting. The bus 2204 can be an address bus, data bus, control bus, etc. For ease of description, only one thick line is used in Figure 22, but this does not imply that there is only one bus or one type of bus.
[0312] The memory 2201 stores a computer storage medium containing computer-executable instructions for training any of the task processing models described in the above embodiments. The processor 2202 executes the training method for any of the task processing models described in the above embodiments.
[0313] In another embodiment, the electronic device can also be other electronic devices. Referring to FIG23, which is a schematic diagram of the hardware composition structure of an electronic device applying an embodiment of this application, the electronic device can specifically be the client device 200 shown in FIG2. In this embodiment, the structure of the electronic device can be as shown in FIG23, including: a communication component 2310, a memory 2320, a display unit 2330, a camera 2340, a sensor 2350, an audio circuit 2360, a Bluetooth module 2370, a processor 2380, and other components.
[0314] The communication component 2310 is used to communicate with the server. In some embodiments, it may include a Circuit-Wireless Fidelity (WiFi) module, which is a short-range wireless transmission technology, and the electronic device can help the user send and receive information through the WiFi module.
[0315] The memory 2320 can be used to store software programs and data. The processor 2380 executes various functions of the client device 200 and performs data processing by running the software programs or data stored in the memory 2320. In this application, the memory 2320 can store the operating system and various application programs, and can also store computer programs related to the training method of the task processing model in the embodiments of this application.
[0316] The display unit 2330 can also be used to display information input by the user or information provided to the user, as well as various menus of the client device 200, forming a graphical user interface (GUI). Specifically, the display unit 2330 may include a display screen 2332 disposed on the front of the client device 200. The display unit 2330 can be used to display pages, etc.
[0317] The display unit 2330 can also be used to receive input digital or character information and generate signal inputs related to user settings and function control of the client device 200. Specifically, the display unit 2330 may include a touch screen 2331 disposed on the front of the client device 200, which can collect touch operations of the user on or near it.
[0318] The touchscreen 2331 can be placed over the display screen 2332, or the touchscreen 2331 and the display screen 2332 can be integrated to realize the input and output functions of the client device 200. After integration, it can be referred to as a touch display screen. In this application, the display unit 2330 can display the application program and the corresponding operation steps.
[0319] Camera 2340 can be used to capture still images, which users can then post comments on via an application. An object is projected onto a photosensitive element through a lens, generating an optical image. This photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then transmitted to processor 2380 for conversion into a digital image signal.
[0320] The client device may also include at least one sensor 2350, such as an accelerometer 2351, a proximity sensor 2352, a fingerprint sensor 2353, and a temperature sensor 2354. The client device may also be configured with other sensors such as a gyroscope, barometer, hygrometer, thermometer, infrared sensor, light sensor, and motion sensor.
[0321] Audio circuitry 2360, speaker 2361, and microphone 2362 provide an audio interface between the user and client device 200. Audio circuitry 2360 converts received audio data into electrical signals and transmits them to speaker 2361, where speaker 2361 converts them into sound signals for output. Conversely, microphone 2362 converts collected sound signals into electrical signals, which are then received by audio circuitry 2360, converted back into audio data, and output to communication component 2310 for transmission to, for example, another client device 200, or to memory 2320 for further processing.
[0322] The Bluetooth module 2370 is used to exchange information with other Bluetooth devices that have Bluetooth modules via the Bluetooth protocol.
[0323] The processor 2380 is the control center of the client device, connecting various parts of the terminal via various interfaces and lines. It executes software programs stored in the memory 2320 and calls data stored in the memory 2320 to perform various functions and process data for the client device. In some embodiments, the processor 2380 may include at least one processing unit; the processor 2380 may also integrate an application processor and a baseband processor. In this application, the processor 2380 can run an operating system, applications, user interface display and touch response, and methods related to the training method of the task processing model in the embodiments of this application. Furthermore, the processor 2380 is coupled to the display unit 2330.
[0324] Based on the same inventive concept, embodiments of this application also provide a storage medium storing a computer program that, when run on a computer, causes the computer to perform the steps in the training method of the task processing model according to various exemplary embodiments of this application described above.
[0325] In some possible implementations, various aspects of the training system for the task processing model provided in this application can also be implemented in the form of a program product, which includes a computer program. When the program product is run on an electronic device, the computer program is used to cause the electronic device to perform the steps in the training method of the task processing model according to various exemplary embodiments of this application described above. For example, the electronic device can perform the steps in the various embodiments.
[0326] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0327] The program product of the embodiments of this application may employ a portable compact disc read-only memory (CD-ROM) and include a computer program, and may run on an electronic device. However, the program product of this application is not limited thereto. In this document, the readable storage medium may be any tangible medium that contains or stores a program that may be used by or in conjunction with a command execution system, apparatus, or device.
[0328] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying a readable computer program. This propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting a program for use by or in conjunction with a command execution system, apparatus, or device.
[0329] Computer programs contained on readable media may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0330] Computer programs for performing the operations of this application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The computer program can execute entirely on the user's electronic device, partially on the user's electronic device, as a standalone software package, partially on the user's electronic device and partially on a remote electronic device, or entirely on a remote electronic device or server. In cases involving remote electronic devices, the remote electronic device can be connected to the user's electronic device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external electronic device (e.g., via the Internet using an Internet service provider).
[0331] In summary, this application provides a training system, method, apparatus, electronic device, computer-readable storage medium, and computer program product for a task processing model. The system involves a comprehensive scheduling agent generating training configuration information, template configuration information, and at least one input configuration information based on the task description data of the target task. The input configuration information is sent to a functional scheduling agent, and the template configuration information is sent to a template agent. The functional scheduling agent uses call information generated based on the input configuration information to schedule the functional agent and obtain constraint information. The functional agent generates constraint information for one constraint dimension based on the call information. The template agent generates an initial prompt template based on the template configuration information. The comprehensive scheduling agent adjusts the initial prompt template based on the constraint information to obtain a target prompt template, and sends the target prompt template, training configuration information, and sample set to the training agent. The training agent trains a pre-defined large model based on the target prompt template, training configuration information, and sample set to obtain the task processing model. This multi-agent collaborative architecture achieves intelligent and automated training, optimizing resource allocation. The comprehensive scheduling agent's precise configuration and scheduling of each agent reduces manual intervention, improves the utilization rate of training resources, and lowers training costs. The collaborative work among the agents makes the decision-making process more scientific and reasonable, effectively reduces training errors, and improves the training efficiency and training effect of the task processing model.
[0332] Furthermore, after training the task processing model, the integrated scheduling agent sends test instructions to the plugin scheduling agent based on the test set of the target task. The plugin scheduling agent then schedules the corresponding test plugins, obtains the test results, and sends them back to the integrated scheduling agent. This testing mechanism introduces quantitative evaluation, allowing for multi-dimensional testing of the model through test plugins. This enables accurate identification of problems in the model's handling of the target task. The test results provide precise data support for model optimization, facilitating targeted adjustments to model parameters, improving model accuracy and stability, and enhancing the model's reliability in practical applications.
[0333] Upon receiving the test results, the integrated scheduling agent receives the adjusted description text for the task processing model and sends it, along with the test results, to the optimization agent. The optimization agent generates optimized description text based on this information. The integrated scheduling agent then integrates the task description data and the optimized description text to obtain new task description data, triggering the training process for the task processing model. This feedback optimization mechanism forms a closed-loop training process. The optimization agent, based on the test results and adjusted description text, deeply analyzes the model's shortcomings and generates precise optimization strategies. By retraining the model and continuously adjusting its structure and parameters, the model can better adapt to changes in the target task, further improving its processing power and adaptability.
[0334] When a target object initiates a task setting request, the input control component presents an initial setup page. After the target object completes the input description information, an output content setting page matching the target task is presented. The output description information is then acquired and sent as task description data to the integrated scheduling agent. This method of acquiring task description data, utilizing output content setting pages corresponding to different task types, provides a standardized task definition process for the target object. This helps improve the accuracy and completeness of task description data, making training data more aligned with model training needs, reducing data ambiguity, and thus improving the training effect of the task processing model.
[0335] The input control component responds to the sample set generation instruction triggered by the target object, acquires the input text of each sample, generates initial output text using a pre-defined data annotation model, and then obtains the sample output text according to the adjustment instructions of the target object. This constructs a sample set, which is then sent to the integrated scheduling agent. By leveraging the data annotation model to assist data annotation and utilizing its rapid processing capabilities, a large amount of initial output text can be generated in a short time, improving the efficiency of sample set construction. Simultaneously, the adjustment instructions from the target object correct the initial output text, ensuring the quality of the sample set and providing high-quality training data for model training, which helps improve the generalization ability and accuracy of the task processing model.
[0336] The input control component obtains the storage location of the target document and sends the data reading instruction to the plugin scheduling agent through the comprehensive scheduling agent. The plugin scheduling agent then uses a matching document reading plugin to read each sample input text from the target document and sends it to the input control component. This process leverages the flexibility of the plugin scheduling agent, enabling it to select the appropriate document reading plugin based on the different formats of the target document, thus achieving effective reading of documents in various formats. This improves the compatibility and efficiency of data acquisition, ensures the accurate acquisition of sample input text, and provides sufficient data support for model training.
[0337] The integrated scheduling agent generates at least one preprocessing instruction based on the initial data and sends it to the functional scheduling agent. The functional scheduling agent then schedules the corresponding functional agent to process the initial data. Each functional agent performing data preprocessing performs one dimension of data processing and sends the processed initial data back to the integrated scheduling agent. The data preprocessing process includes operations such as data parsing, formatting, and cleaning, which removes noise and outliers from the data, making it more standardized and consistent. This improves the model's ability to understand and process data, reduces data interference with model training, and thus enhances the model's training effectiveness and efficiency.
[0338] The template agent parses the thought chain based on template configuration information to obtain various inference subtasks. It then generates corresponding subtask templates for each subtask and concatenates them to obtain the initial prompt template. This thought chain-based prompt template generation method breaks down the target task into multiple logically ordered inference subtasks, each corresponding to a reasoning step. This decomposition method enables the model to reason more systematically when processing the target task, improving its reasoning ability and processing performance, and enhancing the stability and controllability of the model's output.
[0339] Based on task description data, the integrated scheduling agent determines the corresponding scheduling order and configuration information for the template agent, function scheduling agent, and training agent, respectively, to execute the training of the task processing model according to the scheduling order. A reasonable scheduling order and configuration information ensure smoother collaboration among the agents, avoiding conflicts and chaos during training. This improves the standardization and coordination of the training process, enabling more effective use of training resources and thus increasing the training efficiency of the task processing model.
[0340] When the format of the sample content in the sample set differs from the format of the initial predicted text output by the large model, the holistic scheduling agent sends the initial predicted text and a format conversion request to the plugin scheduling agent. The plugin scheduling agent then calls a matching format conversion plugin to process the initial predicted text to obtain the target predicted text, which is then forwarded by the holistic scheduling agent to the training agent. The training agent continues to train the large model based on the target predicted text. This format conversion mechanism solves the problem of data format mismatch, ensuring that the model output can be effectively compared and evaluated with the sample data. This improves the accuracy and efficiency of model training, enabling the model to better learn the features of the sample data.
[0341] When at least one constraint includes the retrieval enhancement generation result and the retrieval range includes the target location, the functional scheduling agent sends a content reading instruction to the plug-in scheduling agent through the comprehensive scheduling agent. The plug-in scheduling agent reads the data content at the target location and sends it to the functional scheduling agent. The functional agent, which implements the retrieval enhancement generation function, then performs retrieval enhancement generation processing based on this data content. This process provides additional knowledge and information to the prompt template, compensating for the model's data deficiencies by introducing external data. This allows the model to acquire more relevant information when processing the target task, improving its processing power and accuracy, and enhancing its generalization ability.
[0342] The agent generation component determines a base model from various candidate large models, obtains matching training samples based on a pre-defined agent task, performs multiple rounds of iterative training on the base model to obtain the target model, and encapsulates the target model and developed auxiliary functions into the generated agent. This agent generation method can flexibly generate agents with various functions according to actual processing needs. Through training and optimization of the base model, the agent can better adapt to different task requirements, improving the system's scalability and adaptability, and enhancing the system's ability to handle complex tasks.
[0343] The deployment component builds a large-scale model application based on the task processing model. It receives business text sent by business objects, processes the business text using the large-scale model application to obtain the task processing results, and then sends them back to the business objects. The deployment component combines the task processing model with application-layer functionality to build a complete large-scale model application. By adding application-layer development features, such as webpage input and chat windows, it facilitates interaction between business objects and the model, improving the model's usability and user experience. Simultaneously, the large-scale model application can perform accurate task processing based on business text, improving the efficiency and accuracy of task processing.
[0344] The deployment component obtains the task script for the scheduled task, executes the script to retrieve the text to be processed, and then applies the large model to process the text at the scheduled time to obtain the task output text. This scheduled task mechanism improves the processing efficiency and automation of the large model application. By executing the task script, the model's capabilities can be applied in batches on a regular basis, reducing manual intervention and improving processing efficiency. At the same time, scheduled tasks ensure that the model processes the text to be processed in a timely manner, improving the model's response speed and processing effect.
[0345] In this application, the training system adopts a unified agent structure and a four-layer responsibility division framework: decision-making layer, planning layer, execution layer, and result layer. The decision-making layer is responsible for analyzing tasks, understanding input and context, and determining the capabilities and methods of application. It can accurately analyze and judge tasks, providing accurate direction for subsequent planning and execution. The planning layer plans the implementation methods and workflows of capabilities, guiding the execution layer to carry out its work in an orderly manner, ensuring that each task is carried out according to a reasonable process, thus improving work efficiency and coordination. The execution layer is responsible for implementing specific tasks, completing the tasks of atomic units, and accurately executing the plans from the planning layer, ensuring the smooth completion of tasks. The result layer collects the results from the execution layer and feeds them back to the decision-making layer, providing a basis for the decision-making layer's next steps, forming a closed-loop workflow that helps to continuously optimize the task processing process. This structure and responsibility division framework improves the collaboration efficiency within agents and between multiple agents, enabling the system to more efficiently complete the training and application of task processing models.
[0346] Furthermore, the plugin scheduling agent in the training system can invoke external plugins at various stages of the training process, such as document reading / writing plugins, data reading / writing plugins, and data format conversion plugins. These plugins operate independently of the model training process, providing additional capabilities to the system. Invoking plugins avoids the cost of secondary development, improving the system's flexibility and scalability. During the data acquisition phase, the document reading / writing plugin can quickly and accurately read documents in various formats, providing sufficient data for model training; the data format conversion plugin can convert data from different formats to meet the requirements of model training, improving the efficiency and quality of data processing.
[0347] It should be noted that although several units or sub-units of the device have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of this application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided and embodied by multiple units.
[0348] Furthermore, although the operations of the method of this application are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.
[0349] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing a computer-usable computer program.
[0350] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more blocks of the flowchart illustrations and / or one or more blocks of the block diagrams.
[0351] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0352] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A training system for a task processing model, comprising a comprehensive scheduling agent, a template agent, a function scheduling agent, various function agents, and a training agent, wherein, The integrated scheduling agent is used to generate training configuration information, template configuration information, and at least one input configuration information based on the task description data of the target task; send the at least one input configuration information to the functional scheduling agent, and send the template configuration information to the template agent; The function scheduling agent is used to schedule the corresponding function agent using the calling information generated based on each input configuration information, and to obtain the constraint information fed back by the function agent. The functional intelligent agent is used to generate constraint information for one constraint dimension based on a call message; The template agent is used to generate an initial prompt template based on the template configuration information; The integrated scheduling agent is further configured to adjust the initial prompt template sent by the template agent based on at least one constraint information sent by the functional scheduling agent to obtain a target prompt template; and send the target prompt template, the training configuration information, and the sample set of the target task to the training agent. and The training agent is used to train a pre-set large model based on the target prompt template, the training configuration information, and the sample set, to obtain a task processing model for processing the target task.
2. The training system as described in claim 1, further comprising a plug-in scheduling agent, wherein, The integrated scheduling agent is used to send test instructions to the plug-in scheduling agent based on the test set of the target task after the task processing model has been trained. The plugin scheduling agent is used to schedule the corresponding test plugins based on the test instructions, and obtain the test results obtained after testing the task processing model based on the test set. The integrated scheduling agent is also used to receive test results sent by the plug-in scheduling agent.
3. The training system as described in claim 2, further comprising an optimizing agent, wherein, The integrated scheduling agent is also used to receive the adjustment description text for the task processing model, and send the adjustment description text and the test results to the optimization agent; The optimization agent is used to generate optimized description text based on the adjusted description text and the test results; The integrated scheduling agent is also used to integrate the task description data and the optimized description text sent by the optimization agent to obtain new task description data, and to trigger the training process for the task processing model based on the new task description data.
4. The training system according to any one of claims 1 to 3, further comprising an input control component, the input control component being used for: In response to a task setting request from a target object, an initial settings page is presented to the target object; After the target object completes the input of basic description information and input description information for the target task on the initial setting page, the output content setting page matching the target task is presented to the target object, and the output description information entered by the target object for the target task on the output content setting page is obtained. The basic description information, the input description information, and the output description information are used as task description data for the target task and sent to the integrated scheduling agent.
5. The training system of claim 4, wherein the input control component is further configured to: In response to a sample set generation instruction triggered by the target object, the input text of each sample is obtained; Using a preset data annotation model, corresponding initial output texts are generated based on each sample input text, and each initial output text is adjusted in response to the target object's adjustment instruction for each initial output text to obtain the output text for each sample. The sample set constructed based on the input text and output text of each sample is sent to the integrated scheduling agent.
6. The training system as described in claim 4 or 5, wherein a sample includes a sample input text and a corresponding sample output text; the training system further includes a plug-in scheduling agent, wherein, The input control component is also used to obtain the storage location of the target document; and to send a data reading instruction containing the storage location to the plug-in scheduling agent through the integrated scheduling agent; The plugin scheduling agent is also used to read each sample input text in the target document based on the storage location in the data reading instruction, using a matching document reading plugin; The input text of each sample is sent to the input control component through the integrated scheduling agent.
7. The training system as described in claim 5 or 6, wherein the integrated scheduling agent is further used to: Based on the initial data, at least one preprocessing instruction is generated, and the at least one preprocessing instruction and the initial data are sent to the function scheduling agent; the initial data includes the basic description information, the input description information, the output description information, the input text of each sample, and at least one type of content in the output text of each sample. The functional scheduling agent is also used to schedule the corresponding functional agent based on each preprocessing instruction to process the current initial data and obtain the processed initial data. A functional intelligent agent for data preprocessing is used to perform data processing on one preprocessing dimension based on the currently obtained initial data to obtain the processed initial data. The functional scheduling agent is also used to send the initial data after the data processing of the at least one preprocessing dimension is completed to the comprehensive scheduling agent to realize content update.
8. The training system according to any one of claims 1 to 7, wherein when the template agent generates an initial prompt template based on the template configuration information, the template agent is specifically used for: Based on the template configuration information, the thought chain is parsed to obtain each reasoning subtask generated based on the template configuration information; Based on each reasoning subtask, a corresponding subtask template is generated, and the subtask prompt templates are combined to obtain the initial prompt template.
9. The training system according to any one of claims 1 to 8, wherein the integrated scheduling agent is further configured to: Based on the task description data, the corresponding scheduling order and configuration information are determined for the template agent, the function scheduling agent, and the training agent, respectively, so as to execute the training of the task processing model according to the scheduling order.
10. The training system according to any one of claims 1-9, wherein the training system further includes a plug-in scheduling agent, wherein, The integrated scheduling agent is also used to send the initial prediction texts and format conversion requests output by the large model in each round of training, which are sent by the training agent, to the plug-in scheduling agent when the format of the sample content in the sample set is different from the format of the initial prediction text output by the large model. The plugin scheduling agent is used to call the matching format conversion plugin to process each initial predicted text according to the format conversion request, so as to obtain each target predicted text of the sample content format. The integrated scheduling agent is also used to forward the target prediction texts sent by the plug-in scheduling agent to the training agent; The training agent is also used to continue training the large model based on the target predicted text.
11. The training system according to any one of claims 1-10, wherein the at least one constraint information includes a retrieval enhancement generation result, and the retrieval range when generating the retrieval enhancement generation result includes the target location, the function scheduling agent is further configured to: send a content reading instruction containing the target location to the plug-in scheduling agent through the comprehensive scheduling agent; The plugin scheduling agent is also used to determine a matching data reading plugin based on the target location in the content reading instruction, and to use the data reading plugin to read the data content at the target location; The data content is sent to the functional scheduling agent through the integrated scheduling agent; A functional agent that implements the retrieval enhancement generation function is used to perform retrieval enhancement generation processing based on the data content sent by the functional agent to obtain the retrieval enhancement generation result.
12. The training system according to any one of claims 1-11, further comprising an agent generation component, the agent generation component being used for: Among various candidate models, the base model is determined; Based on the preset agent task, obtain matching training samples; among them, A training sample includes: a sample input statement, and a sample output statement obtained based on the sample input statement under the agent task; Using the training samples, the base model is trained through multiple rounds of iteration to obtain the trained target model. The target model and the developed auxiliary functions are then encapsulated into a generated intelligent agent.
13. The training system according to any one of claims 1-12, further comprising a deployment component, the deployment component being used for: Based on the aforementioned task processing model, a large-scale model application is constructed; and... The system receives business text sent by a business object to the large model application, and uses the large model application to obtain a task processing result matching the business object based on the business text, and then sends the task processing result to the business object; wherein, The business text is sent via a preset application programming interface, or in a chat window associated with the large model application.
14. The training system of claim 13, wherein the deployment component is further configured to: Obtain the task script for implementing the scheduled task, and obtain each text to be processed by the scheduled task by executing the task script. When the scheduled timing corresponding to the scheduled task is reached, the large model application is used to process each text to be processed to obtain the output text of each task.
15. A method for training a task processing model, executed by an electronic device, comprising: Obtain task description data constructed for the target task, as well as a sample set of the target task; Based on the task description data, generate training configuration information, template configuration information, and at least one input configuration information; An initial prompt template is generated based on the task description data, and constraint information under the corresponding constraint dimension is generated based on at least one input configuration information. The target prompt template is obtained by integrating at least one constraint information and the initial prompt template. and Based on the target prompt template, the training configuration information, and the sample set, a pre-set large model is trained to obtain a task processing model for processing the target task.
16. A training device for a task processing model, comprising: The acquisition unit is used to acquire task description data constructed for the target task, as well as a sample set of the target task; The generation unit is used to generate training configuration information, template configuration information, and at least one input configuration information based on the task description data. An integration unit is used to generate an initial prompt template based on the task description data, generate constraint information under the corresponding constraint dimensions based on at least one input configuration information, and integrate at least one constraint information and the initial prompt template to obtain a target prompt template. The training unit is used to train a pre-set large model based on the target prompt template, the training configuration information, and the sample set, so as to obtain a task processing model for processing the target task.
17. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method of claim 15.
18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the method as described in claim 15.
19. A computer program product comprising a computer program that, when executed by a processor, implements the method of claim 15.
