Task decomposition method and system based on large language model
By decomposing the large language model multiple times, specific and clear subtasks are obtained, which solves the problem of incomplete analysis of the large language model when dealing with abstract, semantically ambiguous, or large-grained problems, and improves the accuracy of question answering and the efficiency of data analysis. reliability.
Patent Information
- Application Number
- CN202410970256.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-19
AI Technical Summary
It is difficult for large language models to provide comprehensive analysis when dealing with abstract, semantically ambiguous or large-granularity problems. The existing ReAct loop process is not suitable for complex problems, which can easily lead to incomplete analysis.
By decomposing the task to be processed multiple times, multiple updated subtasks are obtained, and when the target execution conditions are met, the target subtasks to be executed are determined, and these subtasks are used for question and answer to improve the accuracy of question answering and the reliability of data analysis tasks. .
It improves the question-answer accuracy and reliability of data analysis tasks of large language models when dealing with complex questions, ensuring the comprehensiveness and accuracy of analysis.
Smart Images

Figure CN118520073B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical fields of artificial intelligence and large language models, and in particular to a task decomposition method and system based on a large language model. Background Art
[0002] When a large language model processes abstract, semantically ambiguous, or large-granular questions, it may produce incomplete, unreasonable, or incorrect answers due to the lack of specific context, clear definitions, or structured thinking in the questions.
[0003] The most common thinking chain for solving problems in large language models is ReAct (reasoning + action), which solves problems in depth through a cycle of "thinking-acting-observing-thinking again". However, the ReAct cycle is suitable for relatively simple and clear problems, but not for abstract, semantically ambiguous or large-granular problems, which can easily lead to incomplete analysis. Summary of the invention
[0004] The embodiments of the present invention provide a task decomposition method and system based on a large language model, which are used to solve the problem that the existing large language model is difficult to provide a comprehensive analysis when dealing with abstract, semantically ambiguous or large-granularity problems.
[0005] In order to solve the above-mentioned technical problems, the present invention is achieved as follows:
[0006] In a first aspect, an embodiment of the present invention provides a task decomposition method based on a large language model, comprising:
[0007] Step S1: using a large language model to understand the task to be processed, and obtaining a plurality of updated subtasks output by the large language model;
[0008] Step S2: Decomposing the task to be processed multiple times based on the multiple updated subtasks using the large language model to obtain subtasks corresponding to the task to be processed output by the large language model;
[0009] Step S3: When the subtask obtained by the M-th decomposition is a subtask of the target level, and / or when the subtask obtained by the M-th decomposition meets the target execution condition, the subtask obtained by the M-th decomposition is determined as the target subtask to be executed, wherein the target subtask to be executed is used to instruct the large language model to output the analysis result corresponding to the task to be processed, and the target execution condition includes that the data information on which the subtask depends comes from the original data set, and the original data set is the data set on which the analysis of the task to be processed depends.
[0010] In a second aspect, an embodiment of the present invention provides a task decomposition system based on a large language model, including:
[0011] A first processing module, configured to understand the task to be processed by using the large language model, and obtain a plurality of updated subtasks output by the large language model;
[0012] A second processing module is used to decompose the task to be processed multiple times based on the multiple updated subtasks by using the large language model to obtain subtasks corresponding to the task to be processed output by the large language model;
[0013] A determination module is used to determine the subtask obtained by the M-th decomposition as a target subtask to be executed when the subtask obtained by the M-th decomposition is a subtask of the target level and / or the subtask obtained by the M-th decomposition meets the target execution condition, wherein the target subtask to be executed is used to instruct the large language model to output the analysis result corresponding to the task to be processed, and the target execution condition includes that the data information on which the subtask depends comes from the original data set, and the original data set is the data set on which the analysis of the task to be processed depends.
[0014] In a third aspect, an embodiment of the present invention provides a computer device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the task decomposition method based on a large language model as described in the first aspect above.
[0015] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the task decomposition method based on a large language model as described in the first aspect above are implemented.
[0016] In a fifth aspect, an embodiment of the present invention provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps of the task decomposition method based on a large language model as described in the first aspect above.
[0017] In an embodiment of the present invention, a large language model is first used to understand the task to be processed to obtain multiple updated subtasks, that is, multiple relatively simplified subtasks are obtained based on the fuzzy and complex task to be processed with larger granularity, and then the large language model is used to decompose the multiple updated subtasks multiple times to obtain multiple target subtasks to be executed. The obtained target subtasks to be executed are specific and clear subtasks with smaller granularity, and then the large language model is used to ask and answer questions for the specific and clear subtasks, thereby improving the accuracy of question and answer and improving the reliability of data analysis tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] By reading the description of the preferred embodiment below, various other advantages and benefits will become clear to those of ordinary skill in the art. The accompanying drawings are only used for the purpose of illustrating the preferred embodiment and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0019] Figure 1 A flowchart of a task decomposition method based on a large language model according to an embodiment of the present invention;
[0020] Figure 2 Schematic diagram of the overall structure of a mind map according to an embodiment of the present invention;
[0021] Figure 3 It is an enlarged detail diagram of the mind map of an embodiment of the present invention;
[0022] Figure 4 A schematic diagram of the structure of a task decomposition system based on a large language model according to an embodiment of the present invention;
[0023] Figure 5 Schematic diagram of the structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] First, the technical terms involved in the present invention are briefly explained below.
[0026] The “large language model” described in the embodiments of the present invention refers to a large language model (LLM), which is a language model with a large parameter scale, designed to understand and generate human language, trained with a large amount of text data, and can perform a wide range of tasks including text summarization, translation, sentiment analysis, etc.
[0027] The prompt described in the embodiment of the present invention refers to a prompt or instruction designed based on natural language to guide the large language model to perform a specific task.
[0028] The prompt word template described in the embodiment of the present invention refers to the basic structure and content of the designed prompt word, which is used to generate the prompt word.
[0029] Prompt Engineering refers to the technology of asking questions or tasks to large-scale language models by using optimization, design, and adjustment capabilities to improve the response quality and effectiveness of large language models.
[0030] The mind map in the embodiment of the present invention, also known as brain map, mind map, brainstorming map, inspiration triggering map, concept map, tree diagram, branch diagram or thinking map, is a tool for image-based thinking and an auxiliary tool for image-based thinking. A mind map is a graphic method that uses a central keyword or idea to cause a visual structure and classification of ideas; it uses a central keyword or idea to connect all representative words, ideas, tasks or other related items in a radial line.
[0031] In the embodiment of the present invention, problems that are abstract, semantically ambiguous, have large granularity, or involve multiple variables may be collectively referred to as complex problems.
[0032] Please refer to Figure 1 The embodiment of the present invention provides a task decomposition method based on a large language model, comprising:
[0033] Step S1: using a large language model to understand the task to be processed, and obtaining a plurality of updated subtasks output by the large language model.
[0034] The task to be processed in the embodiment of the present invention is a complex problem with large granularity and ambiguous semantics.
[0035] Optionally, using a large language model to understand the task to be processed includes: using the large language model to redescribe the task to be processed, and using the large language model to decompose the task description obtained after the redescription to obtain the updated subtasks.
[0036] In some embodiments, the multiple updated subtasks are decomposed from the to-be-processed task and are more specific and clear problems than complex problems. Optionally, the analysis dimensions of the multiple updated subtasks are different.
[0037] Step S2: Decomposing the task to be processed multiple times based on the multiple updated subtasks using the large language model to obtain subtasks corresponding to the task to be processed output by the large language model.
[0038] Optionally, the multiple decompositions include at least one of the following: decomposing the task to be processed, decomposing subtasks, and the subtasks include at least one of the following: subtasks decomposed from the task to be processed, and new subtasks decomposed from subtasks.
[0039] Step S3: When the subtask obtained by the M-th decomposition is a subtask of the target level, and / or when the subtask obtained by the M-th decomposition meets the target execution condition, the subtask obtained by the M-th decomposition is determined as the target subtask to be executed, wherein the target subtask to be executed is used to instruct the large language model to output the analysis result corresponding to the task to be processed, and the target execution condition includes that the data information on which the subtask depends comes from the original data set, and the original data set is the data set on which the analysis of the task to be processed depends.
[0040] Wherein, M is a positive integer greater than 1.
[0041] In the embodiment of the present invention, the subtasks obtained in the decomposition process can be divided into multiple levels, where:
[0042] The subtasks of the first level include at least one of the following: the multiple updated subtasks, at least one first subtask set obtained by decomposing the task to be processed based on at least one analysis dimension and the updated subtasks, and a second subtask obtained by evaluating each subtask in the multiple updated subtasks and / or the at least one first subtask set;
[0043] The subtasks at the Jth level include at least one of the following: a third subtask obtained by decomposing the subtasks at the J-1th level, and a fourth subtask obtained by evaluating the third subtask, where J is an integer greater than or equal to 2, and J is less than or equal to M.
[0044] That is, the subtasks of the first level are the subtasks obtained by decomposing the tasks to be processed, and the subtasks of the Jth level are the subtasks obtained by decomposing the subtasks of the J-1 level. In some embodiments, the subtasks of the current level are obtained by decomposing the subtasks of the previous level, or the subtasks of the current level can also be obtained by decomposing the subtasks of the previous level and evaluating and screening the decomposed subtasks.
[0045] For example, the subtasks of the second level include at least one of the following: a third subtask obtained by decomposing the subtasks of the first level, and a fourth subtask obtained by evaluating the third subtask;
[0046] The subtasks of the third level include at least one of the following: a third subtask obtained by decomposing the subtasks of the second level, and a fourth subtask obtained by evaluating the third subtask.
[0047] In the embodiment of the present invention, the large language model is first used to understand the task to be processed, and multiple updated subtasks are obtained, that is, multiple relatively simplified subtasks are obtained based on the fuzzy and complex task to be processed with larger granularity, and then the large language model is used to decompose the multiple updated subtasks multiple times to obtain multiple target subtasks to be executed. The target subtasks to be executed are specific and clear subtasks with smaller granularity, and then the large language model is used to ask and answer questions about the specific and clear subtasks, thereby improving the accuracy of question and answer and improving the reliability of data analysis tasks in scenarios such as big data processing. In some embodiments, optionally, the target execution condition also includes at least one of the following:
[0048] A subtask includes at least: the steps for solving the subtask;
[0049] The number of solution steps for a subtask is within a preset value range.
[0050] In the embodiment of the present invention, optionally, the subtask solving step may be a data link (CoT) described later. The relevant description of the data link will be described later.
[0051] In some embodiments, optionally, the subtask of the target level includes any one of the subtasks of the first level to the subtasks of the Jth level;
[0052] The subtasks of the first level include at least one of the following: the multiple updated subtasks, at least one first subtask set obtained by decomposing the task to be processed based on at least one analysis dimension and the updated subtasks, and a second subtask obtained by evaluating each subtask in the multiple updated subtasks and / or the at least one first subtask set;
[0053] The subtasks at the Jth level include at least one of the following: a third subtask obtained by decomposing the subtasks at the J-1th level, a fourth subtask obtained by evaluating the third subtask, wherein J is an integer greater than or equal to 2, and J is less than or equal to M.
[0054] In some embodiments, optionally, the above step S1 (using the large language model to understand the task to be processed to obtain multiple updated subtasks output by the large language model) includes:
[0055] Step S11: instructing the large language model to redescribe the task to be processed according to the first prompt word to obtain the redescribed task description, wherein the first prompt word includes the original data set and the task to be processed;
[0056] Step S12: instructing the large language model to decompose the redescribed task description according to the second prompt word to obtain the updated subtask.
[0057] In the embodiment of the present invention, even if a detailed complex task description is obtained, if the large language model is directly asked to answer a complex question with multiple variables or multiple questions at one time, the effect is still not good. Therefore, according to the task description obtained in step S11, the large language model can be allowed to improve the question-answering effect of the large language model by decomposing the complex question into clear subtasks of multiple analysis dimensions.
[0058] In some embodiments, optionally, the task decomposition method based on the large language model includes:
[0059] Obtaining a first prompt word template;
[0060] The information input by the user in the first prompt word template is acquired to obtain the first prompt word.
[0061] In some embodiments, optionally, the first prompt word template includes at least one of the following parameters: system role, data information, work objectives and methods, and output requirements, wherein the system role is the role played by the large language model and the capabilities it possesses when analyzing the task to be processed, the data information is the data information involved in the task to be processed, the work objectives and methods are used to indicate the tasks of the large language model, and the output requirements are used to indicate the format requirements and / or instances of the output of the large language model.
[0062] The user only needs to input the specific content of the above components at the corresponding position of the first prompt word template to obtain the first prompt word.
[0063] In some embodiments, optionally, the first prompt word includes at least one of the following parameter values: system role, data information, work objectives and methods, and output requirements, wherein the system role is the role played by the large language model and the capabilities it possesses when analyzing the task to be processed, the data information is the data information involved in the task to be processed, the work objectives and methods are used to instruct the large language model to interpret and redescribe the task to be processed, and the output requirements are used to indicate the format requirements and / or examples of the output of the large language model.
[0064] Optionally, the data information may include an original data set and several samples. In an embodiment of the present invention, it is necessary to analyze the task to be processed based on the data set to obtain a data analysis result. For example, it is necessary to analyze the user behavior based on the user data set to obtain information such as the user's consumption habits. The original data set is the data set on which the analysis of the task to be processed depends. Optionally, the data information may be data information of the type of data table, text, chart, etc. Taking the original data set as a chart or a data table as an example, the original data set may include multiple data variables, such as age, gender, consumption amount, and other data variables.
[0065] When the first prompt word includes the data information, the large language model can interpret and re-describe the task to be processed in combination with the data information to output a specific, clear, and multi-dimensional task description. By providing the large language model with dependent data information, the success rate of solving the problem can be guaranteed.
[0066] In some embodiments, optionally, the output of the large language model after redescription of the task to be processed according to the first prompt word may also include at least one of the following: the task to be processed, analysis dimension keywords. The analysis dimension keywords are keywords corresponding to the analysis dimension, which are used to indicate the analysis dimension. The analysis dimension can be, for example, product performance analysis, user behavior analysis, time series analysis, and customer segmentation, etc. The technicians in this field can set it according to the specific big data processing tasks in the actual application scenario, and the embodiments of the present invention do not limit this. Among them, time series analysis is, for example, observing the trend of data changes over time, user behavior analysis is, for example, studying how users interact with products or services, product performance analysis is, for example, evaluating the performance indicators of products or services, and customer segmentation is, for example, identifying different customer groups and their needs.
[0067] The following example illustrates this.
[0068] For example, Netflix operations specialists have collected a user data set that has been authorized by the user or has been made public (i.e., the original data set, the data variables of the original data set are shown in Table 1, including user ID, date of last consumption, country, age, gender, etc.), and want to use the big language model to perform "Netflix user behavior analysis". User behavior is a broad concept, and the big language model can be guided by prompt word engineering to perform multi-dimensional analysis of the task to be processed based on a structural decomposition method. The analysis dimensions need to be related to the provided user data set. For example, the structural decomposition method is, for example, the decomposition method of a mind map.
[0069] Table 1 is as follows:
[0070] Table 1
[0071]
[0072] The first prompt word may include:
[0073] System role: The big language model is a mind-mapping expert who is good at decomposing and drilling down data science problems. He is assisting an operations specialist in analyzing Netflix user behavior.
[0074] Data information: Contains the data variables and several samples of the original data set.
[0075] Work objectives and methods: Based on data information and questions, summarize the key words of the analysis dimensions and restate them in concise language to obtain a clear task description.
[0076] Output requirements: Output markdown or json statements.
[0077] The first output result of the large speech model based on the first prompt word may include:
[0078] "problem": "Netflix user behavior analysis",
[0079] "description": "By analyzing the behavior patterns of Netflix users, we can understand the impact of different subscription types, income levels, device usage preferences and other factors on user behavior, so as to optimize services and improve user satisfaction."
[0080] "keywords": "user behavior, subscription type, income level, device usage preference".
[0081] It can be seen from the first output result above that the large language model has combined data information to describe an original macro task about "user behavior" into a complex problem analyzed from multiple analysis dimensions (subscription service type, monthly income, device type used, etc.).
[0082] In some embodiments, optionally, the task decomposition method based on a large language model further includes:
[0083] Obtain a second prompt word template;
[0084] The information input by the user in the second prompt word template is acquired to obtain a second prompt word.
[0085] In some embodiments, optionally, the second prompt word template includes at least one of the following parameters: system role, data information, historical information, work objectives and methods, output requirements and restriction requirements, the system role is the role played by the large language model and the capabilities it possesses when analyzing the task to be processed, the data information is the data information involved in the task to be processed, the historical information is the information output by the large language model in the previous step, the work objectives and methods are used to instruct the large language model to decompose the task to be processed based on the information output by the large language model in the previous step, the output requirements are used to indicate the format requirements and / or instances of the large language model output, and the restriction requirements are used to indicate at least one of the following: indicating the maximum number of analysis dimensions for decomposing the task to be processed, and indicating that the analysis dimensions are related to the data information.
[0086] The user only needs to input the specific content of the above components at the corresponding position of the second prompt word template to obtain the second prompt word.
[0087] In an embodiment of the present invention, optionally, the second prompt word includes at least one of the following parameter values: system role, data information, historical information, work objectives and methods, output requirements and restriction requirements, the system role is the role played by the large language model and the capabilities it possesses when analyzing the task to be processed, the data information is the data information involved in the task to be processed, the historical information is the first output result (information output by the large language model in the previous step), the work objectives and methods are used to instruct the large language model to decompose the task to be processed based on the first output result, the output requirements are used to indicate the format requirements and / or instances of the large language model output, and the restriction requirements are used to indicate at least one of the following: indicating the maximum number of analysis dimensions for decomposing the task to be processed, and indicating that the analysis dimensions are related to the data information.
[0088] In an embodiment of the present invention, part of the content in the second prompt word may be the same as part of the content in the first prompt word, such as system role and / or data information and / or output requirements. When generating the second prompt word, the system role and / or data information and / or output requirements in the first prompt word can be automatically obtained and filled into the second prompt word, thereby eliminating the need for users to fill in repeatedly, thereby improving user experience. If the second prompt word is generated using a second prompt word template, the second prompt word template provided can include the specific content of the above-mentioned system role and / or data information and / or output requirements, thereby eliminating the need for users to fill in.
[0089] In the embodiment of the present invention, the historical information in the second prompt word is the first output result output by the large language model. When generating the second prompt word, the first output result output by the large language model can be automatically obtained and filled into the second prompt word, thereby eliminating the need for user filling in, thereby improving user experience. If the second prompt word is generated using a second prompt word template, the second prompt word template provided can include the first output result, thereby eliminating the need for user filling in.
[0090] In some embodiments, optionally, the second output result output by the large language model based on the second prompt word further includes at least one of the following: an identifier of the updated subtask, and analysis dimensions and description information of the updated subtask.
[0091] The following example illustrates this.
[0092] The second prompt word may include:
[0093] System role: The big language model is a mind-mapping expert who is good at decomposing and drilling down data science problems. He is assisting an operations specialist in analyzing Netflix user behavior.
[0094] Data information: Contains the data variables and several samples of the original data set.
[0095] Historical Information:
[0096] "problem": "Netflix user behavior analysis",
[0097] "description": "By analyzing the behavior patterns of Netflix users, we can understand the impact of different subscription types, income levels, device usage preferences and other factors on user behavior, so as to optimize services and improve user satisfaction."
[0098] "keywords": "user behavior, subscription type, income level, device usage preference".
[0099] Work objectives and methods: Based on the task descriptions and analysis dimension keywords in the historical information, propose diverse and representative subtasks from different analysis dimensions.
[0100] Output requirements:
[0101] Refer to the example and output a valid JSON format: [
[0103] {
[0104] "id": "task_001",
[0105] "perspective": "……",
[0106] "task": "………"
[0107] },
[0108] …
[0109] ].
[0110] Restriction requirement: The maximum number of analysis dimensions for decomposition is X, and the analysis dimensions are related to the data information.
[0111] The second output result may include: [
[0113] {
[0114] "id": "task_001",
[0115] "perspective": "Subscription type distribution",
[0116] "task": "Analyze the distribution of users with different subscription types"
[0117] },
[0118] {
[0119] "id": "task_002",
[0120] "perspective": "Revenue and Subscription Relationship",
[0121] "task": "Explore the relationship between subscription type and monthly revenue"
[0122] },
[0123] {
[0124] "id": "task_003",
[0125] "perspective": "Device Preferences",
[0126] "task": "Analyze the association between user device type and subscription type"
[0127] },
[0128] {
[0129] "id": "task_004",
[0130] "perspective": "Regional user behavior",
[0131] "task": "Study the subscription preferences of users in different countries"
[0132] }
[0133] ].
[0134] It can be seen from the second output result that the large language model decomposes "user behavior" into four specific analysis dimensions: "subscription type distribution", "income and subscription relationship", "device usage preference", and "regional user behavior" based on the input task description, analysis dimension keywords, and data information, and describes the subtasks of each analysis dimension (i.e., the updated subtasks).
[0135] In order to reduce the impact of the incomplete analysis of the large language model in the process of interpreting the task to be processed in step S11, or the omission of analysis dimensions during decomposition in step S12, in an embodiment of the present invention, the large language model can supplement the original complex problem from other angles, which is also called task expansion.
[0136] In some embodiments, optionally, the step S2 (using the large language model to decompose the task to be processed multiple times based on the multiple updated subtasks to obtain subtasks corresponding to the task to be processed output by the large language model) includes:
[0137] Step S21: for the current round decomposition in the multiple decompositions, using the large language model according to the multiple updated subtasks, the original data set and the analysis dimension of the current round decomposition, decompose the task to be processed from the analysis dimension of the current round decomposition to obtain a first subtask set corresponding to the current round decomposition output by the large language model;
[0138] Step S22: Continue to perform the next round of decomposition according to the analysis dimension of the next round of decomposition until the decomposition rounds reach a preset number of times, and finally obtain multiple first subtask sets of multiple decomposition rounds, wherein the subtasks corresponding to the task to be processed include the multiple first subtask sets, and the analysis dimension of each decomposition round is different.
[0139] That is to say, based on the existing updated subtasks, the task to be processed is decomposed for at least one more round to obtain more subtasks, and the analysis dimension used in the current round of decomposition is different from the analysis dimension used in the previous round before the current round, so as to avoid the impact of the omission of the analysis dimension during the decomposition in the above step S22.
[0140] Each round of decomposition can obtain a first subtask set. If multiple rounds of decomposition are performed, multiple first subtask sets can be obtained.
[0141] In some embodiments, optionally, step S21 (for the current round decomposition in the multiple decompositions, using the large language model to decompose the task to be processed from the analysis dimension of the current round decomposition according to the multiple updated subtasks, the original data set and the analysis dimension of the current round decomposition, to obtain a first subtask set corresponding to the current round decomposition output by the large language model) includes:
[0142] Step S211: for the current round of decomposition in the multiple decompositions, construct prompt words for the current round of decomposition through prompt word engineering;
[0143] Step S212: instructing the large language model to decompose the task to be processed from the analysis dimension of the current round decomposition through the prompt word of the current round decomposition, and obtaining a first subtask set corresponding to the current round decomposition output by the large language model;
[0144] The prompt words of the current round of decomposition include the multiple updated subtasks, the original data set and the analysis dimensions of the current round of decomposition.
[0145] In the embodiment of the present invention, prompt words constructed by prompt word engineering are used to guide the large language model to perform decomposition tasks. The prompt words can enhance the underlying logical reasoning ability of the large language model, so that the large language model can decompose fuzzy and complex tasks into multiple specific and clear sub-tasks with multiple analysis dimensions, thereby guiding the large language model to obtain accurate answers.
[0146] In some embodiments, optionally, the task decomposition method based on a large language model further includes:
[0147] Obtain a third prompt word template;
[0148] The information input by the user in the third prompt word template is obtained to obtain a third prompt word, where the third prompt word is the prompt word decomposed in the current round.
[0149] In some embodiments, optionally, the third prompt word template includes at least one of the following parameters: system role, data information, historical information, work objectives and methods, output requirements and restriction requirements, the system role is the role played by the large language model and the capabilities it possesses when analyzing the task to be processed, the data information is the data information involved in the task to be processed, the historical information is the relevant information of the first output result and the obtained subtasks, the work objectives and methods are used to instruct the large language model to perform task expansion on the task to be processed based on the task description and the obtained subtasks, the output requirements are used to indicate the format requirements and / or instances of the large language model output, and the restriction requirements are used to indicate at least one of the following: indicating the maximum number of extended tasks, indicating that the analysis dimension of the extended task is related to the data information, and indicating the generation of extended tasks with non-repetitive analysis dimensions.
[0150] The user only needs to input the specific content of the above components at the corresponding position of the third prompt word template to obtain the third prompt word.
[0151] In some embodiments, optionally, the third prompt word includes at least one of the following parameter values: system role, data information, historical information, work objectives and methods, output requirements and restriction requirements, the system role is the role played by the large language model and the capabilities it possesses when analyzing the task to be processed, the data information is the data information involved in the task to be processed, the historical information is the relevant information of the first output result and the obtained subtasks, the work objectives and methods are used to instruct the large language model to decompose the task to be processed based on the task description and the obtained subtasks, the output requirements are used to indicate the format requirements and / or instances of the large language model output, and the restriction requirements are used to indicate at least one of the following: indicating the maximum number of extended tasks, indicating that the analysis dimension of the extended task is related to the data information, and indicating the generation of extended tasks with non-repetitive analysis dimensions.
[0152] In an embodiment of the present invention, part of the content in the third prompt word may be the same as part of the content in the first prompt word or the second prompt word, such as the system role and / or data information and / or output requirements. When generating the third prompt word, the system role and / or data information and / or output requirements in the first prompt word or the second prompt word can be automatically obtained and filled into the third prompt word, thereby eliminating the need for users to fill in repeatedly and improving user experience. If the third prompt word is generated using a third prompt word template, the third prompt word template provided can include the specific content of the above-mentioned system role and / or data information and / or output requirements, thereby eliminating the need for users to fill in.
[0153] In the embodiment of the present invention, the historical information in the third prompt word is the first output result and the second output result output by the large language model. When generating the third prompt word, the first output result and the second output result output by the large language model can be automatically obtained and filled into the third prompt word, thereby eliminating the need for user filling in, thereby improving user experience. If the third prompt word is generated using a third prompt word template, the third prompt word template provided can include the first output result and the second output result, thereby eliminating the need for user filling in.
[0154] In some embodiments, optionally, the third output result includes at least one of the following: an identifier of the first subtask obtained after expansion, and analysis dimensions and description information of the first subtask obtained after expansion.
[0155] The following example illustrates this.
[0156] The third prompt word may include:
[0157] System role: The big language model is a mind-mapping expert who is good at decomposing and drilling down data science problems. He is assisting an operations specialist in analyzing Netflix user behavior.
[0158] Data information: Contains the data variables and several samples of the original data set.
[0159] Historical information, including the information output by the large language model in the previous step.
[0160] Work objectives and methods: Based on the task descriptions in the historical information and the existing analysis dimensions, further expand the diverse and representative subtasks. At the same time, the new subtasks cannot overlap with the analysis dimensions of the existing subtasks. When the set number of subtasks is reached, the generation should stop.
[0161] Output requirements:
[0162] Refer to the example and output a valid JSON format: [
[0164] {
[0165] "id": "task_001",
[0166] "perspective": "……",
[0167] "task": "………"
[0168] },
[0169] …
[0170] ].
[0171] Restriction requirements: The maximum number of extended tasks is Y, the analysis dimension of the extended task is strongly correlated with the data information, and the extended tasks with non-repetitive analysis dimensions are generated.
[0172] The third output result of the large language model output may include: [
[0174] {
[0175] "id (the ID of the subtask obtained after expansion)": "task_001",
[0176] "perspective": "Subscription type distribution",
[0177] "task (description of the subtask obtained after expansion)": "Analyze the distribution of users with different subscription types"
[0178] },
[0179] {
[0180] "id": "task_002",
[0181] "perspective": "Revenue and Subscription Relationship",
[0182] "task": "Explore the relationship between subscription type and monthly revenue"
[0183] },
[0184] {
[0185] "id": "task_003",
[0186] "perspective": "Device Preferences",
[0187] "task": "Analyze the association between user device type and subscription type"
[0188] },
[0189] {
[0190] "id": "task_004",
[0191] "perspective": "Regional user behavior",
[0192] "task": "Study the subscription preferences of users in different countries"
[0193] },
[0194] {
[0195] "id": "task_005",
[0196] "perspective": "User Loyalty Analysis",
[0197] "task": "Evaluate the relationship between user joining time and last payment time"
[0198] },
[0199] {
[0200] "id": "task_006",
[0201] "perspective": "User age distribution",
[0202] "task": "Analyze the subscription type distribution of users in different age groups"
[0203] },
[0204] {
[0205] "id": "task_007",
[0206] "perspective": "Gender Difference Analysis",
[0207] "task": "Explore the impact of gender on subscription type selection"
[0208] },
[0209] {
[0210] "id": "task_008",
[0211] "perspective": "User Activity Analysis",
[0212] "task": "Evaluate the time difference between the user's last payment date and the joining date, and analyze user activity"
[0213] }
[0214] ].
[0215] It can be seen from the third output result that the large language model has added 4 analysis dimensions based on the existing sub-tasks, and a total of 8 analysis dimensions are obtained after expansion. All 8 analysis dimensions are relevant to the original problem, and strive to avoid duplication and omission.
[0216] In order to control the quantity and quality of tasks and obtain the most valuable and meaningful analysis dimensions, the large language model can perform a comprehensive evaluation of all subtasks, filter out and retain only the analysis dimensions that are most relevant to the original task to be processed, which is also called task pruning.
[0217] In some embodiments, optionally, the task analysis method based on a large language model further includes step S4: evaluating (i.e., task pruning) each subtask in the multiple updated subtasks and / or the at least one first subtask set to obtain a second subtask.
[0218] In some embodiments, step S4 includes:
[0219] Step S41: instructing the large language model to score each subtask in the multiple updated subtasks and / or the multiple first subtask sets according to the analysis dimensions of the multiple updated subtasks, the original data set, the first evaluation index and the at least one analysis dimension, wherein the at least one analysis dimension is the analysis dimension corresponding to the subtask in the multiple first subtask sets;
[0220] Step S42: Determine the second subtask from the multiple updated subtasks and / or the multiple first subtask sets according to the multiple updated subtasks and / or the first evaluation scores of each subtask and a preset threshold corresponding to the first evaluation indicator.
[0221] In the embodiment of the present invention, the effectiveness of the decomposed subtasks can be guaranteed through task pruning.
[0222] In some embodiments, optionally, instructing the large language model to score each subtask in the plurality of updated subtasks and / or the plurality of first subtask sets according to the analysis dimensions of the plurality of updated subtasks, the original data set, the first evaluation indicator, and the at least one analysis dimension, comprises:
[0223] Acquire a fourth prompt word, where the fourth prompt word is used to instruct the large language model to prune the obtained subtask based on the task description;
[0224] The fourth prompt word is sent to the large language model, and a fourth output result output by the large language model is obtained, where the fourth output result includes relevant information of all subtasks obtained after pruning the obtained subtasks.
[0225] In some embodiments, optionally, the task decomposition method based on a large language model further includes:
[0226] Obtain the fourth prompt word template;
[0227] The information input by the user in the fourth prompt word template is acquired to obtain a fourth prompt word.
[0228] In some embodiments, optionally, the fourth prompt word template includes at least one of the following parameters: system role, data information, historical information, work objectives and methods, output requirements and restriction requirements, the system role is the role played by the large language model and the capabilities it possesses when analyzing the task to be processed, the data information is the data information involved in the task to be processed, the historical information is the relevant information of the first output result and the obtained subtasks, the work objectives and methods are used to instruct the large language model to prune the obtained subtasks based on the task description, the output requirements are used to indicate the format requirements and / or instances of the large language model output, and the restriction requirements are used to indicate at least one of the following: indicating the maximum number of tasks to be retained, indicating the evaluation indicators and thresholds used during pruning.
[0229] In some embodiments, optionally, the fourth prompt word includes at least one of the following parameter values: system role, data information, historical information, work objectives and methods, output requirements and restriction requirements, the system role is the role played by the large language model and the capabilities it possesses when analyzing the task to be processed, the data information is the data information involved in the task to be processed, the historical information is the relevant information of the first output result and the obtained subtasks, the work objectives and methods are used to instruct the large language model to prune the obtained subtasks based on the task description, the output requirements are used to indicate the format requirements and / or instances of the large language model output, and the restriction requirements are used to indicate at least one of the following: indicating the maximum number of tasks to be retained, and indicating the evaluation indicators and thresholds used during pruning.
[0230] In an embodiment of the present invention, part of the content in the fourth prompt word may be the same as part of the content in the first prompt word, the second prompt word, or the third prompt word, such as the system role and / or data information and / or output requirements. When generating the fourth prompt word, the system role and / or data information and / or output requirements in the first prompt word, the second prompt word, or the third prompt word may be automatically obtained and filled into the fourth prompt word, thereby eliminating the need for users to fill in the information repeatedly, thereby improving user experience. If the fourth prompt word is generated using a fourth prompt word template, the fourth prompt word template provided may include the specific content of the above-mentioned system role and / or data information and / or output requirements, thereby eliminating the need for users to fill in the information.
[0231] In the embodiment of the present invention, the historical information in the fourth prompt word is the first output result and the third output result output by the large language model. When generating the fourth prompt word, the first output result and the third output result output by the large language model can be automatically obtained and filled into the fourth prompt word, thereby eliminating the need for user filling in, thereby improving user experience. If the fourth prompt word is generated using a fourth prompt word template, the provided fourth prompt word template can include the first output result and the third output result, thereby eliminating the need for user filling in.
[0232] In some embodiments, optionally, the fourth output result includes at least one of the following: an identification of the retained subtask (second subtask), an analysis dimension of the retained subtask, descriptive information of the retained subtask, an identification of the deleted subtask, an analysis dimension of the deleted subtask, descriptive information of the deleted subtask, an evaluation score, whether it has been deleted, and a reason for being retained or deleted.
[0233] The following example illustrates this.
[0234] The fourth prompt word may include:
[0235] System role: The big language model is a mind-mapping expert who is good at decomposing and drilling down data science problems. He is assisting an operations specialist in analyzing Netflix user behavior.
[0236] Data information: Contains the data variables and several samples of the original data set.
[0237] Historical information: Contains the information output by the large language model in the previous step.
[0238] Work objectives and methods: Based on the task descriptions in the historical information and all the obtained analysis dimensions, conduct a comprehensive summary and evaluation, score the obtained subtasks in terms of analysis value, novelty of intent, and scope of dependent data, and delete subtasks with empty analysis motivations, redundant intent, low relevance to requirements, and involving information outside the data set.
[0239] Output requirements:
[0240] Refer to the example and output a valid JSON format: [
[0242] {
[0243] "id": "task_001",
[0244] "perspective": "……",
[0245] "task": "……"
[0246] },
[0247] …
[0248] ].
[0249] Restriction requirements: The maximum number of retained tasks is Z, and the evaluation indicator threshold used during pruning is M.
[0250] The fourth output result of the large language model output may include: [
[0252] {
[0253] "id (the ID of the reserved subtask)": "task_001",
[0254] "perspective": "Subscription type distribution",
[0255] "task (retained subtask description information)": "Analyze the distribution of users of different subscription types"
[0256] },
[0257] {
[0258] "id": "task_002",
[0259] "perspective": "Revenue and Subscription Relationship",
[0260] "task": "Explore the relationship between subscription type and monthly revenue"
[0261] },
[0262] {
[0263] "id": "task_003",
[0264] "perspective": "Device Preferences",
[0265] "task": "Analyze the association between user device type and subscription type"
[0266] },
[0267] {
[0268] "id": "task_006",
[0269] "perspective": "User age distribution",
[0270] "task": "Analyze the subscription type distribution of users in different age groups"
[0271] }
[0272] ].
[0273] It can be seen from the fourth output result that after automatic evaluation by the large language model, only the most valuable 1st, 2nd, 3rd, and 6th analysis dimensions are retained.
[0274] In some embodiments, optionally, when the subtask at the target level is a subtask at the first level, at least one of the multiple updated subtasks, the multiple first subtask sets, and the second subtask is determined as the target subtask to be executed.
[0275] In some embodiments, optionally, when the subtask of the target level is any one of the subtasks of the second level to the subtask of the Jth level, and J is an integer greater than or equal to 3, the step S2 (using the large language model to decompose the task to be processed multiple times based on the multiple updated subtasks to obtain the subtasks corresponding to the task to be processed output by the large language model) further includes:
[0276] Step S23: for each subtask in the first level of subtasks, using the large language model according to the original data set and the data analysis method corresponding to the subtasks of the first level, decompose each subtask in the first level of subtasks to obtain a third subtask (i.e., a subtask of the second level), the third subtask includes a description of the third subtask, solution steps of the third subtask and data variables in the original data set corresponding to each solution step, wherein the subtask corresponding to the task to be processed includes the third subtask;
[0277] or,
[0278] Step S24: For each subtask in the subtasks of the J-1th level, use the large language model to decompose each subtask in the subtasks of the J-1th level according to the original data set and the data analysis method corresponding to the subtasks of the J-1th level, to obtain a third subtask (i.e., the subtask of the Jth level), wherein the third subtask includes a description of the third subtask, solution steps of the third subtask, and data variables in the original data set corresponding to each solution step, wherein the subtask corresponding to the task to be processed includes the third subtask.
[0279] In the embodiment of the present invention, in order to obtain more diverse and representative subtasks and improve the success rate of answering questions, the large language model can also perform another round of in-depth decomposition on each obtained subtask, also known as task drilling down (to obtain subtasks at the Jth level).
[0280] In some embodiments, optionally, step S23 or step S24 further includes:
[0281] For each subtask in the J-1th level of subtasks, constructing a cue word for decomposing the subtask through cue word engineering;
[0282] Instructing the large language model through the prompt words of the subtask decomposition to decompose each subtask in the subtask of the J-1th level according to the original data set and the data analysis method corresponding to the subtask of the J-1th level, so as to obtain a third subtask output by the large language model;
[0283] Among them, the prompt words of the subtask decomposition include the original data set, restriction requirements and subtasks at the J-1 level, and the restriction requirements are used to indicate at least one of the following: the maximum number of the third subtasks, and the data analysis method corresponding to the subtasks at the J-1 level is related to the data variables in the original data set.
[0284] In some embodiments, optionally, the data analysis method includes but is not limited to: distribution exploration among multiple variables, association analysis, cluster analysis, anomaly analysis, attribution analysis, trend analysis, time series analysis, visualization analysis, etc.
[0285] In some embodiments, optionally, the task decomposition method based on a large language model further includes:
[0286] Obtain the fifth prompt word template;
[0287] The information input by the user in the fifth prompt word template is acquired to obtain the fifth prompt word.
[0288] In some embodiments, optionally, the fifth prompt word template includes at least one of the following parameters: system role, data information, historical information, work objectives and methods, output requirements and restriction requirements, wherein the system role is the role played by the large language model and the capabilities it possesses when analyzing the task to be processed, the data information is the data information involved in the task to be processed, the historical information is the relevant information of the obtained subtasks, the work objectives and methods are used to instruct the large language model to decompose the obtained subtasks, the output requirements are used to indicate the format requirements and / or instances of the output of the large language model, and the restriction requirements are used to indicate at least one of the following: indicating the maximum number of decomposed subtasks, and indicating that the decomposed subtasks are related to the data information.
[0289] In some embodiments, optionally, the fifth prompt word includes at least one of the following parameter values: system role, data information, historical information, work objectives and methods, output requirements and restriction requirements, the system role is the role played by the large language model and the capabilities it possesses when analyzing the task to be processed, the data information is the data information involved in the task to be processed, the historical information is the relevant information of the obtained subtasks, the work objectives and methods are used to instruct the large language model to decompose the obtained subtasks, the output requirements are used to indicate the format requirements and / or instances of the output of the large language model, and the restriction requirements are used to indicate at least one of the following: indicating the maximum number of decomposed subtasks, indicating that the decomposed subtasks are related to the data information.
[0290] In an embodiment of the present invention, part of the content in the fifth prompt word may be the same as part of the content in the first prompt word, the second prompt word, the third prompt word, or the fourth prompt word, such as the system role and / or data information and / or output requirements. When generating the fifth prompt word, the system role and / or data information and / or output requirements in the first prompt word, the second prompt word, the third prompt word, or the fourth prompt word may be automatically obtained and filled into the fifth prompt word, thereby eliminating the need for users to fill in the information repeatedly, thereby improving user experience. If the fifth prompt word is generated using a fifth prompt word template, the fifth prompt word template provided may include the specific content of the above-mentioned system role and / or data information and / or output requirements, thereby eliminating the need for users to fill in the information.
[0291] In the embodiment of the present invention, the historical information in the fifth prompt word is the relevant information of the subtask that has been obtained. When generating the fifth prompt word, the relevant information of the subtask output by the large language model in the previous step can be automatically obtained and filled into the fifth prompt word, thereby eliminating the need for users to fill in the information, thereby improving the user experience. If the fifth prompt word is generated using a fifth prompt word template, the provided fifth prompt word template can include the relevant information of the subtask output by the large language model in the previous step, thereby eliminating the need for users to fill in the information.
[0292] In some embodiments, optionally, the fifth output result includes at least one of the following: an identifier of the subtask obtained after decomposition (i.e., the third subtask), description information of the subtask obtained after decomposition, the purpose of the subtask obtained after decomposition, the subtask type, and solution steps to achieve the purpose.
[0293] The following example illustrates this.
[0294] The fifth prompt word may include:
[0295] System role: The big language model is a mind-mapping expert who is good at decomposing and drilling down data science problems. He is assisting an operations specialist in analyzing Netflix user behavior.
[0296] Data information: Contains the data variables and several samples of the original data set.
[0297] Historical information: Contains the information output by the large language model in the previous step.
[0298] Work objectives and methods: Based on the data information and the obtained analysis dimensions, further decompose each analysis dimension, refer to different data analysis methods, and propose diversified and representative subtasks. Among them, data analysis methods are not limited to distribution exploration, association analysis, cluster analysis, anomaly analysis, attribution analysis, trend analysis, time series analysis, visualization analysis, etc. among multiple variables. At the same time, it is necessary to list the solution steps of each subtask and the data variables it depends on.
[0299] Output requirements:
[0300] Refer to the example and output a valid JSON format: [
[0302] {
[0303] "id": "task_001_question_001",
[0304] "question": "……"
[0305] "purpose": "……"
[0306] "methods": ["...", ...],
[0307] "cot": "1. ……; 2. ……",
[0308] },
[0309] …
[0310] ].
[0311] Restriction requirements: The maximum number of subtasks after decomposition is S, and the analysis dimension has a strong correlation with the data, etc.
[0312] According to the fifth prompt word, the large language model decomposes each subtask into three subtasks. For example, the input content of the first subtask is as follows:
[0313] "id (the identifier of the subtask obtained after decomposition)": "task_001_question_001",
[0314] "question": "What is the average monthly income of users with different subscription types?"
[0315] "purpose": "To understand the average monthly revenue of users with different subscription types, so as to evaluate the revenue contribution of each subscription tier."
[0316] "methods": ["Group analysis", "Descriptive analysis", "Visual analysis"],
[0317] "cot(Solution steps to achieve the goal)": "1. Group users by subscription type; 2. Calculate the average monthly income of each group; 3. Visualize the comparison of average monthly income of different subscription types.".
[0318] The complete subtask list (fifth output result) obtained in this embodiment can be (the fifth output result can also include other relevant information of the subtask (such as purpose, type, solution steps to achieve the purpose, etc.), which is not shown in this embodiment):
[0319] 0 task_001_question_001 What is the average monthly income of users with different subscription types?
[0320] 1 task_001_question_002 In different countries, which devices do users of different subscription types mainly use?
[0321] 2 task_001_question_003 What are the differences in user churn rates for different subscription types?
[0322] 3 task_002_question_001 What is the average monthly income of users with different subscription types, and how do their income distributions differ?
[0323] 4 task_002_question_002 Does the length of a user’s membership affect the type of subscription they choose and Netflix’s monthly revenue?
[0324] 5 task_002_question_003 Are there significant differences in the monthly income of users in different countries for each subscription type?
[0325] 6 task_003_question_001 What are the significant differences in device usage preferences among users of different subscription types?
[0326] 7 task_003_question_002 Is a user's device usage preference related to their monthly income level, and does this relationship vary for different subscription types?
[0327] 8 task_003_question_003 Are the device preferences of users in different countries significantly correlated with their subscription types?
[0328] 9 task_006_question_001 What is the distribution of Netflix subscription types among users of different age groups?
[0329] 10 task_006_question_002 Does age affect the monthly income level of users when choosing different subscription types?
[0330] 11 task_006_question_003 How does the duration of Netflix subscription vary among users of different age groups, and is this related to the type of subscription?
[0331] From the fifth output result, it can be seen that the subtask of each analysis dimension is decomposed into 3 subtasks, and the original task to be processed is decomposed into 12 subtasks, which include multiple analysis dimensions and multiple data analysis methods.
[0332] In the embodiment of the present invention, after obtaining the fifth output result of the large language model, in order to further simplify the problem, the large language model can be allowed to perform a comprehensive evaluation and screening on all subtasks to obtain the final subtask.
[0333] In some embodiments, optionally, the task analysis method based on the large speech model further includes:
[0334] Step S5: evaluating the third subtask to obtain a fourth subtask, wherein obtaining the fourth subtask includes:
[0335] Step S51: instructing the large language model to perform feature analysis on the data variables corresponding to the third subtask according to the original data set and statistical feature indicators;
[0336] Step S52: determining data variables that meet the statistical feature threshold according to the feature analysis result, and determining the third subtask corresponding to the data variables that meet the statistical feature threshold as the fourth subtask;
[0337] The method further includes: determining the fourth subtask as the target subtask to be executed.
[0338] In some embodiments, optionally, evaluating the third subtask to obtain the fourth subtask includes:
[0339] Acquire a sixth prompt word, where the sixth prompt word is used to instruct the large language model to prune the obtained subtask based on the task description;
[0340] The sixth prompt word is sent to the large language model, and a sixth output result output by the large language model is obtained, where the sixth output result includes relevant information of all subtasks obtained after pruning the obtained subtasks.
[0341] In the embodiment of the present invention, the effectiveness of the decomposed subtasks can be guaranteed through task pruning.
[0342] In some embodiments, optionally, obtaining the sixth prompt word includes:
[0343] Obtain the sixth prompt word template;
[0344] The information input by the user in the sixth prompt word template is acquired to obtain the sixth prompt word.
[0345] In some embodiments, optionally, the sixth prompt word template includes at least one of the following parameters: system role, data information, historical information, work objectives and methods, output requirements and restriction requirements, the system role is the role played by the large language model and the capabilities it possesses when analyzing the task to be processed, the data information is the data information involved in the task to be processed, the historical information is the first output result and the related information of the obtained subtask (i.e., the fifth output result), the work objectives and methods are used to instruct the large language model to prune the obtained subtask (i.e., the fifth output result) based on the task description, the output requirements are used to indicate the format requirements and / or instances of the large language model output, and the restriction requirements are used to indicate at least one of the following: indicating the maximum number of retained tasks, indicating the evaluation indicators and thresholds used during pruning.
[0346] In some embodiments, optionally, the sixth prompt word includes at least one of the following parameter values: system role, data information, historical information, work objectives and methods, output requirements and restriction requirements, the system role is the role played by the large language model and the capabilities it possesses when analyzing the task to be processed, the data information is the data information involved in the task to be processed, the historical information is the relevant information of the first output result and the obtained subtasks, the work objectives and methods are used to instruct the large language model to prune the obtained subtasks based on the task description, the output requirements are used to indicate the format requirements and / or instances of the large language model output, and the restriction requirements are used to indicate at least one of the following: indicating the maximum number of tasks to be retained, indicating the evaluation indicators and thresholds used during pruning.
[0347] In the embodiment of the present invention, part of the content in the sixth prompt word may be the same as part of the content in the first prompt word, the second prompt word, the fourth prompt word, or the fifth prompt word, such as the system role and / or data information and / or output requirements. When generating the sixth prompt word, the system role and / or data information and / or output requirements in the first prompt word, the second prompt word, the fourth prompt word, or the fifth prompt word may be automatically obtained and filled into the sixth prompt word, thereby eliminating the need for users to fill in repeatedly and improving user experience. If the sixth prompt word is generated using a sixth prompt word template, the provided sixth prompt word template may include the specific content of the above-mentioned system role and / or data information and / or output requirements, thereby eliminating the need for users to fill in.
[0348] In the embodiment of the present invention, the historical information in the sixth prompt word is the first output result and the fifth output result output by the large language model. When generating the sixth prompt word, the first output result and the fifth output result output by the large language model can be automatically obtained and filled into the sixth prompt word, thereby eliminating the need for user filling in, thereby improving user experience. If the sixth prompt word is generated using a sixth prompt word template, the provided sixth prompt word template can include the first output result and the fifth output result, thereby eliminating the need for user filling in.
[0349] In some embodiments, optionally, the sixth output result includes at least one of the following: an identification of the retained subtask (i.e., the fourth subtask), an analysis dimension of the retained subtask, descriptive information of the retained subtask, an identification of the deleted subtask, an analysis dimension of the deleted subtask, descriptive information of the deleted subtask, an evaluation score, whether it has been deleted, and a reason for being retained or deleted.
[0350] The following example illustrates this.
[0351] The sixth prompt word may include:
[0352] System role: The big language model is a mind-mapping expert who is good at decomposing and drilling down data science problems. He is assisting an operations specialist in analyzing Netflix user behavior.
[0353] Data information: Contains the data variables and several samples of the original data set.
[0354] Historical information: Contains the information output by the large language model in the previous step.
[0355] Work objectives and methods: Based on historical information and data information, analyze the statistical characteristics of the data variables that the task depends on (data coverage, null values, variance, information entropy, etc.). Screen and delete related subtasks of variables with poor statistical characteristics, such as too many missing values in the dependent data variables, single variables, etc.
[0356] Output requirements:
[0357] Refer to the example and output a valid JSON format: [
[0359] {
[0360] "id": "task_001_question_001",
[0361] "insight": "……"
[0362] "prune": "……"
[0363] "reason":"……"
[0364] },
[0365] …
[0366] ].
[0367] Restriction requirements: The maximum number of retained tasks is N, and the evaluation indicator threshold used during pruning is P.
[0368] Based on the sixth prompt word, the large language model evaluates each subtask, generates an evaluation score, whether it is deleted, and the reason for being retained or deleted. For example, the output of the first subtask is as follows, and it is retained: [
[0370] {
[0371] "id (the ID of the reserved subtask)": "task_001_question_001",
[0372] "insight": "80"
[0373] "prune": "False"
[0374] "reason":"Understanding the average monthly revenue of users with different subscription types is important for developing pricing strategies and forecasting revenue."
[0375] }
[0376] ].
[0377] Finally, the 3rd, 4th, and 7th subtasks out of the 12 subtasks were deleted, leaving 9 subtasks.
[0378] It should be noted that the task decomposition method based on the large language model in the embodiment of the present invention may include one or more steps of the above-mentioned task expansion, task pruning and task drill-down. For example, the above-mentioned task expansion, task pruning and task drill-down are not limited to being executed only once. For example, in some embodiments, after obtaining the second output result of the large language model output, task expansion may be performed, task pruning may be performed after task expansion, and then task drill-down may be performed, and task pruning may be performed again after task drill-down is performed. In some embodiments, only task expansion and task pruning may be performed without performing task drill-down, or only task drill-down and task pruning may be performed without performing task expansion.
[0379] In some embodiments, optionally, the task analysis method based on the large speech model further includes:
[0380] Step S6: Input the original data set and each of the target subtasks to be executed into the large language model to obtain the sub-analysis results of each of the target subtasks to be executed. All the sub-analysis results constitute the analysis results of the tasks to be processed. Each of the target subtasks to be executed includes at least one of the following: a description of the subtask, a data analysis method for the subtask, and the solution steps for the subtask.
[0381] In the embodiment of the present invention, the analysis result of the task to be processed may be a comprehensive analysis report, including the sub-analysis result of each input target sub-task to be executed.
[0382] In some embodiments, optionally, inputting the original data set and each of the target to-be-performed subtasks into the large language model includes:
[0383] Acquire a seventh prompt word, wherein the third prompt word is used to instruct the large language model to execute the input target to-be-executed subtask;
[0384] The seventh prompt word is sent to the large language model, and a seventh output result output by the large language model is obtained, where the seventh output result includes an execution result of the input target to-be-executed subtask.
[0385] In some embodiments, optionally, the task decomposition method based on a large language model further includes:
[0386] Get the seventh prompt word template;
[0387] The information input by the user in the seventh prompt word template is acquired to obtain the seventh prompt word.
[0388] In the embodiment of the present invention, optionally, the seventh prompt word template includes at least one of the following parameters: description information of the subtask, data information, and solution steps of the subtask.
[0389] In the embodiment of the present invention, optionally, the seventh prompt word may include at least one of the following: description information of the subtask, data information, and solution steps of the subtask.
[0390] In some embodiments, optionally, step S6 (inputting the original data set and each of the target subtasks to be performed into the large language model to obtain the sub-analysis results of each of the target subtasks to be performed) includes:
[0391] Step S61: Determine the data chain of the target subtask to be executed according to the original data set and the description of the subtask in the target subtask to be executed, the data analysis method of the subtask, and the solution steps of the subtask; the data chain includes at least one operation node for processing the target subtask to be executed, each operation node includes an intermediate data variable and an operation instruction corresponding to the intermediate data variable, and the intermediate data variable is a data variable obtained by the corresponding operation node;
[0392] Step S62: using the large language model based on the data chain, obtaining a sub-analysis result of each of the target subtasks to be executed.
[0393] The "data chain" described in the present invention can also be called a data-driven thinking chain method, which includes a series of intermediate reasoning steps when solving tasks.
[0394] The method for generating a data link in an embodiment of the present invention may include:
[0395] Determining a first prompt word according to input information, the first prompt word including: a target subtask to be executed, initial data information, and a data link description, wherein the input information includes the target subtask to be executed and the initial data information, and the data link description includes a processing method indication corresponding to the target subtask to be executed;
[0396] The first prompt word is input into a large language model, and a target data chain output by the large language model is obtained, wherein the target data chain includes at least one operation node for processing the target subtask to be executed, and each operation node includes an intermediate data variable and an operation instruction corresponding to the intermediate data variable.
[0397] Optionally, the processing method indication includes at least one of the following:
[0398] Instructing the large language model to perform a multi-step analysis on the target subtask to be performed, and generating the intermediate data variable corresponding to the target subtask to be performed;
[0399] The large language model is instructed to process the target subtask to be performed based on the specified initial data.
[0400] Optionally, the processing method instruction further includes at least one of the following:
[0401] Instruct the large language model to perform a multi-step analysis on the target to-be-performed subtask to generate a data chain flow chart corresponding to the intermediate data variable, wherein the data chain flow chart is a flow chart starting from the initial data, with the output result corresponding to the last operation node as the end point, and the intermediate data variable as the intermediate node;
[0402] Instructing to use a specified analysis toolkit to process the target subtask to be executed;
[0403] Instruct the large language model to output at least one of the following attribute information of all intermediate data variables in a standardized format: name, data type, dependent data variable, data description and operation instruction. In some embodiments, optionally, the original data set and each of the target subtasks to be executed are input into the large language model to obtain the sub-analysis results of each of the target subtasks to be executed, including:
[0404] The original data set and each of the target subtasks to be performed are input into the large language model to obtain a sub-analysis result of each of the target subtasks to be performed; and a chart analysis report is generated according to the sub-analysis results.
[0405] In some embodiments, optionally, the task analysis method based on the large speech model further includes:
[0406] Step S7: generating a mind map based on the pending task, the updated subtask and the target pending subtask, and the relationship between the pending task, the updated subtask and the target pending subtask;
[0407] Step S8: Display the mind map.
[0408] In the embodiment of the present invention, the types of mind maps include but are not limited to: bubble map, tree map (tree diagram), flow chart, bracket diagram, Venn diagram, fishbone diagram, circle diagram, timeline (timeline), bridge diagram, organization chart (organizational structure chart), etc.
[0409] The mind map in the embodiment of the present invention may include: tasks to be processed (such as Netflix user text analysis), first-level subtasks (SubTask, including updated subtasks and subtasks obtained by task expansion), and J-level subtasks (SubQuestion, i.e., subtasks obtained by drilling down on tasks).
[0410] Taking the tree diagram of mind mapping as an example, in the mind map, the task to be processed is the root node, the subtasks of the first level are the child nodes of the root node, and the subtasks of the Jth level are the child nodes of the subtasks of the J-1th level.
[0411] Optionally, the first-level subtasks included in the mind map may be all the first-level subtasks obtained in the task decomposition method process (including subtasks pruned from tasks), and the subtasks pruned from tasks may be indicated by means of deletion lines or the like.
[0412] Optionally, the J-th level subtasks included in the mind map may be all the J-th level subtasks obtained in the task decomposition method process (including the subtasks pruned from the task), and the subtasks pruned from the task may be indicated by a deletion line or the like.
[0413] Optionally, the mind map may further include: analysis dimension keywords and / or task descriptions corresponding to the tasks to be processed, and the analysis dimension keywords and / or task descriptions may serve as sub-nodes of the tasks to be processed.
[0414] Optionally, the mind map may also include: the identification (ID) and / or analysis dimension (Perspective) of the subtasks at the first level. The identification (ID) and / or analysis dimension (Perspective) of the subtasks at the first level serve as subnodes of the subtasks at the first level. Optionally, the mind map may also include: the identification (ID) of the subtasks at the Jth level, the purpose (purpose) of the subtasks at the Jth level, the data analysis methods (methods) of the subtasks at the Jth level, the solution steps (cot) of the subtasks at the Jth level, the evaluation scores (Insight) of the subtasks at the Jth level, whether the subtasks at the Jth level are deleted (prune) and / or the reasons (PruneReason) for retaining or deleting the subtasks at the Jth level. The above contents serve as subnodes of the subtasks at the Jth level.
[0415] All the output results of the large language model can be input into the mind map drawing platform to obtain a complete structured mind map of complex problem decomposition. Please refer to Figure 2 , Figure 2 This is a schematic diagram of the overall structure of the mind map. Figure 2 In , SubTask is the first-level subtask output by the large language model, and SubQuestion is the J-th-level subtask (the details of the retained and deleted subtasks are not shown, but may be shown in some embodiments). Please refer to Figure 3 , Figure 3 Schematic diagram of the details of retained and deleted subtasks.
[0416] Please refer to Figure 4 The embodiment of the present invention further provides a task decomposition system based on a large language model. The task decomposition system 10 based on a large language model includes:
[0417] A first processing module 11 is used to understand the task to be processed by using the large language model to obtain multiple updated subtasks output by the large language model;
[0418] A second processing module 12 is used to decompose the task to be processed multiple times based on the multiple updated subtasks using the large language model to obtain subtasks corresponding to the task to be processed output by the large language model;
[0419] A determination module 13 is used to determine the subtask obtained by the M-th decomposition as a target subtask to be executed when the subtask obtained by the M-th decomposition is a subtask of the target level and / or the subtask obtained by the M-th decomposition meets the target execution condition, wherein the target subtask to be executed is used to instruct the large language model to output the analysis result corresponding to the task to be processed, and the target execution condition includes that the data information on which the subtask depends comes from the original data set, and the original data set is the data set on which the analysis of the task to be processed depends.
[0420] Optionally, the target execution condition further includes at least one of the following:
[0421] A subtask includes at least: the steps for solving the subtask;
[0422] The number of solution steps for a subtask is within a preset value range.
[0423] Optionally, the subtask of the target level includes any one of the subtasks of the first level to the subtasks of the Jth level;
[0424] The subtasks of the first level include at least one of the following: the multiple updated subtasks, at least one first subtask set obtained by decomposing the task to be processed based on at least one analysis dimension and the updated subtasks, and a second subtask obtained by evaluating each subtask in the multiple updated subtasks and / or the at least one first subtask set;
[0425] The subtasks at the Jth level include at least one of the following: a third subtask obtained by decomposing the subtasks at the J-1th level, a fourth subtask obtained by evaluating the third subtask, wherein J is an integer greater than or equal to 2, and J is less than or equal to M.
[0426] Optionally, the first processing module 11 is used to instruct the large language model to redescribe the task to be processed according to a first prompt word to obtain a redescribed task description, wherein the first prompt word includes the original data set and the task to be processed; and to instruct the large language model to decompose the redescribed task description according to a second prompt word to obtain the updated subtask.
[0427] Optionally, the second processing module 12 is used to decompose the task to be processed from the analysis dimension of the current round of decomposition according to the multiple updated subtasks, the original data set and the analysis dimension of the current round of decomposition using the large language model for the current round of decomposition in the multiple decompositions, so as to obtain a first subtask set corresponding to the current round of decomposition output by the large language model; continue to perform the next round of decomposition according to the analysis dimension of the next round of decomposition until the decomposition rounds reach a preset number, and finally obtain multiple first subtask sets of multiple decomposition rounds, wherein the subtasks corresponding to the task to be processed include the multiple first subtask sets, and the analysis dimension of each decomposition round is different.
[0428] Optionally, for a current round of decomposition in the multiple decompositions, the large language model is used to decompose the task to be processed from the analysis dimension of the current round of decomposition according to the multiple updated subtasks, the original data set and the analysis dimension of the current round of decomposition, to obtain a first subtask set corresponding to the current round of decomposition output by the large language model, including:
[0429] For a current round of decomposition in the multiple decompositions, constructing prompt words for the current round of decomposition through prompt word engineering;
[0430] Instructing the large language model to decompose the task to be processed from the analysis dimension of the current round decomposition through the prompt word of the current round decomposition, and obtaining a first subtask set corresponding to the current round decomposition output by the large language model;
[0431] The prompt words of the current round of decomposition include the multiple updated subtasks, the original data set and the analysis dimensions of the current round of decomposition.
[0432] Optionally, the task decomposition system 10 based on the large language model further includes:
[0433] The first task pruning module is used to evaluate each subtask in the multiple updated subtasks and / or the at least one first subtask set to obtain a second subtask, wherein obtaining the second subtask includes:
[0434] Instructing the large language model to score each subtask in the plurality of updated subtasks and / or the plurality of first subtask sets according to the analysis dimensions of the plurality of updated subtasks, the original data set, the first evaluation index, and the at least one analysis dimension, wherein the at least one analysis dimension is an analysis dimension corresponding to a subtask in the plurality of first subtask sets;
[0435] The second subtask is determined from the multiple updated subtasks and / or the multiple first subtask sets according to the multiple updated subtasks and / or the first evaluation score of each subtask and a preset threshold corresponding to the first evaluation indicator.
[0436] In some embodiments, optionally, when the subtask at the target level is a subtask at the first level, at least one of the multiple updated subtasks, the multiple first subtask sets, and the second subtask is determined as the target subtask to be executed.
[0437] Optionally, when the subtask of the target level is any one of the subtasks of the second level to the subtasks of the Jth level, and J is an integer greater than or equal to 3, the second processing module 12 is used to, for each subtask in the subtasks of the first level, use the large language model to decompose each subtask in the subtasks of the first level according to the original data set and the data analysis method corresponding to the subtasks of the first level, to obtain a third subtask, wherein the third subtask includes a description of the third subtask, solution steps of the third subtask, and data variables in the original data set corresponding to each solution step, wherein the subtask corresponding to the task to be processed includes the third subtask; or, for each subtask in the subtasks of the J-1th level, use the large language model to decompose each subtask in the subtasks of the J-1th level according to the original data set and the data analysis method corresponding to the subtasks of the J-1th level, to obtain a third subtask, wherein the third subtask includes a description of the third subtask, solution steps of the third subtask, and data variables in the original data set corresponding to each solution step, wherein the subtask corresponding to the task to be processed includes the third subtask.
[0438] Optionally, the second processing module 12 is used to construct prompt words for decomposing the subtasks through prompt word engineering for each subtask in the subtasks at the J-1th level; instruct the large language model to decompose each subtask in the subtasks at the J-1th level according to the original data set and the data analysis method corresponding to the subtasks at the J-1th level through the prompt words for decomposing the subtasks, so as to obtain a third subtask output by the large language model;
[0439] Among them, the prompt words of the subtask decomposition include the original data set, restriction requirements and subtasks at the J-1 level, and the restriction requirements are used to indicate at least one of the following: the maximum number of the third subtasks, and the data analysis method corresponding to the subtasks at the J-1 level is related to the data variables in the original data set.
[0440] Optionally, the task decomposition system 10 based on the large language model further includes:
[0441] The second task pruning module is used to evaluate the third subtask to obtain a fourth subtask, wherein obtaining the fourth subtask includes:
[0442] Instructing the large language model to perform feature analysis on the data variables corresponding to the third subtask according to the original data set and the statistical feature indicators;
[0443] Determine the data variables that meet the statistical feature threshold according to the feature analysis result, and determine the third subtask corresponding to the data variables that meet the statistical feature threshold as the fourth subtask;
[0444] The method further includes: determining the fourth subtask as the target subtask to be executed.
[0445] Optionally, the task decomposition system 10 based on the large language model further includes:
[0446] The third processing module is used to input the original data set and each of the target subtasks to be executed into the large language model to obtain the sub-analysis results of each of the target subtasks to be executed, and all the sub-analysis results constitute the analysis results of the tasks to be processed. Each of the target subtasks to be executed includes at least one of the following: a description of the subtask, a data analysis method for the subtask, and steps for solving the subtask.
[0447] Optionally, the third processing module is used to determine the data chain of the target subtask to be executed based on the original data set and the description of the subtask in the target subtask to be executed, the data analysis method of the subtask, and the solution steps of the subtask; the data chain includes at least one operation node for processing the target subtask to be executed, each operation node includes an intermediate data variable and an operation instruction corresponding to the intermediate data variable, and the intermediate data variable is a data variable obtained by the corresponding operation node; and the sub-analysis result of each target subtask to be executed is obtained based on the data chain using the large language model.
[0448] Optionally, the third processing module is used to input the original data set and each of the target subtasks to be executed into the large language model to obtain a sub-analysis result of each of the target subtasks to be executed; and generate a chart analysis report based on the sub-analysis results.
[0449] Optionally, the task decomposition system 10 based on the large language model further includes:
[0450] A mind map generation module is used to generate a mind map based on the pending tasks, the updated subtasks and the target subtasks to be executed, as well as the relationship between the pending tasks, the updated subtasks and the target subtasks to be executed; and display the mind map.
[0451] Please refer to Figure 5 The embodiment of the present invention further provides a computer device 20, including a processor 21, a memory 22, and a computer program stored in the memory 22 and executable on the processor 21. When the computer program is executed by the processor 21, the various processes of the above-mentioned task decomposition method embodiment based on the large language model are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0452] The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process of the above-mentioned task decomposition method embodiment based on a large language model is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0453] The embodiment of the present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the various processes of the above-mentioned task decomposition method embodiment based on a large language model and can achieve the same technical effect. To avoid repetition, they are not repeated here.
[0454] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0455] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, computer, computer equipment, air conditioner, or network equipment, etc.) to execute the methods described in each embodiment of the present invention.
[0456] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A task decomposition method based on a large language model, characterized in that: include: Step S1: using a large language model to understand the task to be processed, and obtaining a plurality of updated subtasks output by the large language model; Step S2: Decomposing the task to be processed multiple times based on the multiple updated subtasks using the large language model to obtain subtasks corresponding to the task to be processed output by the large language model; Step S3: When the subtask obtained by the M-th decomposition is a subtask of the target level, and / or when the subtask obtained by the M-th decomposition satisfies the target execution condition, the subtask obtained by the M-th decomposition is determined as the target subtask to be executed, wherein the target subtask to be executed is used to instruct the large language model to output the analysis result corresponding to the task to be processed, and the target execution condition includes that the data information on which the subtask depends comes from the original data set, and the original data set is the data set on which the analysis of the task to be processed depends; Wherein, the step S1 comprises: Step S11: instructing the large language model to redescribe the task to be processed according to the first prompt word to obtain a redescribed task description, wherein the first prompt word includes the original data set and the task to be processed; Step S12: instructing the large language model to decompose the re-described task description according to the second prompt word to obtain the updated subtask; The step S2 comprises: Step S21: for the current round decomposition in the multiple decompositions, using the large language model according to the multiple updated subtasks, the original data set and the analysis dimension of the current round decomposition, decompose the task to be processed from the analysis dimension of the current round decomposition to obtain a first subtask set corresponding to the current round decomposition output by the large language model; Step S22: Continue to perform the next round of decomposition according to the analysis dimension of the next round of decomposition until the decomposition rounds reach a preset number of times, and finally obtain multiple first subtask sets of multiple decomposition rounds, wherein the subtasks corresponding to the task to be processed include the multiple first subtask sets, and the analysis dimension of each decomposition round is different.
2. The method according to claim 1, characterized in that: The target execution condition also includes at least one of the following: A subtask includes at least: the steps for solving the subtask; The number of solution steps for a subtask is within a preset value range.
3. The method according to claim 1, characterized in that The subtasks of the target level include any one of the subtasks of the first level to the subtasks of the Jth level; The subtasks of the first level include at least one of the following: the multiple updated subtasks, at least one first subtask set obtained by decomposing the task to be processed based on at least one analysis dimension and the updated subtasks, and a second subtask obtained by evaluating each subtask in the multiple updated subtasks and / or the at least one first subtask set; The subtasks at the Jth level include at least one of the following: a third subtask obtained by decomposing the subtasks at the J-1th level, a fourth subtask obtained by evaluating the third subtask, wherein J is an integer greater than or equal to 2, and J is less than or equal to M.
4. The method according to claim 1, characterized in that: The step S21 comprises: Step S211: for the current round of decomposition in the multiple decompositions, construct prompt words for the current round of decomposition through prompt word engineering; Step S212: instructing the large language model to decompose the task to be processed from the analysis dimension of the current round decomposition through the prompt word of the current round decomposition, and obtaining a first subtask set corresponding to the current round decomposition output by the large language model; The prompt words of the current round of decomposition include the multiple updated subtasks, the original data set and the analysis dimensions of the current round of decomposition.
5. The method according to claim 3, characterized in that: Also includes: Step S4: Evaluate each subtask in the plurality of updated subtasks and / or at least one first subtask set to obtain a second subtask, wherein obtaining the second subtask includes: Step S41: instructing the large language model to score each subtask in the multiple updated subtasks and / or the multiple first subtask sets according to the analysis dimensions of the multiple updated subtasks, the original data set, the first evaluation index and the at least one analysis dimension, wherein the at least one analysis dimension is the analysis dimension corresponding to the subtask in the multiple first subtask sets; Step S42: Determine the second subtask from the multiple updated subtasks and / or the multiple first subtask sets according to the multiple updated subtasks and / or the first evaluation scores of each subtask and a preset threshold corresponding to the first evaluation indicator.
6. The method according to claim 5, characterized in that When the subtask of the target level is a subtask of the first level, at least one of the multiple updated subtasks, the multiple first subtask sets and the second subtask is determined as the target subtask to be executed.
7. The method according to claim 5, characterized in that When the subtask of the target level is any one of the subtasks of the second level to the subtasks of the Jth level, and J is an integer greater than or equal to 3, step S2 further includes: Step S23: for each subtask in the first level of subtasks, using the large language model according to the original data set and the data analysis method corresponding to the subtasks of the first level, decompose each subtask in the first level of subtasks to obtain a third subtask, wherein the third subtask includes a description of the third subtask, solution steps of the third subtask and data variables in the original data set corresponding to each solution step, wherein the subtask corresponding to the task to be processed includes the third subtask; or, Step S24: For each subtask in the subtasks of the J-1th level, use the large language model to decompose each subtask in the subtasks of the J-1th level according to the original data set and the data analysis method corresponding to the subtasks of the J-1th level to obtain a third subtask, wherein the third subtask includes a description of the third subtask, solution steps of the third subtask and data variables in the original data set corresponding to each solution step, wherein the subtasks corresponding to the task to be processed include the third subtask.
8. The method according to claim 7, characterized in that The step S23 or step S24 further includes: For each subtask in the J-1th level, constructing a cue word for decomposing the subtask through cue word engineering; Instructing the large language model through the prompt words of the subtask decomposition to decompose each subtask in the subtask of the J-1th level according to the original data set and the data analysis method corresponding to the subtask of the J-1th level, so as to obtain a third subtask output by the large language model; Among them, the prompt words of the subtask decomposition include the original data set, restriction requirements and subtasks at the J-1 level, and the restriction requirements are used to indicate at least one of the following: the maximum number of the third subtasks, and the data analysis method corresponding to the subtasks at the J-1 level is related to the data variables in the original data set.
9. The method according to claim 7, characterized in that: Also includes: Step S5: evaluating the third subtask to obtain a fourth subtask, wherein obtaining the fourth subtask includes: Step S51: instructing the large language model to perform feature analysis on the data variables corresponding to the third subtask according to the original data set and statistical feature indicators; Step S52: determining data variables that meet the statistical feature threshold according to the feature analysis result, and determining the third subtask corresponding to the data variables that meet the statistical feature threshold as the fourth subtask; The method further includes: determining the fourth subtask as the target subtask to be performed.
10. The method according to any one of claims 1 to 9, characterized in that: Also includes: Step S6: Input the original data set and each of the target subtasks to be executed into the large language model to obtain the sub-analysis results of each of the target subtasks to be executed. All the sub-analysis results constitute the analysis results of the tasks to be processed. Each of the target subtasks to be executed includes at least one of the following: a description of the subtask, a data analysis method for the subtask, and the solution steps for the subtask.
11. The method according to claim 10, characterized in that The step S6 comprises: Step S61: Determine the data chain of the target subtask to be executed according to the original data set and the description of the subtask in the target subtask to be executed, the data analysis method of the subtask, and the solution steps of the subtask; the data chain includes at least one operation node for processing the target subtask to be executed, each operation node includes an intermediate data variable and an operation instruction corresponding to the intermediate data variable, and the intermediate data variable is a data variable obtained by the corresponding operation node; Step S62: using the large language model based on the data chain, obtaining a sub-analysis result of each of the target subtasks to be executed.
12. The method according to any one of claims 1 to 9, characterized in that: Also includes: Step S7: generating a mind map based on the pending task, the updated subtask and the target pending subtask, and the relationship between the pending task, the updated subtask and the target pending subtask; Step S8: Display the mind map.
13. A task decomposition system based on a large language model, characterized in that: include: A first processing module, configured to understand the task to be processed by using the large language model, and obtain a plurality of updated subtasks output by the large language model; A second processing module is used to decompose the task to be processed multiple times based on the multiple updated subtasks by using the large language model to obtain subtasks corresponding to the task to be processed output by the large language model; A determination module, used for determining the subtask obtained by the M-th decomposition as a target subtask to be executed when the subtask obtained by the M-th decomposition is a subtask of the target level and / or the subtask obtained by the M-th decomposition meets the target execution condition, wherein the target subtask to be executed is used to instruct the large language model to output the analysis result corresponding to the task to be processed, and the target execution condition includes that the data information on which the subtask depends comes from the original data set, and the original data set is the data set on which the analysis of the task to be processed depends; The first processing module is used to instruct the large language model to redescribe the task to be processed according to the first prompt word to obtain a redescribed task description, wherein the first prompt word includes the original data set and the task to be processed; and to instruct the large language model to decompose the redescribed task description according to the second prompt word to obtain the updated subtask; The second processing module is used to decompose the task to be processed from the analysis dimension of the current round of decomposition according to the multiple updated subtasks, the original data set and the analysis dimension of the current round of decomposition using the large language model for the current round of decomposition in the multiple decompositions, so as to obtain a first subtask set corresponding to the current round of decomposition output by the large language model; continue to perform the next round of decomposition according to the analysis dimension of the next round of decomposition until the decomposition rounds reach a preset number, and finally obtain multiple first subtask sets of multiple decomposition rounds, wherein the subtasks corresponding to the task to be processed include the multiple first subtask sets, and the analysis dimension of each decomposition round is different.
Citation Information
Cited By
Task multi-level reasoning method and device for low-bit large language model, equipment and medium
CN120806168B
