Information processing method and device, electronic equipment and storage medium
By decomposing the task to be processed into subtasks and using a unified data pattern for processing, the problem of frequent context switching between different languages and encodings in large language models is solved, and the processing accuracy and understanding ability of the model are improved.
Patent Information
- Application Number
- CN202410962278.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-18
AI Technical Summary
Existing large language models frequently switch contexts when processing different types of languages and encodings, resulting in inaccurate results. Moreover, due to differences in syntax and semantic rules, semantic understanding is more difficult, and optimal intention understanding and transformation cannot be achieved.
By decomposing the task to be processed into multiple subtasks, and executing these subtasks in sequence through the trained large language model agent, unified data patterns and mapping rules are used to process heterogeneous data, reducing context switching and improving processing accuracy.
When dealing with complex tasks, decompose the task into independent subtasks, reduce context switching, improve the processing accuracy and understanding of the model, and ensure the accuracy and consistency of the results.
Smart Images

Figure CN118796472A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more specifically, to an information processing method, device, electronic device and storage medium. Background Art
[0002] With the development of information technology, large language models have gradually become a tool for users to solve questions. When users have questions, they can input their questions into the large language model, and the large language model will give answers to the questions.
[0003] However, although existing large language models have many query languages and encoding capabilities, they need to frequently switch contexts when dealing with different types of languages and encodings. For example, when converting from natural language to SQL (Structured Query Language) or writing other types of code, this frequent switching can easily cause the model to lose contextual coherence, thus affecting the accuracy of the results. And because different languages have different grammatical and semantic rules, mixing multiple languages will increase the difficulty of the model's understanding of semantics. Therefore, the model needs to accurately understand the intent of natural language and correctly convert it into the grammatical structure of the target language, which places higher requirements on the model's understanding ability. Current large language models are often not optimal. Summary of the invention
[0004] The purpose of this application is to solve at least one of the above technical defects. The technical solutions provided by the embodiments of this application are as follows: In a first aspect, an embodiment of the present application provides an information processing method, including: Get the pending tasks of the target object; Perform at least one processing operation on the task to be processed until the obtained task result meets the preset conditions, and use the task result that meets the preset conditions as the processing result for the task to be processed; Return the processing result to the target object; Processing operations include: generating at least one subtask based on the task to be processed, and determining an execution order of the at least one subtask; Based on the execution order, at least one subtask is executed in sequence to obtain a task result.
[0005] In an optional embodiment of the present application, before obtaining the to-be-processed tasks of the target object, the following steps are specifically included: Receiving initial information input by the target object, evaluating the initial information through the first task evaluation agent to obtain an evaluation result; the evaluation result is used to indicate the completeness of the initial information; If the evaluation result meets the first preset result, the pending tasks of the target object are obtained, including: Transform initial information into tasks to be processed.
[0006] In an optional embodiment of the present application, the initial information is evaluated to obtain an evaluation result, which specifically includes: Encode the initial information through the task classification agent to obtain the embedding vector corresponding to the initial information; The classification result with the highest similarity to the embedding vector is obtained through the preset embedding service, and the evaluation result is obtained based on the classification result.
[0007] In an optional embodiment of the present application, converting the initial information into a task to be processed specifically includes: Extracting keywords from the initial information, and searching a first associated word corresponding to the keywords from a first preset database; wherein the first preset database stores keywords of multiple historical processing tasks; A task to be processed is generated based on the first associated word.
[0008] In an optional embodiment of the present application, generating at least one subtask based on the task to be processed specifically includes: querying a second associated word associated with the keyword or the keyword or the first associated word from a first preset database through a task planning agent; For each subtask, at least one target keyword is determined from the first associated word, the second associated word and the keyword, and the subtask is generated based on the at least one target keyword.
[0009] In an optional embodiment of the present application, the method further specifically includes: If the evaluation result does not meet the first preset result, the initial information cannot be converted into failure information of the task to be processed; wherein the failure information is composed of a language that can be directly recognized by the target object; Sending failure information to the target object so that the target object modifies the initial information based on the failure information; Receives the modified initial message sent by the target object.
[0010] In an optional embodiment of the present application, the processing operation further specifically includes: The second task evaluation agent extracts key features from the task results, generates corresponding feature vectors based on the key features, and calculates the matching degree between the task results and the task to be processed based on the feature vectors; wherein the preset conditions include that the matching degree is not less than a first preset threshold.
[0011] In an optional embodiment of the present application, if the first matching degree is less than a first preset threshold, and the number of executed processing operations has reached a second preset threshold; The task results that meet the preset conditions are used as the processing results for the tasks to be processed, including: The task result with the highest first matching degree is selected from the obtained task results as the processing result.
[0012] In an optional embodiment of the present application, the method further specifically includes: If there is at least one subtask that has not been executed, obtain the intermediate result of the currently executed subtask, and predict the task result based on the intermediate result through the second task evaluation agent to obtain the predicted result; Obtaining a second matching degree between the prediction result and the task to be processed; If the second matching degree is less than the first preset threshold, the next processing operation is performed.
[0013] In an optional embodiment of the present application, each subtask is executed by a task execution agent; Perform at least one subtask, including: If there are at least two subtasks that can be executed in parallel, the at least two subtasks that can be executed in parallel are respectively assigned to corresponding task execution agents, so that each task execution agent executes each subtask simultaneously.
[0014] In an optional embodiment of the present application, the first task evaluation agent is composed of a trained large language model and a pre-set first prompt feature for instructing the large language model to perform initial information evaluation; The task classification agent is composed of a trained large language model and a pre-set second prompt feature for instructing the large language model to perform task classification; The task planning agent is composed of a trained large language model and a third prompt feature preset to instruct the large language model to perform task planning; The second task evaluation agent is composed of a trained large language model and a fourth prompt feature preset to instruct the large language model to evaluate the task result; The task execution agent is composed of a trained large language model and a fifth prompt feature that is preset to instruct the large language model to perform a task.
[0015] In an optional embodiment of the present application, at least one subtask among the subtasks corresponding to different processing operations is different.
[0016] In an optional embodiment of the present application, before generating at least one subtask based on the task to be processed, the process specifically includes: Searching for a target standard file that matches the task to be processed from each standard file stored in the second preset database; the standard file is used to record the processing operation of the task to be processed; If the target standard file is found, at least one subtask is generated based on the task to be processed, including: At least one subtask is generated based on the processing operation of the target standard file record.
[0017] In an optional embodiment of the present application, the method further specifically includes: Receive feedback information from the target object regarding the processing result, and analyze the feedback information to obtain the analysis result; If the analysis result meets the second preset result, the processing operation for obtaining the processing result is recorded, a corresponding standard file is generated, and the standard file is stored in the second preset database.
[0018] In a second aspect, an embodiment of the present application provides an information processing device, including: A task acquisition module is used to obtain pending tasks of the target object; The task processing module is used to perform at least one processing operation on the task to be processed until the obtained task result meets the preset conditions, and the task result that meets the preset conditions is used as the processing result for the task to be processed; The processing result return module is used to return the processing result to the target object; The task processing module is specifically used for: generating at least one subtask based on the task to be processed, and determining an execution order of the at least one subtask; Based on the execution order, at least one subtask is executed in sequence to obtain a task result.
[0019] In an optional embodiment of the present application, the device further includes an information evaluation module, which is specifically used to: Receiving initial information input by the target object, and evaluating the initial information through the first task evaluation agent to obtain an evaluation result; the evaluation result is used to indicate the completeness of the initial information; If the evaluation result meets the first preset result, the task acquisition module is specifically used to: Transform initial information into tasks to be processed.
[0020] In an optional embodiment of the present application, the information evaluation module is further used to: Encode the initial information through the task classification agent to obtain the embedding vector corresponding to the initial information; The classification result with the highest similarity to the embedding vector is obtained through the preset embedding service, and the evaluation result is obtained based on the classification result.
[0021] In an optional embodiment of the present application, the task acquisition module may also be used to: Extracting keywords from the initial information, and searching a first associated word corresponding to the keywords from a first preset database; wherein the first preset database stores keywords of multiple historical processing tasks; A task to be processed is generated based on the first associated word.
[0022] In an optional embodiment of the present application, the task processing module is further used to: querying a second associated word associated with the keyword or the first associated word from a first preset database through a task planning agent; For each subtask, at least one target keyword is determined from the first associated word, the second associated word and the keyword, and the subtask is generated based on the at least one target keyword.
[0023] In an optional embodiment of the present application, the information evaluation module may also be used to: If the evaluation result does not meet the first preset result, the initial information cannot be converted into failure information of the task to be processed; wherein the failure information is composed of a language that can be directly recognized by the target object; Sending failure information to the target object so that the target object modifies the initial information based on the failure information; Receives the modified initial message sent by the target object.
[0024] In an optional embodiment of the present application, the task processing module may also be used to: The second task evaluation agent extracts key features from the task results, generates corresponding feature vectors based on the key features, and calculates the matching degree between the task results and the task to be processed based on the feature vectors; wherein the preset conditions include that the matching degree is not less than a first preset threshold.
[0025] In an optional embodiment of the present application, if the first matching degree is less than the first preset threshold, and the number of executed processing operations has reached the second preset threshold; The task processing module is specifically used for: The task result with the highest first matching degree is selected from the obtained task results as the processing result.
[0026] In an optional embodiment of the present application, the task processing module may also be used to: If there is at least one subtask that has not been executed, obtain the intermediate result of the currently executed subtask, and predict the task result based on the intermediate result through the second task evaluation agent to obtain the predicted result; Obtaining a second matching degree between the prediction result and the task to be processed; If the second matching degree is less than the first preset threshold, the next processing operation is performed.
[0027] In an optional embodiment of the present application, each subtask is executed by a task execution agent; The task processing module can also be used to: If there are at least two subtasks that can be executed in parallel, the at least two subtasks that can be executed in parallel are respectively assigned to corresponding task execution agents, so that each task execution agent executes each subtask simultaneously.
[0028] In an optional embodiment of the present application, the first task evaluation agent is composed of a trained large language model and a pre-set first prompt feature for instructing the large language model to perform initial information evaluation; The task classification agent is composed of a trained large language model and a pre-set second prompt feature for instructing the large language model to perform task classification; The task planning agent is composed of a trained large language model and a third prompt feature preset to instruct the large language model to perform task planning; The second task evaluation agent is composed of a trained large language model and a fourth prompt feature preset to instruct the large language model to evaluate the task result; The task execution agent is composed of a trained large language model and a fifth prompt feature that is preset to instruct the large language model to perform a task.
[0029] In an optional embodiment of the present application, at least one subtask among the subtasks corresponding to different processing operations is different.
[0030] In an optional embodiment of the present application, the device further includes a standard file acquisition module, which is specifically used to: Searching for a target standard file that matches the task to be processed from each standard file stored in the second preset database; the standard file is used to record the processing operation of the task to be processed; If the target standard file is found, the task processing module can also be used to: At least one subtask is generated based on the processing operation of the target standard file record.
[0031] In an optional embodiment of the present application, the device further includes a standard file storage module, which is specifically used to: Receive feedback information from the target object regarding the processing result, and analyze the feedback information to obtain the analysis result; If the analysis result meets the second preset result, the processing operation for obtaining the processing result is recorded, a corresponding standard file is generated, and the standard file is stored in the second preset database.
[0032] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory; The processor executes the computer program to implement the method provided in the embodiment of the first aspect or any optional embodiment of the first aspect.
[0033] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method provided in the embodiment of the first aspect or any optional embodiment of the first aspect is implemented.
[0034] The beneficial effects of the technical solution provided by the embodiment of the present application are: The solution provided by the present application, after obtaining the pending task input by the target object, divides the pending task into multiple subtasks, and executes each subtask one by one to obtain the processing result of the pending task. When encountering a more complex pending task, the complex pending task can be decomposed into multiple independent subtasks. When executing each subtask separately, there is no need to experience frequent context switching, nor to consider the coherence of the context, thereby improving the accuracy of the model's processing of the pending task and the model's ability to understand. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.
[0036] Figure 1 A flowchart of an information processing method provided in an embodiment of the present application; Figure 2 A flowchart of a processing operation method in an example of an embodiment of the present application; Figure 3 A schematic diagram of an architecture for unified modeling of heterogeneous data in an example of an embodiment of the present application; Figure 4 This is a schematic diagram of the overall process of an information processing method in an example of an embodiment of the present application; Figure 5 A schematic diagram of a flow chart of a method for generating a standard file in an example of an embodiment of the present application; Figure 6 A structural block diagram of an information processing device provided in an embodiment of the present application; Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0038] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the one element may be directly connected or coupled to the other element, or it may refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by the term, for example, "A and / or B" may be implemented as "A", or as "B", or as "A and B".
[0039] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0040] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.
[0041] Figure 1 A flowchart of an information processing method is provided for an embodiment of the present application. The execution subject of the method may be a terminal (such as a computer, a mobile phone, etc.). Figure 1 As shown, the method may include: Step S101, obtaining the pending tasks of the target object.
[0042] The target object may be a user or other machine terminal, etc., which is not limited in this application. The task to be processed may represent the needs of the target object.
[0043] Specifically, in an embodiment of the present application, the above step S101 can be performed by a task classification agent, which includes a trained classification model. The input and output of the model can both be natural language, which is used to classify the information input by the target object, and obtain the task to be processed based on the classification result output by the model.
[0044] Step S102, performing at least one processing operation on the task to be processed until the obtained task result meets the preset condition, and taking the task result that meets the preset condition as the processing result for the task to be processed.
[0045] The preset conditions may indicate whether the task result of the task to be processed meets the requirements.
[0046] Specifically, in an embodiment of the present application, the above step S102 can be implemented jointly by a task execution agent and a task planning agent. The task execution agent includes a task execution model for executing subtasks, and the task planning agent includes a planning model for planning tasks to be processed. After obtaining the task to be processed, the task to be processed can be first planned by the task planning agent to obtain multiple subtasks, and the planned subtasks can be processed by the task execution agent. After processing each subtask to obtain the task result, it can also be determined whether the task result meets the preset conditions (such as whether the problem to be processed is well solved). If the preset conditions are not met, the task planning agent and the task execution agent can be re-processed to process the task to be processed until the task result obtained meets the preset conditions, and the task result obtained this time is used as the final processing result for the task to be processed.
[0047] It should be noted that since different types of subtasks often need to call different data sources when executing, and different data sources are heterogeneous, in order to enable the task execution agent to process various types of subtasks, it is necessary to unify the different data sources in advance. The embodiment of the present application provides an example method for unified modeling, such as Figure 3 As shown, the details are as follows: 1. Define standardized data models and mapping rules to combine relational data, document data, time series data, and API (Application Programming Interface) response results, map metadata to a unified interface (i.e., unified interface layer), and use the same SQL syntax to perform joint queries on heterogeneous data; a. Define standardized data schema and mapping rules i. Design a unified data model that covers different types of data sources, including relational data, document data, time series data, and API response results.
[0048] ii. Establish data mapping rules to map the metadata of various data sources (such as table structure, field name, data type, etc.) into a unified data model.
[0049] iii. Use metadata management tools to record and maintain metadata of all data sources to ensure data consistency and traceability.
[0050] b. Metadata mapping to unified interface i. Convert metadata from different data sources into a unified format using mapping rules and register them in the central metadata repository.
[0051] ii. Design a unified interface so that data from various data sources can be accessed and processed through this interface.
[0052] c. Standardized SQL syntax joint query i. Develop an abstract query layer to implement unified SQL syntax parsing and conversion.
[0053] ii. The abstract query layer receives standardized SQL query statements and converts them into specific query commands for different data sources.
[0054] iii. Supports joint queries across data sources and can integrate data from different data sources into the same query result.
[0055] d. Data access and processing i. Develop a data access module, which is responsible for communicating with various data sources, executing specific query commands and obtaining data.
[0056] ii. The data access module implements transparent access to different data sources based on a unified interface and standardized SQL syntax.
[0057] iii. Provide a data processing module to integrate and process query results to ensure data consistency and integrity.
[0058] e. System optimization and expansion i. Optimize query execution plans to improve the performance and efficiency of joint queries.
[0059] ii. Support dynamic data source access, be able to introduce new data sources at any time, and automatically complete metadata mapping and interface registration.
[0060] iii. Provide an extension interface to facilitate future support for more types of data sources and query syntax.
[0061] 2. Dynamic data source access: Supports the introduction of new data sources at any time. The multi-agent system uses the metadata information of the data source to use the new data on demand in a timely manner without adjusting the workflow and algorithm logic a. Dynamic data source detection and registration i. Use the data source monitoring module to monitor and detect new data source access events in real time.
[0062] ii. After a new data source is connected, the system automatically parses its metadata information through the metadata parsing module, including data structure, field type, relationship model, etc.
[0063] iii. Register the parsed metadata into the metadata central repository to ensure that all agents in the system can access and utilize it.
[0064] b. Metadata mapping and standardization i. Based on the unified data model and mapping rules, the metadata of the new data source is mapped into the standardized data model according to the metadata mapping rules.
[0065] ii. Ensure that different types of data sources (such as relational, document, time series, etc.) can be accessed and processed through standardized interfaces.
[0066] c. Agent coordination and task allocation i. The multi-agent system allocates corresponding agents to handle the access and utilization tasks of new data sources through a coordination mechanism.
[0067] ii. Each agent dynamically adjusts data query and processing strategies based on the metadata information of the new data source to ensure efficient use of data.
[0068] d. Real-time query and joint analysis i. Adopt an abstract query layer, a unified query interface, and standardized SQL syntax to enable new data sources to be jointly queried and analyzed with existing data sources.
[0069] ii. Support real-time data access and analysis to ensure that new data sources can provide data support immediately after access, thereby improving the real-time performance and decision-making efficiency of the system.
[0070] e. Seamless integration and system optimization i. The system automatically integrates new data sources without manual intervention or adjustment of existing workflows and algorithm logic.
[0071] ii. Use the feedback mechanism to monitor the utilization of data sources in real time, optimize the task allocation and data processing flow of intelligent agents, and ensure the continuous and efficient operation of the system.
[0072] Step S103, returning the processing result to the target object.
[0073] Specifically, after obtaining a processing result that meets the preset conditions, it is considered that the task to be processed proposed by the target object has been solved, so the processing result can be fed back to the target object.
[0074] Figure 2 A schematic diagram of a processing operation flow is provided for an embodiment of the present application. The execution subject of the method may be a terminal (such as a computer, a mobile phone, etc.). Figure 2 As shown, the processing operation includes: Step S201: Generate at least one subtask based on the task to be processed, and determine the execution order of the at least one subtask.
[0075] Specifically, in each processing operation, the task to be processed can be decomposed into at least one subtask through the task planning agent, and the execution order of each subtask can be determined.
[0076] Step S202: based on the execution order, execute at least one subtask in sequence to obtain a task result.
[0077] Specifically, when the task planning agent has completed the decomposition of the task to be processed, each subtask can be assigned to the task execution agent in turn. The task execution agent can then process each subtask in turn based on the execution order. When all subtasks are processed, the task result can be obtained.
[0078] It should be noted that the task execution agent provided by the present application scheme can be used to execute all types of sub-tasks, and there is no need to design different types of task execution agents according to different types of sub-tasks.
[0079] It should be noted that in the solution provided in the present application, when the task execution agent is executing each subtask, it can also provide real-time feedback of the execution results of each subtask to the task planning agent. The task planning agent can also adjust the subtask planning in real time (i.e., dynamically adjust) according to the feedback execution results, so as to better improve the processing accuracy of the tasks to be processed.
[0080] The solution provided by the present application, after obtaining the pending task input by the target object, divides the pending task into multiple subtasks, and executes each subtask one by one to obtain the processing result of the pending task. When encountering a more complex pending task, the complex pending task can be decomposed into multiple independent subtasks. When executing each subtask separately, there is no need to experience frequent context switching, nor to consider the coherence of the context, thereby improving the accuracy of the model's processing of the pending task and the model's ability to understand.
[0081] In an optional embodiment of the present application, before obtaining the to-be-processed tasks of the target object, the following steps are specifically included: Receiving initial information input by the target object, evaluating the initial information through the first task evaluation agent to obtain an evaluation result; the evaluation result is used to indicate the completeness of the initial information; If the evaluation result meets the first preset result, the pending tasks of the target object are obtained, including: Transform initial information into tasks to be processed.
[0082] The initial information may be text content actually input by the target object. The first preset result is used to characterize the clarity and completeness of the initial information.
[0083] Specifically, in the embodiment of the present application, the target object inputs the initial information in the natural language used by the target object. Therefore, in order to facilitate understanding of the target object's intention, the initial information needs to be converted into the task to be processed. Specifically, Figure 4 As shown, the initial information input by the target object can be evaluated by the first task evaluation agent (also called the task clarification agent, hereinafter referred to as the task clarification agent). When the evaluation result meets the first preset result, it means that the initial information input by the target object is relatively clear and complete and can be understood by the task clarification agent. At this time, the task clarification agent can inform the task classification agent to convert the initial information into tasks to be processed.
[0084] Furthermore, after the task classification agent converts the initial information into tasks to be processed, it can also feed back the tasks to be processed to the target object for confirmation, and the target object will confirm whether the intention of the converted problem to be processed is consistent with the original intention of the target object.
[0085] In an optional embodiment of the present application, the initial information is evaluated to obtain an evaluation result, which specifically includes: Encode the initial information through the task classification agent to obtain the embedding vector corresponding to the initial information; The classification result with the highest similarity to the embedding vector is obtained through the preset embedding service, and the evaluation result is obtained based on the classification result.
[0086] Among them, the preset embedding service can be pre-built according to the needs, which contains various embedding vectors and corresponding task classifications collected through online data and a large amount of experimental data. The embedding vector can be obtained by using the text-to-vector technology on the initial information input by the user. This technology can be achieved by inputting the natural language text of the initial information into a pre-trained embedding model, and then the model outputs the corresponding vector.
[0087] Specifically, in an embodiment of the present application, in order to evaluate the initial information input by the user, the initial information input by the user can first be encoded into a corresponding embedding vector by using the text-turning technology, and then the task classification corresponding to the embedding vector is matched from the preset embedding service by using the retrieval-augmented generation (RAG) technology. Since each initial information text is not necessarily exactly the same, the embedded vectors obtained by conversion are also different. Therefore, when matching the task classification, multiple classification results with a certain degree of similarity are generally matched. At this time, the task classification with the highest similarity can be used as the classification result. At this time, since the classification result can be matched, an evaluation result representing "initial information is complete" can be obtained. If a classification result with a certain degree of similarity cannot be matched when matching the task classification, an evaluation result representing "initial information is incomplete" is obtained, and the result is returned to the user at the same time, so that the user can re-enter new initial information based on the evaluation result.
[0088] In an optional embodiment of the present application, converting the initial information into a task to be processed specifically includes: Extracting keywords from the initial information, and searching a first associated word corresponding to the keywords from a first preset database; wherein the first preset database stores keywords of multiple historical processing tasks; A task to be processed is generated based on the first associated word.
[0089] Specifically, in order to understand the intention of the target object, it is often necessary to extract keywords from the initial information. For example, when the target object enters the initial information "I want to see last month's sales data", the keywords "last month" and "sales data" can be extracted. For the keyword "last month", the first associated word "history" can be found from the first preset database (such as the recall enhancement service). At the same time, combined with "sales data", historically processed tasks can be found from the first preset database, such as "Historical Monthly Sales Data Report" and the calculation method of the report. Then, based on these contents, the initial information entered by the target object is understood, and the task to be processed is obtained as "a) Sales volume of goods A, B, and C last month, month-on-month. b) If the monthly sales volume change of a specific product is greater than 10%, it is confirmed that the sales volume change of the product is in different sales channels, and the contribution value of each sales channel to the entire monthly change is calculated. " In an optional embodiment of the present application, generating at least one subtask based on the task to be processed specifically includes: querying a second associated word associated with the keyword or the first associated word from a first preset database through a task planning agent; For each subtask, at least one target keyword is determined from the first associated word, the second associated word and the keyword, and the subtask is generated based on the at least one target keyword.
[0090] Specifically, when the first associated word is obtained, in order to better respond to the needs of the target object, the embodiment of the present application can further diverge on the basis of the first associated word, that is, to find a second associated word related to the first associated word, and can simultaneously combine the keywords, the first associated word and the second associated word to generate subtasks. Taking the example of the above optional embodiment as an example, after finding the keyword "last month" and the first associated word "history", the second associated word "the month before last" can be derived, and the second associated word "monthly difference" can also be determined based on the "monthly changes" in the task to be processed. Finally, the following subtasks are determined based on the above keywords, the first associated word and the second associated word: a) Query the monthly sales of products A, B, and C respectively last month.
[0091] b) Query the monthly sales of products A, B, and C in the previous month.
[0092] c) Calculate the monthly difference between commodities A, B, and C d) Calculate the month-on-month growth of products A, B, and C.
[0093] e) Determine whether there is a product with a month-on-month growth rate greater than 10%.
[0094] For task e), i. If not, output template 1.
[0095] ii. If yes, mark the item or items and continue calculation: 1. Calculate the sales change of a specific product in each channel last month.
[0096] 2. Calculate the sales change of a specific product in each channel in the previous month.
[0097] 3. Calculate the monthly difference in sales volume for each channel for a specific product.
[0098] 4. Calculate the monthly difference in sales volume for each channel for a specific product as a percentage of the change in total sales volume for that product.
[0099] 5. After the calculation of all marked products is completed, output template 2.
[0100] At this point, the process of decomposing the task to be processed into multiple subtasks has been achieved.
[0101] Furthermore, in the above example, the forms of template 1 and template 2 can be as follows: a) Template 1: Sales volume of products A, B, and C last month, month-on-month changes.
[0102] b) Template 2: Sales volume of products A, B, and C last month, month-on-month changes.
[0103] i. Product {name} 1. Monthly sales volume of channel x, monthly difference, and proportion of the monthly difference of the product.
[0104] 2. Monthly sales volume of channel y, monthly difference, and proportion of the monthly difference of the product.
[0105] 3. Monthly sales volume of channel z, monthly difference, and proportion of the monthly difference of the product.
[0106] ii. More additional information.
[0107] In an optional embodiment of the present application, the method further specifically includes: If the evaluation result does not meet the first preset result, the initial information cannot be converted into failure information of the task to be processed; wherein the failure information is composed of a language that can be directly recognized by the target object; Sending failure information to the target object so that the target object modifies the initial information based on the failure information; Receives the modified initial message sent by the target object.
[0108] Specifically, Figure 4 As shown, in an embodiment of the present application, when the task clarification agent evaluates the initial information input by the target object and finds that it does not meet the first preset result, it means that the initial information input by the target object is not clear and complete enough and cannot be understood by the task clarification agent. At this time, the task clarification agent can extract the unclear and incomplete parts of the initial information, and generate corresponding failure information to feedback to the target object. After receiving the failure information, the target object can modify or supplement the unclear and incomplete parts of the initial information based on the failure information, and then send the modified or supplemented initial information to the task clarification agent again for evaluation.
[0109] In an optional embodiment of the present application, the processing operation further specifically includes: The second task evaluation agent extracts key features from the task results, generates corresponding feature vectors based on the key features, and calculates the matching degree between the task results and the task to be processed based on the feature vectors; wherein the preset conditions include that the matching degree is not less than a first preset threshold.
[0110] Specifically, Figure 4As shown, each time each subtask is processed and the task result is obtained, in order to determine whether the task result obtained in this execution meets the requirements of the task to be processed, it is necessary to calculate the first matching degree between the task result and the task to be processed through the second task evaluation agent. Specifically, the second task evaluation agent will first summarize the completion status of each subtask through its own aggregation ability during the evaluation phase. After all subtasks are completed, the key features of the task result will be extracted and represented as appropriate feature vectors. Since user requirements can be represented by the embedding vector corresponding to the initial information input by the user, the first matching degree between the task result and the user requirement can be calculated based on the feature vector and the embedding vector. Common matching degree calculation methods include cosine similarity, Euclidean distance, etc. If the first matching degree is not less than the first preset threshold, it means that the obtained task result meets the requirements of the task to be processed, and there is no need to perform the next processing operation at this time. If the first matching degree is less than the first preset threshold, it indicates that the obtained task result does not meet the requirements of the task to be processed. At this time, it is necessary to regenerate new subtasks based on the task to be processed and re-execute the new subtasks. After the new subtasks are executed, the first matching degree between the task result and the task to be processed is calculated again until the first matching degree is not less than the first preset threshold.
[0111] It should be noted that when the task execution agent executes each subtask, errors may occur in the subtask. In the embodiment of the present application, the task execution agent can also automatically correct the errors to ensure a smooth execution process.
[0112] In an optional embodiment of the present application, if the first matching degree is less than a first preset threshold, and the number of executed processing operations has reached a second preset threshold; The task results that meet the preset conditions are used as the processing results for the tasks to be processed, including: The task result with the highest first matching degree is selected from the obtained task results as the processing result.
[0113] Specifically, due to limited resources, an upper limit on the number of processing operations (i.e., the second preset threshold) is often set for the same task to be processed. Therefore, in the embodiment of the present application, when the number of processing operations executed reaches the second preset threshold, no new processing operations will be performed. At this time, the task result with the highest first matching degree among the processing operations that have been performed can be fed back to the target object as the processing result, and the target object can also be informed that the first matching degree of the processing result does not meet expectations, so that the target object can understand the details.
[0114] In an optional embodiment of the present application, the method further specifically includes: If there is at least one subtask that has not been executed, obtain the intermediate result of the currently executed subtask, and predict the task result based on the intermediate result through the second task evaluation agent to obtain the predicted result; Obtaining a second matching degree between the prediction result and the task to be processed; If the second matching degree is less than the first preset threshold, the next processing operation is performed.
[0115] Specifically, in an embodiment of the present application, the task evaluation agent can also predict the task result when all subtasks have not been fully executed. Since the subtasks are relatively simple, this process can basically achieve a high degree of accuracy. Specifically, when any subtask except the last subtask is completed, the intermediate results of the subtasks that have been executed will be obtained. At this time, the task evaluation agent can predict the task result based on the intermediate result, and obtain the predicted result for the task result. At the same time, the second matching degree between the predicted result and the task to be processed is calculated by a method similar to that described above. If the calculated second matching degree is less than the first preset threshold, it means that the predicted final task result of this processing operation does not meet the requirements of the task to be processed. At this time, in order to save resources and improve efficiency, the processing operation can be stopped and a new processing operation can be restarted directly.
[0116] In an optional embodiment of the present application, each subtask is executed by a task execution agent; Perform at least one subtask, including: If there are at least two subtasks that can be executed in parallel, the at least two subtasks that can be executed in parallel are respectively assigned to corresponding task execution agents, so that each task execution agent executes each subtask simultaneously.
[0117] Specifically, in the embodiment of the present application, after determining the execution order of each subtask, if it is found that some subtasks can be executed in parallel, then these subtasks that can be executed in parallel can be assigned to different task execution agents at the same time, so that the parallel execution of these subtasks can be achieved, which can significantly improve the execution efficiency of the subtasks. For each subtask that needs to be executed serially, it is executed by the task execution agent in sequence according to the original execution order.
[0118] It should be noted that, since each task execution agent can execute all types of sub-tasks, the theoretical structures of the task execution agents in the embodiments of the present application are exactly the same.
[0119] In an optional embodiment of the present application, the first task evaluation agent is composed of a trained large language model and a pre-set first prompt feature for instructing the large language model to perform initial information evaluation; The task classification agent is composed of a trained large language model and a pre-set second prompt feature for instructing the large language model to perform task classification; The task planning agent is composed of a trained large language model and a third prompt feature preset to instruct the large language model to perform task planning; The second task evaluation agent is composed of a trained large language model and a fourth prompt feature preset to instruct the large language model to evaluate the task result; The task execution agent is composed of a trained large language model and a fifth prompt feature that is preset to instruct the large language model to perform a task.
[0120] Specifically, in the embodiment of the present application, each agent is composed of a trained large language model and a prompt feature corresponding to the function performed by the agent. The prompt feature can be a prompt word, or other text or special symbol, etc., which is not limited in the embodiment of the present application.
[0121] In an optional embodiment of the present application, at least one subtask among the subtasks corresponding to different processing operations is different.
[0122] Specifically, in actual production operations, for the same task to be processed, there is often a certain degree of randomness between each processing operation, so in most cases, there are often certain differences between the subtasks generated by different processing operations. However, once the subtasks generated and the execution order of different processing operations are exactly the same, no matter how many times they are executed, the final task result will be the same. Therefore, in order to make the step of regenerating subtasks meaningful, at least one subtask is different among the subtasks generated by each processing operation in the embodiment of the present application.
[0123] In an optional embodiment of the present application, before generating at least one subtask based on the task to be processed, the process specifically includes: Searching for a target standard file that matches the task to be processed from each standard file stored in the second preset database; the standard file is used to record the processing operation of the task to be processed; If the target standard file is found, at least one subtask is generated based on the task to be processed, including: At least one subtask is generated based on the processing operation of the target standard file record.
[0124] Specifically, before performing a processing operation on the task to be processed, the embodiment of the present application can also query whether there is a task record similar to the task to be processed in the history. Specifically, it can be queried from the second preset database whether there is a target standard file for a historical task that is the same or similar to the task to be processed, and the standard file is used to record the processing operation of the processed task. If it exists, the processing record in the target standard file can be read, and the task to be processed can be processed according to the processing record (including the planning and splitting of subtasks, whether subtasks need to be executed in parallel, etc.).
[0125] In an optional embodiment of the present application, the method further specifically includes: Receive feedback information from the target object regarding the processing result, and analyze the feedback information to obtain the analysis result; If the analysis result meets the second preset result, the processing operation for obtaining the processing result is recorded, a corresponding standard file is generated, and the standard file is stored in the second preset database.
[0126] Specifically, Figure 5 As shown in the embodiment of the present application, after the processing result is returned to the target object, the target object can provide feedback on the processing result, and the feedback intelligent analysis body receives the feedback information and analyzes the feedback information at the same time to obtain the analysis result. If the analysis result is satisfactory (i.e., the second preset result), it means that the processing operation of the task to be processed is relatively successful. At this time, the process of the processing operation can be recorded and made into a standard file and stored in the second preset database. The standard file template used when generating the standard file can be provided by business experts in related fields. So that the processing operation process can be directly called next time the same or similar task to be processed is encountered.
[0127] The solution provided by this application is further described below with reference to different scenario examples. 1. Taking the operation and maintenance scenario as an example, the online alarm prompts that the CPU (central processing unit) usage is too high, exceeding the warning threshold, soaring above the threshold within a few minutes, and not falling back to normal levels for a period of time. In the cloud database scenario, this event will seriously affect production. After receiving the alarm: Step 1. Task Classification The agent receives a specific alarm event, classifies the event into the category of “resource overload”, and returns relevant input information and introductions (i.e., standard documents) such as the standard operating procedures related to CPU overload and previously successfully processed tasks; Step 2. Because the alarm is a non-human request (i.e., the target object is not a human), it provides relatively complete information in a fixed format, so the task clarification agent determines that the information is sufficient and no additional information is needed; Step 3. The task planning agent receives the task to be processed, further searches for different troubleshooting solutions for CPU overload, and then selects the most similar ones to determine the troubleshooting steps for this time; Step 4. The task execution agent performs the following operations in sequence: a. Obtain the alarm cluster metadata and fault time; b. Filter the event system and key timing indicators (such as business load, thread pool, etc.) based on the above information; c. Perform anomaly analysis, correlation analysis, and sequence pattern mining on different indicators to find potential causes; d. Obtain the CPU flame graph information for the corresponding time period and obtain the function call stack with the largest contribution; e. Combining the information in c and d, we can analyze the cause of CPU overload; Step 5. The task evaluation agent further analyzes the conclusion of the task execution agent and believes that log information should be added as a supplement to better support this conclusion; Step 6. The task planning agent further provides the demand information for the new supplementary task, that is, querying the logs of a specific component module within a specific time range, and then performing text clustering; Step 7. The task execution agent executes the supplementary tasks as required, and finally obtains the most important category of the relevant logs; Step 8. The task execution agent compares the log with the previous analysis conclusions and finds correlation, and adds log-related evidence to the original analysis; Step 9. The task execution agent searches for the conclusions of this analysis, finds solutions in similar cases, and adds operational suggestions to the original analysis; Step 10. The task evaluation agent believes that the analysis conclusion can solve the demand problem and the operation suggestion is reasonable. It sends the final step request to the task planning agent, notifies the R&D personnel of the relevant cause analysis, and pre-submits the operation and maintenance operation online, waiting for manual approval; Step 11. The task planning agent decomposes each step into executable subtasks with sufficient information; Step 12. The task execution agent calls the unified query interface to query the person on duty that day and sends the cause analysis report to him; then pre-submits the online operation and maintenance operation and notifies the person on duty; Step 13. The on-duty personnel reviews the report and reviews the operation and maintenance operations submitted by the agent. They believe that the content of the report is basically correct and the online operation request is beneficial to improving the problem. They approve the operation and recognize the report. Step 14. The approved report will be compared with the content in the existing search library. If there are any differences with the existing report, it will be persisted in the search library to provide useful information for the next similar task.
[0128] 2. Taking the periodic automatic update of the vector database as an example, after being triggered by the scheduled task manager: Step 1. After the task classification agent receives the task of updating the community document embedding update, the task classification agent classifies the event into the category of "update document retrieval" and returns the relevant standard operating procedures; Step 2. Because this task is not a human request and relatively complete information is provided in a fixed format, the task clarification agent determines that the information is sufficient and no human supplementation is required; Step 3. The task planning agent receives the task, further queries the tools involved in the standard operating process and the current list of available tools, and finally instantiates the parameters involved in the task into the standard operating process according to the input requirements of the tools to form the task steps for this operation; Step 4. The task execution agent performs the following operations in sequence, where each step will check whether it is completed as expected, and if not, it will try to repair itself; a. Query GPU (graphics processing unit) computing resources on a specific public cloud platform; b. After confirming that there are suitable resources, start the GPU instance that meets the minimum computing power requirements and arrange the corresponding dependencies; c. Remotely connect to the instance and check whether the GPU driver and environment are working properly. If not, shut down the instance and restart it. d. Pull the document repository to be embedded; e. Split the document as required, edit its metadata, and vectorize each document; f. Write the vector data of the new version of the document to the target vector database, and compare the vector quantities of the new and old versions to determine whether they meet expectations; g. Shut down the GPU instance and confirm that it is shut down successfully and cannot be connected; h. Connect to the server where the "Document Assistant" service is located and write the updated document version to the configuration file; Step 5. The task evaluation agent confirms the operation of the task execution agent and believes that it has completed the task as expected and the updated information provided is complete and valid. It sends the final step request to the task planning agent, sends the relevant information to the person in charge of the "Document Assistant" service, and pre-submits the operation and maintenance operation online, waiting for manual approval; Step 6. The task planning agent decomposes each step into executable subtasks with sufficient information; Step 7. The task execution agent sends an event to the service manager, including the corresponding change information, and requests the manager to implement the online change. Step 8. After the person in charge confirms the information, restart the online service to complete the change. End users can then find the latest information in the "Document Assistant" in a timely manner.
[0129] Figure 6 A structural block diagram of an information processing device provided in an embodiment of the present application, such as Figure 6 As shown, the information processing device 600 may include: a task acquisition module 601, a task processing module 602 and a processing result returning module 603, wherein: The task acquisition module 601 is used to acquire the pending tasks of the target object; The task processing module 602 is used to perform at least one processing operation on the task to be processed until the obtained task result meets the preset condition, and the task result that meets the preset condition is used as the processing result for the task to be processed; The processing result returning module 603 is used to return the processing result to the target object; The task processing module 602 is specifically used for: generating at least one subtask based on the task to be processed, and determining an execution order of the at least one subtask; Based on the execution order, at least one subtask is executed in sequence to obtain a task result.
[0130] The solution provided by the present application, after obtaining the pending task input by the target object, divides the pending task into multiple subtasks, and executes each subtask one by one to obtain the processing result of the pending task. When encountering a more complex pending task, the complex pending task can be decomposed into multiple independent subtasks. When executing each subtask separately, there is no need to experience frequent context switching, nor to consider the coherence of the context, thereby improving the accuracy of the model's processing of the pending task and the model's ability to understand.
[0131] In an optional embodiment of the present application, the device further includes an information evaluation module, which is specifically used to: Receiving initial information input by the target object, and evaluating the initial information through the first task evaluation agent to obtain an evaluation result; the evaluation result is used to indicate the completeness of the initial information; If the evaluation result meets the first preset result, the task acquisition module is specifically used to: Transform initial information into tasks to be processed.
[0132] In an optional embodiment of the present application, the information evaluation module is further used to: Encode the initial information through the task classification agent to obtain the embedding vector corresponding to the initial information; The classification result with the highest similarity to the embedding vector is obtained through the preset embedding service, and the evaluation result is obtained based on the classification result.
[0133] In an optional embodiment of the present application, the task acquisition module may also be used to: Extracting keywords from the initial information, and searching a first associated word corresponding to the keywords from a first preset database; wherein the first preset database stores keywords of multiple historical processing tasks; A task to be processed is generated based on the first associated word.
[0134] In an optional embodiment of the present application, the task processing module is further used to: querying a second associated word associated with the keyword or the first associated word from a first preset database through a task planning agent; For each subtask, at least one target keyword is determined from the first associated word, the second associated word and the keyword, and the subtask is generated based on the at least one target keyword.
[0135] In an optional embodiment of the present application, the information evaluation module may also be used to: If the evaluation result does not meet the first preset result, the initial information cannot be converted into failure information of the task to be processed; wherein the failure information is composed of a language that can be directly recognized by the target object; Sending failure information to the target object so that the target object modifies the initial information based on the failure information; Receives the modified initial message sent by the target object.
[0136] In an optional embodiment of the present application, the task processing module may also be used to: The second task evaluation agent extracts key features from the task results, generates corresponding feature vectors based on the key features, and calculates the matching degree between the task results and the task to be processed based on the feature vectors; wherein the preset conditions include that the matching degree is not less than a first preset threshold.
[0137] In an optional embodiment of the present application, if the first matching degree is less than the first preset threshold, and the number of executed processing operations has reached the second preset threshold; The task processing module is specifically used for: The task result with the highest first matching degree is selected from the obtained task results as the processing result.
[0138] In an optional embodiment of the present application, the task processing module may also be used to: If there is at least one subtask that has not been executed, obtain the intermediate result of the currently executed subtask, and predict the task result based on the intermediate result through the second task evaluation agent to obtain the predicted result; Obtaining a second matching degree between the prediction result and the task to be processed; If the second matching degree is less than the first preset threshold, the next processing operation is performed.
[0139] In an optional embodiment of the present application, each subtask is executed by a task execution agent; The task processing module can also be used to: If there are at least two subtasks that can be executed in parallel, the at least two subtasks that can be executed in parallel are respectively assigned to corresponding task execution agents, so that each task execution agent executes each subtask simultaneously.
[0140] In an optional embodiment of the present application, the first task evaluation agent is composed of a trained large language model and a pre-set first prompt feature for instructing the large language model to perform initial information evaluation; The task classification agent is composed of a trained large language model and a pre-set second prompt feature for instructing the large language model to perform task classification; The task planning agent is composed of a trained large language model and a third prompt feature preset to instruct the large language model to perform task planning; The second task evaluation agent is composed of a trained large language model and a fourth prompt feature preset to instruct the large language model to evaluate the task result; The task execution agent is composed of a trained large language model and a fifth prompt feature that is preset to instruct the large language model to perform a task.
[0141] In an optional embodiment of the present application, at least one subtask among the subtasks corresponding to different processing operations is different.
[0142] In an optional embodiment of the present application, the device further includes a standard file acquisition module, which is specifically used to: Searching for a target standard file that matches the task to be processed from each standard file stored in the second preset database; the standard file is used to record the processing operation of the task to be processed; If the target standard file is found, the task processing module can also be used to: At least one subtask is generated based on the processing operation of the target standard file record.
[0143] In an optional embodiment of the present application, the device further includes a standard file storage module, which is specifically used to: Receive feedback information from the target object regarding the processing result, and analyze the feedback information to obtain the analysis result; If the analysis result meets the second preset result, the processing operation for obtaining the processing result is recorded, a corresponding standard file is generated, and the standard file is stored in the second preset database.
[0144] Reference below Figure 7 , which shows an electronic device suitable for implementing the embodiments of the present application (for example, Figure 1 The electronic device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), wearable devices, etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0145] The electronic device includes: a memory and a processor, the memory is used to store a program for executing the method described in each of the above method embodiments; the processor is configured to execute the program stored in the memory. The processor here can be referred to as the processing device 701 described below, and the memory can include at least one of the read-only memory (ROM) 702, the random access memory (RAM) 703, and the storage device 708 described below, as shown below: like Figure 7 As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0146] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0147] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present application are executed.
[0148] It should be noted that the computer-readable storage medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0149] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0150] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0151] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: Obtain the pending tasks of the target object; perform at least one processing operation on the pending tasks until the obtained task results meet the preset conditions, and use the task results that meet the preset conditions as the processing results for the pending tasks; return the processing results to the target object; the processing operations include: generating at least one subtask based on the pending tasks, and determining the execution order of at least one subtask; based on the execution order, executing at least one subtask in sequence to obtain the task results.
[0152] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0153] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0154] The modules or units involved in the embodiments of the present application may be implemented by software or hardware. The name of a module or unit does not limit the unit itself in some cases. For example, the first constraint acquisition module may also be described as a "module for acquiring the first constraint".
[0155] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0156] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0157] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0158] The above descriptions are only some embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. An information processing method, characterized in that: include: Get the pending tasks of the target object; Performing at least one processing operation on the task to be processed until the obtained task result meets a preset condition, and taking the task result that meets the preset condition as the processing result for the task to be processed; Returning the processing result to the target object; The processing operations include: generating at least one subtask based on the task to be processed, and determining an execution order of the at least one subtask; Based on the execution order, the at least one subtask is executed in sequence to obtain the task result.
2. The method according to claim 1, characterized in that Before obtaining the pending tasks of the target object, the following steps are included: receiving initial information input by the target object, and evaluating the initial information through a first task evaluation agent to obtain an evaluation result; the evaluation result is used to indicate the completeness of the initial information; If the evaluation result meets the first preset result, obtaining the pending tasks of the target object includes: The initial information is converted into the task to be processed.
3. The method according to claim 2, characterized in that The step of evaluating the initial information to obtain an evaluation result includes: Encoding the initial information through the task classification agent to obtain an embedding vector corresponding to the initial information; A classification result having the highest similarity to the embedding vector is obtained through a preset embedding service, and the evaluation result is obtained based on the classification result.
4. The method according to claim 2, characterized in that The converting the initial information into the task to be processed includes: Extracting keywords from the initial information, and searching a first associated word corresponding to the keyword from a first preset database; wherein the first preset database stores keywords of multiple historical processing tasks; The to-be-processed task is generated based on the first associated word.
5. The method according to claim 4, characterized in that The generating at least one subtask based on the task to be processed includes: querying the first preset database through a task planning agent for a second associated word associated with the keyword or the first associated word; For each subtask, at least one target keyword is determined from the first associated word, the second associated word, and the keyword, and the subtask is generated based on the at least one target keyword.
6. The method according to claim 2, characterized in that The method further comprises: If the evaluation result does not meet the first preset result, obtaining failure information indicating that the initial information cannot be converted into the task to be processed; wherein the failure information is composed of a language that can be directly recognized by the target object; Sending the failure information to the target object, so that the target object modifies the initial information based on the failure information; The modified initial information sent by the target object is received.
7. The method according to claim 1, characterized in that The processing operation also includes: The key features are extracted from the task results by a second task evaluation agent, and corresponding feature vectors are generated based on the key features, and the matching degree between the task results and the task to be processed is calculated based on the feature vector; wherein the preset condition includes that the matching degree is not less than a first preset threshold.
8. The method according to claim 7, characterized in that If the matching degree is less than the first preset threshold, and the number of executed processing operations has reached the second preset threshold; The taking the task result that meets the preset condition as the processing result for the task to be processed includes: The task result with the highest matching degree is selected from the obtained task results as the processing result.
9. The method according to claim 7, characterized in that The method further comprises: If there is at least one subtask that has not been executed, obtain the intermediate result of the currently executed subtask, and predict the task result based on the intermediate result by the second task evaluation agent to obtain a prediction result; Obtaining a second matching degree between the prediction result and the task to be processed; If the second matching degree is less than the first preset threshold, the next processing operation is performed.
10. The method according to claim 1, characterized in that Each of the subtasks is executed by a task execution agent; The performing of the at least one subtask comprises: If there are at least two subtasks that can be executed in parallel, the at least two subtasks that can be executed in parallel are respectively assigned to corresponding task execution agents, so that each task execution agent executes each subtask simultaneously.
11. The method according to any one of claims 2 to 10, characterized in that: The first task evaluation agent is composed of a trained large language model and a first prompt feature preset to instruct the large language model to perform initial information evaluation; The task classification agent is composed of a trained large language model and a pre-set second prompt feature for instructing the large language model to perform task classification; The task planning agent is composed of a trained large language model and a third prompt feature preset to instruct the large language model to perform task planning; The second task evaluation agent is composed of a trained large language model and a fourth prompt feature preset to instruct the large language model to evaluate the task result; The task execution agent is composed of a trained large language model and a fifth prompt feature that is preset to instruct the large language model to perform a task.
12. The method according to claim 1, wherein at least one of the subtasks corresponding to different processing operations is different.
13. The method according to claim 1, characterized in that Before generating at least one subtask based on the task to be processed, the method includes: Searching for a target standard file that matches the task to be processed from each standard file stored in the second preset database; the standard file is used to record the processing operation of the task to be processed; If the target standard file is found, generating at least one subtask based on the task to be processed includes: The at least one subtask is generated based on the processing operation recorded in the target standard file.
14. The method according to claim 13, characterized in that The method further comprises: receiving feedback information from the target object regarding the processing result, and analyzing the feedback information to obtain an analysis result; If the analysis result meets the second preset result, the processing operation for obtaining the processing result is recorded, a corresponding standard file is generated, and the standard file is stored in the second preset database.
15. An information processing device, characterized in that: include: A task acquisition module is used to obtain pending tasks of the target object; A task processing module, used to perform at least one processing operation on the task to be processed until the obtained task result meets a preset condition, and use the task result that meets the preset condition as the processing result for the task to be processed; A processing result returning module, used for returning the processing result to the target object; The task processing module is specifically used for: generating at least one subtask based on the task to be processed, and determining an execution order of the at least one subtask; Based on the execution order, the at least one subtask is executed in sequence to obtain the task result.
16. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 14.
17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 14 are implemented.
Citation Information
Cited By
Multi-agent cooperative processing method and device
CN119441808A
Multi-agent cooperation method and device, electronic equipment and storage medium
CN119722003A
AI cooperation method and cooperation system
CN119961698A
Information processing system, information processing method, and information processing program
JP7849092B1
Information processing systems, information processing methods, programs, and storage media
JP7904578B1
