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.

5.7 KB
Raw Blame
{
  "name": "dict_state",
  "state": {
    "plan": "pro",
    "mrr": 149.0,
    "open_tickets": 3,
    "vip": true,
    "notes": null,
    "tags": [
      "billing",
      "escalated"
    ],
    "owner": {
      "team": "success",
      "name": "Ana Muller"
    }
  },
  "serialized_state": "{\"plan\": \"pro\", \"mrr\": 149.0, \"open_tickets\": 3, \"vip\": true, \"notes\": null, \"tags\": [\"billing\", \"escalated\"], \"owner\": {\"team\": \"success\", \"name\": \"Ana Muller\"}}",
  "questions": {
    "priority": {
      "type": "score",
      "instructions": "Rank the priority of this account.",
      "criteria": [
        "low",
        "normal",
        "high"
      ]
    }
  },
  "per_question": [
    {
      "id": "priority",
      "type": "score",
      "qtype": 1,
      "instructions": "Rank the priority of this account.",
      "head_text": "score question: Rank the priority of this account.",
      "options": [
        "level 0: low",
        "level 1: normal",
        "level 2: high"
      ],
      "input_ids": [
        50281,
        18891,
        1953,
        27,
        25299,
        253,
        11674,
        273,
        436,
        2395,
        15,
        50282,
        50284,
        1268,
        470,
        27,
        1698,
        50284,
        1268,
        337,
        27,
        2622,
        50284,
        1268,
        374,
        27,
        1029,
        50282,
        9819,
        11139,
        1381,
        346,
        856,
        995,
        346,
        78,
        2676,
        1381,
        21300,
        15,
        17,
        13,
        346,
        5758,
        64,
        85,
        26195,
        1381,
        495,
        13,
        346,
        87,
        532,
        1381,
        2032,
        13,
        346,
        21377,
        1381,
        3635,
        13,
        346,
        23059,
        1381,
        15640,
        67,
        3867,
        995,
        346,
        265,
        1179,
        456,
        21391,
        346,
        18602,
        1381,
        17579,
        22035,
        1381,
        346,
        12566,
        995,
        346,
        1590,
        1381,
        346,
        1145,
        66,
        29655,
        254,
        3,
        599,
        50282
      ],
      "markers": [
        12,
        17,
        22
      ]
    }
  ],
  "batch": {
    "input_ids": [
      [
        50281,
        18891,
        1953,
        27,
        25299,
        253,
        11674,
        273,
        436,
        2395,
        15,
        50282,
        50284,
        1268,
        470,
        27,
        1698,
        50284,
        1268,
        337,
        27,
        2622,
        50284,
        1268,
        374,
        27,
        1029,
        50282,
        9819,
        11139,
        1381,
        346,
        856,
        995,
        346,
        78,
        2676,
        1381,
        21300,
        15,
        17,
        13,
        346,
        5758,
        64,
        85,
        26195,
        1381,
        495,
        13,
        346,
        87,
        532,
        1381,
        2032,
        13,
        346,
        21377,
        1381,
        3635,
        13,
        346,
        23059,
        1381,
        15640,
        67,
        3867,
        995,
        346,
        265,
        1179,
        456,
        21391,
        346,
        18602,
        1381,
        17579,
        22035,
        1381,
        346,
        12566,
        995,
        346,
        1590,
        1381,
        346,
        1145,
        66,
        29655,
        254,
        3,
        599,
        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
      ]
    ],
    "marker_pos": [
      [
        12,
        17,
        22
      ]
    ],
    "marker_mask": [
      [
        true,
        true,
        true
      ]
    ],
    "qtype": [
      1
    ]
  },
  "marker_axis_padded": false,
  "logits": [
    [
      -0.2836797535419464,
      2.3045341968536377,
      1.6238452196121216
    ]
  ],
  "act_logits": [
    [
      3474.17578125,
      -2870.3505859375
    ]
  ],
  "result": {
    "model": "laya-rl-agent",
    "answers": {
      "priority": {
        "type": "score",
        "score": 1.266,
        "legend": {
          "0": "low",
          "1": "normal",
          "2": "high"
        },
        "probabilities": {
          "0": 0.0741,
          "1": 0.5859,
          "2": 0.3401
        },
        "confidence": 0.2055,
        "answer_confidence": 0.5859,
        "action": {
          "act_probability": 1.0
        }
      }
    },
    "usage": {
      "input_tokens": 93,
      "output_tokens": 0,
      "state_tokens": 64,
      "state_tokens_dropped": 0,
      "truncated": false,
      "truncated_questions": []
    }
  }
}