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.

3.1 KB
Raw Blame
{
  "name": "choice_criteria_list",
  "state": "I would like to upgrade to the enterprise plan.",
  "serialized_state": "I would like to upgrade to the enterprise plan.",
  "questions": {
    "intent": {
      "type": "choice",
      "instructions": "Classify the intent.",
      "criteria": [
        "upgrade",
        "downgrade",
        "cancel",
        "support"
      ]
    }
  },
  "per_question": [
    {
      "id": "intent",
      "type": "choice",
      "qtype": 0,
      "instructions": "Classify the intent.",
      "head_text": "choice question: Classify the intent.",
      "options": [
        "upgrade",
        "downgrade",
        "cancel",
        "support"
      ],
      "input_ids": [
        2,
        6241,
        2872,
        235292,
        51110,
        4739,
        573,
        13503,
        235265,
        1,
        4,
        18100,
        4,
        115214,
        4,
        12459,
        4,
        2676,
        1,
        590,
        1134,
        1154,
        577,
        18100,
        577,
        573,
        22391,
        1780,
        235265,
        1
      ],
      "markers": [
        10,
        12,
        14,
        16
      ]
    }
  ],
  "batch": {
    "input_ids": [
      [
        2,
        6241,
        2872,
        235292,
        51110,
        4739,
        573,
        13503,
        235265,
        1,
        4,
        18100,
        4,
        115214,
        4,
        12459,
        4,
        2676,
        1,
        590,
        1134,
        1154,
        577,
        18100,
        577,
        573,
        22391,
        1780,
        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
      ]
    ],
    "marker_pos": [
      [
        10,
        12,
        14,
        16
      ]
    ],
    "marker_mask": [
      [
        true,
        true,
        true,
        true
      ]
    ],
    "qtype": [
      0
    ]
  },
  "marker_axis_padded": false,
  "logits": [
    [
      5.808925628662109,
      -2.2279703617095947,
      -2.1767940521240234,
      -1.274719476699829
    ]
  ],
  "act_logits": [
    [
      1330.540771484375,
      -1583.945068359375
    ]
  ],
  "result": {
    "model": "laya-rl-agent",
    "answers": {
      "intent": {
        "type": "choice",
        "choice": "upgrade",
        "probabilities": {
          "upgrade": 0.9985,
          "downgrade": 0.0003,
          "cancel": 0.0003,
          "support": 0.0008
        },
        "confidence": 0.9908,
        "answer_confidence": 0.9985,
        "action": {
          "act_probability": 1.0
        }
      }
    },
    "usage": {
      "input_tokens": 30,
      "output_tokens": 0,
      "state_tokens": 10,
      "state_tokens_dropped": 0,
      "truncated": false,
      "truncated_questions": []
    }
  }
}