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
{
"name": "budget_head_squeezed",
"state": "Subject: Double charged on invoice 88213\n\nHi, I was billed twice this month for the Pro plan and the second charge has not been refunded. This is the third time I have written in. If it is not fixed today I am cancelling the account.",
"serialized_state": "Subject: Double charged on invoice 88213\n\nHi, I was billed twice this month for the Pro plan and the second charge has not been refunded. This is the third time I have written in. If it is not fixed today I am cancelling the account.",
"questions": {
"department": {
"type": "choice",
"instructions": "Which department should handle this?",
"criteria": {
"billing": "invoices, payments, double charges, refunds",
"technical": "bugs, outages, integration errors",
"account": "logins, seats, plan changes"
}
},
"urgency": {
"type": "score",
"instructions": "How urgent is this request?",
"criteria": [
"not urgent",
"this week",
"today",
"drop everything"
]
},
"churn_risk": {
"type": "noul",
"instructions": "The customer threatens to cancel the account."
},
"needs_human": {
"type": "noul",
"instructions": "This requires a human agent rather than an automated reply.",
"criteria": {
"false": "a template reply resolves it",
"true": "a person must intervene"
}
}
},
"per_question": [
{
"id": "department",
"type": "choice",
"qtype": 0,
"instructions": "Which department should handle this?",
"head_text": "choice question: Which department should handle this?",
"options": [
"billing: invoices, payments, double charges, refunds",
"technical: bugs, outages, integration errors",
"account: logins, seats, plan changes"
],
"input_ids": [
50281,
22122,
1953,
27,
6758,
7811,
943,
6016,
436,
32,
50282,
50284,
33484,
27,
29838,
50284,
7681,
27,
19775,
50284,
2395,
27,
2412,
50282,
18961,
27,
18603,
6636,
327,
45156,
854,
3507,
1012,
187,
187,
12764,
13,
309,
369,
47045,
7019,
436,
1770,
323,
253,
1294,
2098,
285,
253,
1273,
4179,
556,
417,
644,
23005,
264,
15,
831,
310,
253,
2626,
673,
309,
452,
3542,
275,
15,
1310,
352,
310,
417,
4229,
3063,
309,
717,
476,
68,
3485,
253,
2395,
15,
50282
],
"markers": [
11,
15,
19
]
},
{
"id": "urgency",
"type": "score",
"qtype": 1,
"instructions": "How urgent is this request?",
"head_text": "score question: How urgent is this request?",
"options": [
"level 0: not urgent",
"level 1: this week",
"level 2: today",
"level 3: drop everything"
],
"input_ids": [
50281,
18891,
1953,
27,
1359,
21007,
310,
436,
2748,
32,
50282,
50284,
1268,
470,
27,
50284,
1268,
337,
27,
50284,
1268,
374,
27,
50284,
1268,
495,
27,
50282,
18961,
27,
18603,
6636,
327,
45156,
854,
3507,
1012,
187,
187,
12764,
13,
309,
369,
47045,
7019,
436,
1770,
323,
253,
1294,
2098,
285,
253,
1273,
4179,
556,
417,
644,
23005,
264,
15,
831,
310,
253,
2626,
673,
309,
452,
3542,
275,
15,
1310,
352,
310,
417,
4229,
3063,
309,
717,
476,
68,
3485,
253,
2395,
15,
50282
],
"markers": [
11,
15,
19,
23
]
},
{
"id": "churn_risk",
"type": "noul",
"qtype": 2,
"instructions": "The customer threatens to cancel the account.",
"head_text": "noul question: The customer threatens to cancel the account.",
"options": [
"false: no, the statement does not hold",
"true: yes, the statement holds"
],
"input_ids": [
50281,
79,
3941,
1953,
27,
380,
7731,
37654,
281,
14002,
253,
2395,
15,
50282,
50284,
3221,
27,
642,
13,
253,
3908,
50284,
2032,
27,
4754,
13,
253,
3908,
50282,
18961,
27,
18603,
6636,
327,
45156,
854,
3507,
1012,
187,
187,
12764,
13,
309,
369,
47045,
7019,
436,
1770,
323,
253,
1294,
2098,
285,
253,
1273,
4179,
556,
417,
644,
23005,
264,
15,
831,
310,
253,
2626,
673,
309,
452,
3542,
275,
15,
1310,
352,
310,
417,
4229,
3063,
309,
717,
476,
68,
3485,
253,
2395,
15,
50282
],
"markers": [
14,
21
]
},
{
"id": "needs_human",
"type": "noul",
"qtype": 2,
"instructions": "This requires a human agent rather than an automated reply.",
"head_text": "noul question: This requires a human agent rather than an automated reply.",
"options": [
"false: a template reply resolves it",
"true: a person must intervene"
],
"input_ids": [
50281,
79,
3941,
1953,
27,
831,
4419,
247,
1966,
5570,
2581,
685,
271,
16644,
12252,
15,
50282,
50284,
3221,
27,
247,
7646,
12252,
501,
50284,
2032,
27,
247,
1436,
1364,
32014,
50282,
18961,
27,
18603,
6636,
327,
45156,
854,
3507,
1012,
187,
187,
12764,
13,
309,
369,
47045,
7019,
436,
1770,
323,
253,
1294,
2098,
285,
253,
1273,
4179,
556,
417,
644,
23005,
264,
15,
831,
310,
253,
2626,
673,
309,
452,
3542,
275,
15,
1310,
352,
310,
417,
4229,
3063,
309,
717,
476,
68,
3485,
253,
2395,
15,
50282
],
"markers": [
17,
24
]
}
],
"batch": {
"input_ids": [
[
50281,
22122,
1953,
27,
6758,
7811,
943,
6016,
436,
32,
50282,
50284,
33484,
27,
29838,
50284,
7681,
27,
19775,
50284,
2395,
27,
2412,
50282,
18961,
27,
18603,
6636,
327,
45156,
854,
3507,
1012,
187,
187,
12764,
13,
309,
369,
47045,
7019,
436,
1770,
323,
253,
1294,
2098,
285,
253,
1273,
4179,
556,
417,
644,
23005,
264,
15,
831,
310,
253,
2626,
673,
309,
452,
3542,
275,
15,
1310,
352,
310,
417,
4229,
3063,
309,
717,
476,
68,
3485,
253,
2395,
15,
50282,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283
],
[
50281,
18891,
1953,
27,
1359,
21007,
310,
436,
2748,
32,
50282,
50284,
1268,
470,
27,
50284,
1268,
337,
27,
50284,
1268,
374,
27,
50284,
1268,
495,
27,
50282,
18961,
27,
18603,
6636,
327,
45156,
854,
3507,
1012,
187,
187,
12764,
13,
309,
369,
47045,
7019,
436,
1770,
323,
253,
1294,
2098,
285,
253,
1273,
4179,
556,
417,
644,
23005,
264,
15,
831,
310,
253,
2626,
673,
309,
452,
3542,
275,
15,
1310,
352,
310,
417,
4229,
3063,
309,
717,
476,
68,
3485,
253,
2395,
15,
50282,
50283,
50283,
50283,
50283
],
[
50281,
79,
3941,
1953,
27,
380,
7731,
37654,
281,
14002,
253,
2395,
15,
50282,
50284,
3221,
27,
642,
13,
253,
3908,
50284,
2032,
27,
4754,
13,
253,
3908,
50282,
18961,
27,
18603,
6636,
327,
45156,
854,
3507,
1012,
187,
187,
12764,
13,
309,
369,
47045,
7019,
436,
1770,
323,
253,
1294,
2098,
285,
253,
1273,
4179,
556,
417,
644,
23005,
264,
15,
831,
310,
253,
2626,
673,
309,
452,
3542,
275,
15,
1310,
352,
310,
417,
4229,
3063,
309,
717,
476,
68,
3485,
253,
2395,
15,
50282,
50283,
50283,
50283
],
[
50281,
79,
3941,
1953,
27,
831,
4419,
247,
1966,
5570,
2581,
685,
271,
16644,
12252,
15,
50282,
50284,
3221,
27,
247,
7646,
12252,
501,
50284,
2032,
27,
247,
1436,
1364,
32014,
50282,
18961,
27,
18603,
6636,
327,
45156,
854,
3507,
1012,
187,
187,
12764,
13,
309,
369,
47045,
7019,
436,
1770,
323,
253,
1294,
2098,
285,
253,
1273,
4179,
556,
417,
644,
23005,
264,
15,
831,
310,
253,
2626,
673,
309,
452,
3542,
275,
15,
1310,
352,
310,
417,
4229,
3063,
309,
717,
476,
68,
3485,
253,
2395,
15,
50282
]
],
"attention_mask": [
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
],
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
],
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0
],
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
],
"marker_pos": [
[
11,
15,
19,
0
],
[
11,
15,
19,
23
],
[
14,
21,
0,
0
],
[
17,
24,
0,
0
]
],
"marker_mask": [
[
true,
true,
true,
false
],
[
true,
true,
true,
true
],
[
true,
true,
false,
false
],
[
true,
true,
false,
false
]
],
"qtype": [
0,
1,
2,
2
]
},
"marker_axis_padded": false,
"logits": [
[
3.7725141048431396,
-2.486233949661255,
-0.5143826603889465,
-10000.0
],
[
1.4654136896133423,
1.8976929187774658,
0.2207539975643158,
-0.017203807830810547
],
[
-3.532108783721924,
3.493774175643921,
-10000.0,
-10000.0
],
[
0.9295657873153687,
0.07047832012176514,
-10000.0,
-10000.0
]
],
"act_logits": [
[
4089.3359375,
-3344.0556640625
],
[
3995.44970703125,
-3276.9658203125
],
[
3726.675537109375,
-3049.8701171875
],
[
4608.5185546875,
-3773.8212890625
]
],
"result": {
"model": "laya-rl-agent",
"answers": {
"department": {
"type": "choice",
"choice": "billing",
"probabilities": {
"billing": 0.896,
"technical": 0.0256,
"account": 0.0784
},
"confidence": 0.6433,
"answer_confidence": 0.896,
"action": {
"act_probability": 1.0
}
},
"urgency": {
"type": "score",
"score": 0.994,
"legend": {
"0": "not urgent",
"1": "this week",
"2": "today",
"3": "drop everything"
},
"probabilities": {
"0": 0.3238,
"1": 0.4574,
"2": 0.1198,
"3": 0.099
},
"confidence": 0.13,
"answer_confidence": 0.4574,
"action": {
"act_probability": 1.0
}
},
"churn_risk": {
"type": "noul",
"noul": 0.9719,
"confidence": 0.9719,
"answer_confidence": 0.9719,
"action": {
"act_probability": 1.0
}
},
"needs_human": {
"type": "noul",
"noul": 0.3934,
"confidence": 0.6066,
"answer_confidence": 0.6066,
"action": {
"act_probability": 1.0
}
}
},
"usage": {
"input_tokens": 345,
"output_tokens": 0,
"state_tokens": 57,
"state_tokens_dropped": 0,
"truncated": false,
"truncated_questions": []
}
},
"options": {
"head_max_len": 30
}
}