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": "lang_size_buckets",
"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": {
"pair": {
"type": "choice",
"instructions": "Which of the two?",
"criteria": {
"first": "the first option",
"second": "the second option"
}
},
"wide": {
"type": "choice",
"instructions": "Which department should handle this?",
"criteria": {
"billing": "invoices and payments",
"technical": "bugs and outages",
"account": "logins and seats",
"sales": "quotes and upgrades",
"legal": "contracts and privacy",
"shipping": "delivery and returns",
"other": "anything else"
}
},
"scale": {
"type": "score",
"instructions": "How urgent is this request?",
"criteria": [
"none",
"low",
"mild",
"high",
"severe",
"critical"
]
},
"flag": {
"type": "noul",
"instructions": "The customer threatens to cancel the account."
}
},
"per_question": [
{
"id": "pair",
"type": "choice",
"qtype": 0,
"instructions": "Which of the two?",
"head_text": "choice question: Which of the two?",
"options": [
"first: the first option",
"second: the second option"
],
"input_ids": [
50281,
22122,
1953,
27,
6758,
273,
253,
767,
32,
50282,
50284,
806,
27,
253,
806,
4500,
50284,
1273,
27,
253,
1273,
4500,
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": [
10,
16
]
},
{
"id": "wide",
"type": "choice",
"qtype": 0,
"instructions": "Which department should handle this?",
"head_text": "choice question: Which department should handle this?",
"options": [
"billing: invoices and payments",
"technical: bugs and outages",
"account: logins and seats",
"sales: quotes and upgrades",
"legal: contracts and privacy",
"shipping: delivery and returns",
"other: anything else"
],
"input_ids": [
50281,
22122,
1953,
27,
6758,
7811,
943,
6016,
436,
32,
50282,
50284,
33484,
27,
29838,
1271,
285,
10762,
50284,
7681,
27,
19775,
285,
562,
1131,
50284,
2395,
27,
2412,
968,
285,
13512,
50284,
6224,
27,
19101,
285,
34232,
50284,
4320,
27,
12712,
285,
11068,
50284,
15076,
27,
6742,
285,
6548,
50284,
643,
27,
2712,
2010,
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,
18,
25,
32,
38,
44,
50
]
},
{
"id": "scale",
"type": "score",
"qtype": 1,
"instructions": "How urgent is this request?",
"head_text": "score question: How urgent is this request?",
"options": [
"level 0: none",
"level 1: low",
"level 2: mild",
"level 3: high",
"level 4: severe",
"level 5: critical"
],
"input_ids": [
50281,
18891,
1953,
27,
1359,
21007,
310,
436,
2748,
32,
50282,
50284,
1268,
470,
27,
5293,
50284,
1268,
337,
27,
1698,
50284,
1268,
374,
27,
11134,
50284,
1268,
495,
27,
1029,
50284,
1268,
577,
27,
5460,
50284,
1268,
608,
27,
4619,
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,
16,
21,
26,
31,
36
]
},
{
"id": "flag",
"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
]
}
],
"batch": {
"input_ids": [
[
50281,
22122,
1953,
27,
6758,
273,
253,
767,
32,
50282,
50284,
806,
27,
253,
806,
4500,
50284,
1273,
27,
253,
1273,
4500,
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,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283
],
[
50281,
22122,
1953,
27,
6758,
7811,
943,
6016,
436,
32,
50282,
50284,
33484,
27,
29838,
1271,
285,
10762,
50284,
7681,
27,
19775,
285,
562,
1131,
50284,
2395,
27,
2412,
968,
285,
13512,
50284,
6224,
27,
19101,
285,
34232,
50284,
4320,
27,
12712,
285,
11068,
50284,
15076,
27,
6742,
285,
6548,
50284,
643,
27,
2712,
2010,
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,
5293,
50284,
1268,
337,
27,
1698,
50284,
1268,
374,
27,
11134,
50284,
1268,
495,
27,
1029,
50284,
1268,
577,
27,
5460,
50284,
1268,
608,
27,
4619,
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,
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,
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
1,
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,
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,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
],
"marker_pos": [
[
10,
16,
0,
0,
0,
0,
0
],
[
11,
18,
25,
32,
38,
44,
50
],
[
11,
16,
21,
26,
31,
36,
0
],
[
14,
24,
0,
0,
0,
0,
0
]
],
"marker_mask": [
[
true,
true,
false,
false,
false,
false,
false
],
[
true,
true,
true,
true,
true,
true,
true
],
[
true,
true,
true,
true,
true,
true,
false
],
[
true,
true,
false,
false,
false,
false,
false
]
],
"qtype": [
0,
0,
1,
2
]
},
"marker_axis_padded": false,
"logits": [
[
1.2316139936447144,
0.3455628752708435,
-10000.0,
-10000.0,
-10000.0,
-10000.0,
-10000.0
],
[
6.5726318359375,
-2.5407862663269043,
-2.38329815864563,
-3.2941930294036865,
-1.8061529397964478,
-3.400134801864624,
-3.246126651763916
],
[
-2.260613203048706,
-0.7889672517776489,
0.15310415625572205,
0.48803675174713135,
2.8179776668548584,
-2.6931307315826416,
-10000.0
],
[
-4.515446186065674,
2.250016689300537,
-10000.0,
-10000.0,
-10000.0,
-10000.0,
-10000.0
]
],
"act_logits": [
[
4353.82666015625,
-3561.62744140625
],
[
3583.10205078125,
-2931.8779296875
],
[
3553.88330078125,
-2925.64794921875
],
[
2926.997314453125,
-2398.78125
]
],
"result": {
"model": "laya-rl-agent",
"answers": {
"pair": {
"type": "choice",
"choice": "first",
"probabilities": {
"first": 0.5733,
"second": 0.4267
},
"confidence": 0.0156,
"answer_confidence": 0.5733,
"action": {
"act_probability": 1.0
}
},
"wide": {
"type": "choice",
"choice": "billing",
"probabilities": {
"billing": 1.0,
"technical": 0.0,
"account": 0.0,
"sales": 0.0,
"legal": 0.0,
"shipping": 0.0,
"other": 0.0
},
"confidence": 1.0,
"answer_confidence": 1.0,
"action": {
"act_probability": 1.0
}
},
"scale": {
"type": "score",
"score": 3.1578,
"legend": {
"0": "none",
"1": "low",
"2": "mild",
"3": "high",
"4": "severe",
"5": "critical"
},
"probabilities": {
"0": 0.0419,
"1": 0.0875,
"2": 0.1401,
"3": 0.1657,
"4": 0.5311,
"5": 0.0338
},
"confidence": 0.2355,
"answer_confidence": 0.5311,
"action": {
"act_probability": 1.0
}
},
"flag": {
"type": "noul",
"noul": 0.968,
"confidence": 0.968,
"answer_confidence": 0.968,
"action": {
"act_probability": 1.0
}
}
},
"usage": {
"input_tokens": 386,
"output_tokens": 0,
"state_tokens": 57,
"state_tokens_dropped": 0,
"truncated": false,
"truncated_questions": []
}
},
"options": {
"lang": "it"
},
"lang_temperatures": {
"de": {
"temperature": [
2.0,
3.0,
1.5
]
},
"fr": null,
"es": {
"temperature_by_options": {
"choice:3-5": 2.5,
"noul:2": 0.7
}
},
"pt": {
"temperature": [
1.2,
4.0,
0.8
],
"temperature_by_options": {
"score:3-5": 2.0,
"choice:6-10": 3.0
}
},
"it": {
"temperature": null,
"temperature_by_options": {
"choice:2": 3.0,
"choice:6-10": 0.6,
"score:6-10": 2.0
}
},
"nl": {
"temperature": [
9.0,
0.1,
1.0
]
},
"sv-SE": {
"temperature": [
1.5,
1.5,
1.5
]
},
"SV": {
"temperature": [
3.5,
3.5,
3.5
]
}
}
}