Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.
Python calibrationclassificationdecision-modelhuggingfacejevmodernbertmultilingualnlppythonpytorchroutingtyped-decisionszero-shot
{
"detection_states": [
{
"label": "english",
"state": "The customer was charged twice this month and wants a refund.",
"analyse": {
"script": "latin",
"script_profile": {
"latin": 1.0
},
"language": "en",
"is_english": true,
"language_undecided": false,
"diacritic_rate": 0.0,
"non_latin_fraction": 0.0,
"mixed_segment": null
}
},
{
"label": "spanish_accent_stripped",
"state": "El cliente fue cobrado dos veces y quiere que le devuelvan el dinero",
"analyse": {
"script": "latin",
"script_profile": {
"latin": 1.0
},
"language": "es",
"is_english": false,
"language_undecided": false,
"diacritic_rate": 0.0,
"non_latin_fraction": 0.0,
"mixed_segment": null
}
},
{
"label": "french",
"state": "Le client a été facturé deux fois et demande un remboursement.",
"analyse": {
"script": "latin",
"script_profile": {
"latin": 1.0
},
"language": "fr",
"is_english": false,
"language_undecided": false,
"diacritic_rate": 0.0484,
"non_latin_fraction": 0.0,
"mixed_segment": null
}
},
{
"label": "romanian",
"state": "Am fost taxat de două ori pentru factura din luna martie și vreau banii",
"analyse": {
"script": "latin",
"script_profile": {
"latin": 1.0
},
"language": "ro",
"is_english": false,
"language_undecided": false,
"diacritic_rate": 0.0282,
"non_latin_fraction": 0.0,
"mixed_segment": null
}
},
{
"label": "hindi",
"state": "ग्राहक से दो बार शुल्क लिया गया और वह धनवापसी चाहता है।",
"analyse": {
"script": "devanagari",
"script_profile": {
"devanagari": 1.0
},
"language": null,
"is_english": false,
"language_undecided": true,
"diacritic_rate": 0.0,
"non_latin_fraction": 1.0,
"mixed_segment": null
}
},
{
"label": "arabic",
"state": "تم خصم المبلغ مرتين من العميل ويريد استرداد الأموال",
"analyse": {
"script": "arabic",
"script_profile": {
"arabic": 1.0
},
"language": null,
"is_english": false,
"language_undecided": true,
"diacritic_rate": 0.0,
"non_latin_fraction": 1.0,
"mixed_segment": null
}
},
{
"label": "japanese",
"state": "お客様は二重に請求されたため返金を希望しています。",
"analyse": {
"script": "kana",
"script_profile": {
"kana": 0.5833333333333334,
"han": 0.4166666666666667
},
"language": null,
"is_english": false,
"language_undecided": true,
"diacritic_rate": 0.0,
"non_latin_fraction": 1.0,
"mixed_segment": null
}
},
{
"label": "dict_state",
"state": {
"subject": "Double charge",
"body": "मुझसे दो बार शुल्क लिया गया"
},
"analyse": {
"script": "devanagari",
"script_profile": {
"latin": 0.48,
"devanagari": 0.52
},
"language": null,
"is_english": false,
"language_undecided": true,
"diacritic_rate": 0.0,
"non_latin_fraction": 0.52,
"mixed_segment": null
}
}
],
"routing_decisions": [
{
"label": "auto_english",
"router_kwargs": {},
"route_kwargs": {
"state": "Please refund the duplicate charge on invoice 4411 today."
},
"decision": {
"model": "english",
"reason": "English Latin text",
"detection": {
"script": "latin",
"script_profile": {
"latin": 1.0
},
"language": "en",
"is_english": true,
"language_undecided": false,
"diacritic_rate": 0.0,
"non_latin_fraction": 0.0,
"mixed_segment": null
},
"workflow": null
}
},
{
"label": "auto_hindi",
"router_kwargs": {},
"route_kwargs": {
"state": "मुझसे दो बार शुल्क लिया गया, कृपया रिफंड करें।"
},
"decision": {
"model": "multilingual",
"reason": "non-Latin script (devanagari, 100% of letters); the English checkpoint cannot read it",
"detection": {
"script": "devanagari",
"script_profile": {
"devanagari": 1.0
},
"language": null,
"is_english": false,
"language_undecided": true,
"diacritic_rate": 0.0,
"non_latin_fraction": 1.0,
"mixed_segment": null
},
"workflow": null
}
},
{
"label": "auto_unknown_latin_romanian",
"router_kwargs": {},
"route_kwargs": {
"state": "Gătește-mi o rețetă de sarmale de post pentru mâine."
},
"decision": {
"model": "multilingual",
"reason": "Latin script but language looks like 'ro', not English",
"detection": {
"script": "latin",
"script_profile": {
"latin": 1.0
},
"language": "ro",
"is_english": false,
"language_undecided": false,
"diacritic_rate": 0.0962,
"non_latin_fraction": 0.0,
"mixed_segment": null
},
"workflow": null
}
},
{
"label": "explicit_model_multilingual",
"router_kwargs": {},
"route_kwargs": {
"state": "anything at all",
"model": "multilingual"
},
"decision": {
"model": "multilingual",
"reason": "explicit model='multilingual'",
"detection": null,
"workflow": null
}
},
{
"label": "explicit_lang_de",
"router_kwargs": {},
"route_kwargs": {
"state": "hello there",
"lang": "de"
},
"decision": {
"model": "multilingual",
"reason": "explicit lang='de'",
"detection": null,
"workflow": null
}
},
{
"label": "workflow_opt_in_customer_service",
"router_kwargs": {
"auto_task_detection": true
},
"route_kwargs": {
"state": {
"body": "I was charged twice"
},
"questions": {
"action": {
"type": "noul",
"instructions": "x"
},
"category": {
"type": "noul",
"instructions": "x"
},
"churn_risk": {
"type": "noul",
"instructions": "x"
},
"needs_human": {
"type": "noul",
"instructions": "x"
},
"urgency": {
"type": "noul",
"instructions": "x"
}
}
},
"decision": {
"model": "typed-decisions",
"reason": "question ids match the 'customer_service' typed-decisions workflow",
"detection": null,
"workflow": "customer_service"
}
},
{
"label": "workflow_opt_in_off_by_default",
"router_kwargs": {},
"route_kwargs": {
"state": {
"body": "I was charged twice"
},
"questions": {
"action": {
"type": "noul",
"instructions": "x"
},
"category": {
"type": "noul",
"instructions": "x"
},
"churn_risk": {
"type": "noul",
"instructions": "x"
},
"needs_human": {
"type": "noul",
"instructions": "x"
},
"urgency": {
"type": "noul",
"instructions": "x"
}
}
},
"decision": {
"model": "english",
"reason": "English Latin text",
"detection": {
"script": "latin",
"script_profile": {
"latin": 1.0
},
"language": "en",
"is_english": true,
"language_undecided": false,
"diacritic_rate": 0.0,
"non_latin_fraction": 0.0,
"mixed_segment": null
},
"workflow": "customer_service"
}
}
],
"support_email": {
"questions": {
"department": {
"type": "choice",
"instructions": "Which department should handle this request?",
"criteria": {
"billing": "invoices, payments, refunds",
"technical": "bugs, outages, system errors",
"sales": "pricing, new contracts",
"other": "everything else"
}
},
"urgency": {
"type": "score",
"instructions": "How urgent is this request?",
"criteria": [
"not urgent",
"soon",
"critical deadline or blocking issue"
]
},
"churn_risk": {
"type": "noul",
"instructions": "Does the user threaten to cancel or leave?"
},
"refund_requested": {
"type": "noul",
"instructions": "Does the user explicitly request a refund?"
}
},
"english_state": {
"from": "[email protected]",
"subject": "Duplicate charge on invoice #4411",
"body": "Hi, we were billed twice for March. Please refund the duplicate today or we will cancel our plan."
},
"hindi_state": {
"from": "[email protected]",
"subject": "चालान में दोहरा शुल्क",
"body": "मार्च का बिल दो बार लिया गया, कृपया रिफंड करें।"
},
"english_routing": {
"model": "english",
"reason": "English Latin text",
"detection": {
"script": "latin",
"script_profile": {
"latin": 1.0
},
"language": "en",
"is_english": true,
"language_undecided": false,
"diacritic_rate": 0.0,
"non_latin_fraction": 0.0,
"mixed_segment": null
},
"workflow": null
},
"hindi_routing": {
"model": "multilingual",
"reason": "non-Latin script (devanagari, 74% of letters); the English checkpoint cannot read it",
"detection": {
"script": "devanagari",
"script_profile": {
"latin": 0.2619047619047619,
"devanagari": 0.7380952380952381
},
"language": null,
"is_english": false,
"language_undecided": true,
"diacritic_rate": 0.0,
"non_latin_fraction": 0.7381,
"mixed_segment": null
},
"workflow": null
}
},
"raw_email": {
"subject": "Re: Refund for invoice 4411",
"sender": "[email protected]",
"body": "Hi team,\n\nI was charged twice for the Pro plan this month and the second charge still has not been refunded. This is the third time I have written about it -- please resolve this today or I will need to cancel the account.\n\nBest regards,\nPriya Sharma\nSent from my iPhone\n\nThis email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender.\n\nOn Tue, Sep 22, 2026 at 9:14 AM, Support <[email protected]> wrote:\n> Hi Priya, thanks for reaching out, we are looking into it.\n> - Support Team\n",
"cleaned_body": "Hi team,\n\nI was charged twice for the Pro plan this month and the second charge still has not been refunded. This is the third time I have written about it -- please resolve this today or I will need to cancel the account.",
"state": {
"subject": "Re: Refund for invoice 4411",
"body": "Hi team,\n\nI was charged twice for the Pro plan this month and the second charge still has not been refunded. This is the third time I have written about it -- please resolve this today or I will need to cancel the account.",
"from": "[email protected]"
},
"routing": {
"model": "english",
"reason": "English Latin text",
"detection": {
"script": "latin",
"script_profile": {
"latin": 1.0
},
"language": "en",
"is_english": true,
"language_undecided": false,
"diacritic_rate": 0.0,
"non_latin_fraction": 0.0,
"mixed_segment": null
},
"workflow": null
}
},
"banking_shortlist": {
"state": "I tried to withdraw cash from the ATM but it kept the card and gave me no money.",
"instructions": "What is the customer's banking intent?",
"criteria": {
"activate_my_card": "turn on a newly received card",
"age_limit": "minimum or maximum age to use the service",
"apple_pay_or_google_pay": "adding the card to a mobile wallet",
"atm_support": "which ATMs the card works at",
"automatic_top_up": "automatically topping up the balance",
"balance_not_updated_after_bank_transfer": "a bank transfer is missing from the balance",
"balance_not_updated_after_cheque_or_cash_deposit": "a deposit is missing from the balance",
"beneficiary_not_allowed": "cannot add a payment recipient",
"cancel_transfer": "wants to cancel a transfer already sent",
"card_about_to_expire": "the card is close to its expiry date",
"card_acceptance": "where the card is accepted",
"card_arrival": "asking when a new card will arrive",
"card_delivery_estimate": "asking how long delivery will take",
"card_linking": "linking a card to the account",
"card_not_working": "the card is declined or not working",
"card_payment_fee_charged": "an unexpected fee was charged on a card payment",
"card_payment_not_recognised": "a card payment the customer does not recognise",
"card_payment_wrong_exchange_rate": "the exchange rate used was wrong",
"card_swallowed": "the ATM kept the card",
"cash_withdrawal_charge": "an unexpected charge for a cash withdrawal",
"cash_withdrawal_not_recognised": "a cash withdrawal the customer does not recognise",
"change_pin": "wants to change the PIN",
"compromised_card": "the card may have been compromised",
"contactless_not_working": "contactless payment is not working",
"country_support": "which countries the service supports",
"declined_card_payment": "a card payment was declined",
"declined_cash_withdrawal": "a cash withdrawal was declined",
"declined_transfer": "a transfer was declined",
"direct_debit_payment_not_recognised": "a direct debit the customer does not recognise",
"disposable_card_limits": "limits on a disposable virtual card",
"edit_personal_details": "wants to edit name, address or other personal details",
"exchange_charge": "a fee charged for currency exchange",
"exchange_rate": "asking what the current exchange rate is",
"exchange_via_app": "exchanging currency inside the app",
"extra_charge_on_statement": "an unexplained extra charge on the statement",
"failed_transfer": "a transfer failed",
"fiat_currency_support": "which regular currencies are supported",
"get_disposable_virtual_card": "wants a disposable virtual card",
"get_physical_card": "wants a physical card",
"getting_spare_card": "wants a spare or backup card"
},
"k": 20,
"n": 40,
"passthrough": false,
"labels": [
"card_swallowed",
"compromised_card",
"cash_withdrawal_not_recognised",
"card_payment_not_recognised",
"automatic_top_up",
"card_linking",
"atm_support",
"direct_debit_payment_not_recognised",
"card_payment_wrong_exchange_rate",
"balance_not_updated_after_bank_transfer",
"card_not_working",
"declined_card_payment",
"card_payment_fee_charged",
"card_acceptance",
"exchange_rate",
"card_delivery_estimate",
"activate_my_card",
"balance_not_updated_after_cheque_or_cash_deposit",
"card_about_to_expire",
"country_support"
],
"scores": [
0.5368900200020207,
0.5229341330248302,
0.4926179352570128,
0.4672093110356841,
0.4630985024104475,
0.4370994625491302,
0.37826231739982075,
0.36425922895521706,
0.347170429282197,
0.3320328885206982,
0.3300546962105677,
0.32050294323210465,
0.3154110908433172,
0.29833907794225273,
0.29153747948292086,
0.2862182802596687,
0.2750998671998696,
0.2737391010624727,
0.2667574502450347,
0.2631287408127802
]
}
}