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": "many_options",
"state": "The user asked about exporting invoices to a spreadsheet.",
"serialized_state": "The user asked about exporting invoices to a spreadsheet.",
"questions": {
"wide": {
"type": "choice",
"instructions": "Pick the single best matching category from a long taxonomy of support topics, considering both the literal request and the intent behind it.",
"criteria": {
"topic_00": "detailed description number 0 for this support topic",
"topic_01": "detailed description number 1 for this support topic",
"topic_02": "detailed description number 2 for this support topic",
"topic_03": "detailed description number 3 for this support topic",
"topic_04": "detailed description number 4 for this support topic",
"topic_05": "detailed description number 5 for this support topic",
"topic_06": "detailed description number 6 for this support topic",
"topic_07": "detailed description number 7 for this support topic",
"topic_08": "detailed description number 8 for this support topic",
"topic_09": "detailed description number 9 for this support topic",
"topic_10": "detailed description number 10 for this support topic",
"topic_11": "detailed description number 11 for this support topic",
"topic_12": "detailed description number 12 for this support topic",
"topic_13": "detailed description number 13 for this support topic",
"topic_14": "detailed description number 14 for this support topic",
"topic_15": "detailed description number 15 for this support topic",
"topic_16": "detailed description number 16 for this support topic",
"topic_17": "detailed description number 17 for this support topic",
"topic_18": "detailed description number 18 for this support topic",
"topic_19": "detailed description number 19 for this support topic",
"topic_20": "detailed description number 20 for this support topic",
"topic_21": "detailed description number 21 for this support topic",
"topic_22": "detailed description number 22 for this support topic",
"topic_23": "detailed description number 23 for this support topic",
"topic_24": "detailed description number 24 for this support topic",
"topic_25": "detailed description number 25 for this support topic",
"topic_26": "detailed description number 26 for this support topic",
"topic_27": "detailed description number 27 for this support topic",
"topic_28": "detailed description number 28 for this support topic",
"topic_29": "detailed description number 29 for this support topic",
"topic_30": "detailed description number 30 for this support topic",
"topic_31": "detailed description number 31 for this support topic",
"topic_32": "detailed description number 32 for this support topic",
"topic_33": "detailed description number 33 for this support topic",
"topic_34": "detailed description number 34 for this support topic",
"topic_35": "detailed description number 35 for this support topic",
"topic_36": "detailed description number 36 for this support topic",
"topic_37": "detailed description number 37 for this support topic",
"topic_38": "detailed description number 38 for this support topic",
"topic_39": "detailed description number 39 for this support topic"
}
}
},
"per_question": [
{
"id": "wide",
"type": "choice",
"qtype": 0,
"instructions": "Pick the single best matching category from a long taxonomy of support topics, considering both the literal request and the intent behind it.",
"head_text": "choice question: Pick the single best matching category from a long taxonomy of support topics, considering both the literal request and the intent behind it.",
"options": [
"topic_00: detailed description number 0 for this support topic",
"topic_01: detailed description number 1 for this support topic",
"topic_02: detailed description number 2 for this support topic",
"topic_03: detailed description number 3 for this support topic",
"topic_04: detailed description number 4 for this support topic",
"topic_05: detailed description number 5 for this support topic",
"topic_06: detailed description number 6 for this support topic",
"topic_07: detailed description number 7 for this support topic",
"topic_08: detailed description number 8 for this support topic",
"topic_09: detailed description number 9 for this support topic",
"topic_10: detailed description number 10 for this support topic",
"topic_11: detailed description number 11 for this support topic",
"topic_12: detailed description number 12 for this support topic",
"topic_13: detailed description number 13 for this support topic",
"topic_14: detailed description number 14 for this support topic",
"topic_15: detailed description number 15 for this support topic",
"topic_16: detailed description number 16 for this support topic",
"topic_17: detailed description number 17 for this support topic",
"topic_18: detailed description number 18 for this support topic",
"topic_19: detailed description number 19 for this support topic",
"topic_20: detailed description number 20 for this support topic",
"topic_21: detailed description number 21 for this support topic",
"topic_22: detailed description number 22 for this support topic",
"topic_23: detailed description number 23 for this support topic",
"topic_24: detailed description number 24 for this support topic",
"topic_25: detailed description number 25 for this support topic",
"topic_26: detailed description number 26 for this support topic",
"topic_27: detailed description number 27 for this support topic",
"topic_28: detailed description number 28 for this support topic",
"topic_29: detailed description number 29 for this support topic",
"topic_30: detailed description number 30 for this support topic",
"topic_31: detailed description number 31 for this support topic",
"topic_32: detailed description number 32 for this support topic",
"topic_33: detailed description number 33 for this support topic",
"topic_34: detailed description number 34 for this support topic",
"topic_35: detailed description number 35 for this support topic",
"topic_36: detailed description number 36 for this support topic",
"topic_37: detailed description number 37 for this support topic",
"topic_38: detailed description number 38 for this support topic",
"topic_39: detailed description number 39 for this support topic"
],
"input_ids": [
50281,
22122,
1953,
27,
20745,
253,
2014,
1682,
11038,
7140,
432,
247,
1048,
2891,
13646,
273,
1329,
12989,
13,
7296,
1097,
253,
22436,
2748,
285,
253,
6860,
3212,
352,
15,
50282,
50284,
9400,
64,
361,
50284,
9400,
64,
520,
50284,
9400,
64,
2640,
50284,
9400,
64,
2941,
50284,
9400,
64,
2125,
50284,
9400,
64,
1762,
50284,
9400,
64,
3071,
50284,
9400,
64,
2922,
50284,
9400,
64,
2904,
50284,
9400,
64,
2693,
50284,
9400,
64,
740,
50284,
9400,
64,
883,
50284,
9400,
64,
805,
50284,
9400,
64,
1012,
50284,
9400,
64,
1047,
50284,
9400,
64,
1010,
50284,
9400,
64,
1036,
50284,
9400,
64,
1166,
50284,
9400,
64,
1093,
50284,
9400,
64,
746,
50284,
9400,
64,
938,
50284,
9400,
64,
1797,
50284,
9400,
64,
1423,
50284,
9400,
64,
1508,
50284,
9400,
64,
1348,
50284,
9400,
64,
1099,
50284,
9400,
64,
1731,
50284,
9400,
64,
1630,
50284,
9400,
64,
1619,
50284,
9400,
64,
1717,
50284,
9400,
64,
1229,
50284,
9400,
64,
2405,
50284,
9400,
64,
1237,
50284,
9400,
64,
1610,
50284,
9400,
64,
1706,
50284,
9400,
64,
1671,
50284,
9400,
64,
1812,
50284,
9400,
64,
1787,
50284,
9400,
64,
1839,
50284,
9400,
64,
1867,
50282,
510,
2608,
2546,
670,
13474,
272,
29838,
1271,
281,
247,
43032,
15,
50282
],
"markers": [
31,
35,
39,
43,
47,
51,
55,
59,
63,
67,
71,
75,
79,
83,
87,
91,
95,
99,
103,
107,
111,
115,
119,
123,
127,
131,
135,
139,
143,
147,
151,
155,
159,
163,
167,
171,
175,
179,
183,
187
]
}
],
"batch": {
"input_ids": [
[
50281,
22122,
1953,
27,
20745,
253,
2014,
1682,
11038,
7140,
432,
247,
1048,
2891,
13646,
273,
1329,
12989,
13,
7296,
1097,
253,
22436,
2748,
285,
253,
6860,
3212,
352,
15,
50282,
50284,
9400,
64,
361,
50284,
9400,
64,
520,
50284,
9400,
64,
2640,
50284,
9400,
64,
2941,
50284,
9400,
64,
2125,
50284,
9400,
64,
1762,
50284,
9400,
64,
3071,
50284,
9400,
64,
2922,
50284,
9400,
64,
2904,
50284,
9400,
64,
2693,
50284,
9400,
64,
740,
50284,
9400,
64,
883,
50284,
9400,
64,
805,
50284,
9400,
64,
1012,
50284,
9400,
64,
1047,
50284,
9400,
64,
1010,
50284,
9400,
64,
1036,
50284,
9400,
64,
1166,
50284,
9400,
64,
1093,
50284,
9400,
64,
746,
50284,
9400,
64,
938,
50284,
9400,
64,
1797,
50284,
9400,
64,
1423,
50284,
9400,
64,
1508,
50284,
9400,
64,
1348,
50284,
9400,
64,
1099,
50284,
9400,
64,
1731,
50284,
9400,
64,
1630,
50284,
9400,
64,
1619,
50284,
9400,
64,
1717,
50284,
9400,
64,
1229,
50284,
9400,
64,
2405,
50284,
9400,
64,
1237,
50284,
9400,
64,
1610,
50284,
9400,
64,
1706,
50284,
9400,
64,
1671,
50284,
9400,
64,
1812,
50284,
9400,
64,
1787,
50284,
9400,
64,
1839,
50284,
9400,
64,
1867,
50282,
510,
2608,
2546,
670,
13474,
272,
29838,
1271,
281,
247,
43032,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [
[
31,
35,
39,
43,
47,
51,
55,
59,
63,
67,
71,
75,
79,
83,
87,
91,
95,
99,
103,
107,
111,
115,
119,
123,
127,
131,
135,
139,
143,
147,
151,
155,
159,
163,
167,
171,
175,
179,
183,
187
]
],
"marker_mask": [
[
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true
]
],
"qtype": [
0
]
},
"marker_axis_padded": false,
"logits": [
[
0.6046816110610962,
0.7550269365310669,
0.9181175231933594,
0.801021158695221,
0.5008540153503418,
0.5897594094276428,
0.6157547235488892,
0.6029906272888184,
0.5069749355316162,
0.6346783638000488,
0.7126637697219849,
0.5554904937744141,
0.31933215260505676,
0.3918158710002899,
0.35489052534103394,
0.3387143909931183,
0.18968331813812256,
0.5009080171585083,
0.5126953721046448,
0.37502649426460266,
0.6199690103530884,
0.015121310949325562,
-0.30312448740005493,
0.010184824466705322,
0.09620040655136108,
-0.006642788648605347,
0.005326271057128906,
-0.005198240280151367,
0.52914959192276,
0.5070400238037109,
0.14327645301818848,
0.285515159368515,
-0.28855693340301514,
0.09954556822776794,
0.24119195342063904,
-0.07459908723831177,
-0.13390490412712097,
0.3199203908443451,
0.09801268577575684,
-0.3789302408695221
]
],
"act_logits": [
[
4584.2998046875,
-3744.8447265625
]
],
"result": {
"model": "laya-rl-agent",
"answers": {
"wide": {
"type": "choice",
"choice": "topic_02",
"probabilities": {
"topic_00": 0.0372,
"topic_01": 0.0502,
"topic_02": 0.0696,
"topic_03": 0.0551,
"topic_04": 0.0302,
"topic_05": 0.0361,
"topic_06": 0.038,
"topic_07": 0.0371,
"topic_08": 0.0306,
"topic_09": 0.0395,
"topic_10": 0.0461,
"topic_11": 0.0337,
"topic_12": 0.021,
"topic_13": 0.0243,
"topic_14": 0.0226,
"topic_15": 0.0218,
"topic_16": 0.0162,
"topic_17": 0.0302,
"topic_18": 0.0309,
"topic_19": 0.0235,
"topic_20": 0.0383,
"topic_21": 0.0114,
"topic_22": 0.0061,
"topic_23": 0.0113,
"topic_24": 0.0134,
"topic_25": 0.0109,
"topic_26": 0.0112,
"topic_27": 0.011,
"topic_28": 0.032,
"topic_29": 0.0306,
"topic_30": 0.0148,
"topic_31": 0.0196,
"topic_32": 0.0062,
"topic_33": 0.0135,
"topic_34": 0.018,
"topic_35": 0.0096,
"topic_36": 0.0085,
"topic_37": 0.021,
"topic_38": 0.0135,
"topic_39": 0.0052
},
"confidence": 0.0448,
"answer_confidence": 0.0696,
"action": {
"act_probability": 1.0
}
}
},
"usage": {
"input_tokens": 205,
"output_tokens": 0,
"state_tokens": 12,
"state_tokens_dropped": 0,
"truncated": false,
"truncated_questions": []
}
}
}