Hermès, my automation tool, reads the messages I send it on Telegram. When I correct it, with a complaint, a standing instruction or a pointer to its mistake, a weekly agent turns the correction into a rule. To spot them, a regex catches the obvious phrasings and Claude Haiku reads whatever the regex lets through. I had compared Haiku with the regex, never with a trained model. I wanted to check whether a classic model trained on my own messages would do as well, faster and for free. The code and method are public on GitHub, without any of my messages.

Detectors and labels

I scored these detectors on the same 260 messages:

Claude Opus labeled all 260 messages without seeing what the other detectors said, then I settled 80 cases myself on Telegram: the disagreements, the labels Opus was unsure about, and 20 messages drawn at random. The two trained models go through 5-fold cross-validation, so they never see the message they are scoring, and every score comes with a 95% confidence interval.

The results

F1 score of each detector on 260 messages, with its 95% confidence interval. Claude Haiku 0.78, at 0.05 dollars per thousand messages and 1.5 seconds. Regex then Haiku, the current production setup, 0.77. TF-IDF with logistic regression 0.69, free, 0.6 milliseconds. Fine-tuned CamemBERT 0.65, free, 13 milliseconds. Regex alone 0.34.
F1 combines what a detector misses and its false alarms; 1 would be perfect.

With 92 corrections in the set, two close scores can’t be told apart by eye, so I also compared the detectors pairwise on the same messages. On this sample, Haiku is clearly ahead of the regex (0.45 F1) and of CamemBERT (0.13). Against TF-IDF, the 0.09 gap is real but its interval comes close to zero, so I wouldn’t bet on its size.

What these numbers can tell

Not much beyond my own case. 260 messages from one person, in French, on a single task: the intervals are wide, a gap of a few hundredths proves nothing, and nothing says the ranking would hold on other data. The trained models only saw about 200 examples each, which favors the LLM. These results describe what you get with few labels, not the ceiling of each approach.

For Hermès, they point in a direction:

When the choice would be different

TF-IDF ends up 0.09 behind Haiku and answers in a millisecond, for free, without sending anything off the machine. With a few hundred more labels, millions of messages a day, or data that must not leave the premises, the balance would probably tip its way. The same benchmark, at another volume or under another constraint, could reach a different conclusion, which is why it’s worth running rather than assuming.

What the measurement doesn’t see

Almost half of the corrections Haiku misses only exist through the conversation:

No detector that reads one message and the end of the previous reply can see them. Giving it more context looks more promising than switching models, but I haven’t measured that yet.

The other limit is me. Among the 20 random messages where Opus, the regex and Haiku all agreed, I overruled Opus four times, and some of my own rulings contradict each other. Above 0.8, this benchmark probably measures agreement between annotators as much as the quality of the detectors.

If you’re considering an LLM to sort, classify or detect something, we can compare on your data what it brings over simpler options. It doesn’t always win.