Data labeling method and system, and storage medium
By planning an automated annotation process involving intelligent agents and multiple sub-intelligent agents working together, the problem of relying on manual operation for factual annotation of the output content of large language models is solved, achieving efficient, accurate and flexible data annotation, and reducing manual intervention and time consumption.
Patent Information
- Application Number
- CN202611416756.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-11
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, the factual annotation process of the output content of large language models relies on manual operation, which consumes a lot of time and human resources. Moreover, the annotation quality depends on the knowledge and experience of the annotators, resulting in low intelligence, long annotation cycle, high dependence on human resources, and difficulty in large-scale production.
By employing a planning agent and multiple sub-agents working collaboratively, the annotation task is planned automatically, including extraction, retrieval, and verification sub-tasks. The annotation task planning is dynamically adjusted based on user feedback, achieving high efficiency and accuracy in the automated process.
It reduces manual intervention, improves annotation efficiency and accuracy, ensures the rationality and flexibility of annotation, solves the problems of low level of intelligence, long annotation cycle and high dependence on manpower, and achieves efficient and reliable data annotation results.
Smart Images

Figure CN123178002A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of data processing technology, and in particular to a data annotation method, system and storage medium. Background Technology
[0002] With the rapid development of artificial intelligence technology, large language models are being applied more and more widely in various professional fields. Based on massive amounts of training data, large language models can provide users with rich and logically complete answers. However, due to the generation mechanism of large language models, their output may contain illusions that contradict reality. These illusions manifest as factual errors in the output that are inconsistent with knowledge of the objective world.
[0003] In practical applications, overcoming the illusion problem by factually verifying the output of large language models typically requires manual annotation of the output to determine if factual errors exist. Annotators need to read each piece of text generated by the large language model, identify the factual information requiring verification, and verify it through multiple channels. For long texts containing multiple factual points, this verification process must be performed for each fact individually, consuming significant time and manpower. Therefore, how to more efficiently annotate the output of large language models is a pressing issue that needs to be addressed.
[0004] The information in the background section is merely information known only to the inventor and does not imply that such information had entered the public domain before the date of this application, nor does it imply that it can be considered prior art in this disclosure. Summary of the Invention
[0005] This specification provides a data annotation method, system, and storage medium that can be applied to scenarios where factual annotation of the answer portion of a large language model's output is required.
[0006] Firstly, this specification provides a data annotation method, comprising: obtaining annotation task planning content output by a planning agent based on data to be annotated, wherein the data to be annotated is the answer portion generated by a target large language model in the process of answering questions in a target domain; the annotation task planning content includes: at least two sub-agents to be invoked and the order and number of times the at least two sub-agents are invoked, wherein each sub-agent is used to execute a corresponding annotation sub-task; based on the annotation task planning content, invoking the at least two sub-agents to execute the corresponding annotation sub-tasks to obtain factual annotation results of the data to be annotated; wherein, after the planning agent outputs the annotation task planning content, if a first feedback information from a user based on the annotation task planning content is received, the planning agent is triggered to regenerate the annotation task planning content based on the first feedback information and the data to be annotated.
[0007] In some embodiments, the method further includes: after any sub-agent completes the corresponding annotation sub-task, if a second feedback information is received from the user based on the execution result output by the current sub-agent, the current sub-agent is triggered to re-execute the annotation sub-task based on the second feedback information.
[0008] In some embodiments, the at least two sub-agents include: an extraction sub-agent, a retrieval sub-agent, and a verification sub-agent; the step of invoking the at least two sub-agents to execute the corresponding annotation sub-task includes: invoking the extraction sub-agent to decompose the content of the data to be annotated into multiple atomic facts; invoking the retrieval sub-agent to retrieve the multiple atomic facts and obtain the retrieval results corresponding to each atomic fact; and invoking the verification sub-agent to perform factual verification on the multiple atomic facts and the corresponding retrieval results and obtain the verification results.
[0009] In some embodiments, the step of invoking the retrieval sub-agent to retrieve the plurality of atomic facts and obtain retrieval results corresponding to each atomic fact includes: rewriting the plurality of atomic facts into sentences to obtain a plurality of corresponding sentences to be retrieved; retrieving the sentences to be retrieved based on a knowledge data source of the target domain to obtain retrieval results corresponding to each atomic fact; wherein, the knowledge data source includes one or more of the following: a historical knowledge vector library, a domain knowledge graph, and a network retrieval interface.
[0010] In some embodiments, after invoking the at least two sub-agents to execute the corresponding annotation sub-tasks based on the annotation task planning content, the method further includes: storing the execution results of the at least two sub-agents executing the corresponding annotation sub-tasks in a memory module, wherein when the sub-agents execute the annotation sub-tasks, they read the execution results of the preceding sub-agents from the memory module to perceive the context.
[0011] In some embodiments, obtaining the annotation task planning content output by the planning agent based on the data to be labeled includes: obtaining the annotation task planning content output by the planning agent based on the content features and length features of the data to be labeled, wherein the content features include one or more of the following: the number of facts contained, the type of facts, and the text complexity.
[0012] In some embodiments, obtaining the annotation task planning content output by the planning agent based on the content features and length features of the data to be annotated includes: if the length feature of the data to be annotated is greater than a preset threshold, then obtaining the annotation task planning content output by the planning agent based on the content features of the data to be annotated, wherein the annotation task planning content includes: the extraction sub-agent, the retrieval sub-agent, and the verification sub-agent to be called (and the number of times each sub-agent is called); if the length feature of the data to be annotated is less than the preset threshold, then obtaining the annotation task planning content output by the planning agent based on the content features of the data to be annotated, wherein the annotation task planning content includes: the retrieval sub-agent, the verification sub-agent to be called, and the number of times each sub-agent is called.
[0013] In some embodiments, the target domain is the financial domain, and the data to be labeled is a long financial text answer generated by a financial big language model.
[0014] Secondly, this specification also provides a data annotation system, including at least one storage medium and at least one processor, wherein the at least one storage medium stores at least one instruction set for data annotation; the at least one processor is communicatively connected to the at least one storage medium, wherein the at least one processor reads the at least one instruction set during operation and executes the method described in any of the first aspects above according to the instructions of the at least one instruction set.
[0015] Thirdly, this specification also provides a computer-readable non-volatile storage medium, wherein the computer-readable non-volatile storage medium stores at least one instruction set, which, when executed by at least one processor, implements the data annotation method as described in any of the first aspects above.
[0016] As can be seen from the above technical solutions, in the data annotation method, system, and storage medium provided in this specification, the planning agent can analyze the data to be annotated to output annotation task planning content. The annotation task planning content specifies at least two sub-agents required to execute the annotation task, the order in which these at least two sub-agents execute the annotation task, and the number of times they execute the annotation task. Each sub-agent is used to execute a corresponding annotation sub-task. Subsequently, the data annotation system calls the corresponding sub-agents according to the above annotation task planning content to obtain the factual annotation results of the data to be annotated. Through the above data annotation method, the automatic annotation of the factual annotation results of the data to be annotated is realized, thereby transforming the process that originally required manual annotation into an automated process completed collaboratively by multiple agents (the planning agent and at least two sub-agents), reducing manual intervention and improving the accuracy and efficiency of data annotation. Furthermore, after the planning agent outputs the annotation task plan, if the data annotation system receives the user's first feedback information regarding the annotation task plan content, it triggers the planning agent to regenerate the annotation task plan content based on the first feedback information and the data to be annotated. The above-mentioned task adjustment mechanism, which introduces user feedback information to trigger the planning agent to regenerate the annotation task planning content during the data annotation process, allows the annotation task planning content to be adjusted in real time according to the user's first feedback information. This ensures the rationality and accuracy of the annotation task planning while maintaining annotation efficiency, ultimately achieving efficient and reliable data annotation results.
[0017] Other functionalities of the data annotation methods, systems, and storage media provided in this specification will be partially listed in the following description. The inventive aspects of the data annotation methods, systems, and storage media provided in this specification can be fully understood through practice or use of the methods, apparatus, and combinations described in the detailed examples below. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this specification, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 A schematic diagram of an application scenario provided according to an embodiment of this specification is shown; Figure 2 A schematic diagram of the hardware structure of a computing device provided according to some embodiments of this specification is shown; Figure 3 A flowchart illustrating a data annotation method according to an embodiment of this specification is shown; Figure 4 A flowchart illustrating an embodiment of this specification for adjusting the content of a labeling task plan is shown. Figure 5 A flowchart illustrating an adjustment target execution step according to an embodiment of this specification is shown; Figure 6 A flowchart illustrating a data annotation method according to another embodiment of this specification is shown; and Figure 7 A flowchart illustrating a data annotation method according to another embodiment of this specification is shown. Detailed Implementation
[0020] The following description provides specific application scenarios and requirements for this specification, intended to enable those skilled in the art to make and use the contents of this specification. Various partial modifications to the disclosed embodiments will be apparent to those skilled in the art, and the general principles defined herein can be applied to other embodiments and applications without departing from the spirit and scope of this specification. Therefore, this specification is not limited to the embodiments shown, but rather to the widest scope consistent with the claims.
[0021] The terminology used herein is for the purpose of describing particular exemplary embodiments only and is not restrictive. For example, unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “the” used herein may also include the plural forms. When used in this specification, the terms “comprising,” “including,” and / or “containing” mean that the associated integers, steps, operations, elements, and / or components are present, but do not exclude the presence of one or more other features, integers, steps, operations, elements, components, and / or groups, or that other features, integers, steps, operations, elements, components, and / or groups may be added to the system / method.
[0022] Considering the following description, these and other features of this specification, as well as the operation and function of the related components of the structure, and the economy of assembly and manufacture of the parts, can be significantly improved. All of these form part of this specification with reference to the accompanying drawings. However, it should be clearly understood that the drawings are for illustrative and descriptive purposes only and are not intended to limit the scope of this specification. It should also be understood that the drawings are not drawn to scale.
[0023] The flowcharts used in this specification illustrate operations implemented according to some embodiments of this specification. It should be clearly understood that the operations in the flowcharts may not be implemented in a sequential order. Instead, the operations may be implemented in reverse order or simultaneously. Furthermore, one or more additional operations may be added to the flowcharts. One or more operations may be removed from the flowcharts.
[0024] In this specification, "X includes at least one of A, B, or C" means that X includes at least A, or X includes at least B, or X includes at least C. That is, X may include only one of A, B, and C, or any combination of A, B, and C, as well as other possible content / elements. The arbitrary combination of A, B, and C can be A, B, C, AB, AC, BC, or ABC.
[0025] In this specification, unless explicitly stated otherwise, the relationships between structures can be direct or indirect. For example, when describing "A is connected to B," unless it is explicitly stated that A and B are directly connected, it should be understood that A can be directly connected to B or indirectly connected to B. Similarly, when describing "A is on top of B," unless it is explicitly stated that A is directly above B (AB is adjacent and A is above B), it should be understood that A can be directly above B or indirectly above B (AB is separated by other elements, and A is above B). And so on.
[0026] It should be noted that the user data obtained in this manual is authorized by the user and does not involve user privacy.
[0027] For ease of description, the terms that will appear later in this manual will be explained first.
[0028] Large language models are commonly used in the field of artificial intelligence in natural language processing (NLP), especially referring to large machine learning models with a large number of parameters and computational resources. Large language models are named for their huge number of parameters and complex network structures. They have powerful feature representation and feature understanding capabilities, and can better capture patterns and regularities in data when dealing with complex tasks. They are designed and trained to better understand and generate natural language.
[0029] The technical solution provided in this specification is applicable to scenarios involving data annotation of the output content of large language models. Data annotation refers to the process of verifying the data to be annotated based on the annotation task planning content output by the planning agent, which is based on the data to be annotated, in order to output factual annotation results. During the verification process, after the data annotation system generates the annotation task planning content, the user can provide feedback on the annotation task planning content through initial feedback information. This allows the planning agent to regenerate the annotation task planning content corresponding to the data to be annotated based on the user's initial feedback information and the data to be annotated. In the above scenario, the annotated data can be used for various purposes such as model validation, illusion detection, and content review. For example, when enterprises use large language models to generate product manuals, technical documents, or customer service responses, in order to ensure that the generated content is factual, it is usually necessary to perform factual verification and annotation on the model's output content to avoid risks caused by the spread of erroneous information.
[0030] However, in related solutions, the factual annotation process for content generated by large language models relies heavily on manual operation and professional judgment. Specifically, during annotation, annotators typically need to read the text generated by the large language model one by one, identify the factual information that needs to be verified, manually verify the factual information, and record the verification results in the form of annotations. For long texts containing multiple factual pieces of information, this process often needs to be repeated multiple times, consuming a lot of time and human resources, making it difficult to cope with the needs of large-scale, high-frequency content generation. Moreover, the quality of the annotation results depends on the knowledge, experience, and judgment accuracy of the annotators, leading to unstable annotation quality and the risk of subjective bias and omissions. Therefore, there are problems such as low level of intelligence, long annotation cycle, high dependence on human resources, and difficulty in large-scale production.
[0031] To this end, this specification provides a data annotation method. The data annotation system can obtain annotation task planning content generated by a planning agent. The annotation task planning content includes: at least two sub-agents to be invoked, and the order and number of times each of the at least two sub-agents is invoked. Each sub-agent is used to execute a corresponding annotation sub-task. Based on the annotation task planning content, the data annotation system can invoke the at least two sub-agents to execute the corresponding annotation sub-tasks to obtain factual annotation results for the data to be annotated. Specifically, after the planning agent outputs the annotation task planning content, if it receives first feedback information from the user based on the annotation task planning content, it triggers the planning agent to regenerate the annotation task planning content based on the first feedback information and the data to be annotated.
[0032] Through the above methods, the data annotation system can intelligently plan the collaborative scheme between multiple agents (planning agent and at least two sub-agents) based on the data to be annotated. This transforms the original manual factual annotation process into an automated workflow completed sequentially by multiple sub-agents, reducing the number of manual intervention steps and workload, and improving the efficiency of factual annotation. Furthermore, by introducing a dynamic adjustment mechanism that triggers the planning agent to replan based on the user's initial feedback, the annotation task planning can be flexibly optimized based on the user's judgment. This ensures the rationality and accuracy of the annotation scheme while maintaining annotation efficiency. This solves the problems of low intelligence, long annotation cycle, high dependence on human labor, and difficulty in large-scale production in related technologies, achieving efficient, accurate, and flexibly adaptable data annotation results.
[0033] It should be noted that the above description of application scenarios is only one of the many usage scenarios provided in this specification. Those skilled in the art should understand that when the data annotation methods, systems, and storage media provided in this specification are applied to other usage scenarios, their implementation methods and technical effects are similar.
[0034] Figure 1 A schematic diagram of an application scenario provided according to an embodiment of this specification is shown.
[0035] like Figure 1 As shown, the application scenario 100 provided in this specification may include a target large language model 110 and a data annotation system 130.
[0036] Specifically, the target large language model 110 can input the answer portion generated during historical or online responses to questions in the target domain as data to be labeled into the data labeling system 130. Subsequently, the data labeling system 130 obtains the labeling task planning content for the data to be labeled generated by the planning agent. Then, based on the labeling task planning content, the data labeling system 130 calls the at least two sub-agents to execute the corresponding labeling sub-tasks to obtain the factual labeling results of the data to be labeled.
[0037] The data annotation system 130 may be a computing system with certain computing capabilities. The data annotation system 130 can execute the data annotation methods provided in this specification to perform factual annotations on the data to be annotated and obtain the corresponding factual annotation results for the data to be annotated. The data annotation system 130 may store data or instructions for executing the data annotation methods described in this specification, and may execute or be used to execute the data or instructions. The data annotation system 130 may include hardware devices with data information processing functions and the necessary programs required to drive the operation of such hardware devices.
[0038] The data annotation system 130 can be a single computing device or a cluster system composed of multiple computing devices. The data or instructions stored in the data annotation system 130 for executing the data annotation methods described in this specification can adopt any form of system architecture. For example, layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture, etc.
[0039] Figure 2 A schematic diagram of the hardware structure of a computing device 200 according to some embodiments of this specification is shown. The data annotation system 130 may have, for example... Figure 2 The structure of the computer 200 shown is illustrated.
[0040] like Figure 2 As shown, the computing device 200 includes at least one storage medium 230 and at least one processor 220. In some embodiments, the computing device 200 may further include an internal communication bus 210. In some embodiments, the computing device 200 may further include a communication port 250. In some embodiments, the computing device 200 may further include I / O components 260.
[0041] The internal communication bus 210 can connect different system components, including storage medium 230 and processor 220. I / O component 260 supports input / output between computing device 200 and other components.
[0042] Communication port 250 is used for data communication between computing device 200 and the outside world. For example, computing device 200 can connect to a network through communication port 250.
[0043] Storage medium 230 may include a data storage device. The data storage device may be a non-transitory storage medium or a temporary storage medium. For example, the data storage device may include one or more of a disk 232, a read-only storage medium (ROM) 234, or a random access storage medium (RAM) 236. Storage medium 230 also includes at least one instruction set stored in the data storage device. The instruction set is computer program code, which may include programs, routines, objects, components, data structures, procedures, modules, etc., that execute the training methods of the data annotation methods or models provided in this specification.
[0044] At least one processor 220 is communicatively connected to at least one storage medium 230 via an internal communication bus 210. The at least one processor 220 is used to execute the at least one instruction set described above. When the data annotation system 130 is running, the at least one processor 220 reads the at least one instruction set and executes the data annotation method or model training method provided in this specification according to the instructions of the at least one instruction set.
[0045] Processor 220 can execute all steps included in the data annotation method or model training method. Processor 220 can be in the form of one or more processors. Processor 220 can issue execution instructions. Processor 220 may include one or more hardware processors, such as microcontrollers, microprocessors, reduced instruction set computers (RISC), application-specific integrated circuits (ASICs), application-specific instruction set processors (ASIPs), central processing units (CPUs), graphics processing units (GPUs), physical processing units (PPUs), microcontroller units, digital signal processors (DSPs), field-programmable gate arrays (FPGAs), advanced RISC machines (ARMs), programmable logic devices (PLDs), any circuit or processor capable of performing one or more functions, or any combination thereof.
[0046] For illustrative purposes only, only one processor 220 is shown in the accompanying drawings of the computing device 200. However, it should be noted that the computing device 200 may also include multiple processors. Therefore, the operation and / or method steps disclosed herein may be executed by a single processor or by multiple processors in combination, as described herein. For example, if processor 220 of the computing device 200 in this specification executes steps A and B, it should be understood that steps A and B may also be executed jointly or separately by two different processors 220 (e.g., a first processor executes step A, a second processor executes step B, or the first and second processors jointly execute steps A and B).
[0047] Figure 3 A flowchart illustrating a data annotation method according to an embodiment of this specification is shown; this data annotation method P300 can be executed by a data annotation system 130. Figure 3 As shown, the method P300 provided in this specification may include S310-S350, wherein: S310: Obtain the annotation task planning content output by the planning agent based on the data to be annotated, wherein the data to be annotated is the answer part generated by the target large language model in the process of answering questions in the target domain.
[0048] The annotation task planning includes: at least two sub-agents to be invoked, and the order and number of times each of the at least two sub-agents is invoked, wherein each sub-agent is used to execute a corresponding annotation sub-task. This embodiment of the specification breaks down a complete annotation task into multiple annotation sub-tasks, with different sub-tasks executed by corresponding sub-agents, thereby allowing each sub-agent to focus on executing its corresponding annotation sub-task, thus improving execution efficiency and the accuracy of the execution results.
[0049] In some embodiments, the target domain refers to a domain with high requirements for the accuracy and professionalism of data analysis, such as the financial, medical, and academic fields. Taking the financial field as an example, the data to be labeled can be long-text financial answers generated by a financial language model. Because the financial field has high requirements for the accuracy and professionalism of data analysis, it is necessary to perform fact-checking on the content output by the financial language model to label whether the output results of the financial language model are consistent with the facts.
[0050] The aforementioned method of automating annotation task planning through a planning agent transforms processes that rely on manual planning into automated planning schemes, reducing the manpower and time consumption associated with manual planning. Furthermore, the automated generation of annotation task planning content improves the stability and accuracy of the generated content.
[0051] In some embodiments, the data annotation system can obtain the dataset to be annotated from the log data of the target large language model. For example, during the process of providing a question-and-answer service, the target large language model records log data containing user question information and the answer information output by the target large language model. The data to be annotated can be obtained from the log data based on the purpose of the annotation task. For example, if the purpose of the annotation task is to obtain the factuality of each output of the target large language model, then all outputs of the large language model can be obtained from the log data, and each output can be used as the data to be annotated. If the purpose of the annotation task is to evaluate the factuality of long text content output by the large language model, then long text content output by the large language model can be obtained from the log data. For example, text with a length greater than a preset length can be defined as long text, and long text content can be filtered from the log data accordingly, using each long text output as the data to be annotated. If the purpose of the annotation task is to evaluate the factuality of the content output by the large language model, in order to improve evaluation efficiency, some output content of the large language model can be randomly extracted from the log data, and each extracted piece of content can be used as the data to be annotated. This specification does not limit the embodiments in this regard.
[0052] The methods described above for obtaining the data to be labeled provide a foundational data source for subsequent factual annotation. This approach utilizes the actual output generated by the target language model during real-world applications, ensuring the data to be labeled is highly representative and practical. Compared to manually constructing test sets, this method of directly obtaining the data to be labeled from the target language model's logs reduces data collection costs and can cover a wider range of application scenarios and user question types, providing a data foundation for comprehensively verifying the factuality of the target language model.
[0053] S330: Based on the annotation task planning content, call the at least two sub-agents to execute the corresponding annotation sub-tasks to obtain the factual annotation results of the data to be annotated.
[0054] In some embodiments, the data annotation system incorporates multiple different annotation sub-tasks. The system first calls the first sub-agent to execute the corresponding sub-task a preset number of times, according to the execution order determined in the annotation task planning. After the first sub-agent completes its sub-task, the system then sequentially calls other sub-agents according to the calling order and number of times specified in the annotation task planning, allowing each sub-agent to execute its corresponding sub-task. This method of sequentially calling at least two sub-agents based on the annotation task planning allows these sub-agents to collaboratively complete the factual analysis of the data to be annotated. Finally, the system integrates the execution results of each sub-agent to obtain the factual annotation results of the data to be annotated.
[0055] S350: After the planning agent outputs the annotation task planning content, if it receives the first feedback information from the user regarding the annotation task planning content, it triggers the planning agent to regenerate the annotation task planning content based on the first feedback information and the data to be annotated.
[0056] Figure 4 This document illustrates a flowchart of an embodiment for adjusting the content of a labeling task plan, as shown below. Figure 4 As shown, after the data annotation system generates the annotation task plan, if the user is dissatisfied with the plan or needs adjustments, they can provide feedback through the first feedback message. Upon receiving the first feedback message, the data annotation system can adjust the annotation task plan based on it and output the adjusted plan. If the user has no further feedback on the adjusted plan, the data annotation system will execute at least two sub-agents to be invoked based on the adjusted plan.
[0057] In some embodiments, the data annotation system provides a dynamic adjustment mechanism. After the planning agent outputs the annotation task plan, the data annotation system presents the plan to the user for review. If the user finds the execution steps in the plan too simple, the calling order of at least two sub-agents unreasonable, or the call count of some sub-agents needs adjustment, they can submit feedback by providing initial feedback. Upon receiving the initial feedback, the data annotation system can input it again along with the data to be annotated to the planning agent. The planning agent re-analyzes the data based on the initial feedback and regenerates a new annotation task plan. This allows the annotation task plan to be continuously adjusted and optimized based on the user's initial feedback until it meets the user's requirements.
[0058] Continue as Figure 4 As shown, the sub-agents included in the annotation task planning content can include at least two of the following sub-agents: extraction sub-agent, retrieval sub-agent, and verification sub-agent. When executing each sub-agent, the data annotation system can call the corresponding calling tool for each sub-agent. After the annotation task planning content is completed, the factual annotation results corresponding to the data to be annotated can be obtained.
[0059] In summary, in the data annotation method P300 and system 130 provided in this specification, the planning agent can analyze the data to be annotated to output annotation task planning content for the data to be annotated. The annotation task planning content specifies at least two sub-agents that need to be called to execute the annotation task, as well as the order and number of times the at least two sub-agents execute the annotation task, where each sub-agent is used to execute a corresponding annotation sub-task. Subsequently, the data annotation system calls the corresponding sub-agents according to the above annotation task planning content to obtain the factual annotation results of the data to be annotated. The above data annotation method realizes the automated annotation of the factual annotation results of the data to be annotated, thereby transforming the original manual annotation process into an automated process completed collaboratively by multiple agents (the planning agent and at least two sub-agents), improving the accuracy and efficiency of data annotation. In addition, after the planning agent outputs the annotation task plan, if the data annotation system receives the user's first feedback information on the annotation task plan content, it triggers the planning agent to regenerate the annotation task plan content based on the first feedback information and the data to be annotated. The above-mentioned task adjustment mechanism, which introduces user feedback information to trigger the planning agent to regenerate the annotation task planning content during the data annotation process, allows the annotation task planning content to be adjusted in real time according to the user's first feedback information. This ensures the rationality and accuracy of the annotation task planning content while maintaining annotation efficiency, ultimately achieving efficient and reliable data annotation results.
[0060] In some embodiments, after any sub-agent completes the corresponding annotation sub-task, if a second feedback message is received from the user based on the execution result output by the current sub-agent, the current sub-agent is triggered to re-execute the annotation sub-task based on the second feedback message.
[0061] As an example, a user might input a second feedback message when the retrieval sub-agent's search results are incomplete, causing the retrieval sub-agent to re-execute the corresponding annotation sub-task based on the second feedback message. Alternatively, a user might input a second feedback message when the retrieval sub-agent's search scope is too narrow, allowing the retrieval sub-agent to expand its search scope. Or, a user might input a second feedback message when the verification sub-agent makes a verification error, causing the verification sub-agent to re-verify. In other words, if a user is dissatisfied with the execution result of any sub-agent after it has completed its corresponding annotation sub-task, they can trigger the current sub-agent to re-execute the current sub-task based on the second feedback message.
[0062] Figure 5 A flowchart illustrating an adjustment target execution step according to an embodiment of this specification is shown, such as... Figure 5As shown, the data annotation system provides a real-time interaction and correction mechanism during the execution of sub-agents. After the data annotation system generates the annotation task plan and calls a sub-agent to execute the corresponding annotation sub-task on the data to be annotated according to the plan, the current sub-agent will output a preliminary execution result. The data annotation system presents the above preliminary execution result to the user for review. If the user finds omissions, deviations, or inaccuracies in the current sub-agent's execution result, such as the information retrieval scope being too narrow and needing to be expanded, or the information retrieval results being incomplete, or the comparison and judgment results being inaccurate, the user can provide modification suggestions or correction instructions for the current sub-agent's output result through second feedback information. After receiving the user's second feedback information, the data annotation system triggers the sub-agent to re-execute the above current annotation sub-task based on the user's second feedback information and generate an updated execution result, thereby ensuring that the execution result output by the current sub-agent meets the user's requirements.
[0063] The above approach, by introducing user intervention and correction through second feedback information when calling at least two sub-agents to execute corresponding annotation sub-tasks, allows users to verify and provide feedback on the execution results after each sub-agent completes its assigned annotation sub-task. This prevents errors from a single annotation sub-task from accumulating or amplifying in subsequent processes. This real-time interaction not only ensures the efficiency of automated processing but also guarantees the accuracy and reliability of the execution results of each annotation sub-task. Furthermore, since the correction process based on the second feedback information only applies to the annotation sub-task corresponding to the current sub-agent, it avoids re-executing the entire annotation task's planned process, thus controlling the time and resource consumption associated with re-executing annotation sub-tasks.
[0064] In some embodiments, at least two sub-agents include: an extraction sub-agent, a retrieval sub-agent, and a verification sub-agent. The data annotation system can invoke the extraction sub-agent to decompose the content of the data to be annotated into multiple atomic facts. Furthermore, the data annotation system can invoke the retrieval sub-agent to retrieve the multiple atomic facts, obtaining retrieval results corresponding to each atomic fact. Finally, the data annotation system can invoke the verification sub-agent to perform factual verification on the multiple atomic facts and their corresponding retrieval results, obtaining verification results.
[0065] The data annotation system decomposes complex data to be annotated into atomic facts by extracting sub-agents, achieving a refined decomposition of the data and making the fact verification task more specific, thus providing a data foundation for subsequent verification. Secondly, by retrieving sub-agents that provide objective external evidence for each atomic fact, subjective judgment is transformed into objective comparison based on evidence, avoiding reliance on a single information source and the subjective bias of human judgment, thereby improving the accuracy and credibility of fact verification. Finally, through the verification sub-agent's systematic comparison of facts and evidence, the system automates the entire process from data decomposition and evidence acquisition to result determination, improving the overall efficiency and standardization of data annotation and ensuring the standardization and traceability of factual annotations for the answer portion generated by the target large language model.
[0066] As an example, when the target large language model answers the question "How did a certain new energy listed company perform in its most recent fiscal year?", it generates the following answer: "In its most recent fiscal year, the listed new energy company reported operating revenue of approximately RMB 90 billion, representing a year-on-year increase of approximately 10%. Net profit was approximately RMB 10 billion, representing a year-on-year increase of approximately 7%. The gross profit margin was 26.5%, an increase of approximately 2 percentage points compared to the same period last year. The core product shipment volume was approximately 75 gigawatt-hours (GWh), maintaining its leading global market share. The company's factory in a certain overseas region has achieved full production capacity, and a new long-term supply agreement has been signed with an international automaker." After obtaining the answer text, the data annotation system uses the above answer content as data to be annotated and performs the following steps: Step 1: Extract sub-agents to break down the content of the data to be labeled into multiple atomic facts.
[0067] The data annotation system invokes an extraction sub-agent to perform semantic analysis and structural decomposition of the data to be annotated. This extraction sub-agent, based on natural language processing technology, can decompose the content of the data containing multiple key points into several independent, indivisible fact units. After decomposition, the extraction sub-agent can obtain the following atomized facts: Atomized Fact 1: A certain new energy listed company achieved operating revenue of approximately 90 billion yuan in its most recent fiscal year.
[0068] Atomized Fact 2: The operating revenue of a certain new energy listed company increased by approximately 10% year-on-year.
[0069] Atomized Fact 3: A certain new energy listed company achieved a net profit of approximately 10 billion yuan in its most recent fiscal year.
[0070] Atomized Fact 4: The net profit of a certain new energy listed company increased by approximately 7% year-on-year.
[0071] Atomized Fact 5: The gross profit margin of a certain new energy listed company is 26.5%.
[0072] Atomized Fact 6: The core product shipment volume of a certain new energy listed company is approximately 75GWh.
[0073] Atomized Fact 7: A certain new energy listed company continues to maintain the world's number one market share for its core products.
[0074] Atomized Fact 8: A certain new energy listed company's factory in a certain overseas region has achieved full production and has signed a new long-term supply agreement with a certain international car company.
[0075] Step 2: The retrieval sub-agent performs retrieval on multiple atomized facts and obtains the retrieval results corresponding to each atomized fact.
[0076] After the extraction sub-agent completes the atomic fact decomposition, the data annotation system calls the retrieval sub-agent to perform information retrieval for each of the aforementioned atomic facts. The retrieval sub-agent is configured to access a historical knowledge vector database (to retrieve historical information such as the company's previously released financial reports and announcements), a domain knowledge graph (to query entity relationship information about the company in the financial knowledge graph), and a network retrieval interface (to retrieve external information sources such as financial media, stock exchange announcements, and brokerage research reports in real time). For each atomic fact, the retrieval sub-agent performs the following operations: Regarding Atomized Fact 1 and Atomized Fact 2 (Operating Income): The financial report retrieved shows that operating income was RMB 89.8 billion, an increase of 9.8% year-on-year.
[0077] Regarding Atomized Facts 3 and 4 (Net Profit): The financial report retrieved shows a net profit of RMB 9.85 billion, representing a year-on-year increase of 7.2%.
[0078] Regarding atomized fact 5 (gross profit margin): The gross profit margin found in the financial report is 26.3%.
[0079] Regarding atomized fact 6 (shipments): Industry research reports show a shipment volume of 74.2 GWh.
[0080] Regarding atomized fact 7 (market share): A third-party ranking report confirmed that it has the number one market share globally.
[0081] Regarding Atomized Fact 8 (Overseas Factory and Cooperation Agreement): News reports confirmed that the factory is operating at full capacity, and a major contract announcement confirmed the signing of a long-term supply agreement with an international automaker.
[0082] After retrieval, the retrieval sub-agent generates corresponding retrieval results for each atomized fact. These results are presented in the form of traceable evidence in the original text, along with metadata such as information source, publication date, and retrieval timestamp.
[0083] Step 3: The verification sub-agent performs factual verification on multiple atomic facts and their corresponding search results to obtain the verification results.
[0084] After the retrieval sub-agent completes the retrieval, the data annotation system calls the verification sub-agent to compare and verify each atomic fact with the corresponding retrieval result. The verification sub-agent is configured to perform text semantic matching and logical consistency analysis, and output a verification conclusion for each atomic fact.
[0085] For example, regarding atomized fact 1, after verification, the sub-agent found that the statement "operating income of approximately 90 billion yuan" in atomized fact 1 differed from the corresponding search result of 89.8 billion yuan in the financial report by approximately 0.2%. Therefore, the relevant content corresponding to atomized fact 1 in the data to be labeled is marked as "accurate". Similarly, regarding atomized fact 2, the statement "year-on-year growth of approximately 10%" differed from the search result of 9.8% by 0.2 percentage points. Therefore, the relevant content corresponding to atomized fact 2 in the data to be labeled is marked as "accurate".
[0086] Comparing "approximately 10 billion yuan" in Atomized Fact 3 with the corresponding search result of 9.85 billion yuan, the difference is approximately 1.5%. Therefore, the relevant content corresponding to Atomized Fact 3 in the data to be labeled is marked as "basically accurate". Comparing "year-on-year growth of approximately 7%" in Atomized Fact 4 with the search result of 7.2%, the difference is 0.2 percentage points. Therefore, the relevant content corresponding to Atomized Fact 4 in the data to be labeled is marked as "accurate".
[0087] The gross profit margin of 26.5% in Atomized Fact 5 differs from the corresponding 26.3% in the search results by 0.2 percentage points. Therefore, the relevant content corresponding to Atomized Fact 5 will be marked as "accurate" in the data to be labeled.
[0088] The value of "approximately 75 GWh" in Atomized Fact 6 differs from the 74.2 GWh in the corresponding search results by approximately 1.1%. Therefore, the relevant content corresponding to Atomized Fact 6 will be labeled as "basically accurate" in the data to be labeled.
[0089] The statement "Number one in global market share" in Atomized Fact 7 is consistent with the rankings confirmed by third-party institutions. Therefore, the relevant content corresponding to Atomized Fact 7 will be marked as "accurate" in the data to be annotated.
[0090] The factory's full production in Atomized Fact 8 is consistent with news reports, and the cooperation agreement is consistent with announcements of major contracts. Therefore, the relevant content corresponding to Atomized Fact 8 will be marked as "accurate" in the data to be annotated.
[0091] Finally, the verification sub-agent integrates the verification results of all atomic facts and generates a factual annotation result for the data to be annotated. The factual annotation result indicates the accuracy of each atomic fact in the data to be annotated, and includes the corresponding evidence source and verification explanation. This completes the factual annotation of the data to be annotated.
[0092] In some embodiments, the data annotation system can rewrite the multiple atomic facts to obtain multiple corresponding search statements. Subsequently, the data annotation system searches the search statements based on a knowledge data source in the target domain to obtain search results corresponding to each atomic fact. The knowledge data source includes one or more of the following: a historical knowledge vector library, a domain knowledge graph, and an online search interface.
[0093] In this process, the retrieval sub-agent, when executing a retrieval task, first rewrites the atomic facts extracted by the extraction sub-agent into sentences, transforming them into the form of searchable statements. For example, it converts declarative atomic facts into interrogative sentences. The data annotation system can rewrite atomic facts into a single searchable statement; alternatively, it can rewrite atomic facts into multiple searchable statements suitable for different retrieval channels, thereby improving retrieval coverage and hit rate.
[0094] As an example, let's take the atomized fact "A certain new energy listed company's operating revenue increased by approximately 10% year-on-year" as an illustration. The retrieval agent rewrites this atomized fact into multiple search queries, such as "What are the operating revenue and growth rate of a certain new energy company?", "What is the revenue growth rate in the latest financial report of a certain new energy listed company?", and "How does the annual report of a certain new energy company show its operating revenue growth rate?". After rewriting the queries, the retrieval agent accesses multiple knowledge data sources in the target domain sequentially or in parallel, according to a preset retrieval strategy. These knowledge data sources may include: a historical knowledge vector library storing historical documents and guide vectors for semantic similarity matching retrieval; a structured domain knowledge graph for querying the relationships and attribute information between entities; and a real-time online retrieval interface for obtaining the latest research results and publicly available information from authoritative websites. By comprehensively calling the above different types of data sources, the data annotation system allows the retrieval agent to obtain relevant search data for each search query corresponding to the atomized fact and generates the final search results based on the relevant search data.
[0095] The aforementioned method of rewriting atomized facts allows a single atomized fact to be transformed into one or more different retrieval statements. This overcomes the potential semantic differences between the expression of atomized facts and the storage format of knowledge data sources, improving the comprehensiveness and success rate of retrieval. Secondly, by comprehensively utilizing multi-source knowledge data such as historical knowledge vector libraries, domain knowledge graphs, and online retrieval interfaces, multi-angle and multi-channel retrieval of the same atomized fact is achieved. This enhances the comprehensiveness and reliability of the retrieval results, providing sufficient and diverse evidence for subsequent fact-checking and improving the accuracy and credibility of data annotation.
[0096] In some embodiments, the generation method of the annotation task planning content can be determined by the user through a selection operation among multiple preset annotation task planning contents; or it can be that the data annotation system obtains the annotation task planning content output by the planning agent based on the content features and length features of the data to be annotated, wherein the content features include one or more of the following: the number of facts contained, the type of facts, and the text complexity.
[0097] Figure 6 A flowchart illustrating a data annotation method according to another embodiment of this specification is shown, such as... Figure 6 As shown, if the length feature of the data to be labeled is greater than a preset threshold, the data labeling system obtains the labeling task planning content output by the planning agent based on the content features of the data to be labeled. The labeling task planning content includes: the extraction sub-agent, the retrieval sub-agent, the verification sub-agent, and the number of times each sub-agent is called.
[0098] Continue as Figure 6 As shown, the data annotation system can decompose the data to be annotated into atomic facts 1, 2, ..., n by extracting sub-agents. For each atomic fact, a retrieval sub-agent is used to retrieve the corresponding retrieval result. For each retrieval result corresponding to an atomic fact, a verification sub-agent is used to verify the result. Based on the verification result corresponding to each atomic fact, the data annotation system annotates the data to be annotated to obtain the factual annotation result for the data to be annotated.
[0099] Figure 7 A flowchart illustrating a data annotation method according to another embodiment of this specification is shown, such as... Figure 7As shown, if the length feature of the data to be labeled is less than the preset threshold, the data labeling system obtains the labeling task planning content output by the planning agent based on the content features of the data to be labeled. The labeling task planning content includes: the retrieval sub-agent to be called, the verification sub-agent, and the number of times each sub-agent is called.
[0100] The aforementioned refined analysis based on specific characteristics of the data to be labeled, such as the number of facts, fact types, and text complexity, enables the planning agent to accurately predict the workload and difficulty of the labeling task, and pre-arrange appropriate combinations of sub-agents and execution strategies, thereby improving the targeting and effectiveness of the labeling process. Furthermore, the content-aware intelligent planning mechanism ensures that data of varying characteristics and complexity receives appropriate labeling solutions, guaranteeing the labeling quality of complex content while optimizing the processing speed of simple content, thus improving the overall intelligence and adaptability of the data labeling system.
[0101] As an example, when generating the annotation task plan, the planning agent performs multi-dimensional feature analysis on the data to be annotated. For instance, if the data annotation system determines that the number of fact types in the data to be annotated is less than a first threshold and the total number of facts is less than a second threshold, a single retrieval sub-agent can be invoked to directly perform a retrieval based on the entire data to be annotated. Subsequently, the verification sub-agent performs verification based on the retrieval results to obtain the corresponding verification results.
[0102] When the number of fact types in the data to be labeled is less than the first threshold, but the number of facts is greater than the second threshold, multiple retrieval sub-agents can be invoked to perform multi-dimensional retrieval for each fact. Subsequently, multiple verification sub-agents are invoked to verify each fact based on the retrieval results to obtain the corresponding verification results.
[0103] When the number of fact types in the data to be labeled is greater than or equal to a first threshold, and the number of facts is less than or equal to a second threshold, the data to be labeled can be split into individual atomic facts. Multiple retrieval sub-agents are then invoked to retrieve the results for each atomic fact. Subsequently, multiple verification sub-agents are invoked to verify the results based on the retrieval results for each atomic fact, thus obtaining the corresponding verification results. The first and second thresholds can be preset constant values.
[0104] The above-described method of generating annotation task planning content by comprehensively considering the content and length characteristics of the data to be annotated achieves accurate customization and dynamic adaptation of the annotation task planning content, avoiding the problem of monotonous annotation methods caused by using uniform and fixed annotation task planning content. For complex long texts, the data annotation system can automatically configure more sufficient validation resources; for simple short texts, the data annotation system avoids excessive calls that would waste resources, thus achieving a balance between annotation efficiency and resource consumption.
[0105] In some embodiments, the data annotation system stores the execution results of the corresponding annotation sub-tasks performed by the at least two sub-agents in a memory module, wherein when the sub-agent performs the annotation sub-task, it reads the execution results of the preceding sub-agent from the memory module to perceive the context.
[0106] The data annotation system is equipped with a memory module to store the intermediate results and final output results generated by each sub-agent during task execution. As an example, the memory module can adopt a key-value pair storage structure, where each execution result is associated with a unique identifier (such as the data to be annotated, agent identifier, timestamp, etc.) to facilitate subsequent retrieval and reading.
[0107] Furthermore, each sub-agent is equipped with tools for writing to and reading from the memory module, thereby enabling information sharing and context communication. The writing tool is used to write its own execution results to the memory module. The reading tool is used to retrieve the execution results of the preceding agent from the memory module.
[0108] As an example, after the extraction sub-agent completes the breakdown of the answer to be labeled, its generated list of atomic facts is automatically stored in the memory module. Subsequently, when the retrieval sub-agent is invoked to execute the retrieval task, it first reads the list of atomic facts stored by the extraction sub-agent from the memory module, and rewrites the retrieval statement and performs multi-source retrieval based on these facts. The generated retrieval results are then stored back in the memory module. Subsequently, when the verification sub-agent is invoked, it similarly reads the atomic facts and corresponding retrieval results generated by the previous two sub-agents (the extraction sub-agent and the retrieval sub-agent) from the memory module, compares and analyzes the two, and stores the generated verification results in the memory module. In this way, each sub-agent can fully obtain the processing results and context information of all previous sub-agents when executing its own labeling sub-task, thereby ensuring the information continuity of the entire labeling process.
[0109] This specification, in another aspect, provides a computer-readable non-transitory storage medium storing at least one set of instructions for performing data annotation executable instructions. When the at least one set of instructions is executed by a processor, it instructs the processor to implement the steps of the data annotation method P300 described herein. In some possible embodiments, various aspects of this specification can also be implemented as a program product comprising program code. When the program product is run on the data annotation system 130, the program code causes the data annotation system 130 to perform the steps of the data annotation method P300 described herein. The program product for implementing the above method may employ a portable compact disc read-only memory (CD-ROM) containing program code and may run on the data annotation system 130. However, the program product of this specification is not limited thereto. In this specification, the readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system. The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium other than a readable storage medium that can send, propagate, or transmit programs for use by or in connection with an instruction execution system, apparatus, or device. Program code contained on a readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination of the foregoing. Program code for performing the operations described herein may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar programming languages.
[0110] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0111] In summary, after reading this detailed disclosure, those skilled in the art will understand that the foregoing detailed disclosure may be presented by way of example only and may not be restrictive. Although not explicitly stated herein, those skilled in the art will understand that this specification requires various reasonable changes, improvements, and modifications to the embodiments. These changes, improvements, and modifications are intended to be made by this specification and are within the spirit and scope of the exemplary embodiments described herein.
[0112] Furthermore, certain terms in this specification have been used to describe embodiments of this specification. For example, "an embodiment," "an embodiment," and / or "some embodiments" mean that a particular feature, structure, or characteristic described in connection with that embodiment may be included in at least one embodiment of this specification. Therefore, it is to be emphasized and understood that two or more references to "an embodiment" or "an embodiment" or "alternative embodiment" in various parts of this specification do not necessarily refer to the same embodiment. Moreover, specific features, structures, or characteristics may be suitably combined in one or more embodiments of this specification.
[0113] It should be understood that in the foregoing description of the embodiments in this specification, various features are combined in a single embodiment, drawing, or description for the purpose of simplifying the description and to aid in understanding a feature. However, this does not mean that the combination of these features is necessary, and those skilled in the art, upon reading this specification, may readily identify some of the devices as separate embodiments. That is, the embodiments in this specification can also be understood as an integration of multiple secondary embodiments. And the content of each secondary embodiment is valid even if it contains fewer than all the features of a single foregoing disclosed embodiment.
[0114] Every patent, patent application, publication of a patent application, and other material, such as articles, books, specifications, publications, documents, and literature (excluding any related historical examination documents), cited in this disclosure is incorporated herein for all purposes, including, for example, in the specification and claims of this disclosure. However, in the event of any inconsistency or conflict between the descriptions, definitions, and / or terms used in the foregoing and those used in this disclosure, the descriptions, definitions, and / or terms used in this disclosure shall prevail.
[0115] Finally, it should be understood that the embodiments disclosed herein are illustrative of the principles of the embodiments described in this specification. Other modified embodiments are also within the scope of this specification. Therefore, the embodiments disclosed in this specification are merely examples and not limitations. Those skilled in the art can implement the applications described in this specification using alternative configurations based on the embodiments in this specification. Therefore, the embodiments in this specification are not limited to the embodiments precisely described in the applications.
Claims
1. A data annotation method, wherein, The method includes: The annotation task planning content output by the planning agent based on the data to be annotated is obtained, wherein the data to be annotated is the answer part generated by the target large language model in the process of answering questions in the target domain; the annotation task planning content includes: at least two sub-agents to be called and the order and number of times the at least two sub-agents are called respectively, wherein each sub-agent is used to execute the corresponding annotation sub-task; Based on the content of the annotation task plan, the at least two sub-agents are invoked to execute the corresponding annotation sub-tasks to obtain the factual annotation results of the data to be annotated; Specifically, after the planning agent outputs the annotation task planning content, if it receives first feedback information from the user regarding the annotation task planning content, it triggers the planning agent to regenerate the annotation task planning content based on the first feedback information and the data to be annotated.
2. The method according to claim 1, wherein, The method further includes: after any sub-agent completes the corresponding annotation sub-task, if a second feedback information is received from the user based on the execution result output by the current sub-agent, the current sub-agent is triggered to re-execute the annotation sub-task based on the second feedback information.
3. The method according to claim 1, wherein, The at least two sub-agents include: an extraction sub-agent, a retrieval sub-agent, and a verification sub-agent; The invocation of the at least two sub-agents to execute the corresponding annotation sub-task includes: The extraction sub-agent is invoked to decompose the content of the data to be labeled into multiple atomic facts; The retrieval sub-agent is invoked to retrieve the multiple atomized facts, and the retrieval results corresponding to each atomized fact are obtained; The verification sub-agent is invoked to perform factual verification on the multiple atomic facts and their corresponding search results, and the verification results are obtained.
4. The method according to claim 3, wherein, The process of invoking the retrieval sub-agent to retrieve the multiple atomic facts and obtain the retrieval results corresponding to each atomic fact includes: The multiple atomic facts are rewritten to obtain multiple corresponding search statements. The search query is performed based on the knowledge data source of the target domain to obtain the search results corresponding to each atomized fact; The knowledge data sources include one or more of the following: historical knowledge vector database, domain knowledge graph, and online retrieval interface.
5. The method according to any one of claims 1-4, wherein, After invoking the at least two sub-agents to execute the corresponding annotation sub-tasks based on the annotation task planning content, the process further includes: The execution results of the corresponding annotation subtasks performed by the at least two sub-agents are stored in the memory module, wherein when the sub-agent performs the annotation subtask, it reads the execution results of the preceding sub-agent from the memory module to perceive the context.
6. The method according to claim 1, wherein, The acquisition of the labeling task planning content output by the planning agent based on the data to be labeled includes: Obtain the annotation task planning content output by the planning agent based on the content features and length features of the data to be annotated, wherein the content features include one or more of the following: the number of facts contained, the type of facts, and the text complexity.
7. The method according to claim 6, wherein, The acquisition of the annotation task planning content output by the planning agent based on the content features and length features of the data to be annotated includes: If the length feature of the data to be labeled is greater than a preset threshold, then the labeling task planning content output by the planning agent based on the content features of the data to be labeled is obtained. The labeling task planning content includes: the extraction sub-agent, the retrieval sub-agent, the verification sub-agent, and the number of times each sub-agent is called. If the length feature of the data to be labeled is less than the preset threshold, then the labeling task planning content output by the planning agent based on the content features of the data to be labeled is obtained. The labeling task planning content includes: the retrieval sub-agent to be called, the verification sub-agent, and the number of times each sub-agent is called.
8. The method according to claim 1, wherein, The target domain is the financial field, and the data to be labeled is the long financial text answer generated by the financial big language model.
9. A data annotation system, comprising: At least one storage medium storing at least one instruction set for data annotation; as well as At least one processor is communicatively connected to the at least one storage medium, wherein the at least one processor reads the at least one instruction set during operation and executes the method according to any one of claims 1-8 as instructed by the at least one instruction set.
10. A computer-readable non-volatile storage medium, wherein, The computer-readable non-volatile storage medium stores at least one instruction set, which, when executed by at least one processor, implements the method as described in any one of claims 1-8.
