Building a Fine-Tuning Dataset from 23,000 Chat Messages: A Practical Case in AI Data Engineering

A developer filtered ~4,000 of his own chat messages with models and rules into 3,600 high-confidence samples to build a target agent identification fine-tuning dataset.
The article presents a developer's practice: over 23,000 messages across 390 threads were generated in his agent workspace between Oct 27 and 29, of which he sent about 4,000. Using these as the core, he applied hybrid filtering with Sonnet 5.5 plus logical rules, keeping about 3,600 high-confidence samples to train a model to identify a message's intended target agent or confirm none. It analyzes why personal messages were chosen and the value of hybrid filtering, noting that everyday collaboration conversations can become valuable fine-tuning data.
Introduction: How Chat Logs Become Training Data
In AI application development, obtaining high-quality fine-tuning datasets is often the bottleneck. A developer recently shared his practice: using real chat logs from a team collaboration tool, he built a dataset for fine-tuning a target identification task. The whole process started from 23,000 messages and ultimately yielded about 3,600 high-confidence samples. This case demonstrates how everyday communication data can be turned into usable training resources, offering a reference for teams working on AI application development.
According to the developer's video, between October 27 and 29, more than 23,000 messages were generated in his agent workspace, distributed across 390 conversation threads. He himself sent about 4,000 of these messages, which became the core source of the training data.

Data Filtering Process: From 4,000 to 3,600
Filtering Objectives and Rules
The core goal of building the dataset was to teach the model to determine a message's "intended target agent," or to determine whether the message has no target agent at all. To achieve this, the developer used the Sonnet 5.5 model combined with a set of logical rules to filter, keeping only message samples whose target could be determined with high confidence.
As explained in the video, the filtering process relied on both model capabilities and rule constraints: the model was responsible for understanding message semantics, while the rules ensured consistent handling of edge cases. This hybrid approach controlled the cost of manual review while guaranteeing data quality.

Fine-tuning refers to continuing to train a pretrained large model on labeled data for a specific task, adapting it to a particular scenario. Compared with prompt engineering, fine-tuning bakes task rules into the model weights, so inference requires no lengthy instructions and incurs lower latency and cost—but it demands a certain amount of high-quality samples. Sample quality matters more than quantity: a few hundred to a few thousand high-confidence, consistently labeled samples often outperform tens of thousands of noisy ones, because low-quality samples teach the model the wrong patterns. This is also why this article emphasizes that "high confidence is the primary filtering criterion."
High-confidence filtering means keeping only samples where the model's judgment is clear and the boundaries are well-defined, usually achieved through confidence scores or rule constraints. Common practices include: using a strong model to give judgments with reasoning and setting a threshold to filter out ambiguous samples; and using rules to exclude messages that are ambiguous, multi-target, or lacking sufficient context. The purpose is to improve labeling consistency—if the same type of message is labeled contradictorily across samples, the fine-tuned model's outputs will be unstable. The trade-off is a smaller data size, but in exchange for cleaner training signals, which suits scenarios where the sample volume is already small.
Final Data Size
After filtering, about 3,600 posts were kept out of the roughly 4,000 personal messages. These samples are characterized by having either an unambiguous target agent identity or a clear absence of one. The developer stressed that high confidence is the primary filtering criterion, because low-quality samples directly harm fine-tuning results.

Key Design Decisions and Takeaways
Why Use Personal Messages as the Core
The developer chose his own ~4,000 messages as the core of the training data rather than all 23,000 messages, a decision worth noting. Personal messages usually express intent more clearly, and the developer has a complete understanding of the context, making it easier to verify labeling quality. At the same time, this avoids the privacy and accuracy issues that could arise from inferring intent from others' messages.
Target agent identification is a fundamental task in multi-agent systems and conversation routing: given a user message, determine which agent should handle it, or confirm that no routing is needed. The task is essentially short-text intent classification, and the difficulty lies in messages often omitting context, containing multiple intents, or having ambiguous references. Building such datasets from real chat logs covers actual expression habits and is closer to the online distribution than manually constructed template sentences; however, care must be taken with class imbalance and labeling boundary definitions, otherwise the model may favor high-frequency agents.
The Value of a Hybrid Filtering Strategy
Combining a large model (Sonnet 5.5) with logical rules was a highlight of this practice. Pure model filtering may produce inconsistent judgments, while pure rule filtering struggles with semantically complex messages. Combining the two leverages the model's natural language understanding while ensuring the stability of filtering criteria through rules.

Implications for AI Application Developers
This case shows that fine-tuning data does not necessarily require dedicated annotation or procurement—real conversations generated in everyday collaboration, when properly filtered, can become valuable training resources. The key points are: clearly define the task (e.g., target agent identification), set high-confidence criteria, and adopt a filtering process that combines models and rules. For teams building multi-agent systems or conversation routing features, this approach can be directly borrowed.
Of course, this practice also implies data privacy considerations—using personal messages as the core reduces the risk of involving others' data. When using chat logs for training, developers need to ensure compliance with their team's data usage policies.
One-line Summary
A developer used about 4,000 of his own chat messages and filtered them with models plus rules to obtain 3,600 high-confidence samples, building a fine-tuning dataset for target agent identification.
Paragraph Summary
The article presents a developer's practice: in his agent workspace between October 27 and 29, over 23,000 messages were generated across 390 conversation threads, of which he sent about 4,000. Using these personal messages as the core, he performed hybrid filtering with the Sonnet 5.5 model combined with logical rules, ultimately retaining about 3,600 high-confidence samples to train a model to determine a message's intended target agent or confirm there is none. The article analyzes why personal messages were chosen (clear intent, easy verification, lower privacy risk) and the value of the hybrid filtering strategy (balancing semantic understanding with rule consistency), noting that everyday collaboration conversations, when properly filtered, can become valuable fine-tuning data resources.
Related articles

How GoPro Built a Better Action Camera—Right on Time
GoPro's rise is as much a story of timing as of product. This article examines how Nick Woodman defined the action camera category from surfing footage needs, and how the rise of the internet and social media turned first-person content into a cultural phenomenon.

Cadillac Vistiq: The Value Pick Among Luxury Electric SUVs
The Cadillac Vistiq is an excellent luxury electric SUV with relatively reasonable pricing and strong value—but the advantage may not last, so buyers should act in time.

Failover Must Be Used Often to Be Reliable: From Philosophy to Practice
Why does failover always fail at critical moments? Based on a Hacker News discussion, this article explains the high-availability principle that "frequent use makes it reliable," covering regular drills, traffic sharing, automated switching, and common misconceptions, with actionable operations recommendations.