Hi Shital,
That evaluation plan sounds right, and keeping the accuracy measurement separate from the routing tests you already ran is the correct call
A few things to save you time before you start
support_ticket is live on the playground now, so you can test it from n8n Cloud with the same HTTP Request node you already have, just change the task:
POST https://playground.jeffyclassify.com/v1/predict
{ "text": "{{ $json.message }}", "task": "support_ticket" }
11 classes: account, cancel, contact, delivery, feedback, invoice, order, payment, refund, shipping, subscription
I found a real defect in that pack while getting ready for your test, and fixed it today
Anything phrased as “change/update my ” used to route to shipping with high confidence, because the source dataset’s shipping class owns that phrasing. “change the address on my account” came back shipping at 0.972. Login and password intents were fine, field updates were not. The bad part is that it was confidently wrong, so a 0.8 auto-route threshold would have sailed straight past it
The fix was 24 hand-written account examples covering contact-field updates. It is live now:
| Input |
Was |
Now |
| change the address on my account |
shipping 0.972 |
account 0.844 |
| how do I change my email address |
shipping 0.796 |
account 0.968 |
| I have to change the delivery address |
shipping 0.986 |
shipping 0.969 |
Tracked and closed here: support_ticket: account-change phrasing misroutes to shipping with high confidence · Issue #11 · nicobrenner/jeffy · GitHub
One case stays ambiguous: “I need to change my home address” still leans shipping, at 0.55 instead of 0.97. I do not think that one is fixable, and I am not going to pretend it is. A home address often is the shipping address, so there is no signal in that sentence to resolve it. It needs additional context the original message example doesn’t really have
What it means for you: you might want to split your accuracy table by intent type rather than reporting one aggregate. That issue was invisible in every aggregate number I had, including a 0.9992 held-out accuracy. It only showed up when I looked at one family of phrasings on its own
On the accuracy number the pack reports. /v1/capabilities now shows test_accuracy: 0.9964 on 550 held-out examples, up from a 1.0 measured against a much smaller internal split. It went down because the measurement got harder, not because the model got worse. Either way, do not expect to reproduce it. It is the source dataset’s own test split, which is far more separable than real tickets. Your labelled set is the number that actually matters, which is exactly why I am glad you are measuring it
Also note confidence on this task runs lower than on banking77, because several of the 11 classes overlap (refund vs payment vs invoice, shipping vs delivery). If you reuse the 0.8 and 0.5 thresholds from the routing test, expect a high review rate. I would measure the confidence distribution on your labelled set first, then pick thresholds from it
/v1/train and /v1/feedback are not on the playground, deliberately. They mutate server state and write files to disk, so exposing them unauthenticated on a public instance is not safe. Both return 404 there. They are disabled unless you explicitly opt in, so to test them you will need your own instance:
pip install jeffy-classify==0.1.0a19
JEFFY_ENABLE_TRAINING=1 jeffy-serve
Then to reach it from n8n Cloud, put it behind a tunnel:
cloudflared tunnel --url http://localhost:8400
That gives you a public https URL to drop into the HTTP Request node. Your ticket data stays on your machine, which is probably what you want for a real labelled set anyway
One thing to be careful about: a quick tunnel URL is public and unauthenticated, and with JEFFY_ENABLE_TRAINING=1 anyone who has the URL can train on your instance. Treat it as temporary, shut it down when the test run is done, and do not leave that combination running unattended
Training payload:
POST /v1/train
{
"task_id": "my_tickets",
"examples": {
"billing": ["I was charged twice", "my invoice is wrong", "..."],
"shipping": ["where is my package", "delivery is late", "..."],
"account": ["cannot log in", "reset my password", "..."]
},
"tune_C": true
}
It returns {"status": "trained", "task_id": "my_tickets", "n_classes": 3, "labels": [...]} and the classifier is immediately available to /v1/predict under that task_id, no restart. tune_C grid-searches the regularization strength. task_id has to match ^[A-Za-z0-9_-]{1,64}$
Then corrections go to:
POST /v1/feedback
{ "task_id": "my_tickets", "text": "...", "correct_label": "shipping" }
That returns {"status": "stored", "feedback_count": N, "retrain_threshold": 50}. Corrections accumulate and trigger an automatic retrain at 50 by default, configurable with JEFFY_RETRAIN_THRESHOLD
Training on your own taxonomy will almost certainly beat the built-in pack on your data, and it sidesteps the whole class of problem above, since you control the classes rather than inheriting someone else’s idea of what “shipping” means
On the Cloud side, two importable workflows now, not one. They are the exact same workflow, differing only in how they call Jeffy, so you can prototype with HTTP Request and switch to the node later without touching anything downstream:
Both route on confidence into four branches rather than on label alone: auto-route, suggest-and-confirm, manual review, and a separate out-of-scope branch. The out-of-scope branch also surfaces best_guess, the label the classifier would have picked if you had not set a threshold, which is useful when you are deciding where to put the threshold in the first place
One gotcha if you modify them: keep the request threshold below your suggest-and-confirm cutoff. Set them equal and the server marks everything under the cutoff out-of-scope, and your manual-review branch silently never fires. I had exactly that bug in the first version of the template
And on Cloud availability: the node now publishes from CI with an npm provenance attestation, passes n8n’s @n8n/scan-community-package checks, and is submitted for verification. I can’t promise a timeline, but if it goes through you would be able to install it directly on Cloud instead of using HTTP Request nodes
Really looking forward to those numbers, especially the human-review rate. That is the metric we have the least real data on
Thank you Shital for collaborating on this!