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.0 KB
Raw Blame
{
  "name": "long_lang_single_window",
  "state": "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": {
    "lang": "pt"
  },
  "lang_temperatures": {
    "de": {
      "temperature": [
        2.0,
        3.0,
        1.5
      ]
    },
    "fr": null,
    "es": {
      "temperature_by_options": {
        "choice:3-5": 2.5,
        "noul:2": 0.7
      }
    },
    "pt": {
      "temperature": [
        1.2,
        4.0,
        0.8
      ],
      "temperature_by_options": {
        "score:3-5": 2.0,
        "choice:6-10": 3.0
      }
    },
    "it": {
      "temperature": null,
      "temperature_by_options": {
        "choice:2": 3.0,
        "choice:6-10": 0.6,
        "score:6-10": 2.0
      }
    },
    "nl": {
      "temperature": [
        9.0,
        0.1,
        1.0
      ]
    },
    "sv-SE": {
      "temperature": [
        1.5,
        1.5,
        1.5
      ]
    },
    "SV": {
      "temperature": [
        3.5,
        3.5,
        3.5
      ]
    }
  },
  "state_tokens": 56,
  "effective_window": 760,
  "effective_stride": 380,
  "effective_room": 990,
  "windows": [],
  "result": {
    "model": "laya-rl-agent-onnx",
    "answers": {
      "topic": {
        "type": "choice",
        "choice": "refund",
        "probabilities": {
          "refund": 0.7873,
          "technical": 0.022,
          "other": 0.1908
        },
        "confidence": 0.4646,
        "answer_confidence": 0.7873,
        "action": {
          "act_probability": 1.0
        }
      },
      "urgency": {
        "type": "score",
        "score": 1.3084,
        "legend": {
          "0": "not urgent",
          "1": "this week",
          "2": "today"
        },
        "probabilities": {
          "0": 0.0985,
          "1": 0.4945,
          "2": 0.407
        },
        "confidence": 0.1421,
        "answer_confidence": 0.4945,
        "action": {
          "act_probability": 1.0
        }
      },
      "cancel": {
        "type": "noul",
        "noul": 0.0193,
        "confidence": 0.9807,
        "answer_confidence": 0.9807,
        "action": {
          "act_probability": 1.0
        }
      }
    },
    "usage": {
      "input_tokens": 264,
      "output_tokens": 0,
      "state_tokens": 56,
      "state_tokens_dropped": 0,
      "truncated": false,
      "truncated_questions": [],
      "windows": 1
    }
  }
}