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.

2.2 KB
Raw Blame
{
  "name": "batch_one_state",
  "states": [
    "Subject: Double charged on invoice 88213\n\nHi, I was billed twice this month for the Pro plan and the second charge has not been refunded. This is the third time I have written in. If it is not fixed today I am cancelling the account."
  ],
  "questions": {
    "topic": {
      "type": "choice",
      "instructions": "What is the request about?",
      "criteria": {
        "refund": "money back, duplicate charge",
        "technical": "bugs and outages",
        "other": null
      }
    },
    "urgency": {
      "type": "score",
      "instructions": "How urgent is this request?",
      "criteria": [
        "not urgent",
        "this week",
        "today"
      ]
    },
    "cancel": {
      "type": "noul",
      "instructions": "The customer threatens to cancel the account."
    }
  },
  "options": {},
  "state_widths": [
    90
  ],
  "results": [
    {
      "model": "laya-rl-agent-onnx",
      "answers": {
        "topic": {
          "type": "choice",
          "choice": "refund",
          "probabilities": {
            "refund": 0.836,
            "technical": 0.0114,
            "other": 0.1526
          },
          "confidence": 0.5562,
          "answer_confidence": 0.836,
          "action": {
            "act_probability": 1.0
          }
        },
        "urgency": {
          "type": "score",
          "score": 1.3713,
          "legend": {
            "0": "not urgent",
            "1": "this week",
            "2": "today"
          },
          "probabilities": {
            "0": 0.0231,
            "1": 0.5824,
            "2": 0.3945
          },
          "confidence": 0.3001,
          "answer_confidence": 0.5824,
          "action": {
            "act_probability": 1.0
          }
        },
        "cancel": {
          "type": "noul",
          "noul": 0.0414,
          "confidence": 0.9586,
          "answer_confidence": 0.9586,
          "action": {
            "act_probability": 1.0
          }
        }
      },
      "usage": {
        "input_tokens": 264,
        "output_tokens": 0,
        "state_tokens": 56,
        "state_tokens_dropped": 0,
        "truncated": false,
        "truncated_questions": []
      }
    }
  ],
  "runs": [
    [
      3,
      90
    ]
  ]
}