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.9 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": [
        2,
        7716,
        2872,
        235292,
        22010,
        573,
        15852,
        576,
        736,
        3185,
        235265,
        1,
        4,
        2403,
        235248,
        235276,
        235292,
        3178,
        4,
        2403,
        235248,
        235274,
        235292,
        4500,
        4,
        2403,
        235248,
        235284,
        235292,
        1536,
        1,
        19946,
        6145,
        1192,
        664,
        1010,
        824,
        664,
        235262,
        1979,
        1192,
        235248,
        235274,
        235310,
        235315,
        235265,
        235276,
        235269,
        664,
        4141,
        235298,
        67978,
        1192,
        235248,
        235304,
        235269,
        664,
        64107,
        1192,
        1382,
        235269,
        664,
        15139,
        1192,
        1468,
        235269,
        664,
        10943,
        1192,
        10890,
        71151,
        824,
        664,
        70694,
        840,
        12229,
        664,
        14288,
        1192,
        19946,
        12465,
        1192,
        664,
        6550,
        824,
        664,
        1067,
        1192,
        664,
        25272,
        86754,
        150773,
        1
      ],
      "markers": [
        12,
        18,
        24
      ]
    }
  ],
  "batch": {
    "input_ids": [
      [
        2,
        7716,
        2872,
        235292,
        22010,
        573,
        15852,
        576,
        736,
        3185,
        235265,
        1,
        4,
        2403,
        235248,
        235276,
        235292,
        3178,
        4,
        2403,
        235248,
        235274,
        235292,
        4500,
        4,
        2403,
        235248,
        235284,
        235292,
        1536,
        1,
        19946,
        6145,
        1192,
        664,
        1010,
        824,
        664,
        235262,
        1979,
        1192,
        235248,
        235274,
        235310,
        235315,
        235265,
        235276,
        235269,
        664,
        4141,
        235298,
        67978,
        1192,
        235248,
        235304,
        235269,
        664,
        64107,
        1192,
        1382,
        235269,
        664,
        15139,
        1192,
        1468,
        235269,
        664,
        10943,
        1192,
        10890,
        71151,
        824,
        664,
        70694,
        840,
        12229,
        664,
        14288,
        1192,
        19946,
        12465,
        1192,
        664,
        6550,
        824,
        664,
        1067,
        1192,
        664,
        25272,
        86754,
        150773,
        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
      ]
    ],
    "marker_pos": [
      [
        12,
        18,
        24
      ]
    ],
    "marker_mask": [
      [
        true,
        true,
        true
      ]
    ],
    "qtype": [
      1
    ]
  },
  "marker_axis_padded": false,
  "logits": [
    [
      -4.517765998840332,
      -2.0101253986358643,
      -1.4807348251342773
    ]
  ],
  "act_logits": [
    [
      1479.477783203125,
      -1745.6630859375
    ]
  ],
  "result": {
    "model": "laya-rl-agent",
    "answers": {
      "priority": {
        "type": "score",
        "score": 1.5816,
        "legend": {
          "0": "low",
          "1": "normal",
          "2": "high"
        },
        "probabilities": {
          "0": 0.0293,
          "1": 0.3598,
          "2": 0.6109
        },
        "confidence": 0.297,
        "answer_confidence": 0.6109,
        "action": {
          "act_probability": 1.0
        }
      }
    },
    "usage": {
      "input_tokens": 93,
      "output_tokens": 0,
      "state_tokens": 61,
      "state_tokens_dropped": 0,
      "truncated": false,
      "truncated_questions": []
    }
  }
}