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": "quickstart",
"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,
1271,
13,
10762,
13,
4021,
7260,
13,
1275,
41748,
50284,
7681,
27,
19775,
13,
562,
1131,
13,
9554,
6332,
50284,
2395,
27,
2412,
968,
13,
13512,
13,
2098,
2544,
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,
24,
34
]
},
{
"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,
417,
21007,
50284,
1268,
337,
27,
436,
2129,
50284,
1268,
374,
27,
3063,
50284,
1268,
495,
27,
5926,
3253,
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,
17,
23,
28
]
},
{
"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,
1057,
417,
2186,
50284,
2032,
27,
4754,
13,
253,
3908,
6556,
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,
24
]
},
{
"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,
14503,
352,
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,
26
]
}
],
"batch": {
"input_ids": [
[
50281,
22122,
1953,
27,
6758,
7811,
943,
6016,
436,
32,
50282,
50284,
33484,
27,
29838,
1271,
13,
10762,
13,
4021,
7260,
13,
1275,
41748,
50284,
7681,
27,
19775,
13,
562,
1131,
13,
9554,
6332,
50284,
2395,
27,
2412,
968,
13,
13512,
13,
2098,
2544,
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
],
[
50281,
18891,
1953,
27,
1359,
21007,
310,
436,
2748,
32,
50282,
50284,
1268,
470,
27,
417,
21007,
50284,
1268,
337,
27,
436,
2129,
50284,
1268,
374,
27,
3063,
50284,
1268,
495,
27,
5926,
3253,
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,
50283,
50283
],
[
50281,
79,
3941,
1953,
27,
380,
7731,
37654,
281,
14002,
253,
2395,
15,
50282,
50284,
3221,
27,
642,
13,
253,
3908,
1057,
417,
2186,
50284,
2032,
27,
4754,
13,
253,
3908,
6556,
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,
50283,
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,
14503,
352,
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,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283
]
],
"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,
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,
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,
0,
0,
0
]
],
"marker_pos": [
[
11,
24,
34,
0
],
[
11,
17,
23,
28
],
[
14,
24,
0,
0
],
[
17,
26,
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": [
[
4.488276958465576,
-2.729666233062744,
-2.4480319023132324,
-10000.0
],
[
-0.8349542617797852,
0.8832842707633972,
3.6844465732574463,
1.2054039239883423
],
[
-4.515446186065674,
2.250016689300537,
-10000.0,
-10000.0
],
[
0.7536231279373169,
0.41879838705062866,
-10000.0,
-10000.0
]
],
"act_logits": [
[
4074.86572265625,
-3334.4990234375
],
[
4040.2958984375,
-3316.3017578125
],
[
2926.997314453125,
-2398.78125
],
[
4615.162109375,
-3778.93896484375
]
],
"result": {
"model": "laya-rl-agent",
"answers": {
"department": {
"type": "choice",
"choice": "billing",
"probabilities": {
"billing": 0.9653,
"technical": 0.016,
"account": 0.0188
},
"confidence": 0.8409,
"answer_confidence": 0.9653,
"action": {
"act_probability": 1.0
}
},
"urgency": {
"type": "score",
"score": 1.9821,
"legend": {
"0": "not urgent",
"1": "this week",
"2": "today",
"3": "drop everything"
},
"probabilities": {
"0": 0.0212,
"1": 0.0839,
"2": 0.7864,
"3": 0.1085
},
"confidence": 0.4809,
"answer_confidence": 0.7864,
"action": {
"act_probability": 1.0
}
},
"churn_risk": {
"type": "noul",
"noul": 0.968,
"confidence": 0.968,
"answer_confidence": 0.968,
"action": {
"act_probability": 1.0
}
},
"needs_human": {
"type": "noul",
"noul": 0.4579,
"confidence": 0.5421,
"answer_confidence": 0.5421,
"action": {
"act_probability": 1.0
}
}
},
"usage": {
"input_tokens": 379,
"output_tokens": 0,
"state_tokens": 57,
"state_tokens_dropped": 0,
"truncated": false,
"truncated_questions": []
}
}
}