Instructions to use mstrasser/jeff-adapter-triage with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use mstrasser/jeff-adapter-triage with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Download example.json from mstrasser/jeff-adapter-triage: direct link, hf CLI and curl.
- Browser
- Download file 1.76 kB
-
https://huggingface.co/mstrasser/jeff-adapter-triage/resolve/main/example.json
- Command line
-
hf download hf://mstrasser/jeff-adapter-triage/example.json
-
curl -L -o example.json https://huggingface.co/mstrasser/jeff-adapter-triage/resolve/main/example.json
1.76 kB
| { | |
| "model": "triage", | |
| "state": { | |
| "company": "A mid-sized online furniture retailer shipping across Europe.", | |
| "channel": "email", | |
| "message": "Subject: Crushed wardrobe\n\nHi, the wardrobe I ordered (order 55120) arrived today and the box was crushed. Two doors are split. I want a replacement or my money back. This is the second time.\n\nAnna" | |
| }, | |
| "questions": { | |
| "route": { | |
| "type": "choice", | |
| "instructions": "Which team should handle this message? If it covers several issues, choose the team for the most important one.", | |
| "criteria": { | |
| "other": "Not for any of these teams", | |
| "k1": "Deliveries: late, lost or damaged deliveries, and delivery bookings", | |
| "k2": "Refunds and payments: refunds, charges and invoices", | |
| "k3": "Assembly service: booking and complaints about assembly", | |
| "k4": "Account access: logins, passwords and account details" | |
| } | |
| }, | |
| "urgency": { | |
| "type": "score", | |
| "instructions": "How urgently does this need a response?", | |
| "criteria": [ | |
| "No action needed", | |
| "Can wait a few days", | |
| "Handle within a day", | |
| "Handle within hours", | |
| "Handle immediately" | |
| ] | |
| }, | |
| "sentiment": { | |
| "type": "score", | |
| "instructions": "How does the customer feel?", | |
| "criteria": [ | |
| "Very negative, angry or distressed", | |
| "Negative", | |
| "Neutral", | |
| "Positive", | |
| "Very positive" | |
| ] | |
| }, | |
| "needs_human": { | |
| "type": "noul", | |
| "instructions": "Does this need a person to act on it now, rather than an automatic reply? Answer yes for complaints that could escalate, legal or safety issues, or requests an automatic system cannot resolve." | |
| } | |
| } | |
| } | |