Skip to content

armgit / laya

Public Imported from GitHub
0

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.

22.2 KB
Raw Blame
{
  "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": [
        2,
        6241,
        2872,
        235292,
        17350,
        573,
        3821,
        1963,
        19947,
        9701,
        774,
        476,
        1497,
        109331,
        576,
        2676,
        16254,
        1,
        4,
        11381,
        235298,
        235276,
        235276,
        235292,
        4,
        11381,
        235298,
        235276,
        235274,
        235292,
        4,
        11381,
        235298,
        235276,
        235284,
        235292,
        4,
        11381,
        235298,
        235276,
        235304,
        235292,
        4,
        11381,
        235298,
        235276,
        235310,
        235292,
        4,
        11381,
        235298,
        235276,
        235308,
        235292,
        4,
        11381,
        235298,
        235276,
        235318,
        235292,
        4,
        11381,
        235298,
        235276,
        235324,
        235292,
        4,
        11381,
        235298,
        235276,
        235321,
        235292,
        4,
        11381,
        235298,
        235276,
        235315,
        235292,
        4,
        11381,
        235298,
        235274,
        235276,
        235292,
        4,
        11381,
        235298,
        235274,
        235274,
        235292,
        4,
        11381,
        235298,
        235274,
        235284,
        235292,
        4,
        11381,
        235298,
        235274,
        235304,
        235292,
        4,
        11381,
        235298,
        235274,
        235310,
        235292,
        4,
        11381,
        235298,
        235274,
        235308,
        235292,
        4,
        11381,
        235298,
        235274,
        235318,
        235292,
        4,
        11381,
        235298,
        235274,
        235324,
        235292,
        4,
        11381,
        235298,
        235274,
        235321,
        235292,
        4,
        11381,
        235298,
        235274,
        235315,
        235292,
        4,
        11381,
        235298,
        235284,
        235276,
        235292,
        4,
        11381,
        235298,
        235284,
        235274,
        235292,
        4,
        11381,
        235298,
        235284,
        235284,
        235292,
        4,
        11381,
        235298,
        235284,
        235304,
        235292,
        4,
        11381,
        235298,
        235284,
        235310,
        235292,
        4,
        11381,
        235298,
        235284,
        235308,
        235292,
        4,
        11381,
        235298,
        235284,
        235318,
        235292,
        4,
        11381,
        235298,
        235284,
        235324,
        235292,
        4,
        11381,
        235298,
        235284,
        235321,
        235292,
        4,
        11381,
        235298,
        235284,
        235315,
        235292,
        4,
        11381,
        235298,
        235304,
        235276,
        235292,
        4,
        11381,
        235298,
        235304,
        235274,
        235292,
        4,
        11381,
        235298,
        235304,
        235284,
        235292,
        4,
        11381,
        235298,
        235304,
        235304,
        235292,
        4,
        11381,
        235298,
        235304,
        235310,
        235292,
        4,
        11381,
        235298,
        235304,
        235308,
        235292,
        4,
        11381,
        235298,
        235304,
        235318,
        235292,
        4,
        11381,
        235298,
        235304,
        235324,
        235292,
        4,
        11381,
        235298,
        235304,
        235321,
        235292,
        4,
        11381,
        235298,
        235304,
        235315,
        235292,
        1,
        714,
        2425,
        4351,
        1105,
        81263,
        88220,
        577,
        476,
        76826,
        235265,
        1
      ],
      "markers": [
        18,
        24,
        30,
        36,
        42,
        48,
        54,
        60,
        66,
        72,
        78,
        84,
        90,
        96,
        102,
        108,
        114,
        120,
        126,
        132,
        138,
        144,
        150,
        156,
        162,
        168,
        174,
        180,
        186,
        192,
        198,
        204,
        210,
        216,
        222,
        228,
        234,
        240,
        246,
        252
      ]
    }
  ],
  "batch": {
    "input_ids": [
      [
        2,
        6241,
        2872,
        235292,
        17350,
        573,
        3821,
        1963,
        19947,
        9701,
        774,
        476,
        1497,
        109331,
        576,
        2676,
        16254,
        1,
        4,
        11381,
        235298,
        235276,
        235276,
        235292,
        4,
        11381,
        235298,
        235276,
        235274,
        235292,
        4,
        11381,
        235298,
        235276,
        235284,
        235292,
        4,
        11381,
        235298,
        235276,
        235304,
        235292,
        4,
        11381,
        235298,
        235276,
        235310,
        235292,
        4,
        11381,
        235298,
        235276,
        235308,
        235292,
        4,
        11381,
        235298,
        235276,
        235318,
        235292,
        4,
        11381,
        235298,
        235276,
        235324,
        235292,
        4,
        11381,
        235298,
        235276,
        235321,
        235292,
        4,
        11381,
        235298,
        235276,
        235315,
        235292,
        4,
        11381,
        235298,
        235274,
        235276,
        235292,
        4,
        11381,
        235298,
        235274,
        235274,
        235292,
        4,
        11381,
        235298,
        235274,
        235284,
        235292,
        4,
        11381,
        235298,
        235274,
        235304,
        235292,
        4,
        11381,
        235298,
        235274,
        235310,
        235292,
        4,
        11381,
        235298,
        235274,
        235308,
        235292,
        4,
        11381,
        235298,
        235274,
        235318,
        235292,
        4,
        11381,
        235298,
        235274,
        235324,
        235292,
        4,
        11381,
        235298,
        235274,
        235321,
        235292,
        4,
        11381,
        235298,
        235274,
        235315,
        235292,
        4,
        11381,
        235298,
        235284,
        235276,
        235292,
        4,
        11381,
        235298,
        235284,
        235274,
        235292,
        4,
        11381,
        235298,
        235284,
        235284,
        235292,
        4,
        11381,
        235298,
        235284,
        235304,
        235292,
        4,
        11381,
        235298,
        235284,
        235310,
        235292,
        4,
        11381,
        235298,
        235284,
        235308,
        235292,
        4,
        11381,
        235298,
        235284,
        235318,
        235292,
        4,
        11381,
        235298,
        235284,
        235324,
        235292,
        4,
        11381,
        235298,
        235284,
        235321,
        235292,
        4,
        11381,
        235298,
        235284,
        235315,
        235292,
        4,
        11381,
        235298,
        235304,
        235276,
        235292,
        4,
        11381,
        235298,
        235304,
        235274,
        235292,
        4,
        11381,
        235298,
        235304,
        235284,
        235292,
        4,
        11381,
        235298,
        235304,
        235304,
        235292,
        4,
        11381,
        235298,
        235304,
        235310,
        235292,
        4,
        11381,
        235298,
        235304,
        235308,
        235292,
        4,
        11381,
        235298,
        235304,
        235318,
        235292,
        4,
        11381,
        235298,
        235304,
        235324,
        235292,
        4,
        11381,
        235298,
        235304,
        235321,
        235292,
        4,
        11381,
        235298,
        235304,
        235315,
        235292,
        1,
        714,
        2425,
        4351,
        1105,
        81263,
        88220,
        577,
        476,
        76826,
        235265,
        1
      ]
    ],
    "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,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        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": [
      [
        18,
        24,
        30,
        36,
        42,
        48,
        54,
        60,
        66,
        72,
        78,
        84,
        90,
        96,
        102,
        108,
        114,
        120,
        126,
        132,
        138,
        144,
        150,
        156,
        162,
        168,
        174,
        180,
        186,
        192,
        198,
        204,
        210,
        216,
        222,
        228,
        234,
        240,
        246,
        252
      ]
    ],
    "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": [
    [
      -1.3844640254974365,
      -0.37022775411605835,
      -0.2953376770019531,
      -0.27147334814071655,
      -1.7039093971252441,
      -2.3245255947113037,
      -1.965539574623108,
      -1.9904274940490723,
      -2.110386371612549,
      -1.3460203409194946,
      -1.8661582469940186,
      -1.2265479564666748,
      -1.4565691947937012,
      -1.8490118980407715,
      -2.60935378074646,
      -2.637211322784424,
      -2.614530324935913,
      -2.4503231048583984,
      -2.441833972930908,
      -2.067340850830078,
      -1.5033921003341675,
      -0.7902883291244507,
      -0.8891361951828003,
      -1.0078444480895996,
      -1.6876617670059204,
      -1.8588327169418335,
      -1.98219895362854,
      -1.875481367111206,
      -1.9256561994552612,
      -1.1527340412139893,
      -1.6685307025909424,
      -1.4456485509872437,
      -1.330500841140747,
      -1.5693142414093018,
      -2.3586995601654053,
      -2.442730188369751,
      -2.3081207275390625,
      -1.869545578956604,
      -1.3365647792816162,
      0.4271259307861328
    ]
  ],
  "act_logits": [
    [
      1270.5020751953125,
      -1514.28369140625
    ]
  ],
  "result": {
    "model": "laya-rl-agent",
    "answers": {
      "wide": {
        "type": "choice",
        "choice": "topic_39",
        "probabilities": {
          "topic_00": 0.024,
          "topic_01": 0.0663,
          "topic_02": 0.0715,
          "topic_03": 0.0732,
          "topic_04": 0.0175,
          "topic_05": 0.0094,
          "topic_06": 0.0134,
          "topic_07": 0.0131,
          "topic_08": 0.0116,
          "topic_09": 0.025,
          "topic_10": 0.0149,
          "topic_11": 0.0282,
          "topic_12": 0.0224,
          "topic_13": 0.0151,
          "topic_14": 0.0071,
          "topic_15": 0.0069,
          "topic_16": 0.007,
          "topic_17": 0.0083,
          "topic_18": 0.0084,
          "topic_19": 0.0121,
          "topic_20": 0.0214,
          "topic_21": 0.0436,
          "topic_22": 0.0395,
          "topic_23": 0.035,
          "topic_24": 0.0178,
          "topic_25": 0.015,
          "topic_26": 0.0132,
          "topic_27": 0.0147,
          "topic_28": 0.014,
          "topic_29": 0.0303,
          "topic_30": 0.0181,
          "topic_31": 0.0226,
          "topic_32": 0.0254,
          "topic_33": 0.02,
          "topic_34": 0.0091,
          "topic_35": 0.0083,
          "topic_36": 0.0095,
          "topic_37": 0.0148,
          "topic_38": 0.0252,
          "topic_39": 0.1472
        },
        "confidence": 0.0922,
        "answer_confidence": 0.1472,
        "action": {
          "act_probability": 1.0
        }
      }
    },
    "usage": {
      "input_tokens": 270,
      "output_tokens": 0,
      "state_tokens": 10,
      "state_tokens_dropped": 0,
      "truncated": false,
      "truncated_questions": []
    }
  }
}