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": "min_confidence_map_default",
"state": "Thanks, that is all sorted now.",
"serialized_state": "Thanks, that is all sorted now.",
"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,
8061,
13,
326,
310,
512,
20045,
1024,
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,
8061,
13,
326,
310,
512,
20045,
1024,
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,
8061,
13,
326,
310,
512,
20045,
1024,
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,
8061,
13,
326,
310,
512,
20045,
1024,
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,
8061,
13,
326,
310,
512,
20045,
1024,
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,
8061,
13,
326,
310,
512,
20045,
1024,
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,
8061,
13,
326,
310,
512,
20045,
1024,
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,
8061,
13,
326,
310,
512,
20045,
1024,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
],
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
],
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
]
],
"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": [
[
0.7524149417877197,
0.5028965473175049,
-0.09920725226402283,
-10000.0
],
[
2.5853981971740723,
1.4106674194335938,
2.1949286460876465,
-0.39206796884536743
],
[
5.697894096374512,
0.04901987314224243,
-10000.0,
-10000.0
],
[
0.0804542601108551,
0.9528194665908813,
-10000.0,
-10000.0
]
],
"act_logits": [
[
4516.2138671875,
-3693.35986328125
],
[
3973.955078125,
-3267.04638671875
],
[
4118.57275390625,
-3372.958984375
],
[
4505.318359375,
-3688.783203125
]
],
"result": {
"model": "laya-rl-agent",
"answers": {
"department": {
"type": "choice",
"choice": "billing",
"probabilities": {
"billing": 0.4025,
"technical": 0.3493,
"account": 0.2481
},
"confidence": 0.0174,
"answer_confidence": 0.4025,
"action": {
"act_probability": 1.0
},
"low_confidence": true,
"abstention": "abstained",
"abstention_threshold": 0.55
},
"urgency": {
"type": "score",
"score": 0.9626,
"legend": {
"0": "not urgent",
"1": "this week",
"2": "today",
"3": "drop everything"
},
"probabilities": {
"0": 0.4513,
"1": 0.1765,
"2": 0.3304,
"3": 0.0418
},
"confidence": 0.1605,
"answer_confidence": 0.4513,
"action": {
"act_probability": 1.0
},
"low_confidence": true,
"abstention": "abstained",
"abstention_threshold": 0.55
},
"churn_risk": {
"type": "noul",
"noul": 0.0548,
"confidence": 0.9452,
"answer_confidence": 0.9452,
"action": {
"act_probability": 1.0
},
"abstention": "passed",
"abstention_threshold": 0.55
},
"needs_human": {
"type": "noul",
"noul": 0.6082,
"confidence": 0.6082,
"answer_confidence": 0.6082,
"action": {
"act_probability": 1.0
},
"abstention": "passed",
"abstention_threshold": 0.55
}
},
"usage": {
"input_tokens": 183,
"output_tokens": 0,
"state_tokens": 8,
"state_tokens_dropped": 0,
"truncated": false,
"truncated_questions": []
}
},
"options": {
"min_confidence": {
"default": 0.55
}
}
}