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": "sample_app_hindi",
"state": {
"body": "मार्च का बिल दो बार लिया गया, कृपया रिफंड करें।"
},
"serialized_state": "{\"body\": \"मार्च का बिल दो बार लिया गया, कृपया रिफंड करें।\"}",
"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?"
}
},
"per_question": [
{
"id": "department",
"type": "choice",
"qtype": 0,
"instructions": "Which department should handle this request?",
"head_text": "choice question: Which department should handle this request?",
"options": [
"billing: invoices, payments, refunds",
"technical: bugs, outages, system errors",
"sales: pricing, new contracts",
"other: everything else"
],
"input_ids": [
2,
6241,
2872,
235292,
12236,
9888,
1412,
6589,
736,
3853,
235336,
1,
4,
54972,
235292,
88220,
235269,
15598,
235269,
85869,
4,
9838,
235292,
30608,
235269,
142788,
235269,
1812,
10266,
4,
7108,
235292,
25063,
235269,
888,
20078,
4,
1156,
235292,
4553,
1354,
1,
19946,
2168,
1192,
664,
235579,
46233,
236062,
11201,
7320,
24892,
51484,
99744,
158850,
44370,
235269,
232499,
187434,
236559,
42330,
38607,
235940,
12990,
1
],
"markers": [
12,
20,
29,
36
]
},
{
"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: soon",
"level 2: critical deadline or blocking issue"
],
"input_ids": [
2,
7716,
2872,
235292,
2250,
34722,
603,
736,
3853,
235336,
1,
4,
2403,
235248,
235276,
235292,
780,
34722,
4,
2403,
235248,
235274,
235292,
4445,
4,
2403,
235248,
235284,
235292,
9523,
30699,
689,
35578,
4295,
1,
19946,
2168,
1192,
664,
235579,
46233,
236062,
11201,
7320,
24892,
51484,
99744,
158850,
44370,
235269,
232499,
187434,
236559,
42330,
38607,
235940,
12990,
1
],
"markers": [
11,
18,
24
]
},
{
"id": "churn_risk",
"type": "noul",
"qtype": 2,
"instructions": "Does the user threaten to cancel or leave?",
"head_text": "noul question: Does the user threaten to cancel or leave?",
"options": [
"false: no, the statement does not hold",
"true: yes, the statement holds"
],
"input_ids": [
2,
552,
6311,
2872,
235292,
11188,
573,
2425,
60399,
577,
12459,
689,
5077,
235336,
1,
4,
1566,
235292,
793,
235269,
573,
6218,
1721,
780,
3385,
4,
1382,
235292,
7778,
235269,
573,
6218,
12723,
1,
19946,
2168,
1192,
664,
235579,
46233,
236062,
11201,
7320,
24892,
51484,
99744,
158850,
44370,
235269,
232499,
187434,
236559,
42330,
38607,
235940,
12990,
1
],
"markers": [
15,
25
]
},
{
"id": "refund_requested",
"type": "noul",
"qtype": 2,
"instructions": "Does the user explicitly request a refund?",
"head_text": "noul question: Does the user explicitly request a refund?",
"options": [
"false: no, the statement does not hold",
"true: yes, the statement holds"
],
"input_ids": [
2,
552,
6311,
2872,
235292,
11188,
573,
2425,
34913,
3853,
476,
19745,
235336,
1,
4,
1566,
235292,
793,
235269,
573,
6218,
1721,
780,
3385,
4,
1382,
235292,
7778,
235269,
573,
6218,
12723,
1,
19946,
2168,
1192,
664,
235579,
46233,
236062,
11201,
7320,
24892,
51484,
99744,
158850,
44370,
235269,
232499,
187434,
236559,
42330,
38607,
235940,
12990,
1
],
"markers": [
14,
24
]
}
],
"batch": {
"input_ids": [
[
2,
6241,
2872,
235292,
12236,
9888,
1412,
6589,
736,
3853,
235336,
1,
4,
54972,
235292,
88220,
235269,
15598,
235269,
85869,
4,
9838,
235292,
30608,
235269,
142788,
235269,
1812,
10266,
4,
7108,
235292,
25063,
235269,
888,
20078,
4,
1156,
235292,
4553,
1354,
1,
19946,
2168,
1192,
664,
235579,
46233,
236062,
11201,
7320,
24892,
51484,
99744,
158850,
44370,
235269,
232499,
187434,
236559,
42330,
38607,
235940,
12990,
1
],
[
2,
7716,
2872,
235292,
2250,
34722,
603,
736,
3853,
235336,
1,
4,
2403,
235248,
235276,
235292,
780,
34722,
4,
2403,
235248,
235274,
235292,
4445,
4,
2403,
235248,
235284,
235292,
9523,
30699,
689,
35578,
4295,
1,
19946,
2168,
1192,
664,
235579,
46233,
236062,
11201,
7320,
24892,
51484,
99744,
158850,
44370,
235269,
232499,
187434,
236559,
42330,
38607,
235940,
12990,
1,
0,
0,
0,
0,
0,
0,
0
],
[
2,
552,
6311,
2872,
235292,
11188,
573,
2425,
60399,
577,
12459,
689,
5077,
235336,
1,
4,
1566,
235292,
793,
235269,
573,
6218,
1721,
780,
3385,
4,
1382,
235292,
7778,
235269,
573,
6218,
12723,
1,
19946,
2168,
1192,
664,
235579,
46233,
236062,
11201,
7320,
24892,
51484,
99744,
158850,
44370,
235269,
232499,
187434,
236559,
42330,
38607,
235940,
12990,
1,
0,
0,
0,
0,
0,
0,
0,
0
],
[
2,
552,
6311,
2872,
235292,
11188,
573,
2425,
34913,
3853,
476,
19745,
235336,
1,
4,
1566,
235292,
793,
235269,
573,
6218,
1721,
780,
3385,
4,
1382,
235292,
7778,
235269,
573,
6218,
12723,
1,
19946,
2168,
1192,
664,
235579,
46233,
236062,
11201,
7320,
24892,
51484,
99744,
158850,
44370,
235269,
232499,
187434,
236559,
42330,
38607,
235940,
12990,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
],
"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,
1,
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
],
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
],
"marker_pos": [
[
12,
20,
29,
36
],
[
11,
18,
24,
0
],
[
15,
25,
0,
0
],
[
14,
24,
0,
0
]
],
"marker_mask": [
[
true,
true,
true,
true
],
[
true,
true,
true,
false
],
[
true,
true,
false,
false
],
[
true,
true,
false,
false
]
],
"qtype": [
0,
1,
2,
2
]
},
"marker_axis_padded": false,
"logits": [
[
4.298194885253906,
-3.6258273124694824,
-4.5493597984313965,
-3.8205618858337402
],
[
-2.450333833694458,
-0.45703834295272827,
1.0562376976013184,
-10000.0
],
[
2.2529542446136475,
-0.012327849864959717,
-10000.0,
-10000.0
],
[
-3.1910810470581055,
0.5562881231307983,
-10000.0,
-10000.0
]
],
"act_logits": [
[
1286.3685302734375,
-1537.6419677734375
],
[
1477.1961669921875,
-1743.8115234375
],
[
1388.9515380859375,
-1647.3594970703125
],
[
1218.6494140625,
-1451.6475830078125
]
],
"result": {
"model": "laya-rl-agent",
"answers": {
"department": {
"type": "choice",
"choice": "billing",
"probabilities": {
"billing": 0.9992,
"technical": 0.0004,
"sales": 0.0001,
"other": 0.0003
},
"confidence": 0.9947,
"answer_confidence": 0.9992,
"action": {
"act_probability": 1.0
}
},
"urgency": {
"type": "score",
"score": 1.7759,
"legend": {
"0": "not urgent",
"1": "soon",
"2": "critical deadline or blocking issue"
},
"probabilities": {
"0": 0.024,
"1": 0.1761,
"2": 0.7999
},
"confidence": 0.4776,
"answer_confidence": 0.7999,
"action": {
"act_probability": 1.0
}
},
"churn_risk": {
"type": "noul",
"noul": 0.094,
"confidence": 0.906,
"answer_confidence": 0.906,
"action": {
"act_probability": 1.0
}
},
"refund_requested": {
"type": "noul",
"noul": 0.977,
"confidence": 0.977,
"answer_confidence": 0.977,
"action": {
"act_probability": 1.0
}
}
},
"usage": {
"input_tokens": 236,
"output_tokens": 0,
"state_tokens": 22,
"state_tokens_dropped": 0,
"truncated": false,
"truncated_questions": []
}
}
}