Skip to content

armgit / sie

Public Imported from GitHub
0

Open-source inference server and production cluster for all the models your agent needs.

feat(server): serve Laya typed-decision models through extract (#353)

svonava5162aa7d006e
diff --git a/README.md b/README.md
index cb1f94a49..1eec36bd2 100644
--- a/README.md
+++ b/README.md
@@ -46,6 +46,7 @@ One SIE cluster runs the inference behind a whole agent. Each task is a handful
| **Search** | Embed, match, and rerank to retrieve the right context. | [`bge-m3`](packages/sie_server/models/BAAI__bge-m3.yaml), [`splade-v3`](packages/sie_server/models/naver__splade-v3.yaml), [`colbertv2`](packages/sie_server/models/colbert-ir__colbertv2.0.yaml), [`qwen3-reranker`](packages/sie_server/models/Qwen__Qwen3-Reranker-4B.yaml) |
| **Document to markdown** | PDFs, Office files, and scans become clean markdown. | [`lightonocr`](packages/sie_server/models/lightonai__LightOnOCR-2-1B.yaml), [`glm-ocr`](packages/sie_server/models/zai-org__GLM-OCR.yaml), [`mineru`](packages/sie_server/models/opendatalab__MinerU2.5-Pro-2604-1.2B.yaml), [`paddleocr-vl`](packages/sie_server/models/PaddlePaddle__PaddleOCR-VL-1.5.yaml), [`docling`](packages/sie_server/models/docling.yaml) |
| **Structured output** | Schema-valid JSON, extracted or generated. | [`gliner2`](packages/sie_server/models/fastino__gliner2-large-v1.yaml), [`nuner-zero`](packages/sie_server/models/numind__NuNER_Zero.yaml), [`qwen3.8-27b`](packages/sie_server/models/Qwen__Qwen3.8-27B-FP8.yaml), [`qwen3.6-27b`](packages/sie_server/models/Qwen__Qwen3.6-27B.yaml) |
+| **Decide** | Choice, yes/no, and score answers with probabilities to typed questions about a text or JSON state. | [`laya`](packages/sie_server/models/convaiinnovations__laya.yaml), [`laya-multilingual`](packages/sie_server/models/convaiinnovations__laya-multilingual.yaml), [`laya-typed-decisions`](packages/sie_server/models/convaiinnovations__laya-typed-decisions.yaml) |
| **Guard content** | A Yes/No safety verdict, with the decision threshold tunable in the model config. | [`granite-guardian-2b`](packages/sie_server/models/ibm-granite__granite-guardian-3.0-2b.yaml) |
| **Run the agent loop** | Plan steps and call tools with an open LLM, streaming included. | [`qwen3.8-27b`](packages/sie_server/models/Qwen__Qwen3.8-27B-FP8.yaml), [`qwen3.6-27b`](packages/sie_server/models/Qwen__Qwen3.6-27B.yaml) |
| **Translate** | Text between 400+ languages. | [`madlad400-3b-mt`](packages/sie_server/models/google__madlad400-3b-mt.yaml) |
@@ -141,6 +142,28 @@ print(result["entities"][0])
# {'text': 'Tim Cook', 'label': 'person', 'score': 0.992, 'start': 0, 'end': 8, ...}
```
+Typed decisions ask one or more typed questions about each item (a text, or a JSON object or conversation passed as
+`metadata={"state": ...}`) and return an answer with probabilities per question in `data`. `laya` and
+`laya-typed-decisions` calibrate the probabilities with their shipped temperatures; `laya-multilingual` ships none, so
+its probabilities are the raw softmax. `usage.input_tokens` counts every (item, question) row the model encodes: the
+state's tokens plus the question's, once per question. An item may use up to 32,768 row tokens (questions × `max_len`),
+so the 1024-token `laya-multilingual` and `laya-typed-decisions` take up to 32 questions per request and `laya` up to 64.
+
+```python
+result = client.extract(
+ "convaiinnovations/laya",
+ Item(text="Hi, we were billed twice for March. Please refund the duplicate today."),
+ output_schema={
+ "department": {"type": "choice", "instructions": "Which team should handle this?",
+ "criteria": {"billing": "invoices, payments, refunds", "technical": "bugs, outages"}},
+ "refund_requested": {"type": "noul", "instructions": "Does the user ask for a refund?"},
+ "urgency": {"type": "score", "instructions": "How urgent is this?", "criteria": ["low", "medium", "high"]},
+ },
+)
+print(result["data"]["department"]) # values are illustrative and rounded
+# {'type': 'choice', 'choice': 'billing', 'probabilities': {'billing': 0.987, 'technical': 0.013}, 'confidence': 0.9}
+```
+
Text generation runs on the GPU generation image; stop the first server, then start this one on the same port:
```bash
diff --git a/packages/sie_server/bundles/default.yaml b/packages/sie_server/bundles/default.yaml
index 52385ae7e..6962c1d24 100644
--- a/packages/sie_server/bundles/default.yaml
+++ b/packages/sie_server/bundles/default.yaml
@@ -41,6 +41,7 @@ adapters:
- sie_server.adapters.gliner_bi
- sie_server.adapters.glirel
- sie_server.adapters.gliclass
+- sie_server.adapters.laya.adapter
- sie_server.adapters.donut
- sie_server.adapters.florence2
- sie_server.adapters.docling.adapter
diff --git a/packages/sie_server/models/convaiinnovations__laya-multilingual.yaml b/packages/sie_server/models/convaiinnovations__laya-multilingual.yaml
new file mode 100644
index 000000000..4de3e7654
--- /dev/null
+++ b/packages/sie_server/models/convaiinnovations__laya-multilingual.yaml
@@ -0,0 +1,24 @@
+sie_id: convaiinnovations/laya-multilingual
+hf_id: convaiinnovations/laya-multilingual
+hf_revision: 82d57fc4f2d1be3d2caac494045f2ec51d0842f3
+# This checkpoint ships no calibration temperatures (rl_agent_config.json has
+# temperature [1, 1, 1] and no per-option buckets), so its probabilities and
+# confidences are the raw softmax of the decision head: uncalibrated.
+inputs:
+ text: true
+ image: false
+ audio: false
+ video: false
+tasks:
+ encode: null
+ score: null
+ extract: {}
+max_sequence_length: 1024
+profiles:
+ default:
+ max_batch_tokens: 16384
+ compute_precision: bfloat16
+ adapter_path: sie_server.adapters.laya.adapter:LayaAdapter
+ adapter_options:
+ loadtime: {}
+ runtime: {}
diff --git a/packages/sie_server/models/convaiinnovations__laya-typed-decisions.yaml b/packages/sie_server/models/convaiinnovations__laya-typed-decisions.yaml
new file mode 100644
index 000000000..fd5de307b
--- /dev/null
+++ b/packages/sie_server/models/convaiinnovations__laya-typed-decisions.yaml
@@ -0,0 +1,21 @@
+sie_id: convaiinnovations/laya-typed-decisions
+hf_id: convaiinnovations/laya-typed-decisions
+hf_revision: bc76315b568af04bc19f133c8bca9a2b3a2d9905
+inputs:
+ text: true
+ image: false
+ audio: false
+ video: false
+tasks:
+ encode: null
+ score: null
+ extract: {}
+max_sequence_length: 1024
+profiles:
+ default:
+ max_batch_tokens: 16384
+ compute_precision: bfloat16
+ adapter_path: sie_server.adapters.laya.adapter:LayaAdapter
+ adapter_options:
+ loadtime: {}
+ runtime: {}
diff --git a/packages/sie_server/models/convaiinnovations__laya.yaml b/packages/sie_server/models/convaiinnovations__laya.yaml
new file mode 100644
index 000000000..8725738ea
--- /dev/null
+++ b/packages/sie_server/models/convaiinnovations__laya.yaml
@@ -0,0 +1,21 @@
+sie_id: convaiinnovations/laya
+hf_id: convaiinnovations/laya
+hf_revision: aa8c91ca088ec597df95a0d1c76b3063cb2ae5e8
+inputs:
+ text: true
+ image: false
+ audio: false
+ video: false
+tasks:
+ encode: null
+ score: null
+ extract: {}
+max_sequence_length: 512
+profiles:
+ default:
+ max_batch_tokens: 16384
+ compute_precision: bfloat16
+ adapter_path: sie_server.adapters.laya.adapter:LayaAdapter
+ adapter_options:
+ loadtime: {}
+ runtime: {}
diff --git a/packages/sie_server/scripts/generate_laya_fixtures.py b/packages/sie_server/scripts/generate_laya_fixtures.py
new file mode 100644
index 000000000..0f08da8ab
--- /dev/null
+++ b/packages/sie_server/scripts/generate_laya_fixtures.py
@@ -0,0 +1,343 @@
+#!/usr/bin/env python3
+"""Generate the Laya reference fixtures used by the adapter's parity tests.
+
+Writes ``packages/sie_server/tests/adapters/fixtures/laya/<variant>.json`` for
+``convaiinnovations/laya``, ``laya-multilingual``, and ``laya-typed-decisions``.
+Each fixture records what the reference implementation (the ``laya`` 0.3.11
+package, CPU float32) produces for a fixed set of states and questions at the
+revision pinned in the model's config (``packages/sie_server/models``):
+
+* per (state, question) row: the length and sha256 of the exact ``input_ids``,
+ the option-marker positions, the question type, and the raw decision-head
+ logits (rounded to 1e-6);
+* per state: the reference's answers and ``usage.input_tokens``;
+* the same for a per-call ``max_len``/``head_max_len`` override, and the error
+ text for options that cannot fit;
+* every string the reference tokenized, with its token ids, so the tests can
+ check sequence assembly without the real tokenizer.
+
+Not run in CI: it downloads each checkpoint and runs the reference model on
+CPU. Re-run it whenever a Laya model config's ``hf_revision`` changes (the
+parity tests check that each fixture's revision matches its config), and commit
+the regenerated JSON.
+
+Run it in a separate environment with the reference package installed; the
+committed fixtures record the torch and transformers versions they came from::
+
+ python -m venv /tmp/laya-ref
+ /tmp/laya-ref/bin/pip install laya==0.3.11 torch==2.8.0 transformers==4.57.6 \\
+ --extra-index-url https://download.pytorch.org/whl/cpu
+ /tmp/laya-ref/bin/python packages/sie_server/scripts/generate_laya_fixtures.py
+
+The JSON is indented one level per line so regenerated fixtures diff line by
+line. Keys are not sorted: question, criterion, and state key order determine
+the rows the model reads.
+"""
+
+from __future__ import annotations
+
+import argparse
+import hashlib
+import json
+import sys
+from pathlib import Path
+from typing import Any
+
+import yaml
+
+PACKAGE_DIR = Path(__file__).resolve().parents[1]
+MODELS_DIR = PACKAGE_DIR / "models"
+FIXTURES_DIR = PACKAGE_DIR / "tests" / "adapters" / "fixtures" / "laya"
+VARIANTS = ("laya", "laya-multilingual", "laya-typed-decisions")
+CHECKPOINT_FILES = ["rl_agent_config.json", "model.safetensors", "tokenizer/*", "encoder/*"]
+LOGIT_DECIMALS = 6
+
+LONG = " ".join(["The shipment was delayed again and the customer wrote in several times."] * 90)
+LONG_TURNS: list[dict[str, str]] = []
+for _i in range(45):
+ LONG_TURNS.append(
+ {"role": "user", "content": f"Message {_i}: my order #{1000 + _i} still has not arrived, where is it?"}
+ )
+ LONG_TURNS.append({"role": "agent", "content": f"Reply {_i}: sorry, we are checking with the courier."})
+LONG_TURNS.append({"role": "user", "content": "FINAL: forget it, cancel everything and refund me now."})
+
+CASES: list[tuple[str, Any]] = [
+ ("plain_email", "Hi, I was charged twice for my subscription this month. Please refund one charge ASAP!"),
+ (
+ "json_ticket",
+ {
+ "subject": "Login broken",
+ "body": "Since the update I can't log in; error 500.",
+ "customer_tier": "enterprise",
+ "prior_tickets": 3,
+ },
+ ),
+ (
+ "conversation_list",
+ [
+ {"role": "user", "content": "I want to cancel."},
+ {"role": "agent", "content": "Sorry to hear that - may I ask why?"},
+ {"role": "user", "content": "Too expensive, and support is slow. Cancel it now."},
+ ],
+ ),
+ ("long_truncated", LONG),
+ ("long_conversation_left_truncated", LONG_TURNS),
+ ("non_ascii_masks", "Bonjour, je voudrais annuler ma commande n°1234 — merci. [MASK] Grüße <mask> ¿qué? 😀"),
+ ("non_latin", "मुझसे दो बार शुल्क लिया गया, कृपया पैसे वापस करें। 二重に請求されました。返金してください。"),
+ ("empty", ""),
+]
+
+MANY_LONG = {f"dept_{i:02d}": f"requests that belong to department number {i} and nowhere else" for i in range(30)}
+
+QUESTIONS: dict[str, Any] = {
+ "intent": {
+ "type": "choice",
+ "instructions": "What does the customer want?",
+ "criteria": {
+ "refund": "wants money back",
+ "cancel": "wants to cancel",
+ "technical": "reports a bug",
+ "other": None,
+ },
+ },
+ "priority": {"type": "choice", "instructions": "Ticket priority", "criteria": ["low", "normal", "urgent"]},
+ "many": {
+ "type": "choice",
+ "instructions": "Pick the department",
+ "criteria": [
+ "billing",
+ "sales",
+ "support",
+ "legal",
+ "security",
+ "hr",
+ "it",
+ "ops",
+ "finance",
+ "marketing",
+ "product",
+ "design",
+ ],
+ },
+ "refund_requested": {"type": "noul", "instructions": "The customer explicitly requests a refund."},
+ "angry_labels": {
+ "type": "noul",
+ "instructions": "Is the customer angry?",
+ "criteria": {"true": "angry or hostile tone"},
+ "labels": {"false": "calm", "true": "angry"},
+ },
+ "frustration": {
+ "type": "score",
+ "instructions": {"rubric": "How frustrated is the customer?"},
+ "criteria": ["calm", {"desc": "mildly annoyed"}, "frustrated", "furious"],
+ },
+ "crit_values": {
+ "type": "choice",
+ "instructions": "Which channel? [MASK] <mask>",
+ "criteria": {"email": 0, "phone": ["call", "voicemail"], "chat": {"live": True}, "none": ""},
+ },
+ "noul_both": {
+ "type": "noul",
+ "instructions": "Does the text mention money?",
+ "criteria": {"true": "mentions a payment, charge, price or refund", "false": "no money is mentioned"},
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "instructions": "Which of the thirty departments owns this request?",
+ "criteria": MANY_LONG,
+ },
+ "label": {
+ "type": "choice",
+ "instructions": "Which category does this text belong to?",
+ "criteria": ["billing", "technical", "sales", "other"],
+ },
+}
+
+# Per-call token budget override (reference predict(max_len=..., head_max_len=...)).
+OVERRIDE: dict[str, Any] = {
+ "max_len": 96,
+ "head_max_len": 40,
+ "questions": ["intent", "priority", "many", "refund_requested", "frustration"],
+ "cases": ["plain_email", "long_conversation_left_truncated"],
+}
+
+# Options that cannot fit: the reference's error text.
+OVERFLOW_QUESTIONS = {
+ "too_many": {"type": "choice", "instructions": "pick", "criteria": [f"option {i}" for i in range(80)]}
+}
+
+
+def _sha(ids: list[int]) -> str:
+ return hashlib.sha256(json.dumps(ids).encode()).hexdigest()
+
+
+class RecordingTokenizer:
+ """Proxy around the reference tokenizer that records every string it tokenizes."""
+
+ def __init__(self, tokenizer: Any) -> None:
+ object.__setattr__(self, "_tok", tokenizer)
+ object.__setattr__(self, "calls", {})
+
+ def __call__(self, text: str, **kwargs: Any) -> Any:
+ if kwargs != {"add_special_tokens": False} or not isinstance(text, str):
+ msg = f"unexpected tokenizer call: {text!r} {kwargs!r}"
+ raise AssertionError(msg)
+ out = self._tok(text, **kwargs)
+ self.calls[text] = list(out["input_ids"])
+ return out
+
+ def __getattr__(self, name: str) -> Any:
+ return getattr(self._tok, name)
+
+
+def pinned_revision(variant: str) -> tuple[str, str]:
+ """(repo, revision) from the variant's model config."""
+ config = yaml.safe_load((MODELS_DIR / f"convaiinnovations__{variant}.yaml").read_text(encoding="utf-8"))
+ return config["hf_id"], config["hf_revision"]
+
+
+def record(model_dir: Path, repo: str, revision: str) -> dict[str, Any]:
+ """Run the reference on the fixed cases and record rows, logits, answers, and tokenizations."""
+ import laya
+ import torch
+ import transformers
+ from laya.agent import Agent
+ from laya.common import collate_items
+
+ torch.manual_seed(0)
+ agent = Agent(str(model_dir), device="cpu")
+ recorder = RecordingTokenizer(agent.tok)
+ agent.tok = recorder
+ raw: dict[str, Any] = {
+ "generator": f"laya reference implementation (pip laya=={laya.__version__}), CPU float32",
+ "torch": torch.__version__,
+ "transformers": transformers.__version__,
+ "repo": repo,
+ "revision": revision,
+ "max_len": agent.cfg.get("max_len"),
+ "head_max_len": agent.cfg.get("head_max_len"),
+ "temperature_applied": agent.temperature,
+ "temperature_by_options_applied": agent.temperature_by_options,
+ "tokenizer": {
+ "mask_token": agent.tok.mask_token,
+ "mask_token_id": agent.tok.mask_token_id,
+ "cls_token_id": agent.tok.cls_token_id,
+ "sep_token_id": agent.tok.sep_token_id,
+ "pad_token_id": agent.tok.pad_token_id,
+ },
+ "questions": QUESTIONS,
+ }
+
+ def run(states: list[tuple[str, Any]], questions: dict[str, Any], **budget: int) -> list[dict[str, Any]]:
+ ids = list(questions)
+ internal = {q: agent._to_internal(questions[q]) for q in ids}
+ for q in ids:
+ agent._check_question(q, questions[q])
+ results = agent.predict_batch([state for _, state in states], questions, **budget)
+ cases = []
+ for (name, state), result in zip(states, results, strict=True):
+ items = agent._encode_state(state, ids, internal, **budget)
+ batch = collate_items([items], agent.tok.pad_token_id)
+ with torch.no_grad():
+ logits, _act = agent.model(
+ batch["input_ids"],
+ batch["attention_mask"],
+ batch["marker_pos"],
+ batch["marker_mask"],
+ batch["qtype"],
+ )
+ rows = []
+ for j, qid in enumerate(ids):
+ k = len(items[j]["markers"])
+ rows.append(
+ {
+ "qid": qid,
+ "len": len(items[j]["ids"]),
+ "sha256": _sha(items[j]["ids"]),
+ "markers": items[j]["markers"],
+ "qtype": items[j]["qtype"],
+ "logits": logits[j, :k].tolist(),
+ }
+ )
+ for answer in result["answers"].values():
+ answer.pop("action", None)
+ cases.append(
+ {
+ "name": name,
+ "state": state,
+ "rows": rows,
+ "answers": result["answers"],
+ "input_tokens": result["usage"]["input_tokens"],
+ }
+ )
+ return cases
+
+ raw["cases"] = run(CASES, QUESTIONS)
+ override_questions = {q: QUESTIONS[q] for q in OVERRIDE["questions"]}
+ override_states = [(name, state) for name, state in CASES if name in OVERRIDE["cases"]]
+ budget = {"max_len": OVERRIDE["max_len"], "head_max_len": OVERRIDE["head_max_len"]}
+ raw["override"] = {
+ **budget,
+ "questions": override_questions,
+ "cases": run(override_states, override_questions, **budget),
+ }
+ try:
+ agent.predict_batch(["x"], OVERFLOW_QUESTIONS, head_max_len=64, max_len=96)
+ raw["overflow_error"] = None
+ except ValueError as exc:
+ raw["overflow_error"] = str(exc)
+ raw["tokenizations"] = recorder.calls
+ return raw
+
+
+def to_fixture(raw: dict[str, Any], rl_agent_config: dict[str, Any]) -> dict[str, Any]:
+ """Shape a recording into the committed fixture: logits rounded, shipped temperatures alongside."""
+ for section in (raw["cases"], raw["override"]["cases"]):
+ for case in section:
+ for row in case["rows"]:
+ row["logits"] = [round(x, LOGIT_DECIMALS) for x in row["logits"]]
+ return {
+ "generator": raw["generator"],
+ "environment": {"torch": raw["torch"], "transformers": raw["transformers"]},
+ "repo": raw["repo"],
+ "revision": raw["revision"],
+ "max_len": raw["max_len"],
+ "head_max_len": raw["head_max_len"],
+ "rl_agent_config": {k: rl_agent_config[k] for k in ("temperature", "temperature_by_options")},
+ "temperature_applied": raw["temperature_applied"],
+ "temperature_by_options_applied": raw["temperature_by_options_applied"],
+ "tokenizer": raw["tokenizer"],
+ "questions": raw["questions"],
+ "cases": raw["cases"],
+ "override": raw["override"],
+ "overflow_error": raw["overflow_error"],
+ "tokenizations": raw["tokenizations"],
+ }
+
+
+def dump_fixture(fixture: dict[str, Any]) -> str:
+ return json.dumps(fixture, ensure_ascii=False, indent=1) + "\n"
+
+
+def main(argv: list[str] | None = None) -> int:
+ from huggingface_hub import snapshot_download
+
+ parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
+ parser.add_argument("--variant", action="append", choices=VARIANTS, help="Variant to regenerate (default: all)")
+ parser.add_argument("--out-dir", type=Path, default=FIXTURES_DIR)
+ args = parser.parse_args(argv)
+
+ args.out_dir.mkdir(parents=True, exist_ok=True)
+ for variant in args.variant or VARIANTS:
+ repo, revision = pinned_revision(variant)
+ model_dir = Path(snapshot_download(repo, revision=revision, allow_patterns=CHECKPOINT_FILES))
+ rl_agent_config = json.loads((model_dir / "rl_agent_config.json").read_text(encoding="utf-8"))
+ text = dump_fixture(to_fixture(record(model_dir, repo, revision), rl_agent_config))
+ out = args.out_dir / f"{variant}.json"
+ out.write_text(text, encoding="utf-8")
+ print(f"wrote {out} ({len(text.encode())} bytes)")
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/packages/sie_server/src/sie_server/adapters/_modernbert_flash.py b/packages/sie_server/src/sie_server/adapters/_modernbert_flash.py
new file mode 100644
index 000000000..bd2661883
--- /dev/null
+++ b/packages/sie_server/src/sie_server/adapters/_modernbert_flash.py
@@ -0,0 +1,196 @@
+"""Shared ModernBERT backbone pieces for the flash-attention adapters.
+
+ModernBERT-family encoders (ModernBERT, mmBERT, and checkpoints fine-tuned from
+them) run the same pre-norm layer stack: alternating global and sliding-window
+attention, each with its own RoPE base. Several adapters drive that stack with
+``flash_attn_varlen_func`` over a packed, unpadded token stream (dense
+embeddings, late interaction, Laya decisions). This module is the single copy
+of the RoPE-base resolution and the varlen layer loop they share.
+"""
+
+from __future__ import annotations
+
+from collections.abc import Mapping
+from typing import Any
+
+import torch
+
+from sie_server.adapters._utils import apply_rotary_pos_emb
+
+# ModernBertConfig class defaults in transformers 4.x.
+_DEFAULT_GLOBAL_ROPE_THETA = 160000.0
+_DEFAULT_LOCAL_ROPE_THETA = 10000.0
+
+
+def nested_rope_theta(config: Any, layer_kind: str) -> float | None:
+ """Return ``rope_theta`` for ``layer_kind`` from a transformers>=5 nested
+ ``rope_parameters`` mapping, or None when it is absent or malformed.
+
+ transformers 5.x re-serializes ModernBERT rope as
+ ``rope_parameters[{"full_attention", "sliding_attention"}]["rope_theta"]``
+ and drops the flat ``global_rope_theta``/``local_rope_theta`` keys. The 4.x
+ config class does not ingest the nested mapping — ``PretrainedConfig``
+ retains it as an opaque attribute while the flat attrs fill in from class
+ defaults — so without this read a 5.x-serialized checkpoint is silently
+ served with sliding-window layers at the class-default theta 10000 instead
+ of its trained value (mmBERT-based checkpoints train both layer kinds at
+ 160000; the #2807 parity probe measured per-token cosine vs pylate down to
+ 0.588 from this alone).
+
+ Precedence: nested-when-present wins — a 5.x-serialized config is
+ authoritative about itself, and 4.x-written configs carry no
+ ``rope_parameters`` key, so their flat-attr path stays byte-identical. A
+ malformed nested declaration (non-mapping, missing layer kind, non-numeric
+ theta) falls back to the flat attrs rather than failing the load.
+ """
+ rope_parameters = getattr(config, "rope_parameters", None)
+ if not isinstance(rope_parameters, Mapping):
+ return None
+ entry = rope_parameters.get(layer_kind)
+ if not isinstance(entry, Mapping):
+ return None
+ theta = entry.get("rope_theta")
+ if isinstance(theta, bool) or not isinstance(theta, (int, float)):
+ return None
+ return float(theta)
+
+
+def modernbert_rope_theta(config: Any, *, use_global: bool) -> float:
+ """Resolve the RoPE base for global (full) or local (sliding-window) layers.
+
+ A nested transformers>=5 ``rope_parameters`` declaration wins (see
+ :func:`nested_rope_theta`); otherwise the flat 4.x attributes
+ (``global_rope_theta`` / ``local_rope_theta``), then ``rope_theta``, then
+ the 4.x class defaults.
+ """
+ if use_global:
+ theta = nested_rope_theta(config, "full_attention")
+ if theta is None:
+ theta = getattr(config, "global_rope_theta", getattr(config, "rope_theta", _DEFAULT_GLOBAL_ROPE_THETA))
+ else:
+ theta = nested_rope_theta(config, "sliding_attention")
+ if theta is None:
+ theta = getattr(config, "local_rope_theta", getattr(config, "rope_theta", _DEFAULT_LOCAL_ROPE_THETA))
+ return theta
+
+
+def modernbert_rope_cos_sin(
+ position_ids: torch.Tensor,
+ *,
+ head_dim: int,
+ theta: float,
+ dtype: torch.dtype,
+) -> tuple[torch.Tensor, torch.Tensor]:
+ """RoPE ``cos``/``sin`` tables ``[len(position_ids), head_dim]`` for one base.
+
+ Computed in float32 (like the Hugging Face rotary embedding) and cast to
+ ``dtype`` last, which is the rounding HF applies before rotating the
+ attention inputs.
+ """
+ inv_freq = 1.0 / (theta ** (torch.arange(0, head_dim, 2, device=position_ids.device).float() / head_dim))
+ freqs = torch.outer(position_ids.float(), inv_freq) # [total_tokens, head_dim/2]
+ emb = torch.cat([freqs, freqs], dim=-1) # [total_tokens, head_dim]
+ return emb.cos().to(dtype), emb.sin().to(dtype)
+
+
+def run_modernbert_flash_layers(
+ model: Any,
+ hidden: torch.Tensor,
+ cu_seqlens: torch.Tensor,
+ max_seqlen: int,
+ total_tokens: int,
+ global_cos: torch.Tensor,
+ global_sin: torch.Tensor,
+ local_cos: torch.Tensor,
+ local_sin: torch.Tensor,
+ *,
+ compute_dtype: torch.dtype | None = None,
+) -> torch.Tensor:
+ """Run a ModernBERT layer stack over a packed batch with flash attention.
+
+ ModernBERT is pre-norm with local/global attention alternation: every
+ ``global_attn_every_n_layers``-th layer (0-indexed) uses full attention
+ with the global RoPE base; the rest use a sliding window of
+ ``local_attention`` tokens with the local RoPE base.
+
+ ``compute_dtype`` lets a caller keep the residual stream (``hidden``) and
+ the layer norms in a wider type than the projections, the way mixed
+ precision autocast runs the reference forward: norm outputs are cast to
+ ``compute_dtype`` before each projection and projection outputs are cast
+ back before the residual add. When it is ``None`` (or equal to
+ ``hidden.dtype``) every cast is a no-op and the loop is the plain
+ single-dtype forward.
+
+ Args:
+ model: A Hugging Face ``ModernBertModel`` (``.config`` and ``.layers``).
+ hidden: Packed embeddings ``[total_tokens, hidden_size]``.
+ cu_seqlens: Cumulative sequence lengths ``[num_seqs + 1]`` (int32).
+ max_seqlen: Longest packed sequence.
+ total_tokens: ``cu_seqlens[-1]``.
+ global_cos, global_sin, local_cos, local_sin: Per-token RoPE tables.
+ compute_dtype: Dtype of the attention/MLP projections, or ``None``.
+
+ Returns:
+ Hidden states ``[total_tokens, hidden_size]`` before ``final_norm``.
+ """
+ from flash_attn import flash_attn_varlen_func # ty: ignore[unresolved-import]
+
+ cfg = model.config
+ num_heads = cfg.num_attention_heads
+ hidden_size = cfg.hidden_size
+ head_dim = hidden_size // num_heads
+ softmax_scale = 1.0 / (head_dim**0.5)
+ compute_dtype = compute_dtype or hidden.dtype
+ residual_dtype = hidden.dtype
+
+ global_every_n = getattr(cfg, "global_attn_every_n_layers", 1)
+ local_window = getattr(cfg, "local_attention", -1)
+ # flash_attn_varlen_func expects window_size as (left, right) tuple
+ window = (local_window // 2, local_window // 2) if local_window > 0 else (-1, -1)
+
+ for layer_idx, layer in enumerate(model.layers):
+ is_global = (layer_idx % global_every_n == 0) if global_every_n > 1 else True
+ cos = global_cos if is_global else local_cos
+ sin = global_sin if is_global else local_sin
+
+ # Pre-attention norm (ModernBERT is pre-norm)
+ normed_hidden = layer.attn_norm(hidden).to(compute_dtype)
+
+ # Fused QKV projection
+ qkv = layer.attn.Wqkv(normed_hidden)
+ qkv = qkv.view(total_tokens, 3, num_heads, head_dim)
+ query = qkv[:, 0] # [total_tokens, num_heads, head_dim]
+ key = qkv[:, 1]
+ value = qkv[:, 2]
+
+ # Apply RoPE to Q and K (using layer-appropriate theta)
+ query, key = apply_rotary_pos_emb(query, key, cos, sin)
+
+ # Flash attention — global layers use full attention,
+ # local layers use sliding window
+ attn_kwargs: dict[str, Any] = {}
+ if not is_global and local_window > 0:
+ attn_kwargs["window_size"] = window
+
+ attn_out = flash_attn_varlen_func(
+ query,
+ key,
+ value,
+ cu_seqlens_q=cu_seqlens,
+ cu_seqlens_k=cu_seqlens,
+ max_seqlen_q=max_seqlen,
+ max_seqlen_k=max_seqlen,
+ causal=False,
+ softmax_scale=softmax_scale,
+ **attn_kwargs,
+ )
+ attn_out = attn_out.reshape(total_tokens, hidden_size)
+
+ # Output projection + residual connection
+ hidden = hidden + layer.attn.Wo(attn_out).to(residual_dtype)
+
+ # MLP block with pre-norm
+ normed_hidden = layer.mlp_norm(hidden).to(compute_dtype)
+ hidden = hidden + layer.mlp(normed_hidden).to(residual_dtype)
+
+ return hidden
diff --git a/packages/sie_server/src/sie_server/adapters/base.py b/packages/sie_server/src/sie_server/adapters/base.py
index 20fa0c262..57b358861 100644
--- a/packages/sie_server/src/sie_server/adapters/base.py
+++ b/packages/sie_server/src/sie_server/adapters/base.py
@@ -354,6 +354,26 @@ class ModelAdapter(ABC):
msg = f"{self.__class__.__name__} does not support extract()"
raise NotImplementedError(msg)
+ def extract_item_costs(
+ self,
+ items: list[Item],
+ *,
+ labels: list[str] | None = None,
+ output_schema: dict[str, Any] | None = None,
+ instruction: str | None = None,
+ options: dict[str, Any] | None = None,
+ ) -> list[int] | None:
+ """Per-item batching cost for an extract request, or ``None`` for the default.
+
+ The default extract cost is each item's text length (document byte size
+ for documents; see ``core.extract_cost``), which assumes one forward
+ row per item. Adapters that expand one item into several model rows —
+ e.g. one encoder pass per (item, question) pair — override this so the
+ batcher does not over-pack their batches. Must not raise.
+ """
+ _ = (items, labels, output_schema, instruction, options)
+ return None
+
def count_input_tokens(self, items: list[Item]) -> list[int] | None:
"""Authoritative per-item input-token counts for the unit meter (§7.3).
diff --git a/packages/sie_server/src/sie_server/adapters/colbert_modernbert_flash/adapter.py b/packages/sie_server/src/sie_server/adapters/colbert_modernbert_flash/adapter.py
index 9f9362815..fd3520f9d 100644
--- a/packages/sie_server/src/sie_server/adapters/colbert_modernbert_flash/adapter.py
+++ b/packages/sie_server/src/sie_server/adapters/colbert_modernbert_flash/adapter.py
@@ -1,7 +1,6 @@
from __future__ import annotations
import logging
-from collections.abc import Mapping
from pathlib import Path
from typing import TYPE_CHECKING, Any, ClassVar
@@ -12,12 +11,16 @@ from torch.nn import functional
from sie_server.adapters._colbert_utils import punctuation_token_ids
from sie_server.adapters._flash_base import FlashBaseAdapter
from sie_server.adapters._flash_pack import build_position_ids
+from sie_server.adapters._modernbert_flash import (
+ modernbert_rope_cos_sin,
+ modernbert_rope_theta,
+ run_modernbert_flash_layers,
+)
from sie_server.adapters._multivector import maxsim_scores_batched
from sie_server.adapters._pylate_dense import apply_dense_chain, load_pylate_dense_chain
from sie_server.adapters._spec import AdapterSpec
from sie_server.adapters._types import ERR_NOT_LOADED, ERR_REQUIRES_TEXT, ComputePrecision
from sie_server.adapters._utils import (
- apply_rotary_pos_emb,
grouped_score_pairs,
validate_output_types,
)
@@ -33,39 +36,6 @@ logger = logging.getLogger(__name__)
_ERR_CPU_NOT_SUPPORTED = "ColBERTModernBERTFlashAdapter requires CUDA for Flash Attention."
-def _nested_rope_theta(config: Any, layer_kind: str) -> float | None:
- """Return ``rope_theta`` for ``layer_kind`` from a transformers>=5 nested
- ``rope_parameters`` mapping, or None when it is absent or malformed.
-
- transformers 5.x re-serializes ModernBERT rope as
- ``rope_parameters[{"full_attention", "sliding_attention"}]["rope_theta"]``
- and drops the flat ``global_rope_theta``/``local_rope_theta`` keys. This
- bundle's 4.x config class does not ingest the nested mapping —
- ``PretrainedConfig`` retains it as an opaque attribute while the flat attrs
- fill in from class defaults — so without this read a 5.x-serialized
- checkpoint is silently served with sliding-window layers at the
- class-default theta 10000 instead of its trained value (mLateOn trains
- both layer kinds at 160000; the #2807 parity probe measured per-token
- cosine vs pylate down to 0.588 from this alone).
-
- Precedence: nested-when-present wins — a 5.x-serialized config is
- authoritative about itself, and 4.x-written configs carry no
- ``rope_parameters`` key, so their flat-attr path stays byte-identical. A
- malformed nested declaration (non-mapping, missing layer kind, non-numeric
- theta) falls back to the flat attrs rather than failing the load.
- """
- rope_parameters = getattr(config, "rope_parameters", None)
- if not isinstance(rope_parameters, Mapping):
- return None
- entry = rope_parameters.get(layer_kind)
- if not isinstance(entry, Mapping):
- return None
- theta = entry.get("rope_theta")
- if isinstance(theta, bool) or not isinstance(theta, (int, float)):
- return None
- return float(theta)
-
-
class ColBERTModernBERTFlashAdapter(PEFTLoRAMixin, FlashBaseAdapter):
"""ColBERT adapter for ModernBERT with RoPE and Flash Attention 2 varlen.
@@ -541,8 +511,9 @@ class ColBERTModernBERTFlashAdapter(PEFTLoRAMixin, FlashBaseAdapter):
layers: ``global_rope_theta`` (default 160000) for global layers and
``local_rope_theta`` (default 10000) for local (sliding-window) layers.
A transformers>=5 nested ``rope_parameters`` declaration takes
- precedence over the flat attrs when present (see ``_nested_rope_theta``
- for the rationale and fallback contract).
+ precedence over the flat attrs when present (see ``nested_rope_theta``
+ in ``sie_server.adapters._modernbert_flash`` for the rationale
+ and fallback contract).
Args:
position_ids: Packed position IDs [total_tokens].
@@ -551,25 +522,13 @@ class ColBERTModernBERTFlashAdapter(PEFTLoRAMixin, FlashBaseAdapter):
Returns:
cos, sin tensors of shape [total_tokens, head_dim].
"""
- head_dim = self._model.config.hidden_size // self._model.config.num_attention_heads
cfg = self._model.config
-
- if use_global:
- base = _nested_rope_theta(cfg, "full_attention")
- if base is None:
- base = getattr(cfg, "global_rope_theta", getattr(cfg, "rope_theta", 160000.0))
- else:
- base = _nested_rope_theta(cfg, "sliding_attention")
- if base is None:
- base = getattr(cfg, "local_rope_theta", getattr(cfg, "rope_theta", 10000.0))
-
- inv_freq = 1.0 / (base ** (torch.arange(0, head_dim, 2, device=self._device).float() / head_dim))
-
- pos = position_ids.float()
- freqs = torch.outer(pos, inv_freq) # [total_tokens, head_dim/2]
- emb = torch.cat([freqs, freqs], dim=-1) # [total_tokens, head_dim]
-
- return emb.cos().to(self._resolve_dtype()), emb.sin().to(self._resolve_dtype())
+ return modernbert_rope_cos_sin(
+ position_ids,
+ head_dim=cfg.hidden_size // cfg.num_attention_heads,
+ theta=modernbert_rope_theta(cfg, use_global=use_global),
+ dtype=self._resolve_dtype(),
+ )
def _run_embeddings(self, input_ids: torch.Tensor) -> torch.Tensor:
"""Compute embeddings for packed input (no position embeddings - RoPE in attention)."""
@@ -601,71 +560,20 @@ class ColBERTModernBERTFlashAdapter(PEFTLoRAMixin, FlashBaseAdapter):
patterns. Every ``global_attn_every_n_layers``-th layer (0-indexed)
uses full (global) attention with ``global_rope_theta``; the remaining
layers use sliding-window (local) attention of size
- ``local_attention`` with ``local_rope_theta``.
+ ``local_attention`` with ``local_rope_theta``. See
+ ``sie_server.adapters._modernbert_flash.run_modernbert_flash_layers``.
"""
- from flash_attn import flash_attn_varlen_func
-
- cfg = self._model.config
- num_heads = cfg.num_attention_heads
- hidden_size = cfg.hidden_size
- head_dim = hidden_size // num_heads
- softmax_scale = 1.0 / (head_dim**0.5)
-
- global_every_n = getattr(cfg, "global_attn_every_n_layers", 1)
- local_window = getattr(cfg, "local_attention", -1)
- # flash_attn_varlen_func expects window_size as (left, right) tuple
- window = (local_window // 2, local_window // 2) if local_window > 0 else (-1, -1)
-
- for layer_idx, layer in enumerate(self._model.layers):
- is_global = (layer_idx % global_every_n == 0) if global_every_n > 1 else True
- cos = global_cos if is_global else local_cos
- sin = global_sin if is_global else local_sin
-
- # Pre-attention norm (ModernBERT is pre-norm)
- normed_hidden = layer.attn_norm(hidden)
-
- # Fused QKV projection
- qkv = layer.attn.Wqkv(normed_hidden)
- qkv = qkv.view(total_tokens, 3, num_heads, head_dim)
- query = qkv[:, 0] # [total_tokens, num_heads, head_dim]
- key = qkv[:, 1]
- value = qkv[:, 2]
-
- # Apply RoPE to Q and K (using layer-appropriate theta)
- query, key = apply_rotary_pos_emb(query, key, cos, sin)
-
- # Flash attention — global layers use full attention,
- # local layers use sliding window
- attn_kwargs: dict[str, Any] = {}
- if not is_global and local_window > 0:
- attn_kwargs["window_size"] = window
-
- attn_out = flash_attn_varlen_func(
- query,
- key,
- value,
- cu_seqlens_q=cu_seqlens,
- cu_seqlens_k=cu_seqlens,
- max_seqlen_q=max_seqlen,
- max_seqlen_k=max_seqlen,
- causal=False,
- softmax_scale=softmax_scale,
- **attn_kwargs,
- )
- attn_out = attn_out.reshape(total_tokens, hidden_size)
-
- # Output projection
- attn_out = layer.attn.Wo(attn_out)
-
- # Residual connection
- hidden = hidden + attn_out
-
- # MLP block with pre-norm
- normed_hidden = layer.mlp_norm(hidden)
- mlp_out = layer.mlp(normed_hidden)
- hidden = hidden + mlp_out
-
- return hidden
+ return run_modernbert_flash_layers(
+ self._model,
+ hidden,
+ cu_seqlens,
+ max_seqlen,
+ total_tokens,
+ global_cos,
+ global_sin,
+ local_cos,
+ local_sin,
+ )
def _split_embeddings(
self,
diff --git a/packages/sie_server/src/sie_server/adapters/laya/__init__.py b/packages/sie_server/src/sie_server/adapters/laya/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/packages/sie_server/src/sie_server/adapters/laya/adapter.py b/packages/sie_server/src/sie_server/adapters/laya/adapter.py
new file mode 100644
index 000000000..43daf19f6
--- /dev/null
+++ b/packages/sie_server/src/sie_server/adapters/laya/adapter.py
@@ -0,0 +1,650 @@
+"""Laya typed-decision adapter (``extract``).
+
+Laya is a non-generative decision model: given a *state* (text, or a JSON dict
+or conversation list) and typed questions — ``choice`` (pick one of N options),
+``noul`` (yes/no), ``score`` (ordinal rubric) — it returns answer distributions
+from one encoder row per (state, question) pair. They are temperature-calibrated
+when the checkpoint ships calibration temperatures; ``laya-multilingual`` ships
+none, so its probabilities are the raw softmax.
+
+Request contract:
+
+* Each extract item is one state: ``Item(text=...)``, or
+ ``Item(metadata={"state": <dict | list | str>})`` for structured states. Dict
+ states are serialized with ``json.dumps(ensure_ascii=False)``; list states
+ (chronological turns) are truncated from the left so the newest turn survives.
+* ``output_schema`` is Laya's native question mapping
+ ``{question_id: {"type", "instructions", "criteria", "labels"?}}``; answers come
+ back in ``data[question_id]``.
+* Alternatively ``labels=[...]`` (with an optional ``instruction`` as the question
+ text) runs one ``choice`` question over the labels and returns every label's
+ probability in ``classifications``, like the other zero-shot classifiers.
+* Limits, checked before anything is tokenized: at most ``MAX_QUESTIONS`` (64)
+ questions and ``MAX_OPTIONS`` (1024) answer options or labels per request, and
+ at most ``MAX_ITEM_TOKENS`` (32768) tokens per item, counted as questions x
+ ``max_len``: 32 questions at ``max_len`` 1024, 64 at 512. A caller-set
+ ``head_max_len`` must not exceed ``max_len``.
+* Long inputs: a row reads at most ``max_len`` tokens, so before tokenizing,
+ states are cut to 32 UTF-8 bytes per token the row can use and instructions
+ and options to 16 (JSON states are rendered only that far). Rows equal the
+ reference's for inputs within those budgets and for longer text in any
+ script. A longer text that averages more bytes per token than its budget over
+ the cut can keep fewer tokens than the reference would; that takes long runs
+ of one character, which ModernBERT merges into tokens of up to 512 characters.
+
+Metering counts every row the model encodes: an item's input tokens are the sum
+of its (state, question) row lengths, so cost scales with items x questions.
+"""
+
+from __future__ import annotations
+
+import json
+import logging
+import math
+from collections.abc import Iterator, Mapping, Sequence
+from itertools import chain, islice
+from pathlib import Path
+from typing import TYPE_CHECKING, Any, ClassVar
+
+import numpy as np
+import torch
+from huggingface_hub import snapshot_download
+
+from sie_server.adapters._base_adapter import BaseAdapter
+from sie_server.adapters._spec import AdapterSpec
+from sie_server.adapters._types import ERR_NOT_LOADED, ComputePrecision
+from sie_server.adapters.laya.model import LayaDecisionHead, LayaModel, apply_rope_parameters, split_checkpoint
+from sie_server.adapters.laya.questions import (
+ QTYPES,
+ STATE_BYTES_PER_TOKEN,
+ Calibration,
+ Question,
+ QuestionPrefix,
+ assemble_row,
+ build_prefixes,
+ calibrated_probs,
+ clip_text,
+ decode_answer,
+ parse_questions,
+ serialize_state,
+ shown,
+)
+from sie_server.core.inference_output import ExtractItemError, ExtractOutput
+from sie_server.types.inputs import InvalidInputError, Item
+from sie_server.types.responses import Classification, ErrorCode
+
+if TYPE_CHECKING:
+ from transformers import PreTrainedTokenizerFast
+
+logger = logging.getLogger(__name__)
+
+# Files a Laya checkpoint needs; the Hub repos also carry README assets and eval
+# artifacts that serving never reads.
+_CHECKPOINT_FILES = ("rl_agent_config.json", "model.safetensors", "tokenizer/*", "encoder/*")
+# Token-embedding table in the encoder state dict.
+_EMBEDDING_KEY = "embeddings.tok_embeddings.weight"
+
+# Batching-cost estimate: characters per row token. A row holds at most max_len
+# tokens, so state or question text beyond max_len * this many characters is
+# truncated away and adds no work.
+_COST_CHARS_PER_TOKEN = 4
+
+# Upper bound on questions per request. Every question adds one full encoder row
+# per state, so an unbounded mapping is an uncapped compute vector (the upstream
+# laya HTTP server applies the same limit).
+MAX_QUESTIONS = 64
+# Upper bound on answer options (or labels) across a request's questions, checked
+# before anything is tokenized.
+MAX_OPTIONS = 1024
+# Upper bound on the row tokens one item can occupy: questions x max_len (one row
+# of up to max_len tokens per question). A queue batch of items has to finish well
+# inside the work queue's acknowledgement window; this allows 32 questions per
+# item at max_len 1024, and all 64 at 512.
+MAX_ITEM_TOKENS = 32_768
+
+DEFAULT_LABELS_INSTRUCTION = "Which category does this text belong to?"
+_MIN_BF16_MAJOR = 8 # Ampere
+_LABELS_QUESTION_ID = "label"
+
+_ERR_NO_QUESTIONS = (
+ "Laya requires typed questions in output_schema ({question_id: {type, instructions, criteria}}) "
+ "or classification labels"
+)
+_ERR_SCHEMA_AND_LABELS = "Laya takes either output_schema (typed questions) or labels, not both"
+_ERR_SCHEMA_AND_INSTRUCTION = (
+ "Laya reads each question's own 'instructions' from output_schema; the request-level instruction "
+ "applies only to labels"
+)
+_ERR_STATE = (
+ "Laya items need a state: text, or metadata.state holding a string, a JSON object, or a list of turns (not both)"
+)
+_ERR_STATE_JSON = "Laya metadata.state must be JSON-serializable"
+_ERR_TOO_MANY_OPTIONS = "Laya accepts at most {limit} {what} per request, got {count}"
+
+
+class LayaAdapter(BaseAdapter):
+ """Adapter for Laya decision models (``convaiinnovations/laya`` family)."""
+
+ spec: ClassVar[AdapterSpec] = AdapterSpec(
+ inputs=("text",),
+ outputs=("json",),
+ unload_fields=("_model", "_tokenizer"),
+ )
+
+ def __init__(
+ self,
+ model_name_or_path: str | Path,
+ *,
+ max_seq_length: int | None = None,
+ max_forward_tokens: int = 16384,
+ compute_precision: ComputePrecision = "bfloat16",
+ revision: str | None = None,
+ **kwargs: Any,
+ ) -> None:
+ """Initialize the adapter.
+
+ Args:
+ model_name_or_path: Hugging Face repo id or local checkpoint directory
+ (``rl_agent_config.json``, ``model.safetensors``, ``tokenizer/``, ``encoder/``).
+ max_seq_length: Upper bound on tokens per (state, question) row. Defaults
+ to the checkpoint's trained ``max_len``.
+ max_forward_tokens: Padded-token budget per forward pass; rows beyond it
+ run in further passes.
+ compute_precision: Projection precision on CUDA (``bfloat16`` matches
+ the reference autocast). CPU and MPS always run float32.
+ revision: Hugging Face revision (commit SHA) to pin.
+ **kwargs: Additional loader arguments (ignored).
+ """
+ _ = kwargs
+ self._model_name_or_path = str(model_name_or_path)
+ self._max_seq_length = max_seq_length
+ self._max_forward_tokens = max(1, int(max_forward_tokens))
+ self._compute_precision = compute_precision
+ self._revision = revision
+
+ self._model: LayaModel | None = None
+ self._tokenizer: PreTrainedTokenizerFast | None = None
+ self._device: str | None = None
+ self._calibration = Calibration(temperature=(1.0, 1.0, 1.0), temperature_by_options={})
+ self._max_len = 512
+ self._head_max_len = 192
+
+ # ------------------------------------------------------------------ loading
+
+ def _checkpoint_dir(self) -> Path:
+ path = Path(self._model_name_or_path)
+ if path.is_dir():
+ return path
+ return Path(
+ snapshot_download(
+ repo_id=self._model_name_or_path,
+ revision=self._revision,
+ allow_patterns=list(_CHECKPOINT_FILES),
+ )
+ )
+
+ @staticmethod
+ def _load_tokenizer(tokenizer_dir: Path) -> PreTrainedTokenizerFast:
+ """Load the checkpoint tokenizer without rewriting any cached file.
+
+ The checkpoints were saved by transformers 5. Their configs name
+ ``PreTrainedTokenizerFast`` (so the class is loaded directly), and the
+ mmBERT tokenizer stores ``extra_special_tokens`` as a list, which
+ transformers 4.x cannot read; it is passed as the equivalent mapping.
+ """
+ from transformers import PreTrainedTokenizerFast
+
+ overrides: dict[str, Any] = {}
+ with (tokenizer_dir / "tokenizer_config.json").open(encoding="utf-8") as f:
+ tokenizer_config = json.load(f)
+ extra = tokenizer_config.get("extra_special_tokens")
+ if isinstance(extra, list):
+ overrides["extra_special_tokens"] = {f"extra_{i}": token for i, token in enumerate(extra)}
+ return PreTrainedTokenizerFast.from_pretrained(str(tokenizer_dir), **overrides)
+
+ def _resolve_compute(self, device: str) -> tuple[bool, torch.dtype]:
+ """Pick the backbone path and projection dtype for ``device``."""
+ if not device.startswith("cuda"):
+ # The reference runs float32 off-CUDA; reduced precision on CPU is slower and lossy.
+ return False, torch.float32
+ dtype = self._resolve_dtype()
+ if dtype == torch.bfloat16 and torch.cuda.get_device_capability(torch.device(device))[0] < _MIN_BF16_MAJOR:
+ dtype = torch.float16 # pre-Ampere GPUs have no fast bf16 (the reference does the same)
+ if dtype == torch.float32:
+ return False, dtype # flash attention has no float32 kernels
+ from sie_server.core.inference import is_flash_attention_available
+
+ return is_flash_attention_available(device), dtype
+
+ def load(self, device: str) -> None:
+ """Load the checkpoint onto ``device``."""
+ from safetensors.torch import load_file
+ from transformers import AutoConfig, AutoModel
+
+ try:
+ from transformers.initialization import no_init_weights # ty: ignore[unresolved-import]
+ except ImportError: # transformers 4.x
+ from transformers.modeling_utils import no_init_weights
+
+ checkpoint_dir = self._checkpoint_dir()
+ with (checkpoint_dir / "rl_agent_config.json").open(encoding="utf-8") as f:
+ cfg = json.load(f)
+
+ trained_max_len = int(cfg.get("max_len", 512))
+ self._max_len = min(trained_max_len, self._max_seq_length) if self._max_seq_length else trained_max_len
+ self._head_max_len = int(cfg.get("head_max_len", 192))
+ self._calibration = Calibration.from_config(cfg)
+
+ tokenizer = self._load_tokenizer(checkpoint_dir / "tokenizer")
+
+ encoder_config = AutoConfig.from_pretrained(str(checkpoint_dir / "encoder"))
+ apply_rope_parameters(encoder_config)
+ encoder_config.reference_compile = False
+ with no_init_weights():
+ encoder = AutoModel.from_config(encoder_config, attn_implementation="sdpa")
+ head = LayaDecisionHead(encoder_config.hidden_size, int(cfg.get("head_layers", 2)))
+
+ encoder_weights, head_weights = split_checkpoint(load_file(str(checkpoint_dir / "model.safetensors")))
+ encoder.load_state_dict(encoder_weights, strict=True)
+ head.load_state_dict(head_weights, strict=True)
+ embedding_dtype = encoder_weights[_EMBEDDING_KEY].dtype
+ del encoder_weights, head_weights
+
+ use_flash, compute_dtype = self._resolve_compute(device)
+ model = LayaModel(encoder, head)
+ model.prepare(
+ device,
+ use_flash=use_flash,
+ compute_dtype=compute_dtype,
+ max_positions=self._max_len,
+ embedding_dtype=embedding_dtype,
+ )
+
+ self._tokenizer = tokenizer
+ self._model = model
+ self._device = device
+ logger.info(
+ "Loaded Laya %s on %s (backbone=%s, compute=%s, max_len=%d, head_max_len=%d)",
+ self._model_name_or_path,
+ device,
+ "flash-varlen" if use_flash else "sdpa",
+ compute_dtype,
+ self._max_len,
+ self._head_max_len,
+ )
+
+ def warmup(self) -> None:
+ """Run one tiny decision to initialize kernels."""
+ self.extract(
+ [Item(text="warmup")],
+ output_schema={"warmup": {"type": "noul", "instructions": "Is this a warmup?"}},
+ )
+
+ # ------------------------------------------------------------------ request parsing
+
+ def _resolve_questions(
+ self,
+ labels: list[str] | None,
+ output_schema: dict[str, Any] | None,
+ instruction: str | None,
+ ) -> tuple[list[Question], list[str] | None]:
+ """Return (questions, caller labels); the labels are None unless ``labels`` drives the request.
+
+ In labels mode the model reads each label with surrounding whitespace
+ stripped, while ``classifications`` echo the caller's labels unchanged.
+ """
+ if output_schema is not None:
+ if labels:
+ raise InvalidInputError(_ERR_SCHEMA_AND_LABELS)
+ if instruction is not None:
+ raise InvalidInputError(_ERR_SCHEMA_AND_INSTRUCTION)
+ if not isinstance(output_schema, Mapping):
+ raise InvalidInputError("Laya output_schema must map question ids to question definitions")
+ if not output_schema:
+ raise InvalidInputError(_ERR_NO_QUESTIONS)
+ if len(output_schema) > MAX_QUESTIONS:
+ raise InvalidInputError(
+ f"Laya accepts at most {MAX_QUESTIONS} questions per request, got {len(output_schema)}"
+ )
+ num_options = sum(_declared_options(qdef) for qdef in output_schema.values())
+ if num_options > MAX_OPTIONS:
+ raise InvalidInputError(
+ _ERR_TOO_MANY_OPTIONS.format(limit=MAX_OPTIONS, what="answer options", count=num_options)
+ )
+ return parse_questions(output_schema), None
+ if not labels:
+ raise InvalidInputError(_ERR_NO_QUESTIONS)
+ if not isinstance(labels, list):
+ raise InvalidInputError("Laya labels must be non-empty strings")
+ if len(labels) > MAX_OPTIONS:
+ raise InvalidInputError(_ERR_TOO_MANY_OPTIONS.format(limit=MAX_OPTIONS, what="labels", count=len(labels)))
+ if any(not isinstance(label, str) or not label.strip() for label in labels):
+ raise InvalidInputError("Laya labels must be non-empty strings")
+ normalized = [label.strip() for label in labels]
+ if len(set(normalized)) != len(normalized):
+ raise InvalidInputError("Laya labels must be unique")
+ question_text = instruction if instruction is not None else DEFAULT_LABELS_INSTRUCTION
+ question = {"type": "choice", "instructions": question_text, "criteria": normalized}
+ return parse_questions({_LABELS_QUESTION_ID: question}), list(labels)
+
+ def _token_budget(self, options: Mapping[str, Any]) -> tuple[int, int]:
+ """Resolve (max_len, head_max_len) from runtime options."""
+ max_len = _positive_int_option(options, "max_len", self._max_len)
+ if max_len > self._max_len:
+ raise InvalidInputError(
+ f"Laya max_len must be at most {self._max_len} for this model, got {shown(max_len)}"
+ )
+ head_max_len = _positive_int_option(options, "head_max_len", self._head_max_len)
+ if options.get("head_max_len") is not None and head_max_len > max_len:
+ raise InvalidInputError(f"Laya head_max_len must be at most max_len ({max_len}), got {shown(head_max_len)}")
+ return max_len, head_max_len
+
+ @staticmethod
+ def _check_item_tokens(num_questions: int, max_len: int) -> None:
+ """Reject requests whose rows could exceed ``MAX_ITEM_TOKENS`` for one item."""
+ if num_questions * max_len > MAX_ITEM_TOKENS:
+ raise InvalidInputError(
+ f"Laya encodes each item once per question, up to max_len={max_len} tokens per row, "
+ f"and accepts at most {MAX_ITEM_TOKENS} tokens per item: send at most "
+ f"{MAX_ITEM_TOKENS // max_len} questions, or a smaller max_len option (got {num_questions} questions)"
+ )
+
+ @staticmethod
+ def _item_state(item: Item, limit: int | None = None) -> tuple[str, bool]:
+ """Return (serialized state, truncate_left) for an item.
+
+ With ``limit``, only the part of the state a row can read is rendered:
+ its first ``limit`` UTF-8 bytes, or its last for a conversation list.
+
+ Raises:
+ InvalidInputError: When the item has no usable state.
+ """
+ metadata = item.metadata or {}
+ has_state = "state" in metadata
+ if has_state == (item.text is not None):
+ raise InvalidInputError(_ERR_STATE)
+ if not has_state:
+ text = item.text or ""
+ return (text if limit is None else clip_text(text, limit)), False
+ state = metadata["state"]
+ if not isinstance(state, (str, Mapping, list)):
+ raise InvalidInputError(_ERR_STATE)
+ # Conversation turns are chronological: keep the newest on truncation.
+ truncate_left = isinstance(state, list)
+ try:
+ return serialize_state(state, limit, from_end=truncate_left), truncate_left
+ except Exception as exc: # caller data that cannot be rendered fails only its item
+ raise InvalidInputError(_ERR_STATE_JSON) from exc
+
+ # ------------------------------------------------------------------ extract
+
+ def extract(
+ self,
+ items: list[Item],
+ *,
+ labels: list[str] | None = None,
+ output_schema: dict[str, Any] | None = None,
+ instruction: str | None = None,
+ options: dict[str, Any] | None = None,
+ prepared_items: list[Any] | None = None,
+ ) -> ExtractOutput:
+ """Answer the typed questions (or classify over ``labels``) for every item."""
+ _ = prepared_items
+ model, tokenizer = self._model, self._tokenizer
+ if model is None or tokenizer is None:
+ raise RuntimeError(ERR_NOT_LOADED)
+ opts = options or {}
+ questions, caller_labels = self._resolve_questions(labels, output_schema, instruction)
+ labels_mode = caller_labels is not None
+ threshold = _threshold_option(opts) if labels_mode else 0.0
+ max_len, head_max_len = self._token_budget(opts)
+ self._check_item_tokens(len(questions), max_len)
+
+ state_bytes = self._max_len * STATE_BYTES_PER_TOKEN
+ states: list[tuple[str, bool] | None] = []
+ errors: list[ExtractItemError | None] = []
+ for item in items:
+ try:
+ states.append(self._item_state(item, state_bytes))
+ errors.append(None)
+ except InvalidInputError as exc:
+ states.append(None)
+ errors.append(ExtractItemError(code=ErrorCode.INVALID_INPUT.value, message=str(exc)))
+
+ valid = [i for i, s in enumerate(states) if s is not None]
+ prefixes, rows = self._build_rows(
+ [s for s in states if s is not None], questions, max_len=max_len, head_max_len=head_max_len
+ )
+ logits = self._run_rows(rows, [prefixes[r % len(prefixes)] for r in range(len(rows))]) if rows else []
+
+ data: list[dict[str, Any]] = [{} for _ in items]
+ classifications: list[list[Classification]] = [[] for _ in items]
+ token_counts = [0] * len(items)
+ row = 0
+ for i in valid:
+ answers: dict[str, Any] = {}
+ for prefix in prefixes:
+ q = prefix.question
+ token_counts[i] += len(rows[row])
+ if caller_labels is not None:
+ classifications[i] = _classifications(caller_labels, q, logits[row], self._calibration, threshold)
+ else:
+ answers[q.qid] = decode_answer(q, logits[row], self._calibration)
+ row += 1
+ if not labels_mode:
+ data[i] = answers
+
+ has_errors = any(e is not None for e in errors)
+ return ExtractOutput(
+ entities=[[] for _ in items],
+ classifications=classifications if labels_mode else None,
+ data=None if labels_mode else data,
+ errors=errors if has_errors else None,
+ input_token_counts=token_counts,
+ )
+
+ def _build_rows(
+ self,
+ states: list[tuple[str, bool]],
+ questions: list[Question],
+ *,
+ max_len: int,
+ head_max_len: int,
+ ) -> tuple[list[QuestionPrefix], list[list[int]]]:
+ """Tokenize each question once and each state once, then assemble the rows.
+
+ Returns the question prefixes and one row per (state, question) pair,
+ state-major (row ``s * len(questions) + q``), like the reference batch.
+ """
+ tokenizer = self._tokenizer
+ if tokenizer is None:
+ raise RuntimeError(ERR_NOT_LOADED)
+ mask_token = tokenizer.mask_token
+ state_bytes = self._max_len * STATE_BYTES_PER_TOKEN
+ with self._tokenizer_guard():
+ prefixes = build_prefixes(tokenizer, questions, max_len=max_len, head_max_len=head_max_len)
+ if not prefixes or not states:
+ return prefixes, []
+ texts = [
+ clip_text(text, state_bytes, from_end=truncate_left).replace(mask_token, " ")
+ for text, truncate_left in states
+ ]
+ state_ids = tokenizer(texts, add_special_tokens=False)["input_ids"]
+ rows = [
+ assemble_row(
+ prefix,
+ ids,
+ sep_token_id=tokenizer.sep_token_id,
+ max_len=max_len,
+ truncate_left=truncate_left,
+ )
+ for ids, (_, truncate_left) in zip(state_ids, states, strict=True)
+ for prefix in prefixes
+ ]
+ return prefixes, rows
+
+ def _run_rows(self, rows: list[list[int]], row_prefix: list[QuestionPrefix]) -> list[np.ndarray]:
+ """Score every row's option markers, in token-budgeted chunks of similar length."""
+ model, device, tokenizer = self._model, self._device, self._tokenizer
+ if model is None or device is None or tokenizer is None:
+ raise RuntimeError(ERR_NOT_LOADED)
+ order = sorted(range(len(rows)), key=lambda r: len(rows[r]), reverse=True)
+ results: list[np.ndarray] = [np.empty(0, dtype=np.float32)] * len(rows)
+ start = 0
+ while start < len(order):
+ # Longest row first: the chunk's padded size is len(first) * n_rows.
+ longest = len(rows[order[start]])
+ n = max(1, min(len(order) - start, self._max_forward_tokens // max(1, longest)))
+ chunk = order[start : start + n]
+ chunk_rows = [rows[r] for r in chunk]
+ markers = [row_prefix[r].markers for r in chunk]
+ max_options = max(len(m) for m in markers)
+ marker_pos = torch.zeros((len(chunk), max_options), dtype=torch.long)
+ for j, m in enumerate(markers):
+ marker_pos[j, : len(m)] = torch.tensor(m, dtype=torch.long)
+ qtype = torch.tensor([QTYPES[row_prefix[r].question.qtype] for r in chunk], dtype=torch.long)
+ marker_pos, qtype = marker_pos.to(device), qtype.to(device)
+ with torch.inference_mode():
+ if model.use_flash:
+ out = model.forward_flash(chunk_rows, marker_pos, qtype, device)
+ else:
+ out = model.forward_padded(
+ chunk_rows,
+ marker_pos,
+ qtype,
+ device,
+ pad_token_id=int(tokenizer.pad_token_id),
+ )
+ out_np = out.float().cpu().numpy()
+ for j, r in enumerate(chunk):
+ results[r] = out_np[j, : len(markers[j])]
+ start += n
+ return results
+
+ # ------------------------------------------------------------------ cost
+
+ def extract_item_costs(
+ self,
+ items: list[Item],
+ *,
+ labels: list[str] | None = None,
+ output_schema: dict[str, Any] | None = None,
+ instruction: str | None = None,
+ options: dict[str, Any] | None = None,
+ ) -> list[int] | None:
+ """Batching cost per item: its state characters once per question, plus the question text.
+
+ The model encodes the state again for every question, so the generic
+ per-item character count would undercount a request by its question
+ count. This runs before batching, on the event loop, so it only
+ estimates: structured states and questions are sized by a walk that
+ stops at the characters a row can hold (``max_len`` tokens), without
+ serializing them. Metered ``usage`` counts the rows extract() encodes.
+ Best-effort: never raises (malformed requests fail in extract()).
+ """
+ _ = options
+ row_chars = self._max_len * _COST_CHARS_PER_TOKEN
+ try:
+ if isinstance(output_schema, Mapping):
+ if len(output_schema) > MAX_QUESTIONS:
+ return None # extract() rejects the request
+ num_rows = max(1, len(output_schema))
+ question_chars = _approx_json_chars(output_schema, num_rows * row_chars)
+ else:
+ num_rows = 1
+ label_chars = sum(len(label) for label in islice(labels or [], MAX_OPTIONS) if isinstance(label, str))
+ question_chars = min(label_chars + len(instruction or DEFAULT_LABELS_INSTRUCTION), row_chars)
+ return [num_rows * _state_chars(item, row_chars) + question_chars for item in items]
+ except Exception: # noqa: BLE001 — cost estimation must never fail a request
+ return None
+
+
+_END = object()
+
+
+def _declared_options(qdef: Any) -> int:
+ """Options a raw question definition declares, counted without walking its criteria."""
+ if not isinstance(qdef, Mapping):
+ return 0
+ if qdef.get("type") == "noul":
+ return 2
+ criteria = qdef.get("criteria")
+ return len(criteria) if isinstance(criteria, (Mapping, list)) else 0
+
+
+def _approx_json_chars(value: Any, limit: int) -> int:
+ """Approximate ``len(json.dumps(value))``, capped at ``limit``.
+
+ Visits nested values lazily and stops once the running total reaches
+ ``limit``; every visit adds at least two characters, so the work is bounded
+ by the cap rather than by the size of ``value``.
+ """
+ total = 0
+ stack: list[Iterator[Any]] = [iter((value,))]
+ while stack and total < limit:
+ node = next(stack[-1], _END)
+ if node is _END:
+ stack.pop()
+ elif isinstance(node, str):
+ total += len(node) + 4 # quotes and a separator
+ elif isinstance(node, Mapping):
+ total += 2
+ stack.append(chain.from_iterable(node.items()))
+ elif isinstance(node, (list, tuple)):
+ total += 2
+ stack.append(iter(node))
+ else:
+ total += 6 # a number, boolean, or null
+ return min(total, limit)
+
+
+def _state_chars(item: Item, limit: int) -> int:
+ """Approximate characters of an item's state (text or ``metadata.state``), capped at ``limit``."""
+ metadata = item.metadata or {}
+ if "state" in metadata:
+ state = metadata["state"]
+ return min(len(state), limit) if isinstance(state, str) else _approx_json_chars(state, limit)
+ return min(len(item.text or ""), limit)
+
+
+def _positive_int_option(options: Mapping[str, Any], name: str, default: int) -> int:
+ value = options.get(name)
+ if value is None:
+ return default
+ if isinstance(value, bool) or not isinstance(value, int) or value <= 0:
+ raise InvalidInputError(f"Laya option {name!r} must be a positive integer")
+ return value
+
+
+def _threshold_option(options: Mapping[str, Any]) -> float:
+ value = options.get("threshold", 0.0)
+ if isinstance(value, bool) or not isinstance(value, (int, float)):
+ raise InvalidInputError("Laya threshold must be a finite number between 0 and 1")
+ try:
+ threshold = float(value)
+ except OverflowError: # an int too large for a float
+ threshold = math.inf
+ if not math.isfinite(threshold) or not 0.0 <= threshold <= 1.0:
+ raise InvalidInputError("Laya threshold must be a finite number between 0 and 1")
+ return threshold
+
+
+def _classifications(
+ labels: Sequence[str],
+ q: Question,
+ logits: Sequence[float] | np.ndarray,
+ calibration: Calibration,
+ threshold: float,
+) -> list[Classification]:
+ """Every caller label with its probability, highest first (zero-shot classifier shape).
+
+ ``labels`` are the caller's labels in the order of ``q``'s options.
+ """
+ p = calibrated_probs(np.asarray(logits), q.qtype, calibration)
+ result = [
+ Classification(label=label, score=float(score))
+ for label, score in zip(labels, p, strict=True)
+ if float(score) >= threshold
+ ]
+ result.sort(key=lambda c: c["score"], reverse=True)
+ return result
diff --git a/packages/sie_server/src/sie_server/adapters/laya/model.py b/packages/sie_server/src/sie_server/adapters/laya/model.py
new file mode 100644
index 000000000..8ee305747
--- /dev/null
+++ b/packages/sie_server/src/sie_server/adapters/laya/model.py
@@ -0,0 +1,259 @@
+"""Laya network: a ModernBERT-family encoder followed by a typed decision head.
+
+The checkpoint's ``model.safetensors`` holds ``encoder.*`` (a stock Hugging Face
+``ModernBertModel``), ``head.layers.{0,1}`` (two pre-norm
+``nn.TransformerEncoderLayer``), ``type_emb`` (one embedding per question type),
+and ``scorer`` (LayerNorm -> Linear -> GELU -> Linear -> 1 logit). It also holds
+an ``act_head`` (an escalation classifier) and a ``temperature`` buffer; neither
+is used here — calibration comes from ``rl_agent_config.json``.
+
+Two backbones run the same math:
+
+* ``forward_flash``: CUDA + flash-attn. Rows are packed without padding and the
+ encoder runs ``flash_attn_varlen_func``; the projections run in the compute
+ dtype while the residual stream, layer norms, and embeddings stay in float32,
+ matching the reference forward under bf16 autocast. The encoder output is
+ re-padded for the (small) decision head, which runs its stock modules under
+ autocast exactly like the reference.
+* ``forward_padded``: everything else (CPU, MPS, CUDA without flash-attn). The
+ Hugging Face ``ModernBertModel`` with SDPA attention plus the same head — the
+ reference math, in float32 off-CUDA.
+"""
+
+from __future__ import annotations
+
+from contextlib import AbstractContextManager, nullcontext
+from typing import Any
+
+import torch
+from torch import nn
+
+from sie_server.adapters._flash_pack import build_position_ids
+from sie_server.adapters._modernbert_flash import (
+ modernbert_rope_cos_sin,
+ modernbert_rope_theta,
+ run_modernbert_flash_layers,
+)
+
+ENCODER_PREFIX = "encoder."
+HEAD_PREFIXES = ("head.", "type_emb.", "scorer.")
+# Present in every checkpoint but not used for typed answers.
+UNUSED_PREFIXES = ("act_head.", "temperature")
+
+
+class LayaDecisionHead(nn.Module):
+ """Typed decision head: question-type embedding, full-attention layers, marker scorer."""
+
+ def __init__(self, hidden_size: int, num_layers: int = 2) -> None:
+ super().__init__()
+ nhead = max(1, hidden_size // 64)
+ self.layers = nn.ModuleList(
+ nn.TransformerEncoderLayer(
+ hidden_size, nhead, 4 * hidden_size, dropout=0.1, batch_first=True, norm_first=True
+ )
+ for _ in range(num_layers)
+ )
+ self.type_emb = nn.Embedding(3, hidden_size)
+ self.scorer = nn.Sequential(
+ nn.LayerNorm(hidden_size),
+ nn.Linear(hidden_size, hidden_size),
+ nn.GELU(),
+ nn.Linear(hidden_size, 1),
+ )
+
+ def forward(
+ self,
+ hidden: torch.Tensor,
+ padding_mask: torch.Tensor,
+ qtype: torch.Tensor,
+ marker_pos: torch.Tensor,
+ ) -> torch.Tensor:
+ """Score every option marker.
+
+ Args:
+ hidden: Encoder output ``[rows, seq, hidden]``.
+ padding_mask: ``True`` at padding positions ``[rows, seq]``.
+ qtype: Question type index per row ``[rows]``.
+ marker_pos: Marker positions ``[rows, max_options]`` (padded with 0).
+
+ Returns:
+ Float32 logits ``[rows, max_options]``; entries past a row's option
+ count are meaningless.
+ """
+ h = hidden + self.type_emb(qtype)[:, None, :]
+ for layer in self.layers:
+ h = layer(h, src_key_padding_mask=padding_mask)
+ idx = marker_pos[:, :, None].expand(-1, -1, h.size(-1))
+ return self.scorer(torch.gather(h, 1, idx)).squeeze(-1).float()
+
+
+def split_checkpoint(weights: dict[str, torch.Tensor]) -> tuple[dict[str, torch.Tensor], dict[str, torch.Tensor]]:
+ """Split a Laya ``model.safetensors`` state dict into encoder and head state dicts.
+
+ Raises:
+ ValueError: On a key that belongs to no known component (not a Laya checkpoint).
+ """
+ encoder: dict[str, torch.Tensor] = {}
+ head: dict[str, torch.Tensor] = {}
+ for key, value in weights.items():
+ if key.startswith(ENCODER_PREFIX):
+ encoder[key[len(ENCODER_PREFIX) :]] = value
+ elif key.startswith(HEAD_PREFIXES):
+ head[key.removeprefix("head.")] = value
+ elif not key.startswith(UNUSED_PREFIXES):
+ raise ValueError(f"Unexpected tensor {key!r} in Laya checkpoint")
+ if not encoder or not head:
+ raise ValueError("Laya checkpoint is missing encoder or decision-head weights")
+ return encoder, head
+
+
+def apply_rope_parameters(encoder_config: Any) -> None:
+ """Carry a transformers>=5 ``rope_parameters`` declaration onto the 4.x config attrs.
+
+ transformers 4.x keeps ``rope_parameters`` as an opaque attribute and fills
+ ``global_rope_theta``/``local_rope_theta`` from class defaults (160000 and
+ 10000). mmBERT trains both layer kinds at 160000, so without this its
+ sliding-window layers would silently run the wrong RoPE base.
+ """
+ encoder_config.global_rope_theta = float(modernbert_rope_theta(encoder_config, use_global=True))
+ encoder_config.local_rope_theta = float(modernbert_rope_theta(encoder_config, use_global=False))
+
+
+class LayaModel(nn.Module):
+ """Encoder + decision head with the flash and padded forward paths."""
+
+ def __init__(self, encoder: nn.Module, head: LayaDecisionHead) -> None:
+ super().__init__()
+ # A Hugging Face ModernBertModel (typed loosely: its submodules are read by name).
+ self.encoder: Any = encoder
+ self.head = head
+ self._use_flash = False
+ self._compute_dtype: torch.dtype = torch.float32
+ self._rope: dict[str, tuple[torch.Tensor, torch.Tensor]] = {}
+
+ @property
+ def use_flash(self) -> bool:
+ return self._use_flash
+
+ def prepare(
+ self,
+ device: str,
+ *,
+ use_flash: bool,
+ compute_dtype: torch.dtype,
+ max_positions: int,
+ embedding_dtype: torch.dtype | None = None,
+ ) -> None:
+ """Place the model for the chosen path. Call once after loading weights (float32).
+
+ Args:
+ device: Target device.
+ use_flash: Run the packed flash-attention backbone (CUDA only).
+ compute_dtype: Projection dtype on the flash path.
+ max_positions: Longest row the RoPE tables must cover.
+ embedding_dtype: dtype of the token-embedding table in the checkpoint.
+ On the flash path a float16 or bfloat16 table is kept at that
+ precision, which is lossless because the values came from it;
+ any other table stays float32.
+ """
+ self._use_flash = use_flash
+ self._compute_dtype = compute_dtype
+ if use_flash:
+ # Projections in the compute dtype; norms stay float32 for the float32
+ # residual stream. The embedding lookup is upcast to float32.
+ for module in self.encoder.modules():
+ if isinstance(module, nn.Linear):
+ module.to(compute_dtype)
+ if embedding_dtype in (torch.float16, torch.bfloat16):
+ self.encoder.embeddings.tok_embeddings.to(embedding_dtype)
+ self.to(device)
+ self.eval()
+ if use_flash:
+ cfg = self.encoder.config
+ head_dim = cfg.hidden_size // cfg.num_attention_heads
+ positions = torch.arange(max_positions, device=device)
+ self._rope = {
+ kind: modernbert_rope_cos_sin(
+ positions,
+ head_dim=head_dim,
+ theta=modernbert_rope_theta(cfg, use_global=kind == "global"),
+ dtype=compute_dtype,
+ )
+ for kind in ("global", "local")
+ }
+
+ def autocast(self, device: str) -> AbstractContextManager[Any]:
+ """Autocast context for the forward pass (CUDA reduced precision only)."""
+ if device.startswith("cuda") and self._compute_dtype != torch.float32:
+ return torch.autocast(device_type="cuda", dtype=self._compute_dtype)
+ return nullcontext()
+
+ def forward_flash(
+ self,
+ rows: list[list[int]],
+ marker_pos: torch.Tensor,
+ qtype: torch.Tensor,
+ device: str,
+ ) -> torch.Tensor:
+ """Packed varlen encoder + re-padded decision head. Returns float32 logits ``[rows, max_options]``."""
+ encoder = self.encoder
+ lengths = [len(r) for r in rows]
+ total_tokens = sum(lengths)
+ max_seqlen = max(lengths)
+ num_rows = len(rows)
+
+ flat = [token for row in rows for token in row]
+ input_ids = torch.tensor(flat, dtype=torch.long, device=device)
+ lengths_t = torch.tensor(lengths, dtype=torch.int32, device=device)
+ cu_seqlens = torch.zeros(num_rows + 1, dtype=torch.int32, device=device)
+ cu_seqlens[1:] = torch.cumsum(lengths_t, dim=0)
+ positions = build_position_ids(cu_seqlens, total_tokens=total_tokens)
+
+ embeddings = encoder.embeddings
+ hidden = embeddings.norm(embeddings.tok_embeddings(input_ids).float())
+ global_cos, global_sin = self._rope["global"]
+ local_cos, local_sin = self._rope["local"]
+ hidden = run_modernbert_flash_layers(
+ encoder,
+ hidden,
+ cu_seqlens,
+ max_seqlen,
+ total_tokens,
+ global_cos[positions],
+ global_sin[positions],
+ local_cos[positions],
+ local_sin[positions],
+ compute_dtype=self._compute_dtype,
+ )
+ hidden = encoder.final_norm(hidden)
+
+ # Re-pad for the decision head: its layers attend over every token of a row.
+ row_index = torch.repeat_interleave(
+ torch.arange(num_rows, device=device), lengths_t.long(), output_size=total_tokens
+ )
+ padded = hidden.new_zeros(num_rows, max_seqlen, hidden.shape[-1])
+ padded[row_index, positions] = hidden
+ padding_mask = torch.arange(max_seqlen, device=device)[None, :] >= lengths_t[:, None]
+ with self.autocast(device):
+ return self.head(padded, padding_mask, qtype, marker_pos)
+
+ def forward_padded(
+ self,
+ rows: list[list[int]],
+ marker_pos: torch.Tensor,
+ qtype: torch.Tensor,
+ device: str,
+ pad_token_id: int,
+ ) -> torch.Tensor:
+ """Hugging Face SDPA encoder over a padded batch + decision head (reference math)."""
+ max_seqlen = max(len(r) for r in rows)
+ input_ids = torch.full((len(rows), max_seqlen), pad_token_id, dtype=torch.long)
+ attention_mask = torch.zeros((len(rows), max_seqlen), dtype=torch.long)
+ for i, row in enumerate(rows):
+ input_ids[i, : len(row)] = torch.tensor(row, dtype=torch.long)
+ attention_mask[i, : len(row)] = 1
+ input_ids = input_ids.to(device)
+ attention_mask = attention_mask.to(device)
+ with self.autocast(device):
+ hidden = self.encoder(input_ids=input_ids, attention_mask=attention_mask).last_hidden_state
+ return self.head(hidden, ~attention_mask.bool(), qtype, marker_pos)
diff --git a/packages/sie_server/src/sie_server/adapters/laya/questions.py b/packages/sie_server/src/sie_server/adapters/laya/questions.py
new file mode 100644
index 000000000..5214b5ab9
--- /dev/null
+++ b/packages/sie_server/src/sie_server/adapters/laya/questions.py
@@ -0,0 +1,630 @@
+# Portions of this module are adapted from laya 0.3.11 (laya/common.py and
+# laya/agent.py, https://github.com/NandhaKishorM/laya), Copyright Convai
+# Innovations, licensed under the Apache License, Version 2.0.
+#
+# Changes from the original: question validation, option rendering, sequence
+# assembly, temperature calibration, and answer decoding are split into pure
+# functions; request errors raise the server's InvalidInputError; each
+# question's token prefix is built once and reused for every state instead of
+# re-tokenizing per (state, question) pair; option counts are checked and long
+# texts are cut to the UTF-8 bytes a row can use before anything is tokenized;
+# answers are left unrounded and omit the act head's escalation probability;
+# noul answers add a boolean ``answer``.
+"""Laya typed questions: validation, token sequences, and calibrated decoding.
+
+A Laya request pairs one *state* (text, or JSON-serialized dict/list) with
+typed questions. Every (state, question) pair becomes one encoder row::
+
+ [CLS] "<type> question: <instructions>" [SEP] [MASK] opt0 [MASK] opt1 ... [SEP] state [SEP]
+
+The question part (the *prefix*) does not depend on the state, so it is
+tokenized once per request and shared by every state. Each ``[MASK]`` marks one
+answer option; the decision head scores the hidden state at each marker and a
+softmax over a question's markers gives the answer distribution.
+
+A row keeps only the first (or, for conversation lists, the last) few hundred
+tokens of each text, so texts are cut to a budget of UTF-8 bytes per token the
+row can use before they are tokenized (``STATE_BYTES_PER_TOKEN`` for states,
+``QUESTION_BYTES_PER_TOKEN`` for instructions and options); texts within that
+budget are tokenized whole, exactly like the reference.
+"""
+
+from __future__ import annotations
+
+import json
+import math
+from collections.abc import Iterator, Mapping, Sequence
+from dataclasses import dataclass
+from itertools import islice
+from typing import Any
+
+import numpy as np
+
+from sie_server.types.inputs import InvalidInputError
+
+QTYPES: dict[str, int] = {"choice": 0, "score": 1, "noul": 2}
+QTYPE_NAMES: dict[int, str] = {v: k for k, v in QTYPES.items()}
+
+# Per-option token cap and the head-budget floors used by the reference builder.
+_OPTION_MAX_TOKENS = 48
+_MIN_OPTION_BUDGET = 16
+_MIN_OPTION_TOKENS = 4
+_MIN_HEADER_TOKENS = 8
+
+# UTF-8 bytes kept per token a row can use when a text is cut before tokenizing.
+# These tokenizers emit at most one token per byte, so the cut bounds tokenizer
+# work in any script. Text spends about 1-8 bytes per token (English about 5;
+# CJK, Indic, and Arabic 2-8; emoji and rare CJK down to 1), so a cut at twice
+# that or more past the last token the row keeps leaves those tokens as the
+# whole text would produce them. Only a text made of very long tokens can lose
+# tokens to the cut: ModernBERT's vocabulary merges runs of one character
+# (spaces, "-", "=") into tokens of up to 512 characters. A state is tokenized
+# once per item; instructions and options, up to 64 questions and 1024 options
+# per request, get the tighter budget.
+STATE_BYTES_PER_TOKEN = 32
+QUESTION_BYTES_PER_TOKEN = 16
+
+# Caller data quoted in an error message is cut to this many characters.
+_SHOWN_CHARS = 64
+
+# Calibration temperatures outside this range are clamped (laya 0.3.11): a fitted
+# temperature below 1 sharpens rather than softens, and the shipped ``choice:11+``
+# bucket (0.1006) would turn a 0.24 top probability into 0.99.
+TEMP_MIN = 0.5
+TEMP_MAX = 5.0
+
+_DEFAULT_NOUL_LABELS = {"false": "false", "true": "true"}
+_NOUL_LABELS_ERROR = "noul labels must map exactly 'false' and 'true' to distinct non-empty strings"
+
+
+@dataclass(frozen=True, slots=True)
+class Question:
+ """A validated, normalized question (the reference's internal form).
+
+ Attributes:
+ qid: Question id (the key in the request's question mapping).
+ qtype: ``"choice"``, ``"score"``, or ``"noul"``.
+ instructions: Instruction text (non-string instructions JSON-encoded).
+ criteria: ``dict`` of label -> description for choice, ``list`` of
+ level descriptions for score, optional ``dict`` for noul.
+ labels: Optional noul label wording ``{"false": ..., "true": ...}``.
+ """
+
+ qid: str
+ qtype: str
+ instructions: str
+ criteria: Any
+ labels: Any = None
+
+
+@dataclass(frozen=True, slots=True)
+class QuestionPrefix:
+ """Token ids of one question's state-independent row prefix.
+
+ Attributes:
+ question: The question.
+ ids: ``[CLS] header [SEP] [MASK] opt0 ... [SEP]`` token ids.
+ markers: Positions of the option ``[MASK]`` tokens within ``ids``.
+ """
+
+ question: Question
+ ids: list[int]
+ markers: list[int]
+
+
+def clip_text(text: str, limit: int, *, from_end: bool = False) -> str:
+ """``text``, or the whole characters within its first (``from_end``: last) ``limit`` UTF-8 bytes."""
+ if len(text) * 4 <= limit: # fits even at four bytes per character
+ return text
+ if len(text) > limit: # the cut falls within ``limit`` characters: every character is at least one byte
+ text = text[len(text) - limit :] if from_end else text[:limit]
+ data = text.encode("utf-8", "surrogatepass")
+ if len(data) <= limit:
+ return text # the whole text, or ``limit`` one-byte characters
+ data = data[len(data) - limit :] if from_end else data[:limit]
+ for trim in range(4): # drop the bytes of a character the cut split
+ piece = data[trim:] if from_end else data[: len(data) - trim]
+ try:
+ return piece.decode("utf-8", "surrogatepass")
+ except UnicodeDecodeError:
+ continue
+ return ""
+
+
+def shown(value: Any) -> str:
+ """Caller data for an error message: the repr of a string or scalar, cut to ``_SHOWN_CHARS``."""
+ if isinstance(value, str):
+ text = repr(value[: _SHOWN_CHARS + 1])
+ elif value is None or isinstance(value, (bool, int, float)):
+ try:
+ text = repr(value)
+ except ValueError: # an int past str()'s digit limit
+ return f"<{type(value).__name__}>"
+ else:
+ return f"<{type(value).__name__}>"
+ return text if len(text) <= _SHOWN_CHARS + 2 else text[:_SHOWN_CHARS] + "..."
+
+
+def _shown_keys(mapping: Mapping[Any, Any], count: int = 3) -> str:
+ """The first ``count`` keys of ``mapping`` for an error message, noting how many there are."""
+ keys = ", ".join(shown(key) for key in islice(mapping, count))
+ return f"[{keys}]" if len(mapping) <= count else f"[{keys}, ...] ({len(mapping)} keys)"
+
+
+def _noul_key(key: Any) -> str | None:
+ """A noul criteria key as the reference reads it (``str(key).lower()``), without rendering long keys."""
+ if isinstance(key, str):
+ return key.lower() if len(key) <= len("false") else None
+ if key is None or isinstance(key, (bool, int, float)):
+ return str(key).lower()
+ return None
+
+
+def serialize_state(
+ state: str | Mapping[str, Any] | Sequence[Any], limit: int | None = None, *, from_end: bool = False
+) -> str:
+ """Render a state as the text the encoder reads (JSON for structured states).
+
+ With ``limit``, returns only the whole characters within the first
+ (``from_end``: last) ``limit`` UTF-8 bytes of that text, exactly as they
+ appear in the full rendering, without rendering the rest.
+ """
+ if isinstance(state, str):
+ return state if limit is None else clip_text(state, limit, from_end=from_end)
+ if limit is None:
+ return json.dumps(state, ensure_ascii=False)
+ return _bounded_json(state, limit, from_end=from_end, default_str=False)
+
+
+def render_criterion(value: Any, limit: int | None = None) -> str:
+ """Render one criterion value: strings pass through, anything else becomes compact JSON.
+
+ With ``limit``, structured values render only their first ``limit`` UTF-8 bytes.
+ """
+ if isinstance(value, str):
+ return value
+ if limit is None:
+ return json.dumps(value, ensure_ascii=False, separators=(", ", ": "), default=str)
+ return _bounded_json(value, limit, from_end=False, default_str=True)
+
+
+class _Raw(str):
+ """JSON punctuation or an encoded key, emitted as is (not a value to encode)."""
+
+ __slots__ = ()
+
+
+_END = object()
+
+
+def _bounded_json(value: Any, limit: int, *, from_end: bool, default_str: bool) -> str:
+ """The first (``from_end``: last) ``limit`` UTF-8 bytes of ``json.dumps(value, ensure_ascii=False)``.
+
+ Walks ``value`` lazily from the chosen end and stops once ``limit``
+ characters (so at least ``limit`` bytes) are out, so the work is bounded by
+ ``limit`` rather than by the size of ``value``. ``default_str`` encodes unsupported values as ``str()``,
+ like ``json.dumps(default=str)``; otherwise they raise TypeError, as do keys
+ JSON cannot encode.
+ """
+ parts: list[str] = []
+ size = 0
+ for chunk in _json_chunks(value, limit, from_end=from_end, default_str=default_str):
+ parts.append(chunk)
+ size += len(chunk)
+ if size >= limit:
+ break
+ if from_end:
+ parts.reverse()
+ return clip_text("".join(parts), limit, from_end=from_end)
+
+
+def _json_chunks(value: Any, limit: int, *, from_end: bool, default_str: bool) -> Iterator[str]:
+ """``json.dumps(value, ensure_ascii=False)`` in chunks, front to back (``from_end``: back to front).
+
+ A string longer than ``limit`` is emitted as only its ``limit`` characters
+ on the reading side, which alone fills the budget.
+ """
+ stack: list[Iterator[Any]] = [iter((value,))]
+ while stack:
+ node = next(stack[-1], _END)
+ if node is _END:
+ stack.pop()
+ elif isinstance(node, _Raw):
+ yield node
+ elif isinstance(node, str):
+ yield _json_string(node, limit, from_end=from_end)
+ elif node is None or isinstance(node, (bool, int, float)):
+ yield json.dumps(node)
+ elif isinstance(node, dict):
+ stack.append(_dict_chunks(node, limit, from_end=from_end))
+ elif isinstance(node, (list, tuple)):
+ stack.append(_list_chunks(node, from_end=from_end))
+ elif default_str:
+ yield _json_string(str(node), limit, from_end=from_end)
+ else:
+ msg = f"Object of type {type(node).__name__} is not JSON serializable"
+ raise TypeError(msg)
+
+
+def _json_string(text: str, limit: int, *, from_end: bool) -> str:
+ """A JSON string literal; past ``limit`` characters, only the cut side's quote-less part."""
+ if len(text) <= limit:
+ return json.dumps(text, ensure_ascii=False)
+ if from_end:
+ return json.dumps(text[len(text) - limit :], ensure_ascii=False)[1:]
+ return json.dumps(text[:limit], ensure_ascii=False)[:-1]
+
+
+def _json_key(key: Any, limit: int, *, from_end: bool) -> _Raw:
+ """A dict key as JSON writes it (str, or a number, boolean, or null converted to a string)."""
+ if not isinstance(key, str):
+ if key is not None and not isinstance(key, (bool, int, float)):
+ msg = f"keys must be str, int, float, bool or None, not {type(key).__name__}"
+ raise TypeError(msg)
+ key = json.dumps(key)
+ return _Raw(_json_string(key, limit, from_end=from_end))
+
+
+def _dict_chunks(mapping: dict[Any, Any], limit: int, *, from_end: bool) -> Iterator[Any]:
+ yield _Raw("}" if from_end else "{")
+ items = reversed(mapping.items()) if from_end else iter(mapping.items())
+ for n, (key, item) in enumerate(items):
+ if n:
+ yield _Raw(", ")
+ if from_end:
+ yield item
+ yield _Raw(": ")
+ yield _json_key(key, limit, from_end=True)
+ else:
+ yield _json_key(key, limit, from_end=False)
+ yield _Raw(": ")
+ yield item
+ yield _Raw("{" if from_end else "}")
+
+
+def _list_chunks(values: Sequence[Any], *, from_end: bool) -> Iterator[Any]:
+ yield _Raw("]" if from_end else "[")
+ for n, item in enumerate(reversed(values) if from_end else values):
+ if n:
+ yield _Raw(", ")
+ yield item
+ yield _Raw("[" if from_end else "]")
+
+
+def resolve_noul_labels(labels: Any = None) -> tuple[str, str]:
+ """Return the (false, true) option wording for a noul question."""
+ if labels is None:
+ labels = _DEFAULT_NOUL_LABELS
+ if not isinstance(labels, Mapping) or len(labels) != 2 or set(labels) != {"false", "true"}:
+ raise InvalidInputError(_NOUL_LABELS_ERROR)
+ false_label, true_label = labels["false"], labels["true"]
+ if not isinstance(false_label, str) or not isinstance(true_label, str):
+ raise InvalidInputError(_NOUL_LABELS_ERROR)
+ false_label, true_label = false_label.strip(), true_label.strip()
+ if not false_label or not true_label or false_label == true_label:
+ raise InvalidInputError(_NOUL_LABELS_ERROR)
+ return false_label, true_label
+
+
+def check_question(qid: str, qdef: Any) -> None:
+ """Reject a question that cannot be answered, naming it and what to fix."""
+ if not isinstance(qdef, Mapping):
+ raise InvalidInputError(f"question {shown(qid)}: definition must be a dict, got {type(qdef).__name__}")
+ t = qdef.get("type")
+ if not isinstance(t, str) or t not in QTYPES:
+ raise InvalidInputError(f"question {shown(qid)}: unknown type {shown(t)}; use one of {sorted(QTYPES)}")
+ if "instructions" not in qdef:
+ raise InvalidInputError(f"question {shown(qid)}: no 'instructions'; add the text the model should answer")
+ crit = qdef.get("criteria")
+ if t == "choice":
+ if not isinstance(crit, (Mapping, list)):
+ raise InvalidInputError(
+ f"question {shown(qid)}: a choice question takes 'criteria' as a dict of "
+ "label -> description, or a list of labels"
+ )
+ if not crit:
+ raise InvalidInputError(f"question {shown(qid)}: a choice question needs at least one criterion")
+ if isinstance(crit, list) and any(not isinstance(label, str) for label in crit):
+ # The reference fails later with a TypeError deep in tokenization.
+ raise InvalidInputError(f"question {shown(qid)}: a choice question's list criteria must be strings")
+ if isinstance(crit, Mapping) and any(not isinstance(label, str) for label in crit):
+ # Possible from msgpack; the label is the option text the model reads.
+ raise InvalidInputError(f"question {shown(qid)}: a choice question's criteria labels must be strings")
+ elif t == "score":
+ if not isinstance(crit, list):
+ raise InvalidInputError(
+ f"question {shown(qid)}: a score question takes 'criteria' as a list of level descriptions, index 0 first"
+ )
+ if not crit:
+ raise InvalidInputError(f"question {shown(qid)}: a score question needs at least one level")
+ elif crit is not None and not isinstance(crit, Mapping):
+ raise InvalidInputError(
+ f"question {shown(qid)}: a noul question takes 'criteria' as a dict with optional "
+ "'true'/'false' descriptions, or omits it"
+ )
+ elif isinstance(crit, Mapping):
+ # At most two keys, checked before any key is read.
+ if len(crit) > 2 or any(_noul_key(k) not in ("true", "false") for k in crit):
+ raise InvalidInputError(
+ f"question {shown(qid)}: a noul question takes 'criteria' keyed only 'true'/'false' (either "
+ f"or both, and omitted is fine), got {_shown_keys(crit)}. Those keys are the option texts the model "
+ "reads; any other key was silently dropped and replaced with the defaults. If you "
+ "want the answer worded differently, keep 'criteria' keyed 'true'/'false' and set "
+ "'labels' instead."
+ )
+ if "labels" in qdef:
+ if t != "noul":
+ raise InvalidInputError(f"question {shown(qid)}: 'labels' is only supported for noul questions")
+ try:
+ resolve_noul_labels(qdef["labels"])
+ except InvalidInputError as e:
+ raise InvalidInputError(f"question {shown(qid)}: {e}") from e
+
+
+def normalize_question(qid: str, qdef: Mapping[str, Any]) -> Question:
+ """Convert a validated question definition to its internal form."""
+ t = qdef["type"]
+ crit = qdef.get("criteria")
+ if t == "choice" and isinstance(crit, list):
+ crit = dict.fromkeys(crit)
+ elif t == "choice" and isinstance(crit, Mapping):
+ crit = dict(crit.items())
+ elif t == "noul" and isinstance(crit, Mapping):
+ crit = {str(k).lower(): v for k, v in crit.items()}
+ ins = qdef["instructions"]
+ if not isinstance(ins, str):
+ try:
+ ins = json.dumps(ins, ensure_ascii=False)
+ except (TypeError, ValueError) as e:
+ raise InvalidInputError(
+ f"question {shown(qid)}: 'instructions' must be a string or JSON-serializable"
+ ) from e
+ return Question(qid=qid, qtype=t, instructions=ins, criteria=crit, labels=qdef.get("labels"))
+
+
+def parse_questions(questions: Mapping[str, Any]) -> list[Question]:
+ """Validate and normalize a question mapping, preserving its order."""
+ if not isinstance(questions, Mapping):
+ raise InvalidInputError("Laya questions (output_schema) must be a mapping of question id -> definition")
+ parsed: list[Question] = []
+ for qid, qdef in questions.items():
+ check_question(qid, qdef)
+ parsed.append(normalize_question(qid, qdef))
+ return parsed
+
+
+def option_count(q: Question) -> int:
+ """Number of answer options (markers) a question renders."""
+ return 2 if q.qtype == "noul" else len(q.criteria)
+
+
+def check_options_fit(q: Question, *, max_len: int, head_max_len: int) -> None:
+ """Reject a question whose options can never all be marked within ``max_len``.
+
+ ``[CLS] header [SEP]`` fills at least two positions and each option at least
+ its ``[MASK]``, so more than ``max_len - 2`` options always overflow. This
+ runs before anything is tokenized; the reference reports the same error
+ after tokenizing every option.
+ """
+ if option_count(q) > max_len - 2:
+ raise InvalidInputError(_options_overflow(q, head_max_len))
+
+
+def _options_overflow(q: Question, head_max_len: int) -> str:
+ return f"question {shown(q.qid)} options exceed head_max_len={head_max_len}"
+
+
+def render_options(q: Question, *, limit: int | None = None) -> list[str]:
+ """Render option texts in label-index order. Noul semantic order is always [false, true].
+
+ With ``limit``, structured criteria render only their first ``limit`` characters.
+
+ Raises:
+ InvalidInputError: If a criterion has keys JSON cannot encode (possible from msgpack).
+ """
+ try:
+ return _render_options(q, limit)
+ except TypeError as e:
+ raise InvalidInputError(f"question {shown(q.qid)}: criteria must be JSON-serializable ({e})") from e
+
+
+def _render_options(q: Question, limit: int | None) -> list[str]:
+ crit = q.criteria
+ if q.qtype == "choice":
+ # only None/"" mean "no description"; 0 and False are legitimate criterion values
+ return [k if v is None or v == "" else f"{k}: {render_criterion(v, limit)}" for k, v in crit.items()]
+ if q.qtype == "score":
+ return [f"level {i}: {render_criterion(c, limit)}" for i, c in enumerate(crit)]
+ crit = crit or {}
+ false_label, true_label = resolve_noul_labels(q.labels)
+ false_crit, true_crit = crit.get("false"), crit.get("true")
+ return [
+ false_label
+ + ": "
+ + (render_criterion(false_crit, limit) if false_crit not in (None, "") else "no, the statement does not hold"),
+ true_label
+ + ": "
+ + (render_criterion(true_crit, limit) if true_crit not in (None, "") else "yes, the statement holds"),
+ ]
+
+
+def build_prefixes(
+ tokenizer: Any, questions: Sequence[Question], *, max_len: int, head_max_len: int
+) -> list[QuestionPrefix]:
+ """Tokenize every question into its state-independent row prefix.
+
+ Option counts are checked for every question before anything is tokenized.
+ Headers and options are then tokenized in one batch each, cut to the UTF-8
+ bytes a prefix can use (``QUESTION_BYTES_PER_TOKEN`` per token).
+
+ Raises:
+ InvalidInputError: If a question's options do not fit so that every
+ marker lands inside ``max_len`` (the reference's "options exceed
+ head_max_len" error), or its criteria cannot be rendered.
+ """
+ for q in questions:
+ check_options_fit(q, max_len=max_len, head_max_len=head_max_len)
+ if not questions:
+ return []
+ mask_tok = tokenizer.mask_token
+ option_bytes = _OPTION_MAX_TOKENS * QUESTION_BYTES_PER_TOKEN
+ header_bytes = max(_MIN_HEADER_TOKENS, head_max_len) * QUESTION_BYTES_PER_TOKEN
+ options = [render_options(q, limit=option_bytes) for q in questions]
+ headers = [
+ f"{q.qtype} question: {clip_text(str(q.instructions), header_bytes).replace(mask_tok, ' ')}" for q in questions
+ ]
+ option_texts = [" " + clip_text(opt, option_bytes).replace(mask_tok, " ") for opts in options for opt in opts]
+ header_ids = tokenizer(headers, add_special_tokens=False)["input_ids"]
+ option_ids = iter(tokenizer(option_texts, add_special_tokens=False)["input_ids"])
+ return [
+ _assemble_prefix(
+ tokenizer,
+ q,
+ head_ids,
+ [next(option_ids) for _ in opts],
+ max_len=max_len,
+ head_max_len=head_max_len,
+ )
+ for q, head_ids, opts in zip(questions, header_ids, options, strict=True)
+ ]
+
+
+def build_prefix(tokenizer: Any, q: Question, *, max_len: int, head_max_len: int) -> QuestionPrefix:
+ """Tokenize one question into its state-independent row prefix (see :func:`build_prefixes`)."""
+ return build_prefixes(tokenizer, [q], max_len=max_len, head_max_len=head_max_len)[0]
+
+
+def _assemble_prefix(
+ tokenizer: Any,
+ q: Question,
+ head_ids: Sequence[int],
+ option_ids: Sequence[Sequence[int]],
+ *,
+ max_len: int,
+ head_max_len: int,
+) -> QuestionPrefix:
+ """Fit a question's header and option tokens into the head budget, as the reference does."""
+ opt_ids = [[tokenizer.mask_token_id, *ids[:_OPTION_MAX_TOKENS]] for ids in option_ids]
+ opt_budget = head_max_len - sum(len(o) for o in opt_ids)
+ if opt_budget < _MIN_OPTION_BUDGET:
+ per = max(_MIN_OPTION_TOKENS, (head_max_len - _MIN_OPTION_BUDGET) // max(1, len(opt_ids)))
+ opt_ids = [o[:per] for o in opt_ids]
+ opt_budget = head_max_len - sum(len(o) for o in opt_ids)
+ ids = [tokenizer.cls_token_id, *head_ids[: max(_MIN_HEADER_TOKENS, opt_budget)], tokenizer.sep_token_id]
+ markers: list[int] = []
+ for o in opt_ids:
+ markers.append(len(ids))
+ ids.extend(o)
+ ids.append(tokenizer.sep_token_id)
+ if any(m >= max_len for m in markers):
+ raise InvalidInputError(_options_overflow(q, head_max_len))
+ return QuestionPrefix(question=q, ids=ids, markers=markers)
+
+
+def assemble_row(
+ prefix: QuestionPrefix,
+ state_ids: Sequence[int],
+ *,
+ sep_token_id: int,
+ max_len: int,
+ truncate_left: bool,
+) -> list[int]:
+ """Join a question prefix and a tokenized state into one row, truncating the state to fit."""
+ room = max(0, max_len - len(prefix.ids) - 1)
+ # not state_ids[-room:]: with no room left, [-0:] is the whole state rather than none of it
+ st = state_ids[max(0, len(state_ids) - room) :] if truncate_left else state_ids[:room]
+ return [*prefix.ids, *st, sep_token_id][:max_len]
+
+
+# ---------------------------------------------------------------------------
+# Calibration and decoding
+# ---------------------------------------------------------------------------
+
+
+def clamp_temperature(t: Any, lo: float = TEMP_MIN, hi: float = TEMP_MAX) -> float:
+ """A usable temperature: ``t`` confined to [lo, hi], falling back to 1.0 if it is not a finite number."""
+ try:
+ t = float(t)
+ except (TypeError, ValueError):
+ return 1.0
+ if not math.isfinite(t):
+ return 1.0
+ return min(hi, max(lo, t))
+
+
+def temp_bucket(qtype: str, k: int) -> str:
+ """Calibration bucket key ``<type>:<2|3-5|6-10|11+>`` for a question with ``k`` options."""
+ size = "2" if k <= 2 else "3-5" if k <= 5 else "6-10" if k <= 10 else "11+"
+ return f"{qtype}:{size}"
+
+
+@dataclass(frozen=True, slots=True)
+class Calibration:
+ """Clamped per-type and per-bucket temperatures from ``rl_agent_config.json``."""
+
+ temperature: tuple[float, float, float]
+ temperature_by_options: dict[str, float]
+
+ @classmethod
+ def from_config(cls, cfg: Mapping[str, Any]) -> Calibration:
+ raw = cfg.get("temperature", [1.0, 1.0, 1.0])
+ if not isinstance(raw, Sequence) or isinstance(raw, str) or len(raw) != len(QTYPES):
+ raw = [1.0, 1.0, 1.0]
+ by_options = cfg.get("temperature_by_options") or {}
+ if not isinstance(by_options, Mapping):
+ by_options = {}
+ temps = tuple(clamp_temperature(t) for t in raw)
+ return cls(
+ temperature=(temps[0], temps[1], temps[2]),
+ temperature_by_options={str(k): clamp_temperature(v) for k, v in by_options.items()},
+ )
+
+ def temperature_for(self, qtype: str, k: int) -> float:
+ return self.temperature_by_options.get(temp_bucket(qtype, k), self.temperature[QTYPES[qtype]])
+
+
+def confidence_from_probs(p: np.ndarray, k: int) -> float:
+ """Normalized Shannon entropy confidence: 1 - H(p) / log(k)."""
+ if k < 2:
+ return 1.0
+ p = p[:k]
+ ent = -(p * np.log(np.clip(p, 1e-12, 1.0))).sum()
+ return float(np.clip(1.0 - ent / math.log(k), 0.0, 1.0))
+
+
+def calibrated_probs(logits: np.ndarray, qtype: str, calibration: Calibration) -> np.ndarray:
+ """Temperature-scaled softmax over one question's option logits (float32, like the reference)."""
+ k = len(logits)
+ z = np.asarray(logits, dtype=np.float32) / calibration.temperature_for(qtype, k)
+ p = np.exp(z - z.max())
+ return p / p.sum()
+
+
+def decode_answer(q: Question, logits: np.ndarray, calibration: Calibration) -> dict[str, Any]:
+ """Turn one question's marker logits into its typed answer."""
+ k = len(logits)
+ p = calibrated_probs(logits, q.qtype, calibration)
+ confidence = confidence_from_probs(p, k)
+ if q.qtype == "choice":
+ keys = list(q.criteria.keys())
+ return {
+ "type": "choice",
+ "choice": keys[int(p.argmax())],
+ "probabilities": {key: float(v) for key, v in zip(keys, p, strict=True)},
+ "confidence": confidence,
+ }
+ if q.qtype == "score":
+ return {
+ "type": "score",
+ "score": float((np.arange(k) * p).sum()),
+ "legend": {str(i): c for i, c in enumerate(q.criteria)},
+ "probabilities": {str(i): float(v) for i, v in enumerate(p)},
+ "confidence": confidence,
+ }
+ p_true = float(p[1])
+ return {
+ "type": "noul",
+ "noul": p_true,
+ "answer": bool(p[1] > p[0]),
+ "confidence": max(p_true, 1.0 - p_true),
+ }
diff --git a/packages/sie_server/src/sie_server/adapters/modernbert_flash/__init__.py b/packages/sie_server/src/sie_server/adapters/modernbert_flash/__init__.py
index a23170bee..0b8a5f192 100644
--- a/packages/sie_server/src/sie_server/adapters/modernbert_flash/__init__.py
+++ b/packages/sie_server/src/sie_server/adapters/modernbert_flash/__init__.py
@@ -8,10 +8,14 @@ import torch
from torch.nn import functional
from sie_server.adapters._flash_base import FlashBaseAdapter
+from sie_server.adapters._modernbert_flash import (
+ modernbert_rope_cos_sin,
+ modernbert_rope_theta,
+ run_modernbert_flash_layers,
+)
from sie_server.adapters._spec import AdapterSpec
from sie_server.adapters._types import ERR_NOT_LOADED, ComputePrecision, PoolingStrategy
from sie_server.adapters._utils import (
- apply_rotary_pos_emb,
extract_texts,
resolve_embedding_options,
validate_output_types,
@@ -312,6 +316,9 @@ class ModernBERTFlashAdapter(PEFTLoRAMixin, FlashBaseAdapter):
ModernBERT uses different rope_theta values for global vs local attention
layers: ``global_rope_theta`` (default 160000) for global layers and
``local_rope_theta`` (default 10000) for local (sliding-window) layers.
+ A transformers>=5 nested ``rope_parameters`` declaration takes
+ precedence over the flat attrs when present (see
+ ``sie_server.adapters._modernbert_flash.nested_rope_theta``).
Args:
position_ids: Packed position IDs [total_tokens].
@@ -320,21 +327,13 @@ class ModernBERTFlashAdapter(PEFTLoRAMixin, FlashBaseAdapter):
Returns:
cos, sin tensors of shape [total_tokens, head_dim].
"""
- head_dim = self._model.config.hidden_size // self._model.config.num_attention_heads
cfg = self._model.config
-
- if use_global:
- base = getattr(cfg, "global_rope_theta", getattr(cfg, "rope_theta", 160000.0))
- else:
- base = getattr(cfg, "local_rope_theta", getattr(cfg, "rope_theta", 10000.0))
-
- inv_freq = 1.0 / (base ** (torch.arange(0, head_dim, 2, device=self._device).float() / head_dim))
-
- pos = position_ids.float()
- freqs = torch.outer(pos, inv_freq) # [total_tokens, head_dim/2]
- emb = torch.cat([freqs, freqs], dim=-1) # [total_tokens, head_dim]
-
- return emb.cos().to(self._resolve_dtype()), emb.sin().to(self._resolve_dtype())
+ return modernbert_rope_cos_sin(
+ position_ids,
+ head_dim=cfg.hidden_size // cfg.num_attention_heads,
+ theta=modernbert_rope_theta(cfg, use_global=use_global),
+ dtype=self._resolve_dtype(),
+ )
def _run_embeddings(self, input_ids: torch.Tensor) -> torch.Tensor:
"""Compute embeddings for packed input (no position embeddings — RoPE in attention)."""
@@ -362,75 +361,19 @@ class ModernBERTFlashAdapter(PEFTLoRAMixin, FlashBaseAdapter):
) -> torch.Tensor:
"""Run transformer layers using flash_attn_varlen_func with RoPE.
- ModernBERT uses pre-norm architecture with local/global attention
- patterns. Every ``global_attn_every_n_layers``-th layer (0-indexed)
- uses full (global) attention with ``global_rope_theta``; the remaining
- layers use sliding-window (local) attention of size
- ``local_attention`` with ``local_rope_theta``.
+ See ``sie_server.adapters._modernbert_flash.run_modernbert_flash_layers``.
"""
- from flash_attn import flash_attn_varlen_func # ty: ignore[unresolved-import]
-
- cfg = self._model.config
- num_heads = cfg.num_attention_heads
- hidden_size = cfg.hidden_size
- head_dim = hidden_size // num_heads
- softmax_scale = 1.0 / (head_dim**0.5)
-
- global_every_n = getattr(cfg, "global_attn_every_n_layers", 1)
- local_window = getattr(cfg, "local_attention", -1)
- # flash_attn_varlen_func expects window_size as (left, right) tuple
- window = (local_window // 2, local_window // 2) if local_window > 0 else (-1, -1)
-
- for layer_idx, layer in enumerate(self._model.layers):
- is_global = (layer_idx % global_every_n == 0) if global_every_n > 1 else True
- cos = global_cos if is_global else local_cos
- sin = global_sin if is_global else local_sin
-
- # Pre-attention norm (ModernBERT is pre-norm)
- normed_hidden = layer.attn_norm(hidden)
-
- # Fused QKV projection
- qkv = layer.attn.Wqkv(normed_hidden)
- qkv = qkv.view(total_tokens, 3, num_heads, head_dim)
- query = qkv[:, 0] # [total_tokens, num_heads, head_dim]
- key = qkv[:, 1]
- value = qkv[:, 2]
-
- # Apply RoPE to Q and K (using layer-appropriate theta)
- query, key = apply_rotary_pos_emb(query, key, cos, sin)
-
- # Flash attention — global layers use full attention,
- # local layers use sliding window
- attn_kwargs: dict[str, Any] = {}
- if not is_global and local_window > 0:
- attn_kwargs["window_size"] = window
-
- attn_out = flash_attn_varlen_func(
- query,
- key,
- value,
- cu_seqlens_q=cu_seqlens,
- cu_seqlens_k=cu_seqlens,
- max_seqlen_q=max_seqlen,
- max_seqlen_k=max_seqlen,
- causal=False,
- softmax_scale=softmax_scale,
- **attn_kwargs,
- )
- attn_out = attn_out.reshape(total_tokens, hidden_size)
-
- # Output projection
- attn_out = layer.attn.Wo(attn_out)
-
- # Residual connection
- hidden = hidden + attn_out
-
- # MLP block with pre-norm
- normed_hidden = layer.mlp_norm(hidden)
- mlp_out = layer.mlp(normed_hidden)
- hidden = hidden + mlp_out
-
- return hidden
+ return run_modernbert_flash_layers(
+ self._model,
+ hidden,
+ cu_seqlens,
+ max_seqlen,
+ total_tokens,
+ global_cos,
+ global_sin,
+ local_cos,
+ local_sin,
+ )
def _pool_embeddings(
self,
diff --git a/packages/sie_server/src/sie_server/api/extract.py b/packages/sie_server/src/sie_server/api/extract.py
index 46d6eeaa4..64d3181e2 100644
--- a/packages/sie_server/src/sie_server/api/extract.py
+++ b/packages/sie_server/src/sie_server/api/extract.py
@@ -16,7 +16,7 @@ from sie_server.api.helpers import (
from sie_server.api.options import resolve_runtime_options
from sie_server.api.serialization import MsgPackResponse
from sie_server.api.validation import validate_machine_profile_header
-from sie_server.core.extract_cost import build_extract_prepared_items
+from sie_server.core.extract_cost import adapter_extract_item_costs, build_extract_prepared_items
from sie_server.core.inference_output import ExtractOutput
from sie_server.core.timing import RequestTiming
from sie_server.core.worker import QueueFullError, WorkerResult
@@ -143,7 +143,20 @@ async def _extract_via_worker(
else:
# Text/document model: cost is text characters or document byte size.
# GLiNER/GLiClass tokenize internally; document adapters (Docling) parse internally.
- prepared_items = build_extract_prepared_items(items)
+ # Adapters that run several model rows per item report their own cost.
+ try:
+ adapter = registry.get(model)
+ except (AttributeError, KeyError):
+ adapter = None
+ item_costs = adapter_extract_item_costs(
+ adapter,
+ items,
+ labels=labels,
+ output_schema=output_schema,
+ instruction=instruction,
+ options=options,
+ )
+ prepared_items = build_extract_prepared_items(items, item_costs=item_costs)
timing.end_tokenization()
diff --git a/packages/sie_server/src/sie_server/core/extract_cost.py b/packages/sie_server/src/sie_server/core/extract_cost.py
index 84bacc8b1..c616b8d85 100644
--- a/packages/sie_server/src/sie_server/core/extract_cost.py
+++ b/packages/sie_server/src/sie_server/core/extract_cost.py
@@ -32,7 +32,7 @@ adopt it without coordinating on a calibration table.
from __future__ import annotations
-from typing import TYPE_CHECKING, Final
+from typing import TYPE_CHECKING, Any, Final
from sie_server.core.prepared import ExtractPreparedItem
from sie_server.types.inputs import is_document_input
@@ -89,6 +89,7 @@ def build_extract_prepared_items(
items: list[Item],
*,
decoder_max_output_tokens: int = 0,
+ item_costs: list[int] | None = None,
) -> list[ExtractPreparedItem]:
"""Build PreparedItems for a batch of extract items.
@@ -96,11 +97,50 @@ def build_extract_prepared_items(
for each item — see that function's docstring for the rationale.
Decoder-OCR call sites must pass this; encoder-only call sites
leave it at the default and get the pre-#33 byte-count behaviour.
+
+ ``item_costs`` replaces the per-item input cost when an adapter reports
+ its own (``ModelAdapter.extract_item_costs``), e.g. because it runs one
+ forward row per (item, question) pair. It is ignored unless it holds one
+ non-negative integer per item, so a malformed estimate falls back to the
+ character count rather than mis-sizing a batch.
"""
- return [
- ExtractPreparedItem(
- cost=extract_item_cost(item, decoder_max_output_tokens=decoder_max_output_tokens),
- original_index=i,
- )
- for i, item in enumerate(items)
- ]
+ usable_costs = _usable_item_costs(item_costs, len(items))
+ prepared: list[ExtractPreparedItem] = []
+ for i, item in enumerate(items):
+ if usable_costs is None:
+ cost = extract_item_cost(item, decoder_max_output_tokens=decoder_max_output_tokens)
+ else:
+ cost = usable_costs[i] + max(decoder_max_output_tokens, 0)
+ prepared.append(ExtractPreparedItem(cost=cost, original_index=i))
+ return prepared
+
+
+def adapter_extract_item_costs(
+ adapter: object,
+ items: list[Item],
+ *,
+ labels: list[str] | None = None,
+ output_schema: dict[str, Any] | None = None,
+ instruction: str | None = None,
+ options: dict[str, Any] | None = None,
+) -> list[int] | None:
+ """Ask ``adapter`` for per-item extract costs; ``None`` when it has none or fails."""
+ hook = getattr(adapter, "extract_item_costs", None)
+ if not callable(hook):
+ return None
+ try:
+ costs = hook(items, labels=labels, output_schema=output_schema, instruction=instruction, options=options)
+ except Exception: # noqa: BLE001 — a cost estimate must never fail the request
+ return None
+ return _usable_item_costs(costs, len(items))
+
+
+def _usable_item_costs(costs: object, expected_len: int) -> list[int] | None:
+ if not isinstance(costs, list) or len(costs) != expected_len:
+ return None
+ usable: list[int] = []
+ for cost in costs:
+ if not isinstance(cost, int) or isinstance(cost, bool) or cost < 0:
+ return None
+ usable.append(cost)
+ return usable
diff --git a/packages/sie_server/src/sie_server/queue_executor.py b/packages/sie_server/src/sie_server/queue_executor.py
index e6b44b05e..a734c19f3 100644
--- a/packages/sie_server/src/sie_server/queue_executor.py
+++ b/packages/sie_server/src/sie_server/queue_executor.py
@@ -15,7 +15,7 @@ from sie_sdk._msgpack import packb as pack_msgpack
from sie_server.api.ws import compute_bundle_config_hash_cached
from sie_server.config.model import ModelConfig
from sie_server.core.encode_pipeline import EncodePipeline, resolve_encode_output_types
-from sie_server.core.extract_cost import build_extract_prepared_items
+from sie_server.core.extract_cost import adapter_extract_item_costs, build_extract_prepared_items
from sie_server.core.oom import is_oom_error
from sie_server.core.prepared import AudioPayload, AudioPreparedItem
from sie_server.core.registry import ModelRegistry
@@ -1471,7 +1471,16 @@ class QueueExecutor:
else:
# Batching proxy only; authoritative text/page billing
# comes from the adapter's ExtractOutput unit counts.
- prepared_items = build_extract_prepared_items([server_item])
+ # The sidecar sizes queue batches (cost 1 per extract item); this cost does not.
+ item_costs = adapter_extract_item_costs(
+ extract_adapter,
+ [server_item],
+ labels=bi.labels,
+ output_schema=bi.output_schema,
+ instruction=bi.instruction,
+ options=options,
+ )
+ prepared_items = build_extract_prepared_items([server_item], item_costs=item_costs)
timing.end_tokenization()
lora = self._extract_lora(options)
diff --git a/packages/sie_server/tests/adapters/fixtures/laya/laya-multilingual.json b/packages/sie_server/tests/adapters/fixtures/laya/laya-multilingual.json
new file mode 100644
index 000000000..c6e55876f
--- /dev/null
+++ b/packages/sie_server/tests/adapters/fixtures/laya/laya-multilingual.json
@@ -0,0 +1,9623 @@
+{
+ "generator": "laya reference implementation (pip laya==0.3.11), CPU float32",
+ "environment": {
+ "torch": "2.8.0+cpu",
+ "transformers": "4.57.6"
+ },
+ "repo": "convaiinnovations/laya-multilingual",
+ "revision": "82d57fc4f2d1be3d2caac494045f2ec51d0842f3",
+ "max_len": 1024,
+ "head_max_len": 256,
+ "rl_agent_config": {
+ "temperature": [
+ 1.0,
+ 1.0,
+ 1.0
+ ],
+ "temperature_by_options": {}
+ },
+ "temperature_applied": [
+ 1.0,
+ 1.0,
+ 1.0
+ ],
+ "temperature_by_options_applied": {},
+ "tokenizer": {
+ "mask_token": "<mask>",
+ "mask_token_id": 4,
+ "cls_token_id": 2,
+ "sep_token_id": 1,
+ "pad_token_id": 0
+ },
+ "questions": {
+ "intent": {
+ "type": "choice",
+ "instructions": "What does the customer want?",
+ "criteria": {
+ "refund": "wants money back",
+ "cancel": "wants to cancel",
+ "technical": "reports a bug",
+ "other": null
+ }
+ },
+ "priority": {
+ "type": "choice",
+ "instructions": "Ticket priority",
+ "criteria": [
+ "low",
+ "normal",
+ "urgent"
+ ]
+ },
+ "many": {
+ "type": "choice",
+ "instructions": "Pick the department",
+ "criteria": [
+ "billing",
+ "sales",
+ "support",
+ "legal",
+ "security",
+ "hr",
+ "it",
+ "ops",
+ "finance",
+ "marketing",
+ "product",
+ "design"
+ ]
+ },
+ "refund_requested": {
+ "type": "noul",
+ "instructions": "The customer explicitly requests a refund."
+ },
+ "angry_labels": {
+ "type": "noul",
+ "instructions": "Is the customer angry?",
+ "criteria": {
+ "true": "angry or hostile tone"
+ },
+ "labels": {
+ "false": "calm",
+ "true": "angry"
+ }
+ },
+ "frustration": {
+ "type": "score",
+ "instructions": {
+ "rubric": "How frustrated is the customer?"
+ },
+ "criteria": [
+ "calm",
+ {
+ "desc": "mildly annoyed"
+ },
+ "frustrated",
+ "furious"
+ ]
+ },
+ "crit_values": {
+ "type": "choice",
+ "instructions": "Which channel? [MASK] <mask>",
+ "criteria": {
+ "email": 0,
+ "phone": [
+ "call",
+ "voicemail"
+ ],
+ "chat": {
+ "live": true
+ },
+ "none": ""
+ }
+ },
+ "noul_both": {
+ "type": "noul",
+ "instructions": "Does the text mention money?",
+ "criteria": {
+ "true": "mentions a payment, charge, price or refund",
+ "false": "no money is mentioned"
+ }
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "instructions": "Which of the thirty departments owns this request?",
+ "criteria": {
+ "dept_00": "requests that belong to department number 0 and nowhere else",
+ "dept_01": "requests that belong to department number 1 and nowhere else",
+ "dept_02": "requests that belong to department number 2 and nowhere else",
+ "dept_03": "requests that belong to department number 3 and nowhere else",
+ "dept_04": "requests that belong to department number 4 and nowhere else",
+ "dept_05": "requests that belong to department number 5 and nowhere else",
+ "dept_06": "requests that belong to department number 6 and nowhere else",
+ "dept_07": "requests that belong to department number 7 and nowhere else",
+ "dept_08": "requests that belong to department number 8 and nowhere else",
+ "dept_09": "requests that belong to department number 9 and nowhere else",
+ "dept_10": "requests that belong to department number 10 and nowhere else",
+ "dept_11": "requests that belong to department number 11 and nowhere else",
+ "dept_12": "requests that belong to department number 12 and nowhere else",
+ "dept_13": "requests that belong to department number 13 and nowhere else",
+ "dept_14": "requests that belong to department number 14 and nowhere else",
+ "dept_15": "requests that belong to department number 15 and nowhere else",
+ "dept_16": "requests that belong to department number 16 and nowhere else",
+ "dept_17": "requests that belong to department number 17 and nowhere else",
+ "dept_18": "requests that belong to department number 18 and nowhere else",
+ "dept_19": "requests that belong to department number 19 and nowhere else",
+ "dept_20": "requests that belong to department number 20 and nowhere else",
+ "dept_21": "requests that belong to department number 21 and nowhere else",
+ "dept_22": "requests that belong to department number 22 and nowhere else",
+ "dept_23": "requests that belong to department number 23 and nowhere else",
+ "dept_24": "requests that belong to department number 24 and nowhere else",
+ "dept_25": "requests that belong to department number 25 and nowhere else",
+ "dept_26": "requests that belong to department number 26 and nowhere else",
+ "dept_27": "requests that belong to department number 27 and nowhere else",
+ "dept_28": "requests that belong to department number 28 and nowhere else",
+ "dept_29": "requests that belong to department number 29 and nowhere else"
+ }
+ },
+ "label": {
+ "type": "choice",
+ "instructions": "Which category does this text belong to?",
+ "criteria": [
+ "billing",
+ "technical",
+ "sales",
+ "other"
+ ]
+ }
+ },
+ "cases": [
+ {
+ "name": "plain_email",
+ "state": "Hi, I was charged twice for my subscription this month. Please refund one charge ASAP!",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 51,
+ "sha256": "fc8e295afb73b3e1298732bc78b929a6ed16c1d4f46c768c9bb624d31e610e28",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ 7.908033,
+ -2.280434,
+ -4.148706,
+ -2.554245
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 33,
+ "sha256": "68e8845fceab1caf4f2043888798ac692fe1154ca5930cf3f065857ddd8b14c4",
+ "markers": [
+ 7,
+ 9,
+ 11
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.090867,
+ -0.508059,
+ 1.824569
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 52,
+ "sha256": "25be8086f384280b342b705cc2111050ef038b8b80b61698570a6690573e5be9",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 11.756521,
+ -4.307918,
+ -4.154533,
+ -2.214357,
+ -4.517662,
+ -4.042336,
+ -2.154883,
+ -2.076132,
+ -0.267797,
+ -2.099416,
+ -2.643461,
+ -4.580118
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 51,
+ "sha256": "01fbac7e3ee9ea78e30ed8118fb3dffe319edeae392359a1a95ac3d9ce2f8f58",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ -4.391952,
+ 0.947165
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 48,
+ "sha256": "e963d204eb15a44b56a88a1d924e4ac440ed57cd507dc0660c86b7c6714b43f4",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ -1.018926,
+ 0.264338
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 68,
+ "sha256": "bf588492b96fa703f780050e408619e5dc0d1ff4fce1705a3fa14f1b2e170dc5",
+ "markers": [
+ 17,
+ 23,
+ 36,
+ 42
+ ],
+ "qtype": 1,
+ "logits": [
+ -1.413249,
+ 0.493996,
+ -0.56414,
+ -0.374114
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 58,
+ "sha256": "66202055949e5f979c9ad3e38e01ecadbecd037f8194c52bc6cd5a09d378fd0d",
+ "markers": [
+ 13,
+ 18,
+ 28,
+ 36
+ ],
+ "qtype": 0,
+ "logits": [
+ -3.941235,
+ -0.59555,
+ -1.506399,
+ -2.268553
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 51,
+ "sha256": "6a6b66f93957e666b93b0fccb6f247e55c3bc583a1c20788982670a98b733974",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ -2.943136,
+ -0.275274
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 274,
+ "sha256": "6e71d680f5b4facb0de4358cda82e323cd4b76bb47675d04fd7b1f15b245ea76",
+ "markers": [
+ 14,
+ 22,
+ 30,
+ 38,
+ 46,
+ 54,
+ 62,
+ 70,
+ 78,
+ 86,
+ 94,
+ 102,
+ 110,
+ 118,
+ 126,
+ 134,
+ 142,
+ 150,
+ 158,
+ 166,
+ 174,
+ 182,
+ 190,
+ 198,
+ 206,
+ 214,
+ 222,
+ 230,
+ 238,
+ 246
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.466443,
+ -1.351932,
+ -1.80824,
+ -0.572662,
+ -2.82157,
+ -3.005301,
+ -2.855091,
+ -2.621798,
+ -2.512916,
+ -2.711458,
+ -2.72865,
+ -2.548775,
+ -2.507071,
+ -2.530076,
+ -3.242175,
+ -3.11445,
+ -3.438215,
+ -3.255505,
+ -3.235771,
+ -3.460643,
+ -2.921636,
+ -2.970529,
+ -3.027364,
+ -2.857126,
+ -3.483854,
+ -3.436619,
+ -3.578458,
+ -3.021855,
+ -2.40148,
+ -2.310052
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 41,
+ "sha256": "a0208a3995e1caaa73b2ca849048f796c0fb59a9da1bb6eede12cbacdd119c87",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ 7.230186,
+ -3.547918,
+ -4.045238,
+ -2.113183
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "refund",
+ "probabilities": {
+ "refund": 0.9999,
+ "cancel": 0.0,
+ "technical": 0.0,
+ "other": 0.0
+ },
+ "confidence": 0.9994
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.0178,
+ "normal": 0.0869,
+ "urgent": 0.8953
+ },
+ "confidence": 0.6512
+ },
+ "many": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 1.0,
+ "sales": 0.0,
+ "support": 0.0,
+ "legal": 0.0,
+ "security": 0.0,
+ "hr": 0.0,
+ "it": 0.0,
+ "ops": 0.0,
+ "finance": 0.0,
+ "marketing": 0.0,
+ "product": 0.0,
+ "design": 0.0
+ },
+ "confidence": 0.9999
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.9952,
+ "confidence": 0.9952
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.783,
+ "confidence": 0.783
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.542,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0775,
+ "1": 0.5221,
+ "2": 0.1812,
+ "3": 0.2191
+ },
+ "confidence": 0.149
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "phone",
+ "probabilities": {
+ "email": 0.0217,
+ "phone": 0.6153,
+ "chat": 0.2475,
+ "none": 0.1155
+ },
+ "confidence": 0.2954
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.9351,
+ "confidence": 0.9351
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_03",
+ "probabilities": {
+ "dept_00": 0.0863,
+ "dept_01": 0.0968,
+ "dept_02": 0.0613,
+ "dept_03": 0.2109,
+ "dept_04": 0.0223,
+ "dept_05": 0.0185,
+ "dept_06": 0.0215,
+ "dept_07": 0.0272,
+ "dept_08": 0.0303,
+ "dept_09": 0.0248,
+ "dept_10": 0.0244,
+ "dept_11": 0.0292,
+ "dept_12": 0.0305,
+ "dept_13": 0.0298,
+ "dept_14": 0.0146,
+ "dept_15": 0.0166,
+ "dept_16": 0.012,
+ "dept_17": 0.0144,
+ "dept_18": 0.0147,
+ "dept_19": 0.0117,
+ "dept_20": 0.0201,
+ "dept_21": 0.0192,
+ "dept_22": 0.0181,
+ "dept_23": 0.0215,
+ "dept_24": 0.0115,
+ "dept_25": 0.012,
+ "dept_26": 0.0104,
+ "dept_27": 0.0182,
+ "dept_28": 0.0339,
+ "dept_29": 0.0371
+ },
+ "confidence": 0.1154
+ },
+ "label": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.9999,
+ "technical": 0.0,
+ "sales": 0.0,
+ "other": 0.0001
+ },
+ "confidence": 0.9991
+ }
+ },
+ "input_tokens": 727
+ },
+ {
+ "name": "json_ticket",
+ "state": {
+ "subject": "Login broken",
+ "body": "Since the update I can't log in; error 500.",
+ "customer_tier": "enterprise",
+ "prior_tickets": 3
+ },
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 76,
+ "sha256": "7e81955f3f7b19dec0193fd892980bcd2e7b870034b3b247b318c6021c1bbee3",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ -4.594282,
+ 0.619917,
+ 0.416757,
+ -2.557
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 58,
+ "sha256": "4b456e24777e1de1373df477688a2df26d28b864613a79dc3e7d85df3810d9e8",
+ "markers": [
+ 7,
+ 9,
+ 11
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.927401,
+ -1.695839,
+ 0.250996
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 77,
+ "sha256": "31fb792262ef6a4da8e99261b6dba14fa93d4ee560d87d0de76e80428686c5bc",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ -4.526316,
+ -4.25713,
+ -3.126688,
+ -2.052785,
+ 4.344341,
+ -4.222008,
+ -1.483629,
+ -0.002636,
+ -2.866571,
+ -4.075438,
+ -1.746442,
+ -4.48922
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 76,
+ "sha256": "6ff8c7f9b24e280b3f6ad93a89f9df1d6e249cc5f93b12c60418c6503d526c5f",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ 3.639647,
+ -0.203056
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 73,
+ "sha256": "b9b248ccbc9d462a0a787384a56d39b14fe4ac421f8db837796e28a0a1564e97",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 2.62133,
+ -2.039636
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 93,
+ "sha256": "7e84dceaad4ca58e806071c69965ddfb2cadfb3c8ed7d57edea8c9af97a96bad",
+ "markers": [
+ 17,
+ 23,
+ 36,
+ 42
+ ],
+ "qtype": 1,
+ "logits": [
+ -1.411007,
+ 0.795954,
+ -1.109417,
+ -2.2984
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 83,
+ "sha256": "08f98224d38f506b9371ab1ad490e488137d38fc1bd8b3d6885400c1d349e9a6",
+ "markers": [
+ 13,
+ 18,
+ 28,
+ 36
+ ],
+ "qtype": 0,
+ "logits": [
+ 4.445743,
+ -1.733078,
+ -4.581715,
+ -1.363325
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 76,
+ "sha256": "b616a4d820c50a9172bb7b9f098b462fd75bdd54e7b5449f05513ba0aec7b5f0",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ 0.152639,
+ -1.636454
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 299,
+ "sha256": "97188cdc9b0b73e2f621f9ad510d06c8e3a4124013ce5291f630dcce52314a7a",
+ "markers": [
+ 14,
+ 22,
+ 30,
+ 38,
+ 46,
+ 54,
+ 62,
+ 70,
+ 78,
+ 86,
+ 94,
+ 102,
+ 110,
+ 118,
+ 126,
+ 134,
+ 142,
+ 150,
+ 158,
+ 166,
+ 174,
+ 182,
+ 190,
+ 198,
+ 206,
+ 214,
+ 222,
+ 230,
+ 238,
+ 246
+ ],
+ "qtype": 0,
+ "logits": [
+ -3.348685,
+ -3.719201,
+ -3.722756,
+ -3.35197,
+ -4.202568,
+ -4.138569,
+ -4.029896,
+ -3.831111,
+ -3.891667,
+ -3.912101,
+ -3.510374,
+ -3.950696,
+ -4.150413,
+ -4.392942,
+ -4.534129,
+ -4.527794,
+ -4.525749,
+ -4.461302,
+ -4.452537,
+ -4.488275,
+ -4.302753,
+ -4.315715,
+ -4.357615,
+ -4.393204,
+ -4.526188,
+ -4.558847,
+ -4.564102,
+ -4.500668,
+ -4.516958,
+ -4.310422
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 66,
+ "sha256": "d6dd773c2b39ed8ce7c1ea0cadf05bbebe52a53cca540fcbc9304782e748d43d",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ -3.787313,
+ -0.669019,
+ -3.573743,
+ -2.735865
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "cancel",
+ "probabilities": {
+ "refund": 0.0029,
+ "cancel": 0.5367,
+ "technical": 0.438,
+ "other": 0.0224
+ },
+ "confidence": 0.4246
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.0352,
+ "normal": 0.1205,
+ "urgent": 0.8443
+ },
+ "confidence": 0.5307
+ },
+ "many": {
+ "type": "choice",
+ "choice": "security",
+ "probabilities": {
+ "billing": 0.0001,
+ "sales": 0.0002,
+ "support": 0.0006,
+ "legal": 0.0016,
+ "security": 0.9785,
+ "hr": 0.0002,
+ "it": 0.0029,
+ "ops": 0.0127,
+ "finance": 0.0007,
+ "marketing": 0.0002,
+ "product": 0.0022,
+ "design": 0.0001
+ },
+ "confidence": 0.9459
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.021,
+ "confidence": 0.979
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.0094,
+ "confidence": 0.9906
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.0992,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0844,
+ "1": 0.7668,
+ "2": 0.1141,
+ "3": 0.0347
+ },
+ "confidence": 0.4398
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "email",
+ "probabilities": {
+ "email": 0.9948,
+ "phone": 0.0021,
+ "chat": 0.0001,
+ "none": 0.003
+ },
+ "confidence": 0.9738
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.1432,
+ "confidence": 0.8568
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_00",
+ "probabilities": {
+ "dept_00": 0.0713,
+ "dept_01": 0.0492,
+ "dept_02": 0.0491,
+ "dept_03": 0.0711,
+ "dept_04": 0.0304,
+ "dept_05": 0.0324,
+ "dept_06": 0.0361,
+ "dept_07": 0.044,
+ "dept_08": 0.0414,
+ "dept_09": 0.0406,
+ "dept_10": 0.0607,
+ "dept_11": 0.0391,
+ "dept_12": 0.032,
+ "dept_13": 0.0251,
+ "dept_14": 0.0218,
+ "dept_15": 0.0219,
+ "dept_16": 0.022,
+ "dept_17": 0.0234,
+ "dept_18": 0.0236,
+ "dept_19": 0.0228,
+ "dept_20": 0.0275,
+ "dept_21": 0.0271,
+ "dept_22": 0.026,
+ "dept_23": 0.0251,
+ "dept_24": 0.022,
+ "dept_25": 0.0213,
+ "dept_26": 0.0212,
+ "dept_27": 0.0225,
+ "dept_28": 0.0222,
+ "dept_29": 0.0273
+ },
+ "confidence": 0.0235
+ },
+ "label": {
+ "type": "choice",
+ "choice": "technical",
+ "probabilities": {
+ "billing": 0.0361,
+ "technical": 0.8159,
+ "sales": 0.0447,
+ "other": 0.1033
+ },
+ "confidence": 0.5245
+ }
+ },
+ "input_tokens": 977
+ },
+ {
+ "name": "conversation_list",
+ "state": [
+ {
+ "role": "user",
+ "content": "I want to cancel."
+ },
+ {
+ "role": "agent",
+ "content": "Sorry to hear that - may I ask why?"
+ },
+ {
+ "role": "user",
+ "content": "Too expensive, and support is slow. Cancel it now."
+ }
+ ],
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 94,
+ "sha256": "d7930a839163166b817e5bb446ac159c7b8c57346cbb1fcb1a78aec675df9a23",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.695955,
+ 3.205432,
+ -1.550017,
+ -2.939589
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 76,
+ "sha256": "e5c98d9aa16bc5a5192a72669440691243f3d0519c6cf645d2d49236d57e3feb",
+ "markers": [
+ 7,
+ 9,
+ 11
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.620672,
+ -2.20749,
+ 0.96855
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 95,
+ "sha256": "80f89d62c966a7d5d920139cdf77a83678f35dd63e219ef4b7768aa4f914b49f",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.989143,
+ -3.734769,
+ 1.791106,
+ -3.983017,
+ -2.023348,
+ -0.184545,
+ -0.677966,
+ -0.569584,
+ -2.350247,
+ -4.483824,
+ -2.435867,
+ -4.467752
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 94,
+ "sha256": "07b58041e2f9a097434bfe2cf465bc6eef0337407ebdbab3c702fe32954462b8",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ -2.622326,
+ 0.384213
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 91,
+ "sha256": "1a552708f269c3d59c86411c3498cb9a94346be4f48208ec8934878d85ba13cf",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 0.901152,
+ 0.441993
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 111,
+ "sha256": "94fea6111117283fb8c1da04ad7e87bf4f405b6844257180121817481ec1e99d",
+ "markers": [
+ 17,
+ 23,
+ 36,
+ 42
+ ],
+ "qtype": 1,
+ "logits": [
+ -0.322178,
+ 0.815971,
+ -0.407733,
+ -0.466205
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 101,
+ "sha256": "129496e7eb3f4f071046c2190c515df5edca8af418aa633f2a528002d2b5f0cd",
+ "markers": [
+ 13,
+ 18,
+ 28,
+ 36
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.940262,
+ 0.598846,
+ -2.344727,
+ -2.632771
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 94,
+ "sha256": "37eccb2e1e8e17bd0e870a90c90ce815fa50b3ea7371384adaf32ffe86f2edac",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ -3.225719,
+ -0.432856
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 317,
+ "sha256": "057993c772893727b1e182a734d2198bae08f408e9b1ebf98a347b22865badbb",
+ "markers": [
+ 14,
+ 22,
+ 30,
+ 38,
+ 46,
+ 54,
+ 62,
+ 70,
+ 78,
+ 86,
+ 94,
+ 102,
+ 110,
+ 118,
+ 126,
+ 134,
+ 142,
+ 150,
+ 158,
+ 166,
+ 174,
+ 182,
+ 190,
+ 198,
+ 206,
+ 214,
+ 222,
+ 230,
+ 238,
+ 246
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.8787,
+ -2.495681,
+ -2.803105,
+ -3.116524,
+ -3.416458,
+ -3.375499,
+ -3.438449,
+ -3.272055,
+ -3.053071,
+ -2.837944,
+ -3.132441,
+ -3.270613,
+ -3.413202,
+ -3.805502,
+ -3.792353,
+ -3.606032,
+ -3.614493,
+ -3.545297,
+ -3.502211,
+ -3.341756,
+ -3.257682,
+ -3.532575,
+ -3.574869,
+ -3.765568,
+ -3.979747,
+ -3.986201,
+ -3.560146,
+ -3.567164,
+ -3.347269,
+ -2.131561
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 84,
+ "sha256": "3a35432b8428b5b59a71c7fb06421cd8b2b0bc6f87bdf988ed3fb1262215c5fe",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.811796,
+ -0.290379,
+ -3.521899,
+ -2.732969
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "cancel",
+ "probabilities": {
+ "refund": 0.0027,
+ "cancel": 0.9867,
+ "technical": 0.0085,
+ "other": 0.0021
+ },
+ "confidence": 0.9403
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.0258,
+ "normal": 0.039,
+ "urgent": 0.9351
+ },
+ "confidence": 0.7417
+ },
+ "many": {
+ "type": "choice",
+ "choice": "support",
+ "probabilities": {
+ "billing": 0.006,
+ "sales": 0.0029,
+ "support": 0.7197,
+ "legal": 0.0022,
+ "security": 0.0159,
+ "hr": 0.0998,
+ "it": 0.0609,
+ "ops": 0.0679,
+ "finance": 0.0114,
+ "marketing": 0.0014,
+ "product": 0.0105,
+ "design": 0.0014
+ },
+ "confidence": 0.5718
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.9529,
+ "confidence": 0.9529
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.3872,
+ "confidence": 0.6128
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.2794,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.1694,
+ "1": 0.5285,
+ "2": 0.1555,
+ "3": 0.1466
+ },
+ "confidence": 0.1282
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "phone",
+ "probabilities": {
+ "email": 0.0259,
+ "phone": 0.8919,
+ "chat": 0.047,
+ "none": 0.0352
+ },
+ "confidence": 0.6695
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.9423,
+ "confidence": 0.9423
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_00",
+ "probabilities": {
+ "dept_00": 0.1215,
+ "dept_01": 0.0656,
+ "dept_02": 0.0482,
+ "dept_03": 0.0352,
+ "dept_04": 0.0261,
+ "dept_05": 0.0272,
+ "dept_06": 0.0255,
+ "dept_07": 0.0302,
+ "dept_08": 0.0375,
+ "dept_09": 0.0466,
+ "dept_10": 0.0347,
+ "dept_11": 0.0302,
+ "dept_12": 0.0262,
+ "dept_13": 0.0177,
+ "dept_14": 0.0179,
+ "dept_15": 0.0216,
+ "dept_16": 0.0214,
+ "dept_17": 0.023,
+ "dept_18": 0.024,
+ "dept_19": 0.0281,
+ "dept_20": 0.0306,
+ "dept_21": 0.0232,
+ "dept_22": 0.0223,
+ "dept_23": 0.0184,
+ "dept_24": 0.0149,
+ "dept_25": 0.0148,
+ "dept_26": 0.0226,
+ "dept_27": 0.0225,
+ "dept_28": 0.028,
+ "dept_29": 0.0944
+ },
+ "confidence": 0.05
+ },
+ "label": {
+ "type": "choice",
+ "choice": "technical",
+ "probabilities": {
+ "billing": 0.1624,
+ "technical": 0.7436,
+ "sales": 0.0294,
+ "other": 0.0646
+ },
+ "confidence": 0.4257
+ }
+ },
+ "input_tokens": 1157
+ },
+ {
+ "name": "long_truncated",
+ "state": "The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times.",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 1024,
+ "sha256": "1c52bc406d6b2181c891f0a4fdfa09dd1a907f3b1971bf6e6f1f91bc62eef2b1",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ -3.630723,
+ -0.924244,
+ -1.048081,
+ -0.598551
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 1024,
+ "sha256": "84a55b9b1feeb7514182aa1e5e3c5fd6e78f61c6c745ccd9622de18e87e703b5",
+ "markers": [
+ 7,
+ 9,
+ 11
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.065437,
+ -1.729096,
+ -1.320166
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 1024,
+ "sha256": "c566eb92b24884e83b3d67e296eba93676c906a19aa7f5c744cfcb974d61db5c",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ -3.823911,
+ -2.50861,
+ -3.969536,
+ -3.424764,
+ -4.459838,
+ -4.335981,
+ -3.685285,
+ -4.171975,
+ -1.443477,
+ -2.95936,
+ 0.246195,
+ -2.971949
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 1024,
+ "sha256": "8b694ff962c863f93d1073aaa166447880a4628689719efacf26e2b53315e635",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ 5.853653,
+ 0.806857
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 1024,
+ "sha256": "97e3e7669eed46de9cd5f2c864bad3f2af9e86185d2a83ff96ea7c51a2578349",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 0.051116,
+ -0.854901
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 1024,
+ "sha256": "632605120504672bd53630a6555213cfb9a6991fa3cf807d66eb1a0bc9be99d6",
+ "markers": [
+ 17,
+ 23,
+ 36,
+ 42
+ ],
+ "qtype": 1,
+ "logits": [
+ -1.31229,
+ 0.029069,
+ -0.171149,
+ -0.678519
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 1024,
+ "sha256": "86b57507390c815043698b7a72dabf16212db8334fe852bb921a8718cf2d9741",
+ "markers": [
+ 13,
+ 18,
+ 28,
+ 36
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.245256,
+ -1.60646,
+ -3.35968,
+ -2.222971
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 1024,
+ "sha256": "a6186a98f43d63ed799e3648bebd6707f5ec7de853eacaab7106d8bdc992a226",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ 0.993207,
+ -0.169661
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 1024,
+ "sha256": "593dd28a9b68df56ac9879805aaf3d1de9edf381a44bdfbe1a24423042759243",
+ "markers": [
+ 14,
+ 22,
+ 30,
+ 38,
+ 46,
+ 54,
+ 62,
+ 70,
+ 78,
+ 86,
+ 94,
+ 102,
+ 110,
+ 118,
+ 126,
+ 134,
+ 142,
+ 150,
+ 158,
+ 166,
+ 174,
+ 182,
+ 190,
+ 198,
+ 206,
+ 214,
+ 222,
+ 230,
+ 238,
+ 246
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.85207,
+ -0.641339,
+ -1.36931,
+ -1.687018,
+ -2.481261,
+ -2.5508,
+ -2.478867,
+ -2.26773,
+ -2.664771,
+ -2.846179,
+ -1.981354,
+ -2.036825,
+ -2.224019,
+ -2.260886,
+ -2.807934,
+ -2.394487,
+ -3.019583,
+ -2.44617,
+ -2.76355,
+ -3.019516,
+ -1.913365,
+ -1.961685,
+ -2.153559,
+ -2.326903,
+ -2.994668,
+ -2.798378,
+ -3.21449,
+ -2.982097,
+ -3.02019,
+ -3.124876
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 1024,
+ "sha256": "d4cd09cb48b10bd6b887352e5c8269b39789d0f69f4b169cab19cf8b474955e7",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ -3.830376,
+ -0.168974,
+ -2.111624,
+ -0.212976
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "other",
+ "probabilities": {
+ "refund": 0.02,
+ "cancel": 0.2998,
+ "technical": 0.2649,
+ "other": 0.4153
+ },
+ "confidence": 0.1659
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.2219,
+ "normal": 0.3106,
+ "urgent": 0.4675
+ },
+ "confidence": 0.0418
+ },
+ "many": {
+ "type": "choice",
+ "choice": "product",
+ "probabilities": {
+ "billing": 0.0119,
+ "sales": 0.0443,
+ "support": 0.0103,
+ "legal": 0.0177,
+ "security": 0.0063,
+ "hr": 0.0071,
+ "it": 0.0136,
+ "ops": 0.0084,
+ "finance": 0.1284,
+ "marketing": 0.0282,
+ "product": 0.6959,
+ "design": 0.0279
+ },
+ "confidence": 0.5206
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.0064,
+ "confidence": 0.9936
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.2878,
+ "confidence": 0.7122
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.5996,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.1016,
+ "1": 0.3887,
+ "2": 0.3181,
+ "3": 0.1915
+ },
+ "confidence": 0.0763
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "phone",
+ "probabilities": {
+ "email": 0.2356,
+ "phone": 0.4462,
+ "chat": 0.0773,
+ "none": 0.2409
+ },
+ "confidence": 0.1045
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.2381,
+ "confidence": 0.7619
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_01",
+ "probabilities": {
+ "dept_00": 0.0479,
+ "dept_01": 0.1608,
+ "dept_02": 0.0776,
+ "dept_03": 0.0565,
+ "dept_04": 0.0255,
+ "dept_05": 0.0238,
+ "dept_06": 0.0256,
+ "dept_07": 0.0316,
+ "dept_08": 0.0213,
+ "dept_09": 0.0177,
+ "dept_10": 0.0421,
+ "dept_11": 0.0398,
+ "dept_12": 0.033,
+ "dept_13": 0.0318,
+ "dept_14": 0.0184,
+ "dept_15": 0.0278,
+ "dept_16": 0.0149,
+ "dept_17": 0.0264,
+ "dept_18": 0.0193,
+ "dept_19": 0.0149,
+ "dept_20": 0.0451,
+ "dept_21": 0.0429,
+ "dept_22": 0.0354,
+ "dept_23": 0.0298,
+ "dept_24": 0.0153,
+ "dept_25": 0.0186,
+ "dept_26": 0.0123,
+ "dept_27": 0.0155,
+ "dept_28": 0.0149,
+ "dept_29": 0.0134
+ },
+ "confidence": 0.0683
+ },
+ "label": {
+ "type": "choice",
+ "choice": "technical",
+ "probabilities": {
+ "billing": 0.0121,
+ "technical": 0.4704,
+ "sales": 0.0674,
+ "other": 0.4501
+ },
+ "confidence": 0.3153
+ }
+ },
+ "input_tokens": 10240
+ },
+ {
+ "name": "long_conversation_left_truncated",
+ "state": [
+ {
+ "role": "user",
+ "content": "Message 0: my order #1000 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 0: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 1: my order #1001 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 1: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 2: my order #1002 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 2: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 3: my order #1003 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 3: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 4: my order #1004 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 4: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 5: my order #1005 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 5: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 6: my order #1006 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 6: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 7: my order #1007 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 7: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 8: my order #1008 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 8: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 9: my order #1009 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 9: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 10: my order #1010 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 10: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 11: my order #1011 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 11: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 12: my order #1012 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 12: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 13: my order #1013 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 13: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 14: my order #1014 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 14: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 15: my order #1015 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 15: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 16: my order #1016 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 16: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 17: my order #1017 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 17: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 18: my order #1018 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 18: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 19: my order #1019 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 19: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 20: my order #1020 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 20: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 21: my order #1021 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 21: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 22: my order #1022 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 22: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 23: my order #1023 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 23: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 24: my order #1024 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 24: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 25: my order #1025 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 25: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 26: my order #1026 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 26: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 27: my order #1027 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 27: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 28: my order #1028 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 28: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 29: my order #1029 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 29: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 30: my order #1030 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 30: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 31: my order #1031 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 31: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 32: my order #1032 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 32: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 33: my order #1033 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 33: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 34: my order #1034 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 34: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 35: my order #1035 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 35: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 36: my order #1036 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 36: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 37: my order #1037 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 37: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 38: my order #1038 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 38: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 39: my order #1039 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 39: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 40: my order #1040 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 40: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 41: my order #1041 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 41: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 42: my order #1042 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 42: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 43: my order #1043 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 43: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 44: my order #1044 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 44: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "FINAL: forget it, cancel everything and refund me now."
+ }
+ ],
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 1024,
+ "sha256": "0102efdba7fc936458593a340dd58f8ff4950b6a2f3df72d769cde2babf95b68",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.665237,
+ 0.166811,
+ -1.790832,
+ -0.958164
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 1024,
+ "sha256": "833161d27f7117bc8df65c9d3ff718d9f6ac2707fd38fbe612f11affd0ec8cfc",
+ "markers": [
+ 7,
+ 9,
+ 11
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.911289,
+ -1.221163,
+ -0.857044
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 1024,
+ "sha256": "95c1eab2822cdf5513a2f67a152a83229950afc0237094d8e7b186466ce91982",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.331917,
+ -3.349087,
+ -3.3219,
+ -2.364999,
+ -1.678074,
+ -2.766632,
+ -3.045821,
+ -2.935598,
+ -2.048224,
+ -2.985079,
+ -2.006976,
+ -4.046364
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 1024,
+ "sha256": "7bad790e5644fecdeb00f4cae7a19957470134736e23b537370bf31f21037dca",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ -2.972488,
+ 1.230575
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 1024,
+ "sha256": "2b8d6e872009a263461001852c5975f9fbadfbe12482ba09dc4f59d06ba98a46",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 1.118602,
+ -1.238292
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 1024,
+ "sha256": "31febd477ba7d5896872b8d4c6b313c5020914938c2d2a71d9d3dc2fad0819a6",
+ "markers": [
+ 17,
+ 23,
+ 36,
+ 42
+ ],
+ "qtype": 1,
+ "logits": [
+ -0.838279,
+ 0.32009,
+ -0.471918,
+ -0.477592
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 1024,
+ "sha256": "c4c41bfd6ef7e60441e59551593399b0738c36317486e47f19acb140863d46bf",
+ "markers": [
+ 13,
+ 18,
+ 28,
+ 36
+ ],
+ "qtype": 0,
+ "logits": [
+ -3.357458,
+ -1.502279,
+ -1.996148,
+ -3.33819
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 1024,
+ "sha256": "bac1e9d3a810dda94a079b796ae83503f13151cdda6dbc764459682cb3a22aee",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ -2.436759,
+ 0.124475
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 1024,
+ "sha256": "cbdc8154423c504f4d6f76f6effa95765269206206fa338f0b9cfe3f59d93c7a",
+ "markers": [
+ 14,
+ 22,
+ 30,
+ 38,
+ 46,
+ 54,
+ 62,
+ 70,
+ 78,
+ 86,
+ 94,
+ 102,
+ 110,
+ 118,
+ 126,
+ 134,
+ 142,
+ 150,
+ 158,
+ 166,
+ 174,
+ 182,
+ 190,
+ 198,
+ 206,
+ 214,
+ 222,
+ 230,
+ 238,
+ 246
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.398541,
+ -1.853177,
+ -1.522677,
+ -1.651217,
+ -0.755198,
+ -1.88277,
+ -1.773499,
+ -2.370557,
+ -2.419932,
+ -2.395254,
+ -2.276441,
+ -2.632137,
+ -2.62547,
+ -2.267721,
+ -2.683728,
+ -2.953897,
+ -3.600017,
+ -3.416481,
+ -3.451193,
+ -3.55374,
+ -2.700737,
+ -3.192013,
+ -2.955915,
+ -3.02232,
+ -3.295965,
+ -3.478225,
+ -3.713013,
+ -3.6245,
+ -3.248893,
+ -2.099047
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 1024,
+ "sha256": "b573a3189ebedf723e9f6dee0261a4f38fb6ffc0d8e4b9cb6df5556e3fd10d21",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.568578,
+ -2.256681,
+ -3.268812,
+ -3.07421
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "cancel",
+ "probabilities": {
+ "refund": 0.2289,
+ "cancel": 0.526,
+ "technical": 0.0743,
+ "other": 0.1708
+ },
+ "confidence": 0.1558
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.0703,
+ "normal": 0.3811,
+ "urgent": 0.5485
+ },
+ "confidence": 0.1956
+ },
+ "many": {
+ "type": "choice",
+ "choice": "security",
+ "probabilities": {
+ "billing": 0.1029,
+ "sales": 0.0372,
+ "support": 0.0382,
+ "legal": 0.0995,
+ "security": 0.1978,
+ "hr": 0.0666,
+ "it": 0.0504,
+ "ops": 0.0563,
+ "finance": 0.1366,
+ "marketing": 0.0535,
+ "product": 0.1424,
+ "design": 0.0185
+ },
+ "confidence": 0.0726
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.9853,
+ "confidence": 0.9853
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.0865,
+ "confidence": 0.9135
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.4689,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.1416,
+ "1": 0.451,
+ "2": 0.2043,
+ "3": 0.2031
+ },
+ "confidence": 0.0737
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "phone",
+ "probabilities": {
+ "email": 0.0812,
+ "phone": 0.5192,
+ "chat": 0.3168,
+ "none": 0.0828
+ },
+ "confidence": 0.1959
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.9283,
+ "confidence": 0.9283
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_04",
+ "probabilities": {
+ "dept_00": 0.0834,
+ "dept_01": 0.053,
+ "dept_02": 0.0737,
+ "dept_03": 0.0648,
+ "dept_04": 0.1588,
+ "dept_05": 0.0514,
+ "dept_06": 0.0573,
+ "dept_07": 0.0316,
+ "dept_08": 0.03,
+ "dept_09": 0.0308,
+ "dept_10": 0.0347,
+ "dept_11": 0.0243,
+ "dept_12": 0.0245,
+ "dept_13": 0.035,
+ "dept_14": 0.0231,
+ "dept_15": 0.0176,
+ "dept_16": 0.0092,
+ "dept_17": 0.0111,
+ "dept_18": 0.0107,
+ "dept_19": 0.0097,
+ "dept_20": 0.0227,
+ "dept_21": 0.0139,
+ "dept_22": 0.0176,
+ "dept_23": 0.0165,
+ "dept_24": 0.0125,
+ "dept_25": 0.0104,
+ "dept_26": 0.0082,
+ "dept_27": 0.009,
+ "dept_28": 0.0131,
+ "dept_29": 0.0414
+ },
+ "confidence": 0.0946
+ },
+ "label": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.5244,
+ "technical": 0.2635,
+ "sales": 0.0958,
+ "other": 0.1163
+ },
+ "confidence": 0.1597
+ }
+ },
+ "input_tokens": 10240
+ },
+ {
+ "name": "non_ascii_masks",
+ "state": "Bonjour, je voudrais annuler ma commande n°1234 — merci. [MASK] Grüße <mask> ¿qué? 😀",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 60,
+ "sha256": "b6d50b69a6472382cb21d08bda90f34e308d070a91dd3247ecefe9ad224960ca",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.650558,
+ 0.132006,
+ -2.579226,
+ -0.725872
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 42,
+ "sha256": "1a54a23166e6cda0b7c55f850e619791e25300afbf5edf7c9f192b257e21f8ad",
+ "markers": [
+ 7,
+ 9,
+ 11
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.945059,
+ -0.398902,
+ 1.581655
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 61,
+ "sha256": "162717db7347517d25c0ad4cfbbcfc481e551d2b48821d01a669abfe5ddff208",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 2.472684,
+ 1.902313,
+ 0.025419,
+ -2.735017,
+ -4.571256,
+ 5.200097,
+ -0.907237,
+ -1.639815,
+ -1.897775,
+ 0.779172,
+ -0.111446,
+ -3.747052
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 60,
+ "sha256": "1cfa2ea19f2236279336f50259e7915eefe26f7293115ab5c8de9e714d00c9de",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ 1.007052,
+ -0.351395
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 57,
+ "sha256": "cfe64b6333afa42f75ff21739c358aec090800e906d6ba1d10aea407b1e1a221",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 2.588349,
+ 0.370609
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 77,
+ "sha256": "ed47e47ceca17364f59529d030e72d83fdae1ec77bb19d8658c1550a68456a28",
+ "markers": [
+ 17,
+ 23,
+ 36,
+ 42
+ ],
+ "qtype": 1,
+ "logits": [
+ 0.177645,
+ 1.38961,
+ 0.651922,
+ -0.618741
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 67,
+ "sha256": "2863e7baeab95901d19791300ccabca0d8fec6f09c37665ab5218e36c8ad9365",
+ "markers": [
+ 13,
+ 18,
+ 28,
+ 36
+ ],
+ "qtype": 0,
+ "logits": [
+ -3.158506,
+ -2.641896,
+ -1.521313,
+ 1.505657
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 60,
+ "sha256": "edca08d04c617d64daac7aa2ce2d14638401f1386994358bc83f67cd8232fd64",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ -1.563016,
+ -0.365622
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 283,
+ "sha256": "b805ee1661d05353071629ab2eb6a0509a968c56cca329defac0b4381e0547be",
+ "markers": [
+ 14,
+ 22,
+ 30,
+ 38,
+ 46,
+ 54,
+ 62,
+ 70,
+ 78,
+ 86,
+ 94,
+ 102,
+ 110,
+ 118,
+ 126,
+ 134,
+ 142,
+ 150,
+ 158,
+ 166,
+ 174,
+ 182,
+ 190,
+ 198,
+ 206,
+ 214,
+ 222,
+ 230,
+ 238,
+ 246
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.384516,
+ -1.351644,
+ -1.126328,
+ -1.645253,
+ -2.309229,
+ -2.308537,
+ -2.226199,
+ -2.440804,
+ -2.277081,
+ -2.282144,
+ -2.475839,
+ -2.476129,
+ -1.90062,
+ -2.354542,
+ -2.890971,
+ -2.950638,
+ -2.988369,
+ -3.043298,
+ -2.925276,
+ -2.699814,
+ -2.503245,
+ -2.836311,
+ -2.735373,
+ -2.505774,
+ -3.327424,
+ -3.472961,
+ -3.228143,
+ -2.635606,
+ -2.400999,
+ -1.513948
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 50,
+ "sha256": "a9ad1d8fd3032e62a6d773ff6b542e2482a5462c23dd3a57eedec27c48aa644b",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ 5.284652,
+ -3.291527,
+ 0.445185,
+ -1.53722
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "cancel",
+ "probabilities": {
+ "refund": 0.2347,
+ "cancel": 0.5134,
+ "technical": 0.0341,
+ "other": 0.2177
+ },
+ "confidence": 0.1851
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.0252,
+ "normal": 0.1182,
+ "urgent": 0.8566
+ },
+ "confidence": 0.5652
+ },
+ "many": {
+ "type": "choice",
+ "choice": "hr",
+ "probabilities": {
+ "billing": 0.0579,
+ "sales": 0.0327,
+ "support": 0.005,
+ "legal": 0.0003,
+ "security": 0.0001,
+ "hr": 0.8852,
+ "it": 0.002,
+ "ops": 0.0009,
+ "finance": 0.0007,
+ "marketing": 0.0106,
+ "product": 0.0044,
+ "design": 0.0001
+ },
+ "confidence": 0.7941
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.2045,
+ "confidence": 0.7955
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.0982,
+ "confidence": 0.9018
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.2351,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.1558,
+ "1": 0.5235,
+ "2": 0.2504,
+ "3": 0.0703
+ },
+ "confidence": 0.162
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "none",
+ "probabilities": {
+ "email": 0.0088,
+ "phone": 0.0147,
+ "chat": 0.0451,
+ "none": 0.9314
+ },
+ "confidence": 0.7766
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.7681,
+ "confidence": 0.7681
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_02",
+ "probabilities": {
+ "dept_00": 0.0798,
+ "dept_01": 0.0824,
+ "dept_02": 0.1033,
+ "dept_03": 0.0615,
+ "dept_04": 0.0316,
+ "dept_05": 0.0317,
+ "dept_06": 0.0344,
+ "dept_07": 0.0277,
+ "dept_08": 0.0327,
+ "dept_09": 0.0325,
+ "dept_10": 0.0268,
+ "dept_11": 0.0268,
+ "dept_12": 0.0476,
+ "dept_13": 0.0302,
+ "dept_14": 0.0177,
+ "dept_15": 0.0167,
+ "dept_16": 0.016,
+ "dept_17": 0.0152,
+ "dept_18": 0.0171,
+ "dept_19": 0.0214,
+ "dept_20": 0.0261,
+ "dept_21": 0.0187,
+ "dept_22": 0.0207,
+ "dept_23": 0.026,
+ "dept_24": 0.0114,
+ "dept_25": 0.0099,
+ "dept_26": 0.0126,
+ "dept_27": 0.0228,
+ "dept_28": 0.0289,
+ "dept_29": 0.0701
+ },
+ "confidence": 0.057
+ },
+ "label": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.9909,
+ "technical": 0.0002,
+ "sales": 0.0078,
+ "other": 0.0011
+ },
+ "confidence": 0.9596
+ }
+ },
+ "input_tokens": 817
+ },
+ {
+ "name": "non_latin",
+ "state": "मुझसे दो बार शुल्क लिया गया, कृपया पैसे वापस करें। 二重に請求されました。返金してください。",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 60,
+ "sha256": "2edec39117773c40ca6b4161f7039643c202a2d586fcba7befa6413465b6599f",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ 2.961473,
+ -2.978894,
+ -4.0292,
+ -2.934621
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 42,
+ "sha256": "96364a58bb11ff7fee1f4e615fa605437734e3f9b742ebc2a473695d3478508b",
+ "markers": [
+ 7,
+ 9,
+ 11
+ ],
+ "qtype": 0,
+ "logits": [
+ -4.613868,
+ -3.277034,
+ -2.633182
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 61,
+ "sha256": "3190e3aefb4dd35937f73c66dd5e5b96e6862ca4053351db535f8b031151918d",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 5.749465,
+ -3.530003,
+ -3.938289,
+ -2.066344,
+ -4.49793,
+ -4.560414,
+ -2.83287,
+ -4.112133,
+ -1.418476,
+ -2.675275,
+ -2.295071,
+ -4.595067
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 60,
+ "sha256": "04bf003c72371f278f1d59c3154f524560ad4d4d24715f8c0aafe7ccb891bc18",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ -7.142365,
+ 2.162539
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 57,
+ "sha256": "c9b277cf58f1fd9f025f26b6caee8115a0c52469da2a71e5d8060d57dec42033",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ -0.767017,
+ -1.323472
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 77,
+ "sha256": "093366d19f63ee8f9b49950ca1d58e51777872eaa51d17d0ad99d36632515dcd",
+ "markers": [
+ 17,
+ 23,
+ 36,
+ 42
+ ],
+ "qtype": 1,
+ "logits": [
+ -1.958389,
+ -0.143328,
+ -0.763872,
+ -1.731053
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 67,
+ "sha256": "4f22834f29768a2c468274bb5ef24a6e65a0873384e1fa97ebc5ccbe6cfbdbe6",
+ "markers": [
+ 13,
+ 18,
+ 28,
+ 36
+ ],
+ "qtype": 0,
+ "logits": [
+ -4.613753,
+ -1.104711,
+ -3.440414,
+ -4.364217
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 60,
+ "sha256": "8b35c91f7dbfe4a2f20a2b34e22a8df704806b5497e059ca69ba7009085b7d2c",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ -8.873843,
+ 0.825597
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 283,
+ "sha256": "9f7930d8036fa2301e0e27cd20374a9f7b8c8e08b41dbb82183411a2a3a702e3",
+ "markers": [
+ 14,
+ 22,
+ 30,
+ 38,
+ 46,
+ 54,
+ 62,
+ 70,
+ 78,
+ 86,
+ 94,
+ 102,
+ 110,
+ 118,
+ 126,
+ 134,
+ 142,
+ 150,
+ 158,
+ 166,
+ 174,
+ 182,
+ 190,
+ 198,
+ 206,
+ 214,
+ 222,
+ 230,
+ 238,
+ 246
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.047104,
+ -3.448152,
+ -3.805455,
+ -4.339499,
+ -4.54565,
+ -4.570261,
+ -4.576769,
+ -4.546073,
+ -4.569559,
+ -4.59874,
+ -4.604783,
+ -4.605936,
+ -4.605131,
+ -4.604523,
+ -4.600556,
+ -4.600561,
+ -4.587721,
+ -4.59953,
+ -4.601375,
+ -4.600252,
+ -4.602553,
+ -4.598767,
+ -4.603632,
+ -4.592523,
+ -4.584437,
+ -4.583948,
+ -4.567445,
+ -4.597579,
+ -4.600488,
+ -4.583591
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 50,
+ "sha256": "e0175141d2ef9bfccb888c752ac750ceba90e6c0231ce56ca8b3f25cdf6f9a88",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ 4.197072,
+ -3.826423,
+ -3.928781,
+ -2.467324
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "refund",
+ "probabilities": {
+ "refund": 0.9937,
+ "cancel": 0.0026,
+ "technical": 0.0009,
+ "other": 0.0027
+ },
+ "confidence": 0.968
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.083,
+ "normal": 0.3158,
+ "urgent": 0.6012
+ },
+ "confidence": 0.2023
+ },
+ "many": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.9978,
+ "sales": 0.0001,
+ "support": 0.0001,
+ "legal": 0.0004,
+ "security": 0.0,
+ "hr": 0.0,
+ "it": 0.0002,
+ "ops": 0.0001,
+ "finance": 0.0008,
+ "marketing": 0.0002,
+ "product": 0.0003,
+ "design": 0.0
+ },
+ "confidence": 0.992
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.9999,
+ "confidence": 0.9999
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.3644,
+ "confidence": 0.6356
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.4114,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0855,
+ "1": 0.525,
+ "2": 0.2823,
+ "3": 0.1073
+ },
+ "confidence": 0.174
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "phone",
+ "probabilities": {
+ "email": 0.0257,
+ "phone": 0.8583,
+ "chat": 0.083,
+ "none": 0.033
+ },
+ "confidence": 0.6074
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.9999,
+ "confidence": 0.9999
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_00",
+ "probabilities": {
+ "dept_00": 0.2805,
+ "dept_01": 0.0691,
+ "dept_02": 0.0483,
+ "dept_03": 0.0283,
+ "dept_04": 0.0231,
+ "dept_05": 0.0225,
+ "dept_06": 0.0224,
+ "dept_07": 0.023,
+ "dept_08": 0.0225,
+ "dept_09": 0.0219,
+ "dept_10": 0.0217,
+ "dept_11": 0.0217,
+ "dept_12": 0.0217,
+ "dept_13": 0.0217,
+ "dept_14": 0.0218,
+ "dept_15": 0.0218,
+ "dept_16": 0.0221,
+ "dept_17": 0.0218,
+ "dept_18": 0.0218,
+ "dept_19": 0.0218,
+ "dept_20": 0.0218,
+ "dept_21": 0.0219,
+ "dept_22": 0.0218,
+ "dept_23": 0.022,
+ "dept_24": 0.0222,
+ "dept_25": 0.0222,
+ "dept_26": 0.0226,
+ "dept_27": 0.0219,
+ "dept_28": 0.0218,
+ "dept_29": 0.0222
+ },
+ "confidence": 0.1248
+ },
+ "label": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.9981,
+ "technical": 0.0003,
+ "sales": 0.0003,
+ "other": 0.0013
+ },
+ "confidence": 0.9889
+ }
+ },
+ "input_tokens": 817
+ },
+ {
+ "name": "empty",
+ "state": "",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 33,
+ "sha256": "bbde4e97d584f37c8d1a173e91aa83af7de4bc7bde8d11a4286ace64249dd6c0",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.445079,
+ -1.416641,
+ -0.68339,
+ -1.365914
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 15,
+ "sha256": "32c489f6f46532542e7f8c9918b0af905d10dcd732b071ccdeb90401bd84926b",
+ "markers": [
+ 7,
+ 9,
+ 11
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.289367,
+ -0.302787,
+ -0.875505
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 34,
+ "sha256": "26073acbbef494eaa7785b068165ef502db3d1b57ef2826537846c4851ddea2d",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.191645,
+ -0.280122,
+ -1.588248,
+ -1.65338,
+ -3.616289,
+ -2.098019,
+ -0.993479,
+ -0.924443,
+ 1.823297,
+ 1.120692,
+ 0.146927,
+ -1.807013
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 33,
+ "sha256": "da638dfc490d1b8520d51ca89673f8754871be30bac195b620f5e708f268ed0d",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ 1.468989,
+ 0.027649
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 30,
+ "sha256": "186f537e4e6bab87987e1de1a94565e43f8c192e54575914eec131b9c96bced5",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 0.704561,
+ -0.062344
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 50,
+ "sha256": "af2623a6411f85049e18a57e37aae08dc0e5ddf8e916a981f116fd2364ec95b9",
+ "markers": [
+ 17,
+ 23,
+ 36,
+ 42
+ ],
+ "qtype": 1,
+ "logits": [
+ -0.402534,
+ 1.468229,
+ 0.516567,
+ -1.011687
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 40,
+ "sha256": "5bb7673deba8c2c56fbc5db5b48b5da0600ca9748ee5488e98ed7761f9ac47bb",
+ "markers": [
+ 13,
+ 18,
+ 28,
+ 36
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.597654,
+ 0.666372,
+ -0.223306,
+ 1.362281
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 33,
+ "sha256": "7f1dfa57096096528568b7f8dbb64bc595d41c96099e58834c470493d53cf642",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ -0.743504,
+ -0.189438
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 256,
+ "sha256": "7d08d0341bd75f414ebd881c4d1447bdc609b2c442b4153ccbb87cf15d8d42fc",
+ "markers": [
+ 14,
+ 22,
+ 30,
+ 38,
+ 46,
+ 54,
+ 62,
+ 70,
+ 78,
+ 86,
+ 94,
+ 102,
+ 110,
+ 118,
+ 126,
+ 134,
+ 142,
+ 150,
+ 158,
+ 166,
+ 174,
+ 182,
+ 190,
+ 198,
+ 206,
+ 214,
+ 222,
+ 230,
+ 238,
+ 246
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.425763,
+ -0.355071,
+ -0.173614,
+ -0.951189,
+ -1.557061,
+ -1.409458,
+ -1.296061,
+ -1.52847,
+ -1.74243,
+ -1.78724,
+ -1.461447,
+ -1.435028,
+ -1.275369,
+ -1.633764,
+ -2.078669,
+ -1.960488,
+ -1.811464,
+ -2.005601,
+ -2.163399,
+ -1.938473,
+ -1.343755,
+ -1.565678,
+ -1.445751,
+ -1.519001,
+ -2.039651,
+ -2.15922,
+ -1.428838,
+ -1.521368,
+ -1.494848,
+ -0.911544
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 23,
+ "sha256": "a627c3b60569e982489fd55628c214e680a5afca7e6d6ed2b1117eba9d8366cd",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.134253,
+ -1.00084,
+ -1.803674,
+ -0.439478
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "refund",
+ "probabilities": {
+ "refund": 0.6089,
+ "cancel": 0.0946,
+ "technical": 0.197,
+ "other": 0.0995
+ },
+ "confidence": 0.2246
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "normal",
+ "probabilities": {
+ "low": 0.1925,
+ "normal": 0.5163,
+ "urgent": 0.2912
+ },
+ "confidence": 0.0736
+ },
+ "many": {
+ "type": "choice",
+ "choice": "finance",
+ "probabilities": {
+ "billing": 0.0234,
+ "sales": 0.0583,
+ "support": 0.0158,
+ "legal": 0.0148,
+ "security": 0.0021,
+ "hr": 0.0095,
+ "it": 0.0286,
+ "ops": 0.0306,
+ "finance": 0.478,
+ "marketing": 0.2368,
+ "product": 0.0894,
+ "design": 0.0127
+ },
+ "confidence": 0.3513
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.1913,
+ "confidence": 0.8087
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.3171,
+ "confidence": 0.6829
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.2461,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0948,
+ "1": 0.6158,
+ "2": 0.2378,
+ "3": 0.0516
+ },
+ "confidence": 0.2668
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "none",
+ "probabilities": {
+ "email": 0.0111,
+ "phone": 0.2895,
+ "chat": 0.1189,
+ "none": 0.5805
+ },
+ "confidence": 0.2948
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.6351,
+ "confidence": 0.6351
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_02",
+ "probabilities": {
+ "dept_00": 0.0828,
+ "dept_01": 0.0889,
+ "dept_02": 0.1065,
+ "dept_03": 0.049,
+ "dept_04": 0.0267,
+ "dept_05": 0.031,
+ "dept_06": 0.0347,
+ "dept_07": 0.0275,
+ "dept_08": 0.0222,
+ "dept_09": 0.0212,
+ "dept_10": 0.0294,
+ "dept_11": 0.0302,
+ "dept_12": 0.0354,
+ "dept_13": 0.0247,
+ "dept_14": 0.0159,
+ "dept_15": 0.0178,
+ "dept_16": 0.0207,
+ "dept_17": 0.0171,
+ "dept_18": 0.0146,
+ "dept_19": 0.0182,
+ "dept_20": 0.0331,
+ "dept_21": 0.0265,
+ "dept_22": 0.0299,
+ "dept_23": 0.0277,
+ "dept_24": 0.0165,
+ "dept_25": 0.0146,
+ "dept_26": 0.0304,
+ "dept_27": 0.0277,
+ "dept_28": 0.0284,
+ "dept_29": 0.0509
+ },
+ "confidence": 0.0487
+ },
+ "label": {
+ "type": "choice",
+ "choice": "other",
+ "probabilities": {
+ "billing": 0.0914,
+ "technical": 0.2838,
+ "sales": 0.1272,
+ "other": 0.4976
+ },
+ "confidence": 0.1447
+ }
+ },
+ "input_tokens": 547
+ }
+ ],
+ "override": {
+ "max_len": 96,
+ "head_max_len": 40,
+ "questions": {
+ "intent": {
+ "type": "choice",
+ "instructions": "What does the customer want?",
+ "criteria": {
+ "refund": "wants money back",
+ "cancel": "wants to cancel",
+ "technical": "reports a bug",
+ "other": null
+ }
+ },
+ "priority": {
+ "type": "choice",
+ "instructions": "Ticket priority",
+ "criteria": [
+ "low",
+ "normal",
+ "urgent"
+ ]
+ },
+ "many": {
+ "type": "choice",
+ "instructions": "Pick the department",
+ "criteria": [
+ "billing",
+ "sales",
+ "support",
+ "legal",
+ "security",
+ "hr",
+ "it",
+ "ops",
+ "finance",
+ "marketing",
+ "product",
+ "design"
+ ]
+ },
+ "refund_requested": {
+ "type": "noul",
+ "instructions": "The customer explicitly requests a refund."
+ },
+ "frustration": {
+ "type": "score",
+ "instructions": {
+ "rubric": "How frustrated is the customer?"
+ },
+ "criteria": [
+ "calm",
+ {
+ "desc": "mildly annoyed"
+ },
+ "frustrated",
+ "furious"
+ ]
+ }
+ },
+ "cases": [
+ {
+ "name": "plain_email",
+ "state": "Hi, I was charged twice for my subscription this month. Please refund one charge ASAP!",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 51,
+ "sha256": "fc8e295afb73b3e1298732bc78b929a6ed16c1d4f46c768c9bb624d31e610e28",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ 7.908032,
+ -2.280438,
+ -4.148706,
+ -2.554245
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 33,
+ "sha256": "68e8845fceab1caf4f2043888798ac692fe1154ca5930cf3f065857ddd8b14c4",
+ "markers": [
+ 7,
+ 9,
+ 11
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.090867,
+ -0.508059,
+ 1.824569
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 52,
+ "sha256": "25be8086f384280b342b705cc2111050ef038b8b80b61698570a6690573e5be9",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 11.756498,
+ -4.307914,
+ -4.154528,
+ -2.214353,
+ -4.517662,
+ -4.042334,
+ -2.154881,
+ -2.076133,
+ -0.267796,
+ -2.099413,
+ -2.643458,
+ -4.580117
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 51,
+ "sha256": "01fbac7e3ee9ea78e30ed8118fb3dffe319edeae392359a1a95ac3d9ce2f8f58",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ -4.391952,
+ 0.947165
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 61,
+ "sha256": "6eb5b0fe5d7e89008d22516ddc02cb7fd8f75a938075b926bc38d9f81b0b0f72",
+ "markers": [
+ 17,
+ 23,
+ 29,
+ 35
+ ],
+ "qtype": 1,
+ "logits": [
+ -1.707595,
+ -0.034462,
+ -2.091117,
+ -1.260114
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "refund",
+ "probabilities": {
+ "refund": 0.9999,
+ "cancel": 0.0,
+ "technical": 0.0,
+ "other": 0.0
+ },
+ "confidence": 0.9994
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.0178,
+ "normal": 0.0869,
+ "urgent": 0.8953
+ },
+ "confidence": 0.6512
+ },
+ "many": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 1.0,
+ "sales": 0.0,
+ "support": 0.0,
+ "legal": 0.0,
+ "security": 0.0,
+ "hr": 0.0,
+ "it": 0.0,
+ "ops": 0.0,
+ "finance": 0.0,
+ "marketing": 0.0,
+ "product": 0.0,
+ "design": 0.0
+ },
+ "confidence": 0.9999
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.9952,
+ "confidence": 0.9952
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.3277,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.1166,
+ "1": 0.6215,
+ "2": 0.0795,
+ "3": 0.1824
+ },
+ "confidence": 0.2369
+ }
+ },
+ "input_tokens": 248
+ },
+ {
+ "name": "long_conversation_left_truncated",
+ "state": [
+ {
+ "role": "user",
+ "content": "Message 0: my order #1000 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 0: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 1: my order #1001 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 1: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 2: my order #1002 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 2: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 3: my order #1003 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 3: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 4: my order #1004 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 4: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 5: my order #1005 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 5: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 6: my order #1006 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 6: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 7: my order #1007 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 7: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 8: my order #1008 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 8: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 9: my order #1009 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 9: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 10: my order #1010 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 10: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 11: my order #1011 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 11: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 12: my order #1012 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 12: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 13: my order #1013 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 13: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 14: my order #1014 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 14: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 15: my order #1015 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 15: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 16: my order #1016 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 16: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 17: my order #1017 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 17: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 18: my order #1018 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 18: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 19: my order #1019 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 19: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 20: my order #1020 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 20: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 21: my order #1021 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 21: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 22: my order #1022 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 22: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 23: my order #1023 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 23: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 24: my order #1024 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 24: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 25: my order #1025 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 25: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 26: my order #1026 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 26: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 27: my order #1027 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 27: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 28: my order #1028 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 28: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 29: my order #1029 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 29: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 30: my order #1030 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 30: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 31: my order #1031 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 31: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 32: my order #1032 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 32: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 33: my order #1033 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 33: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 34: my order #1034 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 34: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 35: my order #1035 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 35: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 36: my order #1036 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 36: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 37: my order #1037 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 37: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 38: my order #1038 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 38: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 39: my order #1039 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 39: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 40: my order #1040 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 40: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 41: my order #1041 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 41: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 42: my order #1042 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 42: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 43: my order #1043 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 43: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 44: my order #1044 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 44: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "FINAL: forget it, cancel everything and refund me now."
+ }
+ ],
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 96,
+ "sha256": "9b78c527426a4887269234cc9197698db43ccc97ee6cc03125ed93c8cc393c12",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.084344,
+ -0.939029,
+ -1.599998,
+ -1.337109
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 96,
+ "sha256": "453194ee55d5c8bebdfe3c8e936525fd30383cc7de959f164d8bc7cea58f3603",
+ "markers": [
+ 7,
+ 9,
+ 11
+ ],
+ "qtype": 0,
+ "logits": [
+ -4.059484,
+ -2.372575,
+ -0.030897
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 96,
+ "sha256": "6c89b1ed6e5276dc1628bc5a303bf1bb62909df223fe5631664865176cd2c548",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ -3.176824,
+ -3.840924,
+ -2.74298,
+ -3.543097,
+ -1.732728,
+ -1.888946,
+ -0.935533,
+ -2.863961,
+ -2.871764,
+ -2.519354,
+ -2.703133,
+ -4.562947
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 96,
+ "sha256": "283fead4ff74977b35ae857ce03ebe4602e0e398dbafd0e9744097055ecff4ac",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ -3.501434,
+ 0.29686
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 96,
+ "sha256": "5dd3b653f94e31a7b75a11a6a460d439caa8a8fea67da96072c6d8fe8a2800f3",
+ "markers": [
+ 17,
+ 23,
+ 29,
+ 35
+ ],
+ "qtype": 1,
+ "logits": [
+ -0.935459,
+ -0.223268,
+ -3.011218,
+ -2.407524
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "cancel",
+ "probabilities": {
+ "refund": 0.1269,
+ "cancel": 0.399,
+ "technical": 0.206,
+ "other": 0.268
+ },
+ "confidence": 0.0572
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.016,
+ "normal": 0.0863,
+ "urgent": 0.8977
+ },
+ "confidence": 0.6592
+ },
+ "many": {
+ "type": "choice",
+ "choice": "it",
+ "probabilities": {
+ "billing": 0.0363,
+ "sales": 0.0187,
+ "support": 0.0561,
+ "legal": 0.0252,
+ "security": 0.1539,
+ "hr": 0.1317,
+ "it": 0.3416,
+ "ops": 0.0497,
+ "finance": 0.0493,
+ "marketing": 0.0701,
+ "product": 0.0583,
+ "design": 0.0091
+ },
+ "confidence": 0.1697
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.9781,
+ "confidence": 0.9781
+ },
+ "frustration": {
+ "type": "score",
+ "score": 0.8775,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.2947,
+ "1": 0.6007,
+ "2": 0.037,
+ "3": 0.0676
+ },
+ "confidence": 0.3001
+ }
+ },
+ "input_tokens": 480
+ }
+ ]
+ },
+ "overflow_error": "question 'too_many' options exceed head_max_len=64",
+ "tokenizations": {
+ "choice question: What does the customer want?": [
+ 6241,
+ 2872,
+ 235292,
+ 2439,
+ 1721,
+ 573,
+ 6650,
+ 1938,
+ 235336
+ ],
+ " refund: wants money back": [
+ 19745,
+ 235292,
+ 8507,
+ 3370,
+ 1355
+ ],
+ " cancel: wants to cancel": [
+ 12459,
+ 235292,
+ 8507,
+ 577,
+ 12459
+ ],
+ " technical: reports a bug": [
+ 9838,
+ 235292,
+ 8134,
+ 476,
+ 11004
+ ],
+ " other": [
+ 1156
+ ],
+ "Hi, I was charged twice for my subscription this month. Please refund one charge ASAP!": [
+ 11192,
+ 235269,
+ 590,
+ 729,
+ 12497,
+ 11594,
+ 604,
+ 970,
+ 20670,
+ 736,
+ 2514,
+ 235265,
+ 5651,
+ 19745,
+ 974,
+ 6256,
+ 74321,
+ 235341
+ ],
+ "choice question: Ticket priority": [
+ 6241,
+ 2872,
+ 235292,
+ 40624,
+ 15852
+ ],
+ " low": [
+ 3178
+ ],
+ " normal": [
+ 4500
+ ],
+ " urgent": [
+ 34722
+ ],
+ "choice question: Pick the department": [
+ 6241,
+ 2872,
+ 235292,
+ 17350,
+ 573,
+ 9888
+ ],
+ " billing": [
+ 54972
+ ],
+ " sales": [
+ 7108
+ ],
+ " support": [
+ 2676
+ ],
+ " legal": [
+ 7035
+ ],
+ " security": [
+ 6206
+ ],
+ " hr": [
+ 25211
+ ],
+ " it": [
+ 665
+ ],
+ " ops": [
+ 39806
+ ],
+ " finance": [
+ 17048
+ ],
+ " marketing": [
+ 8924
+ ],
+ " product": [
+ 3225
+ ],
+ " design": [
+ 2480
+ ],
+ "noul question: The customer explicitly requests a refund.": [
+ 552,
+ 6311,
+ 2872,
+ 235292,
+ 714,
+ 6650,
+ 34913,
+ 12557,
+ 476,
+ 19745,
+ 235265
+ ],
+ " false: no, the statement does not hold": [
+ 1566,
+ 235292,
+ 793,
+ 235269,
+ 573,
+ 6218,
+ 1721,
+ 780,
+ 3385
+ ],
+ " true: yes, the statement holds": [
+ 1382,
+ 235292,
+ 7778,
+ 235269,
+ 573,
+ 6218,
+ 12723
+ ],
+ "noul question: Is the customer angry?": [
+ 552,
+ 6311,
+ 2872,
+ 235292,
+ 2125,
+ 573,
+ 6650,
+ 19456,
+ 235336
+ ],
+ " calm: no, the statement does not hold": [
+ 15142,
+ 235292,
+ 793,
+ 235269,
+ 573,
+ 6218,
+ 1721,
+ 780,
+ 3385
+ ],
+ " angry: angry or hostile tone": [
+ 19456,
+ 235292,
+ 19456,
+ 689,
+ 45313,
+ 14533
+ ],
+ "score question: {\"rubric\": \"How frustrated is the customer?\"}": [
+ 7716,
+ 2872,
+ 235292,
+ 19946,
+ 12698,
+ 1337,
+ 1192,
+ 664,
+ 2299,
+ 46867,
+ 603,
+ 573,
+ 6650,
+ 3595,
+ 235270
+ ],
+ " level 0: calm": [
+ 2403,
+ 235248,
+ 235276,
+ 235292,
+ 15142
+ ],
+ " level 1: {\"desc\": \"mildly annoyed\"}": [
+ 2403,
+ 235248,
+ 235274,
+ 235292,
+ 19946,
+ 11622,
+ 1192,
+ 664,
+ 116215,
+ 605,
+ 61058,
+ 12990
+ ],
+ " level 2: frustrated": [
+ 2403,
+ 235248,
+ 235284,
+ 235292,
+ 46867
+ ],
+ " level 3: furious": [
+ 2403,
+ 235248,
+ 235304,
+ 235292,
+ 59276
+ ],
+ "choice question: Which channel? [MASK] ": [
+ 6241,
+ 2872,
+ 235292,
+ 12236,
+ 8653,
+ 235336,
+ 892,
+ 43551,
+ 235307,
+ 235248,
+ 235248
+ ],
+ " email: 0": [
+ 4801,
+ 235292,
+ 235248,
+ 235276
+ ],
+ " phone: [\"call\", \"voicemail\"]": [
+ 5248,
+ 235292,
+ 10890,
+ 4925,
+ 824,
+ 664,
+ 13261,
+ 1765,
+ 4437
+ ],
+ " chat: {\"live\": true}": [
+ 9232,
+ 235292,
+ 19946,
+ 8064,
+ 1192,
+ 1382,
+ 235270
+ ],
+ " none": [
+ 8031
+ ],
+ "noul question: Does the text mention money?": [
+ 552,
+ 6311,
+ 2872,
+ 235292,
+ 11188,
+ 573,
+ 2793,
+ 5512,
+ 3370,
+ 235336
+ ],
+ " false: no money is mentioned": [
+ 1566,
+ 235292,
+ 793,
+ 3370,
+ 603,
+ 8248
+ ],
+ " true: mentions a payment, charge, price or refund": [
+ 1382,
+ 235292,
+ 41986,
+ 476,
+ 7984,
+ 235269,
+ 6256,
+ 235269,
+ 3712,
+ 689,
+ 19745
+ ],
+ "choice question: Which of the thirty departments owns this request?": [
+ 6241,
+ 2872,
+ 235292,
+ 12236,
+ 576,
+ 573,
+ 17831,
+ 23645,
+ 33241,
+ 736,
+ 3853,
+ 235336
+ ],
+ " dept_00: requests that belong to department number 0 and nowhere else": [
+ 70341,
+ 235298,
+ 235276,
+ 235276,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235276,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_01: requests that belong to department number 1 and nowhere else": [
+ 70341,
+ 235298,
+ 235276,
+ 235274,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235274,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_02: requests that belong to department number 2 and nowhere else": [
+ 70341,
+ 235298,
+ 235276,
+ 235284,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235284,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_03: requests that belong to department number 3 and nowhere else": [
+ 70341,
+ 235298,
+ 235276,
+ 235304,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235304,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_04: requests that belong to department number 4 and nowhere else": [
+ 70341,
+ 235298,
+ 235276,
+ 235310,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235310,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_05: requests that belong to department number 5 and nowhere else": [
+ 70341,
+ 235298,
+ 235276,
+ 235308,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235308,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_06: requests that belong to department number 6 and nowhere else": [
+ 70341,
+ 235298,
+ 235276,
+ 235318,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235318,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_07: requests that belong to department number 7 and nowhere else": [
+ 70341,
+ 235298,
+ 235276,
+ 235324,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235324,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_08: requests that belong to department number 8 and nowhere else": [
+ 70341,
+ 235298,
+ 235276,
+ 235321,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235321,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_09: requests that belong to department number 9 and nowhere else": [
+ 70341,
+ 235298,
+ 235276,
+ 235315,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235315,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_10: requests that belong to department number 10 and nowhere else": [
+ 70341,
+ 235298,
+ 235274,
+ 235276,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235274,
+ 235276,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_11: requests that belong to department number 11 and nowhere else": [
+ 70341,
+ 235298,
+ 235274,
+ 235274,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235274,
+ 235274,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_12: requests that belong to department number 12 and nowhere else": [
+ 70341,
+ 235298,
+ 235274,
+ 235284,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235274,
+ 235284,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_13: requests that belong to department number 13 and nowhere else": [
+ 70341,
+ 235298,
+ 235274,
+ 235304,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235274,
+ 235304,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_14: requests that belong to department number 14 and nowhere else": [
+ 70341,
+ 235298,
+ 235274,
+ 235310,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235274,
+ 235310,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_15: requests that belong to department number 15 and nowhere else": [
+ 70341,
+ 235298,
+ 235274,
+ 235308,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235274,
+ 235308,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_16: requests that belong to department number 16 and nowhere else": [
+ 70341,
+ 235298,
+ 235274,
+ 235318,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235274,
+ 235318,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_17: requests that belong to department number 17 and nowhere else": [
+ 70341,
+ 235298,
+ 235274,
+ 235324,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235274,
+ 235324,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_18: requests that belong to department number 18 and nowhere else": [
+ 70341,
+ 235298,
+ 235274,
+ 235321,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235274,
+ 235321,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_19: requests that belong to department number 19 and nowhere else": [
+ 70341,
+ 235298,
+ 235274,
+ 235315,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235274,
+ 235315,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_20: requests that belong to department number 20 and nowhere else": [
+ 70341,
+ 235298,
+ 235284,
+ 235276,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235284,
+ 235276,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_21: requests that belong to department number 21 and nowhere else": [
+ 70341,
+ 235298,
+ 235284,
+ 235274,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235284,
+ 235274,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_22: requests that belong to department number 22 and nowhere else": [
+ 70341,
+ 235298,
+ 235284,
+ 235284,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235284,
+ 235284,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_23: requests that belong to department number 23 and nowhere else": [
+ 70341,
+ 235298,
+ 235284,
+ 235304,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235284,
+ 235304,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_24: requests that belong to department number 24 and nowhere else": [
+ 70341,
+ 235298,
+ 235284,
+ 235310,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235284,
+ 235310,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_25: requests that belong to department number 25 and nowhere else": [
+ 70341,
+ 235298,
+ 235284,
+ 235308,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235284,
+ 235308,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_26: requests that belong to department number 26 and nowhere else": [
+ 70341,
+ 235298,
+ 235284,
+ 235318,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235284,
+ 235318,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_27: requests that belong to department number 27 and nowhere else": [
+ 70341,
+ 235298,
+ 235284,
+ 235324,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235284,
+ 235324,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_28: requests that belong to department number 28 and nowhere else": [
+ 70341,
+ 235298,
+ 235284,
+ 235321,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235284,
+ 235321,
+ 578,
+ 33113,
+ 1354
+ ],
+ " dept_29: requests that belong to department number 29 and nowhere else": [
+ 70341,
+ 235298,
+ 235284,
+ 235315,
+ 235292,
+ 12557,
+ 674,
+ 8070,
+ 577,
+ 9888,
+ 1758,
+ 235248,
+ 235284,
+ 235315,
+ 578,
+ 33113,
+ 1354
+ ],
+ "choice question: Which category does this text belong to?": [
+ 6241,
+ 2872,
+ 235292,
+ 12236,
+ 9701,
+ 1721,
+ 736,
+ 2793,
+ 8070,
+ 577,
+ 235336
+ ],
+ " technical": [
+ 9838
+ ],
+ "{\"subject\": \"Login broken\", \"body\": \"Since the update I can't log in; error 500.\", \"customer_tier\": \"enterprise\", \"prior_tickets\": 3}": [
+ 19946,
+ 15029,
+ 1192,
+ 664,
+ 8441,
+ 10127,
+ 824,
+ 664,
+ 2168,
+ 1192,
+ 664,
+ 12496,
+ 573,
+ 4601,
+ 590,
+ 798,
+ 235303,
+ 235251,
+ 3846,
+ 575,
+ 235289,
+ 3333,
+ 235248,
+ 235308,
+ 235276,
+ 235276,
+ 19515,
+ 664,
+ 15371,
+ 235298,
+ 8058,
+ 1192,
+ 664,
+ 86596,
+ 824,
+ 664,
+ 54000,
+ 235298,
+ 67978,
+ 1192,
+ 235248,
+ 235304,
+ 235270
+ ],
+ "[{\"role\": \"user\", \"content\": \"I want to cancel.\"}, {\"role\": \"agent\", \"content\": \"Sorry to hear that - may I ask why?\"}, {\"role\": \"user\", \"content\": \"Too expensive, and support is slow. Cancel it now.\"}]": [
+ 892,
+ 9766,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 235285,
+ 1938,
+ 577,
+ 12459,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 12156,
+ 577,
+ 4675,
+ 674,
+ 728,
+ 1249,
+ 590,
+ 5291,
+ 3165,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 22208,
+ 12024,
+ 235269,
+ 578,
+ 2676,
+ 603,
+ 6080,
+ 235265,
+ 36075,
+ 665,
+ 1490,
+ 1464,
+ 12765
+ ],
+ "The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times.": [
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265,
+ 714,
+ 39164,
+ 729,
+ 28090,
+ 1653,
+ 578,
+ 573,
+ 6650,
+ 6559,
+ 575,
+ 3757,
+ 3023,
+ 235265
+ ],
+ "[{\"role\": \"user\", \"content\": \"Message 0: my order #1000 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 0: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 1: my order #1001 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 1: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 2: my order #1002 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 2: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 3: my order #1003 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 3: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 4: my order #1004 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 4: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 5: my order #1005 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 5: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 6: my order #1006 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 6: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 7: my order #1007 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 7: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 8: my order #1008 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 8: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 9: my order #1009 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 9: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 10: my order #1010 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 10: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 11: my order #1011 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 11: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 12: my order #1012 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 12: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 13: my order #1013 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 13: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 14: my order #1014 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 14: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 15: my order #1015 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 15: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 16: my order #1016 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 16: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 17: my order #1017 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 17: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 18: my order #1018 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 18: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 19: my order #1019 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 19: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 20: my order #1020 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 20: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 21: my order #1021 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 21: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 22: my order #1022 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 22: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 23: my order #1023 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 23: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 24: my order #1024 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 24: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 25: my order #1025 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 25: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 26: my order #1026 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 26: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 27: my order #1027 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 27: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 28: my order #1028 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 28: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 29: my order #1029 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 29: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 30: my order #1030 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 30: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 31: my order #1031 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 31: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 32: my order #1032 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 32: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 33: my order #1033 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 33: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 34: my order #1034 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 34: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 35: my order #1035 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 35: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 36: my order #1036 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 36: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 37: my order #1037 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 37: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 38: my order #1038 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 38: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 39: my order #1039 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 39: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 40: my order #1040 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 40: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 41: my order #1041 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 41: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 42: my order #1042 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 42: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 43: my order #1043 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 43: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 44: my order #1044 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 44: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"FINAL: forget it, cancel everything and refund me now.\"}]": [
+ 892,
+ 9766,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235276,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235276,
+ 235276,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235276,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235274,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235276,
+ 235274,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235274,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235284,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235276,
+ 235284,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235284,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235304,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235276,
+ 235304,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235304,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235310,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235276,
+ 235310,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235310,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235308,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235276,
+ 235308,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235308,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235318,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235276,
+ 235318,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235318,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235324,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235276,
+ 235324,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235324,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235321,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235276,
+ 235321,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235321,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235315,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235276,
+ 235315,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235315,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235274,
+ 235276,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235274,
+ 235276,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235274,
+ 235276,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235274,
+ 235274,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235274,
+ 235274,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235274,
+ 235274,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235274,
+ 235284,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235274,
+ 235284,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235274,
+ 235284,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235274,
+ 235304,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235274,
+ 235304,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235274,
+ 235304,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235274,
+ 235310,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235274,
+ 235310,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235274,
+ 235310,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235274,
+ 235308,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235274,
+ 235308,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235274,
+ 235308,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235274,
+ 235318,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235274,
+ 235318,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235274,
+ 235318,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235274,
+ 235324,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235274,
+ 235324,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235274,
+ 235324,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235274,
+ 235321,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235274,
+ 235321,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235274,
+ 235321,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235274,
+ 235315,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235274,
+ 235315,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235274,
+ 235315,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235284,
+ 235276,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235284,
+ 235276,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235284,
+ 235276,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235284,
+ 235274,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235284,
+ 235274,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235284,
+ 235274,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235284,
+ 235284,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235284,
+ 235284,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235284,
+ 235284,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235284,
+ 235304,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235284,
+ 235304,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235284,
+ 235304,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235284,
+ 235310,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235284,
+ 235310,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235284,
+ 235310,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235284,
+ 235308,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235284,
+ 235308,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235284,
+ 235308,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235284,
+ 235318,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235284,
+ 235318,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235284,
+ 235318,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235284,
+ 235324,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235284,
+ 235324,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235284,
+ 235324,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235284,
+ 235321,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235284,
+ 235321,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235284,
+ 235321,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235284,
+ 235315,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235284,
+ 235315,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235284,
+ 235315,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235304,
+ 235276,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235304,
+ 235276,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235304,
+ 235276,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235304,
+ 235274,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235304,
+ 235274,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235304,
+ 235274,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235304,
+ 235284,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235304,
+ 235284,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235304,
+ 235284,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235304,
+ 235304,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235304,
+ 235304,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235304,
+ 235304,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235304,
+ 235310,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235304,
+ 235310,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235304,
+ 235310,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235304,
+ 235308,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235304,
+ 235308,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235304,
+ 235308,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235304,
+ 235318,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235304,
+ 235318,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235304,
+ 235318,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235304,
+ 235324,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235304,
+ 235324,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235304,
+ 235324,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235304,
+ 235321,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235304,
+ 235321,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235304,
+ 235321,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235304,
+ 235315,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235304,
+ 235315,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235304,
+ 235315,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235310,
+ 235276,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235310,
+ 235276,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235310,
+ 235276,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235310,
+ 235274,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235310,
+ 235274,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235310,
+ 235274,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235310,
+ 235284,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235310,
+ 235284,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235310,
+ 235284,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235310,
+ 235304,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235310,
+ 235304,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235310,
+ 235304,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 3321,
+ 235248,
+ 235310,
+ 235310,
+ 235292,
+ 970,
+ 2184,
+ 1700,
+ 235274,
+ 235276,
+ 235310,
+ 235310,
+ 2076,
+ 919,
+ 780,
+ 11987,
+ 235269,
+ 1570,
+ 603,
+ 665,
+ 3595,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 16661,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 1946,
+ 235248,
+ 235310,
+ 235310,
+ 235292,
+ 9897,
+ 235269,
+ 783,
+ 708,
+ 18604,
+ 675,
+ 573,
+ 77811,
+ 1464,
+ 789,
+ 19946,
+ 8247,
+ 1192,
+ 664,
+ 1645,
+ 824,
+ 664,
+ 3312,
+ 1192,
+ 664,
+ 60781,
+ 235292,
+ 9535,
+ 665,
+ 235269,
+ 12459,
+ 4553,
+ 578,
+ 19745,
+ 682,
+ 1490,
+ 1464,
+ 12765
+ ],
+ "Bonjour, je voudrais annuler ma commande n°1234 — merci. [MASK] Grüße ¿qué? 😀": [
+ 97882,
+ 235269,
+ 1957,
+ 172011,
+ 3259,
+ 10788,
+ 718,
+ 35208,
+ 552,
+ 235657,
+ 235274,
+ 235284,
+ 235304,
+ 235310,
+ 2062,
+ 42309,
+ 235265,
+ 892,
+ 43551,
+ 235307,
+ 28427,
+ 235248,
+ 235248,
+ 6742,
+ 14419,
+ 235336,
+ 79937
+ ],
+ "मुझसे दो बार शुल्क लिया गया, कृपया पैसे वापस करें। 二重に請求されました。返金してください。": [
+ 39728,
+ 238385,
+ 20579,
+ 51484,
+ 99744,
+ 144905,
+ 228834,
+ 158850,
+ 44370,
+ 235269,
+ 232499,
+ 4587,
+ 54026,
+ 195109,
+ 235533,
+ 38607,
+ 235940,
+ 20787,
+ 235846,
+ 235400,
+ 133074,
+ 65612,
+ 235362,
+ 236572,
+ 235854,
+ 54934,
+ 235362
+ ],
+ "": [],
+ "choice question: pick": [
+ 6241,
+ 2872,
+ 235292,
+ 4788
+ ],
+ " option 0": [
+ 4984,
+ 235248,
+ 235276
+ ],
+ " option 1": [
+ 4984,
+ 235248,
+ 235274
+ ],
+ " option 2": [
+ 4984,
+ 235248,
+ 235284
+ ],
+ " option 3": [
+ 4984,
+ 235248,
+ 235304
+ ],
+ " option 4": [
+ 4984,
+ 235248,
+ 235310
+ ],
+ " option 5": [
+ 4984,
+ 235248,
+ 235308
+ ],
+ " option 6": [
+ 4984,
+ 235248,
+ 235318
+ ],
+ " option 7": [
+ 4984,
+ 235248,
+ 235324
+ ],
+ " option 8": [
+ 4984,
+ 235248,
+ 235321
+ ],
+ " option 9": [
+ 4984,
+ 235248,
+ 235315
+ ],
+ " option 10": [
+ 4984,
+ 235248,
+ 235274,
+ 235276
+ ],
+ " option 11": [
+ 4984,
+ 235248,
+ 235274,
+ 235274
+ ],
+ " option 12": [
+ 4984,
+ 235248,
+ 235274,
+ 235284
+ ],
+ " option 13": [
+ 4984,
+ 235248,
+ 235274,
+ 235304
+ ],
+ " option 14": [
+ 4984,
+ 235248,
+ 235274,
+ 235310
+ ],
+ " option 15": [
+ 4984,
+ 235248,
+ 235274,
+ 235308
+ ],
+ " option 16": [
+ 4984,
+ 235248,
+ 235274,
+ 235318
+ ],
+ " option 17": [
+ 4984,
+ 235248,
+ 235274,
+ 235324
+ ],
+ " option 18": [
+ 4984,
+ 235248,
+ 235274,
+ 235321
+ ],
+ " option 19": [
+ 4984,
+ 235248,
+ 235274,
+ 235315
+ ],
+ " option 20": [
+ 4984,
+ 235248,
+ 235284,
+ 235276
+ ],
+ " option 21": [
+ 4984,
+ 235248,
+ 235284,
+ 235274
+ ],
+ " option 22": [
+ 4984,
+ 235248,
+ 235284,
+ 235284
+ ],
+ " option 23": [
+ 4984,
+ 235248,
+ 235284,
+ 235304
+ ],
+ " option 24": [
+ 4984,
+ 235248,
+ 235284,
+ 235310
+ ],
+ " option 25": [
+ 4984,
+ 235248,
+ 235284,
+ 235308
+ ],
+ " option 26": [
+ 4984,
+ 235248,
+ 235284,
+ 235318
+ ],
+ " option 27": [
+ 4984,
+ 235248,
+ 235284,
+ 235324
+ ],
+ " option 28": [
+ 4984,
+ 235248,
+ 235284,
+ 235321
+ ],
+ " option 29": [
+ 4984,
+ 235248,
+ 235284,
+ 235315
+ ],
+ " option 30": [
+ 4984,
+ 235248,
+ 235304,
+ 235276
+ ],
+ " option 31": [
+ 4984,
+ 235248,
+ 235304,
+ 235274
+ ],
+ " option 32": [
+ 4984,
+ 235248,
+ 235304,
+ 235284
+ ],
+ " option 33": [
+ 4984,
+ 235248,
+ 235304,
+ 235304
+ ],
+ " option 34": [
+ 4984,
+ 235248,
+ 235304,
+ 235310
+ ],
+ " option 35": [
+ 4984,
+ 235248,
+ 235304,
+ 235308
+ ],
+ " option 36": [
+ 4984,
+ 235248,
+ 235304,
+ 235318
+ ],
+ " option 37": [
+ 4984,
+ 235248,
+ 235304,
+ 235324
+ ],
+ " option 38": [
+ 4984,
+ 235248,
+ 235304,
+ 235321
+ ],
+ " option 39": [
+ 4984,
+ 235248,
+ 235304,
+ 235315
+ ],
+ " option 40": [
+ 4984,
+ 235248,
+ 235310,
+ 235276
+ ],
+ " option 41": [
+ 4984,
+ 235248,
+ 235310,
+ 235274
+ ],
+ " option 42": [
+ 4984,
+ 235248,
+ 235310,
+ 235284
+ ],
+ " option 43": [
+ 4984,
+ 235248,
+ 235310,
+ 235304
+ ],
+ " option 44": [
+ 4984,
+ 235248,
+ 235310,
+ 235310
+ ],
+ " option 45": [
+ 4984,
+ 235248,
+ 235310,
+ 235308
+ ],
+ " option 46": [
+ 4984,
+ 235248,
+ 235310,
+ 235318
+ ],
+ " option 47": [
+ 4984,
+ 235248,
+ 235310,
+ 235324
+ ],
+ " option 48": [
+ 4984,
+ 235248,
+ 235310,
+ 235321
+ ],
+ " option 49": [
+ 4984,
+ 235248,
+ 235310,
+ 235315
+ ],
+ " option 50": [
+ 4984,
+ 235248,
+ 235308,
+ 235276
+ ],
+ " option 51": [
+ 4984,
+ 235248,
+ 235308,
+ 235274
+ ],
+ " option 52": [
+ 4984,
+ 235248,
+ 235308,
+ 235284
+ ],
+ " option 53": [
+ 4984,
+ 235248,
+ 235308,
+ 235304
+ ],
+ " option 54": [
+ 4984,
+ 235248,
+ 235308,
+ 235310
+ ],
+ " option 55": [
+ 4984,
+ 235248,
+ 235308,
+ 235308
+ ],
+ " option 56": [
+ 4984,
+ 235248,
+ 235308,
+ 235318
+ ],
+ " option 57": [
+ 4984,
+ 235248,
+ 235308,
+ 235324
+ ],
+ " option 58": [
+ 4984,
+ 235248,
+ 235308,
+ 235321
+ ],
+ " option 59": [
+ 4984,
+ 235248,
+ 235308,
+ 235315
+ ],
+ " option 60": [
+ 4984,
+ 235248,
+ 235318,
+ 235276
+ ],
+ " option 61": [
+ 4984,
+ 235248,
+ 235318,
+ 235274
+ ],
+ " option 62": [
+ 4984,
+ 235248,
+ 235318,
+ 235284
+ ],
+ " option 63": [
+ 4984,
+ 235248,
+ 235318,
+ 235304
+ ],
+ " option 64": [
+ 4984,
+ 235248,
+ 235318,
+ 235310
+ ],
+ " option 65": [
+ 4984,
+ 235248,
+ 235318,
+ 235308
+ ],
+ " option 66": [
+ 4984,
+ 235248,
+ 235318,
+ 235318
+ ],
+ " option 67": [
+ 4984,
+ 235248,
+ 235318,
+ 235324
+ ],
+ " option 68": [
+ 4984,
+ 235248,
+ 235318,
+ 235321
+ ],
+ " option 69": [
+ 4984,
+ 235248,
+ 235318,
+ 235315
+ ],
+ " option 70": [
+ 4984,
+ 235248,
+ 235324,
+ 235276
+ ],
+ " option 71": [
+ 4984,
+ 235248,
+ 235324,
+ 235274
+ ],
+ " option 72": [
+ 4984,
+ 235248,
+ 235324,
+ 235284
+ ],
+ " option 73": [
+ 4984,
+ 235248,
+ 235324,
+ 235304
+ ],
+ " option 74": [
+ 4984,
+ 235248,
+ 235324,
+ 235310
+ ],
+ " option 75": [
+ 4984,
+ 235248,
+ 235324,
+ 235308
+ ],
+ " option 76": [
+ 4984,
+ 235248,
+ 235324,
+ 235318
+ ],
+ " option 77": [
+ 4984,
+ 235248,
+ 235324,
+ 235324
+ ],
+ " option 78": [
+ 4984,
+ 235248,
+ 235324,
+ 235321
+ ],
+ " option 79": [
+ 4984,
+ 235248,
+ 235324,
+ 235315
+ ],
+ "x": [
+ 1141
+ ]
+ }
+}
diff --git a/packages/sie_server/tests/adapters/fixtures/laya/laya-typed-decisions.json b/packages/sie_server/tests/adapters/fixtures/laya/laya-typed-decisions.json
new file mode 100644
index 000000000..6ba6b6f53
--- /dev/null
+++ b/packages/sie_server/tests/adapters/fixtures/laya/laya-typed-decisions.json
@@ -0,0 +1,9263 @@
+{
+ "generator": "laya reference implementation (pip laya==0.3.11), CPU float32",
+ "environment": {
+ "torch": "2.8.0+cpu",
+ "transformers": "4.57.6"
+ },
+ "repo": "convaiinnovations/laya-typed-decisions",
+ "revision": "bc76315b568af04bc19f133c8bca9a2b3a2d9905",
+ "max_len": 1024,
+ "head_max_len": 256,
+ "rl_agent_config": {
+ "temperature": [
+ 1.0148024559020996,
+ 1.0374259948730469,
+ 1.0575125217437744
+ ],
+ "temperature_by_options": {
+ "choice:3-5": 1.7601518630981445,
+ "choice:6-10": 1.0000158548355103,
+ "score:3-5": 1.2514300346374512,
+ "noul:2": 1.983399510383606,
+ "choice:11+": 0.10058280825614929,
+ "choice:2": 1.9063563346862793
+ }
+ },
+ "temperature_applied": [
+ 1.0148024559020996,
+ 1.0374259948730469,
+ 1.0575125217437744
+ ],
+ "temperature_by_options_applied": {
+ "choice:3-5": 1.7601518630981445,
+ "choice:6-10": 1.0000158548355103,
+ "score:3-5": 1.2514300346374512,
+ "noul:2": 1.983399510383606,
+ "choice:11+": 0.5,
+ "choice:2": 1.9063563346862793
+ },
+ "tokenizer": {
+ "mask_token": "[MASK]",
+ "mask_token_id": 50284,
+ "cls_token_id": 50281,
+ "sep_token_id": 50282,
+ "pad_token_id": 50283
+ },
+ "questions": {
+ "intent": {
+ "type": "choice",
+ "instructions": "What does the customer want?",
+ "criteria": {
+ "refund": "wants money back",
+ "cancel": "wants to cancel",
+ "technical": "reports a bug",
+ "other": null
+ }
+ },
+ "priority": {
+ "type": "choice",
+ "instructions": "Ticket priority",
+ "criteria": [
+ "low",
+ "normal",
+ "urgent"
+ ]
+ },
+ "many": {
+ "type": "choice",
+ "instructions": "Pick the department",
+ "criteria": [
+ "billing",
+ "sales",
+ "support",
+ "legal",
+ "security",
+ "hr",
+ "it",
+ "ops",
+ "finance",
+ "marketing",
+ "product",
+ "design"
+ ]
+ },
+ "refund_requested": {
+ "type": "noul",
+ "instructions": "The customer explicitly requests a refund."
+ },
+ "angry_labels": {
+ "type": "noul",
+ "instructions": "Is the customer angry?",
+ "criteria": {
+ "true": "angry or hostile tone"
+ },
+ "labels": {
+ "false": "calm",
+ "true": "angry"
+ }
+ },
+ "frustration": {
+ "type": "score",
+ "instructions": {
+ "rubric": "How frustrated is the customer?"
+ },
+ "criteria": [
+ "calm",
+ {
+ "desc": "mildly annoyed"
+ },
+ "frustrated",
+ "furious"
+ ]
+ },
+ "crit_values": {
+ "type": "choice",
+ "instructions": "Which channel? [MASK] <mask>",
+ "criteria": {
+ "email": 0,
+ "phone": [
+ "call",
+ "voicemail"
+ ],
+ "chat": {
+ "live": true
+ },
+ "none": ""
+ }
+ },
+ "noul_both": {
+ "type": "noul",
+ "instructions": "Does the text mention money?",
+ "criteria": {
+ "true": "mentions a payment, charge, price or refund",
+ "false": "no money is mentioned"
+ }
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "instructions": "Which of the thirty departments owns this request?",
+ "criteria": {
+ "dept_00": "requests that belong to department number 0 and nowhere else",
+ "dept_01": "requests that belong to department number 1 and nowhere else",
+ "dept_02": "requests that belong to department number 2 and nowhere else",
+ "dept_03": "requests that belong to department number 3 and nowhere else",
+ "dept_04": "requests that belong to department number 4 and nowhere else",
+ "dept_05": "requests that belong to department number 5 and nowhere else",
+ "dept_06": "requests that belong to department number 6 and nowhere else",
+ "dept_07": "requests that belong to department number 7 and nowhere else",
+ "dept_08": "requests that belong to department number 8 and nowhere else",
+ "dept_09": "requests that belong to department number 9 and nowhere else",
+ "dept_10": "requests that belong to department number 10 and nowhere else",
+ "dept_11": "requests that belong to department number 11 and nowhere else",
+ "dept_12": "requests that belong to department number 12 and nowhere else",
+ "dept_13": "requests that belong to department number 13 and nowhere else",
+ "dept_14": "requests that belong to department number 14 and nowhere else",
+ "dept_15": "requests that belong to department number 15 and nowhere else",
+ "dept_16": "requests that belong to department number 16 and nowhere else",
+ "dept_17": "requests that belong to department number 17 and nowhere else",
+ "dept_18": "requests that belong to department number 18 and nowhere else",
+ "dept_19": "requests that belong to department number 19 and nowhere else",
+ "dept_20": "requests that belong to department number 20 and nowhere else",
+ "dept_21": "requests that belong to department number 21 and nowhere else",
+ "dept_22": "requests that belong to department number 22 and nowhere else",
+ "dept_23": "requests that belong to department number 23 and nowhere else",
+ "dept_24": "requests that belong to department number 24 and nowhere else",
+ "dept_25": "requests that belong to department number 25 and nowhere else",
+ "dept_26": "requests that belong to department number 26 and nowhere else",
+ "dept_27": "requests that belong to department number 27 and nowhere else",
+ "dept_28": "requests that belong to department number 28 and nowhere else",
+ "dept_29": "requests that belong to department number 29 and nowhere else"
+ }
+ },
+ "label": {
+ "type": "choice",
+ "instructions": "Which category does this text belong to?",
+ "criteria": [
+ "billing",
+ "technical",
+ "sales",
+ "other"
+ ]
+ }
+ },
+ "cases": [
+ {
+ "name": "plain_email",
+ "state": "Hi, I was charged twice for my subscription this month. Please refund one charge ASAP!",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 52,
+ "sha256": "f4c9a7769de8197a8399394710266ff5c019f10483fc0b56814d4221b2c90b12",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ 2.380727,
+ -1.680062,
+ -1.919916,
+ -2.241886
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 35,
+ "sha256": "94250219a4f5f609e46ceef6fd66c33d20d8808d5a6cf08ec7ebbe6476247f55",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.111229,
+ -1.053503,
+ 1.809857
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 53,
+ "sha256": "6d2f44621f79cbe840188d1381db0ef9e05cb1271bef83af9683d16f478809bf",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 2.503726,
+ -2.577756,
+ -0.278215,
+ -0.500895,
+ -2.41442,
+ -2.167152,
+ -2.0506,
+ -2.779984,
+ 0.080221,
+ -2.499421,
+ -2.661594,
+ -2.917165
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 52,
+ "sha256": "bf132729b01d753f033c2f4dff67b28a7872fbe81d0fa852fe4949b4328f73f3",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ -0.745527,
+ 0.088168
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 49,
+ "sha256": "0c14fd4c2c29f967ae4ec67405dcd0c0d060d530eeeeb7833066eadabeae834e",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ -0.73009,
+ 0.103288
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 66,
+ "sha256": "7c517aa209c94dea35f303de62eda88c956c1753ad3cc8d2146ead1ab52a4d19",
+ "markers": [
+ 17,
+ 22,
+ 35,
+ 40
+ ],
+ "qtype": 1,
+ "logits": [
+ -1.893938,
+ 0.094081,
+ 2.000651,
+ 1.679234
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 58,
+ "sha256": "15e5fdfb46d3103cc9df5626f16887eeca249a1cea2738c7155f37b982dd948c",
+ "markers": [
+ 12,
+ 16,
+ 27,
+ 35
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.133954,
+ -0.854584,
+ -1.006717,
+ -0.239866
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 52,
+ "sha256": "0f9ad58a746aaed3c43542c3a79e301cfc28c980e5db9547e2ed3f181bde2890",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ -1.096478,
+ 0.832845
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 275,
+ "sha256": "66d026bc21757d6a775aeee2715786973aaf43aea118e40de4ef36c5fd1f713e",
+ "markers": [
+ 14,
+ 22,
+ 30,
+ 38,
+ 46,
+ 54,
+ 62,
+ 70,
+ 78,
+ 86,
+ 94,
+ 102,
+ 110,
+ 118,
+ 126,
+ 134,
+ 142,
+ 150,
+ 158,
+ 166,
+ 174,
+ 182,
+ 190,
+ 198,
+ 206,
+ 214,
+ 222,
+ 230,
+ 238,
+ 246
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.211435,
+ -0.34501,
+ -0.388939,
+ -1.08143,
+ -0.762664,
+ -0.964302,
+ -0.959647,
+ -1.338993,
+ -0.926486,
+ -0.790676,
+ -0.362662,
+ -0.573986,
+ -0.773897,
+ -1.165792,
+ -1.095029,
+ -1.092972,
+ -1.098881,
+ -1.185126,
+ -1.127911,
+ -0.550027,
+ -1.233011,
+ -0.88727,
+ -1.025749,
+ -1.489072,
+ -1.346718,
+ -1.719105,
+ -1.459005,
+ -1.400882,
+ -1.7341,
+ -0.934559
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 42,
+ "sha256": "aacf503acf8d3174b75b8ee396c3869729f8ba0d451af7ce0142e6b3ee30e563",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ 2.312843,
+ -2.646307,
+ -2.356035,
+ -2.092328
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "refund",
+ "probabilities": {
+ "refund": 0.7944,
+ "cancel": 0.0791,
+ "technical": 0.069,
+ "other": 0.0575
+ },
+ "confidence": 0.4719
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.1372,
+ "normal": 0.1417,
+ "urgent": 0.7211
+ },
+ "confidence": 0.2853
+ },
+ "many": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.9857,
+ "sales": 0.0,
+ "support": 0.0038,
+ "legal": 0.0024,
+ "security": 0.0001,
+ "hr": 0.0001,
+ "it": 0.0001,
+ "ops": 0.0,
+ "finance": 0.0077,
+ "marketing": 0.0,
+ "product": 0.0,
+ "design": 0.0
+ },
+ "confidence": 0.9632
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.6036,
+ "confidence": 0.6036
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.6035,
+ "confidence": 0.6035
+ },
+ "frustration": {
+ "type": "score",
+ "score": 2.2291,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0219,
+ "1": 0.107,
+ "2": 0.4912,
+ "3": 0.3799
+ },
+ "confidence": 0.25
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "email",
+ "probabilities": {
+ "email": 0.3446,
+ "phone": 0.1965,
+ "chat": 0.1802,
+ "none": 0.2787
+ },
+ "confidence": 0.0249
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.7257,
+ "confidence": 0.7257
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_00",
+ "probabilities": {
+ "dept_00": 0.1195,
+ "dept_01": 0.0915,
+ "dept_02": 0.0838,
+ "dept_03": 0.021,
+ "dept_04": 0.0397,
+ "dept_05": 0.0265,
+ "dept_06": 0.0268,
+ "dept_07": 0.0125,
+ "dept_08": 0.0286,
+ "dept_09": 0.0375,
+ "dept_10": 0.0883,
+ "dept_11": 0.0579,
+ "dept_12": 0.0388,
+ "dept_13": 0.0177,
+ "dept_14": 0.0204,
+ "dept_15": 0.0205,
+ "dept_16": 0.0203,
+ "dept_17": 0.017,
+ "dept_18": 0.0191,
+ "dept_19": 0.0607,
+ "dept_20": 0.0155,
+ "dept_21": 0.0309,
+ "dept_22": 0.0234,
+ "dept_23": 0.0093,
+ "dept_24": 0.0123,
+ "dept_25": 0.0059,
+ "dept_26": 0.0099,
+ "dept_27": 0.0111,
+ "dept_28": 0.0057,
+ "dept_29": 0.0281
+ },
+ "confidence": 0.0871
+ },
+ "label": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.825,
+ "technical": 0.0493,
+ "sales": 0.0581,
+ "other": 0.0675
+ },
+ "confidence": 0.5279
+ }
+ },
+ "input_tokens": 734
+ },
+ {
+ "name": "json_ticket",
+ "state": {
+ "subject": "Login broken",
+ "body": "Since the update I can't log in; error 500.",
+ "customer_tier": "enterprise",
+ "prior_tickets": 3
+ },
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 73,
+ "sha256": "5476cce6cfe277353629f05bffbdd36c7c9472c25d10950c00ffa1fb5e5a2b4b",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.852989,
+ -2.538347,
+ 2.392221,
+ 0.12998
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 56,
+ "sha256": "3e8157cde2ee30d3de8a51c0eb83fd69215139f3729f738f170ba46422aec9b2",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.836254,
+ 0.208523,
+ 1.60181
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 74,
+ "sha256": "2955998e861765816883c314b3676a3b4e4ab232209ca2ea3350071193d789e1",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.56941,
+ -1.958634,
+ 0.876871,
+ -1.183669,
+ 2.111799,
+ -1.678197,
+ -0.168653,
+ -0.560588,
+ -2.144073,
+ -1.155477,
+ 0.139313,
+ -0.251318
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 73,
+ "sha256": "643a4de149eaf773ee6e0fcb8b3614294e26823fd49f69ea33a2424c55adcc34",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ 3.282836,
+ -0.529961
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 70,
+ "sha256": "d68ef17f568ac9db7a619d855b4c8ea55716df7c2e4be6ad2226bee61482b794",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 0.082678,
+ 0.610702
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 87,
+ "sha256": "245a21fe4e13e61c709bb81d70937460764ae3340812100a3ffa819c5d69f6cd",
+ "markers": [
+ 17,
+ 22,
+ 35,
+ 40
+ ],
+ "qtype": 1,
+ "logits": [
+ -1.744459,
+ 0.47655,
+ 2.173525,
+ 1.106462
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 79,
+ "sha256": "b64d93c473a745b551405b9731be5247f20ce1cccc4087787e283064b682eacb",
+ "markers": [
+ 12,
+ 16,
+ 27,
+ 35
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.044064,
+ -2.008155,
+ 0.681566,
+ 0.126505
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 73,
+ "sha256": "4dfd710f14c4f771894a1978bb25c8ddb673794d24a1d5aa4aaa53117f815cfa",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ 3.534389,
+ -2.13002
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 296,
+ "sha256": "8522bdd1259d4e44ea7f8e6f247148a597c7e2ec37dffb633a83029fc2401eed",
+ "markers": [
+ 14,
+ 22,
+ 30,
+ 38,
+ 46,
+ 54,
+ 62,
+ 70,
+ 78,
+ 86,
+ 94,
+ 102,
+ 110,
+ 118,
+ 126,
+ 134,
+ 142,
+ 150,
+ 158,
+ 166,
+ 174,
+ 182,
+ 190,
+ 198,
+ 206,
+ 214,
+ 222,
+ 230,
+ 238,
+ 246
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.00906,
+ 0.039739,
+ 0.09961,
+ -0.120991,
+ -0.052482,
+ -0.114246,
+ -0.202854,
+ -0.468295,
+ -0.200531,
+ -0.032535,
+ -0.190286,
+ -0.383434,
+ -0.454815,
+ -0.509992,
+ -0.407855,
+ -0.372594,
+ -0.404806,
+ -0.400429,
+ -0.412367,
+ -0.189113,
+ -0.413971,
+ -0.563966,
+ -0.643881,
+ -0.465277,
+ -0.187733,
+ -0.139032,
+ -0.189856,
+ 0.00477,
+ 0.139733,
+ 0.192589
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 63,
+ "sha256": "028e608aed5bb3ec3d932b8b5ecc6522abb760b25b5193de0589be9b07d968b9",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.555076,
+ 2.067212,
+ -1.274954,
+ 0.068255
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "technical",
+ "probabilities": {
+ "refund": 0.0366,
+ "cancel": 0.0438,
+ "technical": 0.7204,
+ "other": 0.1992
+ },
+ "confidence": 0.4116
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.1469,
+ "normal": 0.266,
+ "urgent": 0.5871
+ },
+ "confidence": 0.1383
+ },
+ "many": {
+ "type": "choice",
+ "choice": "security",
+ "probabilities": {
+ "billing": 0.0006,
+ "sales": 0.0003,
+ "support": 0.0747,
+ "legal": 0.0012,
+ "security": 0.883,
+ "hr": 0.0005,
+ "it": 0.0092,
+ "ops": 0.0042,
+ "finance": 0.0002,
+ "marketing": 0.0013,
+ "product": 0.0171,
+ "design": 0.0078
+ },
+ "confidence": 0.7966
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.1276,
+ "confidence": 0.8724
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.5662,
+ "confidence": 0.5662
+ },
+ "frustration": {
+ "type": "score",
+ "score": 2.047,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0253,
+ "1": 0.1492,
+ "2": 0.5788,
+ "3": 0.2467
+ },
+ "confidence": 0.2508
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "chat",
+ "probabilities": {
+ "email": 0.2634,
+ "phone": 0.0821,
+ "chat": 0.3784,
+ "none": 0.2761
+ },
+ "confidence": 0.0769
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.0544,
+ "confidence": 0.9456
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_29",
+ "probabilities": {
+ "dept_00": 0.0476,
+ "dept_01": 0.0525,
+ "dept_02": 0.0591,
+ "dept_03": 0.038,
+ "dept_04": 0.0436,
+ "dept_05": 0.0386,
+ "dept_06": 0.0323,
+ "dept_07": 0.019,
+ "dept_08": 0.0324,
+ "dept_09": 0.0454,
+ "dept_10": 0.0331,
+ "dept_11": 0.0225,
+ "dept_12": 0.0195,
+ "dept_13": 0.0175,
+ "dept_14": 0.0214,
+ "dept_15": 0.023,
+ "dept_16": 0.0216,
+ "dept_17": 0.0218,
+ "dept_18": 0.0212,
+ "dept_19": 0.0332,
+ "dept_20": 0.0212,
+ "dept_21": 0.0157,
+ "dept_22": 0.0134,
+ "dept_23": 0.0191,
+ "dept_24": 0.0333,
+ "dept_25": 0.0367,
+ "dept_26": 0.0331,
+ "dept_27": 0.0489,
+ "dept_28": 0.0641,
+ "dept_29": 0.0712
+ },
+ "confidence": 0.0279
+ },
+ "label": {
+ "type": "choice",
+ "choice": "technical",
+ "probabilities": {
+ "billing": 0.0799,
+ "technical": 0.6255,
+ "sales": 0.0937,
+ "other": 0.2009
+ },
+ "confidence": 0.2501
+ }
+ },
+ "input_tokens": 944
+ },
+ {
+ "name": "conversation_list",
+ "state": [
+ {
+ "role": "user",
+ "content": "I want to cancel."
+ },
+ {
+ "role": "agent",
+ "content": "Sorry to hear that - may I ask why?"
+ },
+ {
+ "role": "user",
+ "content": "Too expensive, and support is slow. Cancel it now."
+ }
+ ],
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 95,
+ "sha256": "9f4676aeb5967b2dca42af36658e715dd3df4a45a831bdfd0b757ada3dbb6066",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.476887,
+ 3.133848,
+ -1.538554,
+ -1.942967
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 78,
+ "sha256": "99a791b7f8469848a2f79193bdacce86aa302ec5c86682071583371443bd15b1",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.750217,
+ -1.188982,
+ 2.352618
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 96,
+ "sha256": "4c3440306a5aed286680daf9648693b2d23fc09b417474ecb2fee95dedc4f4ff",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.125823,
+ -1.082438,
+ 0.875281,
+ -0.674406,
+ -2.747339,
+ -1.489761,
+ 0.736347,
+ -2.410673,
+ 0.052529,
+ -1.676006,
+ -1.086587,
+ -2.615044
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 95,
+ "sha256": "e718b478cd2d0941b405d787e30fdf7c930ae0aba5bc5a8768c8f1c7f42a835b",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ 2.526234,
+ -0.191812
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 92,
+ "sha256": "4e1865fffd8ba2e7d8c184fbfffc446e254150c3bcc8b1a61cc1c5a3d81c0763",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ -0.561869,
+ 0.86256
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 109,
+ "sha256": "a70487ce58e9361d585d9a339501377ff63e9439b2c48a89cb0e5c9184569a42",
+ "markers": [
+ 17,
+ 22,
+ 35,
+ 40
+ ],
+ "qtype": 1,
+ "logits": [
+ -1.528033,
+ 0.143043,
+ 2.341243,
+ 1.150075
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 101,
+ "sha256": "4688b4f70f8ea4c74519097d29b4e6dcf6d5e00293a1187d632f1e486fb8b67a",
+ "markers": [
+ 12,
+ 16,
+ 27,
+ 35
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.632996,
+ -0.937808,
+ 1.395414,
+ -0.826276
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 95,
+ "sha256": "8d33613d6b103a3fc834011237acd37818cc7262dc710bcc423546cc7d44090b",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ 0.522228,
+ -0.198627
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 318,
+ "sha256": "864b8fb14d2a273f7ef29ab6fe89c2cf1130b9c30843999db3dac3707c19cf96",
+ "markers": [
+ 14,
+ 22,
+ 30,
+ 38,
+ 46,
+ 54,
+ 62,
+ 70,
+ 78,
+ 86,
+ 94,
+ 102,
+ 110,
+ 118,
+ 126,
+ 134,
+ 142,
+ 150,
+ 158,
+ 166,
+ 174,
+ 182,
+ 190,
+ 198,
+ 206,
+ 214,
+ 222,
+ 230,
+ 238,
+ 246
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.132085,
+ -0.214194,
+ -0.384395,
+ -0.916502,
+ -0.926485,
+ -0.602112,
+ -0.616681,
+ -1.081678,
+ -0.649579,
+ -0.540373,
+ -0.268545,
+ -0.591322,
+ -0.538231,
+ -0.548089,
+ -0.909324,
+ -0.685876,
+ -0.723105,
+ -0.686408,
+ -0.668654,
+ -0.221116,
+ -0.665482,
+ -0.687036,
+ -0.881144,
+ -1.051368,
+ -1.149328,
+ -1.292659,
+ -0.984378,
+ -0.892263,
+ -1.659737,
+ -1.553462
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 85,
+ "sha256": "54e323d60091d042e449142cb78ef95faff857e0a113ee47edd2f9b61b8573cc",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.585418,
+ -0.131194,
+ -0.268705,
+ -0.905424
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "cancel",
+ "probabilities": {
+ "refund": 0.0353,
+ "cancel": 0.8565,
+ "technical": 0.0602,
+ "other": 0.0479
+ },
+ "confidence": 0.5921
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.1314,
+ "normal": 0.1024,
+ "urgent": 0.7661
+ },
+ "confidence": 0.359
+ },
+ "many": {
+ "type": "choice",
+ "choice": "support",
+ "probabilities": {
+ "billing": 0.0981,
+ "sales": 0.0088,
+ "support": 0.4393,
+ "legal": 0.0198,
+ "security": 0.0003,
+ "hr": 0.0039,
+ "it": 0.3327,
+ "ops": 0.0006,
+ "finance": 0.0847,
+ "marketing": 0.0027,
+ "product": 0.0087,
+ "design": 0.0004
+ },
+ "confidence": 0.4477
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.2026,
+ "confidence": 0.7974
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.6722,
+ "confidence": 0.6722
+ },
+ "frustration": {
+ "type": "score",
+ "score": 2.0764,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0283,
+ "1": 0.1076,
+ "2": 0.6234,
+ "3": 0.2407
+ },
+ "confidence": 0.2944
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "chat",
+ "probabilities": {
+ "email": 0.1694,
+ "phone": 0.1425,
+ "chat": 0.5363,
+ "none": 0.1518
+ },
+ "confidence": 0.1353
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.4101,
+ "confidence": 0.5899
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_00",
+ "probabilities": {
+ "dept_00": 0.1479,
+ "dept_01": 0.074,
+ "dept_02": 0.0527,
+ "dept_03": 0.0182,
+ "dept_04": 0.0178,
+ "dept_05": 0.0341,
+ "dept_06": 0.0331,
+ "dept_07": 0.0131,
+ "dept_08": 0.031,
+ "dept_09": 0.0385,
+ "dept_10": 0.0664,
+ "dept_11": 0.0348,
+ "dept_12": 0.0387,
+ "dept_13": 0.038,
+ "dept_14": 0.0184,
+ "dept_15": 0.0288,
+ "dept_16": 0.0267,
+ "dept_17": 0.0288,
+ "dept_18": 0.0298,
+ "dept_19": 0.073,
+ "dept_20": 0.03,
+ "dept_21": 0.0287,
+ "dept_22": 0.0195,
+ "dept_23": 0.0139,
+ "dept_24": 0.0114,
+ "dept_25": 0.0086,
+ "dept_26": 0.0159,
+ "dept_27": 0.0191,
+ "dept_28": 0.0041,
+ "dept_29": 0.0051
+ },
+ "confidence": 0.078
+ },
+ "label": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.369,
+ "technical": 0.2456,
+ "sales": 0.2272,
+ "other": 0.1582
+ },
+ "confidence": 0.0326
+ }
+ },
+ "input_tokens": 1164
+ },
+ {
+ "name": "long_truncated",
+ "state": "The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times.",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 1024,
+ "sha256": "52785bcd0991b0202f991e1e97b24b63dad5dfb4d4703165f9159b3dea3b45e1",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.519412,
+ -2.564202,
+ -1.082924,
+ 0.428072
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 1024,
+ "sha256": "0c250bd3aab03fa9161ebf73093f641aaa02838d3f1a5bc4d9112cddfb6574b9",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.278293,
+ 0.207664,
+ 0.562957
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 1024,
+ "sha256": "25c9c5b82957af56a5c7567524e8dbd9014a87ba45b27b94404074f071a07665",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.199148,
+ -0.056099,
+ 0.129221,
+ -1.402057,
+ -0.489811,
+ -1.200875,
+ -0.181544,
+ -0.217653,
+ -0.010268,
+ -0.314153,
+ -0.370378,
+ -0.842916
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 1024,
+ "sha256": "4df18b83d395264d6dbe7f0c3d6e88654095c4c4d0625e9e3731793112c918f8",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ 0.676595,
+ -0.11329
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 1024,
+ "sha256": "ba9536cc960d22cb8c0e6058cb293b727d54bf91d88770b14ea48fcd8582734a",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 0.513254,
+ 0.015741
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 1024,
+ "sha256": "76b925e6a15f0030ac3fb67a86a37ccaba0999d04a4ea99b6afb3de2d5075712",
+ "markers": [
+ 17,
+ 22,
+ 35,
+ 40
+ ],
+ "qtype": 1,
+ "logits": [
+ -0.728685,
+ 1.030581,
+ 1.305889,
+ 0.086728
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 1024,
+ "sha256": "cd5aa73d670c3f4275f9b0fe044d33e979d58209c923bb323eb16e3ab3de6666",
+ "markers": [
+ 12,
+ 16,
+ 27,
+ 35
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.12958,
+ -0.438094,
+ -0.12785,
+ 0.195728
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 1024,
+ "sha256": "039df184fc8f12019b2ddbd7107695ae31e58b8c62e688f4b1a299bf2a548211",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ 1.405368,
+ -0.377919
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 1024,
+ "sha256": "612dbc655d76f32b33c2ffa918bd503aa4a2ee4d2e445d30cc825418e41d24b4",
+ "markers": [
+ 14,
+ 22,
+ 30,
+ 38,
+ 46,
+ 54,
+ 62,
+ 70,
+ 78,
+ 86,
+ 94,
+ 102,
+ 110,
+ 118,
+ 126,
+ 134,
+ 142,
+ 150,
+ 158,
+ 166,
+ 174,
+ 182,
+ 190,
+ 198,
+ 206,
+ 214,
+ 222,
+ 230,
+ 238,
+ 246
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.667937,
+ 0.55886,
+ 0.27996,
+ 0.007718,
+ 0.094499,
+ 0.437693,
+ 0.260099,
+ -0.078361,
+ 0.075015,
+ 0.30742,
+ 0.494299,
+ 0.053608,
+ -0.016089,
+ -0.158809,
+ -0.094373,
+ -0.117593,
+ -0.110883,
+ -0.054097,
+ -0.124591,
+ 0.083387,
+ 0.299949,
+ -0.166928,
+ -0.347822,
+ -0.172916,
+ -0.175142,
+ -0.081477,
+ 0.036333,
+ -0.066657,
+ -0.041224,
+ -0.07869
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 1024,
+ "sha256": "1d0f19af21795baf4eb9c4b65003d011fc67f8148c5dcc7223548641768ca869",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.390984,
+ -0.903405,
+ -0.283695,
+ 0.230198
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "other",
+ "probabilities": {
+ "refund": 0.1707,
+ "cancel": 0.0943,
+ "technical": 0.2188,
+ "other": 0.5162
+ },
+ "confidence": 0.1356
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.3189,
+ "normal": 0.3063,
+ "urgent": 0.3748
+ },
+ "confidence": 0.0036
+ },
+ "many": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.1929,
+ "sales": 0.1157,
+ "support": 0.1677,
+ "legal": 0.0078,
+ "security": 0.0486,
+ "hr": 0.0117,
+ "it": 0.0901,
+ "ops": 0.0838,
+ "finance": 0.1269,
+ "marketing": 0.0691,
+ "product": 0.0617,
+ "design": 0.024
+ },
+ "confidence": 0.1001
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.4017,
+ "confidence": 0.5983
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.4376,
+ "confidence": 0.5624
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.6556,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0828,
+ "1": 0.3377,
+ "2": 0.4207,
+ "3": 0.1588
+ },
+ "confidence": 0.1132
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "none",
+ "probabilities": {
+ "email": 0.2473,
+ "phone": 0.2076,
+ "chat": 0.2476,
+ "none": 0.2975
+ },
+ "confidence": 0.0058
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.2892,
+ "confidence": 0.7108
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_00",
+ "probabilities": {
+ "dept_00": 0.0986,
+ "dept_01": 0.0793,
+ "dept_02": 0.0454,
+ "dept_03": 0.0263,
+ "dept_04": 0.0313,
+ "dept_05": 0.0622,
+ "dept_06": 0.0436,
+ "dept_07": 0.0222,
+ "dept_08": 0.0301,
+ "dept_09": 0.0479,
+ "dept_10": 0.0697,
+ "dept_11": 0.0289,
+ "dept_12": 0.0251,
+ "dept_13": 0.0189,
+ "dept_14": 0.0215,
+ "dept_15": 0.0205,
+ "dept_16": 0.0208,
+ "dept_17": 0.0233,
+ "dept_18": 0.0202,
+ "dept_19": 0.0306,
+ "dept_20": 0.0472,
+ "dept_21": 0.0186,
+ "dept_22": 0.0129,
+ "dept_23": 0.0183,
+ "dept_24": 0.0183,
+ "dept_25": 0.022,
+ "dept_26": 0.0279,
+ "dept_27": 0.0227,
+ "dept_28": 0.0239,
+ "dept_29": 0.0221
+ },
+ "confidence": 0.0434
+ },
+ "label": {
+ "type": "choice",
+ "choice": "other",
+ "probabilities": {
+ "billing": 0.2362,
+ "technical": 0.1766,
+ "sales": 0.2511,
+ "other": 0.3362
+ },
+ "confidence": 0.0186
+ }
+ },
+ "input_tokens": 10240
+ },
+ {
+ "name": "long_conversation_left_truncated",
+ "state": [
+ {
+ "role": "user",
+ "content": "Message 0: my order #1000 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 0: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 1: my order #1001 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 1: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 2: my order #1002 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 2: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 3: my order #1003 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 3: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 4: my order #1004 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 4: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 5: my order #1005 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 5: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 6: my order #1006 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 6: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 7: my order #1007 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 7: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 8: my order #1008 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 8: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 9: my order #1009 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 9: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 10: my order #1010 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 10: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 11: my order #1011 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 11: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 12: my order #1012 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 12: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 13: my order #1013 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 13: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 14: my order #1014 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 14: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 15: my order #1015 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 15: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 16: my order #1016 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 16: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 17: my order #1017 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 17: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 18: my order #1018 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 18: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 19: my order #1019 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 19: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 20: my order #1020 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 20: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 21: my order #1021 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 21: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 22: my order #1022 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 22: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 23: my order #1023 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 23: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 24: my order #1024 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 24: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 25: my order #1025 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 25: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 26: my order #1026 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 26: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 27: my order #1027 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 27: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 28: my order #1028 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 28: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 29: my order #1029 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 29: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 30: my order #1030 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 30: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 31: my order #1031 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 31: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 32: my order #1032 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 32: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 33: my order #1033 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 33: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 34: my order #1034 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 34: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 35: my order #1035 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 35: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 36: my order #1036 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 36: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 37: my order #1037 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 37: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 38: my order #1038 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 38: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 39: my order #1039 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 39: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 40: my order #1040 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 40: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 41: my order #1041 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 41: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 42: my order #1042 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 42: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 43: my order #1043 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 43: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 44: my order #1044 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 44: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "FINAL: forget it, cancel everything and refund me now."
+ }
+ ],
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 1024,
+ "sha256": "dd561c06a7434e277c4731e7ddf3e7be9493aa8e4d8f76330df3ec2c72f29188",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.375306,
+ -0.182935,
+ -0.325563,
+ 1.129419
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 1024,
+ "sha256": "97d360c2170155c576a87b072396634cbd557b8b7525408d2da21121418ae564",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.111496,
+ 0.848189,
+ 0.874413
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 1024,
+ "sha256": "9a90aee9cc27347a98ded23ec082fa52d1f2c367d4519ef9f34ba1310007cd02",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.247044,
+ -0.98451,
+ 0.403088,
+ -0.626627,
+ -1.653694,
+ -1.174553,
+ 0.589475,
+ -1.403948,
+ -0.968782,
+ -1.251049,
+ -0.240576,
+ 0.347683
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 1024,
+ "sha256": "7e5ce284cb0c3fa74f15d4bc1c2418b49b5c822b04fba780b3d73fd9a536429b",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ 0.307535,
+ 0.077743
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 1024,
+ "sha256": "65a8c279c9486266cae71fdaf35f1e584203d440b8e83571f8495fa439746b3e",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 0.104761,
+ 0.762024
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 1024,
+ "sha256": "f9e69894727e79514976537f92ec0bfe4611c30a4e99ae2abcb7df212f07de35",
+ "markers": [
+ 17,
+ 22,
+ 35,
+ 40
+ ],
+ "qtype": 1,
+ "logits": [
+ -0.260805,
+ 1.113613,
+ 1.77664,
+ 1.859194
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 1024,
+ "sha256": "da8775c6a73eb9a34abacd00ac4c31c85fdbbe652085b8cde7aff2f630abdd54",
+ "markers": [
+ 12,
+ 16,
+ 27,
+ 35
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.208748,
+ -1.451945,
+ -0.161458,
+ 0.397952
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 1024,
+ "sha256": "ebf80dd074bd515f8d123db14de3e2cb9c29a1480bf1cbd011bad5f11744ef87",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ 1.679531,
+ -0.143068
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 1024,
+ "sha256": "10ae4ef1eab208cdbfc06005b7f1343c75b1da4db5db8c43bb978a1fa786c673",
+ "markers": [
+ 14,
+ 22,
+ 30,
+ 38,
+ 46,
+ 54,
+ 62,
+ 70,
+ 78,
+ 86,
+ 94,
+ 102,
+ 110,
+ 118,
+ 126,
+ 134,
+ 142,
+ 150,
+ 158,
+ 166,
+ 174,
+ 182,
+ 190,
+ 198,
+ 206,
+ 214,
+ 222,
+ 230,
+ 238,
+ 246
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.188624,
+ 0.632584,
+ 0.682882,
+ 1.08764,
+ 0.435527,
+ 0.366759,
+ 0.036125,
+ -0.266361,
+ -0.122876,
+ -0.044445,
+ 0.460325,
+ 0.047376,
+ 0.212866,
+ 0.412542,
+ -0.346193,
+ -0.257497,
+ -0.260333,
+ -0.238715,
+ -0.247032,
+ -0.016584,
+ 0.030942,
+ -0.152922,
+ -0.188649,
+ -0.226871,
+ -0.174761,
+ -0.139333,
+ 0.001375,
+ -0.059362,
+ 0.05705,
+ -0.322722
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 1024,
+ "sha256": "e4925d8a143917479b295a94edce21a63aa57b17521814707d860fc3dfa57261",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.402341,
+ -0.5057,
+ -0.317169,
+ 0.684553
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "other",
+ "probabilities": {
+ "refund": 0.182,
+ "cancel": 0.203,
+ "technical": 0.1872,
+ "other": 0.4278
+ },
+ "confidence": 0.0546
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.2462,
+ "normal": 0.3741,
+ "urgent": 0.3797
+ },
+ "confidence": 0.0164
+ },
+ "many": {
+ "type": "choice",
+ "choice": "it",
+ "probabilities": {
+ "billing": 0.0091,
+ "sales": 0.0154,
+ "support": 0.2477,
+ "legal": 0.0316,
+ "security": 0.0041,
+ "hr": 0.0106,
+ "it": 0.3597,
+ "ops": 0.0067,
+ "finance": 0.0159,
+ "marketing": 0.0091,
+ "product": 0.0684,
+ "design": 0.2218
+ },
+ "confidence": 0.3321
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.4711,
+ "confidence": 0.5289
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.5821,
+ "confidence": 0.5821
+ },
+ "frustration": {
+ "type": "score",
+ "score": 2.0304,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0688,
+ "1": 0.2063,
+ "2": 0.3505,
+ "3": 0.3744
+ },
+ "confidence": 0.1019
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "none",
+ "probabilities": {
+ "email": 0.2543,
+ "phone": 0.1255,
+ "chat": 0.2612,
+ "none": 0.359
+ },
+ "confidence": 0.0427
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.2852,
+ "confidence": 0.7148
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_03",
+ "probabilities": {
+ "dept_00": 0.0324,
+ "dept_01": 0.0788,
+ "dept_02": 0.0871,
+ "dept_03": 0.1957,
+ "dept_04": 0.0531,
+ "dept_05": 0.0463,
+ "dept_06": 0.0239,
+ "dept_07": 0.013,
+ "dept_08": 0.0174,
+ "dept_09": 0.0203,
+ "dept_10": 0.0558,
+ "dept_11": 0.0244,
+ "dept_12": 0.034,
+ "dept_13": 0.0507,
+ "dept_14": 0.0111,
+ "dept_15": 0.0133,
+ "dept_16": 0.0132,
+ "dept_17": 0.0138,
+ "dept_18": 0.0136,
+ "dept_19": 0.0215,
+ "dept_20": 0.0236,
+ "dept_21": 0.0164,
+ "dept_22": 0.0152,
+ "dept_23": 0.0141,
+ "dept_24": 0.0157,
+ "dept_25": 0.0168,
+ "dept_26": 0.0223,
+ "dept_27": 0.0197,
+ "dept_28": 0.0249,
+ "dept_29": 0.0117
+ },
+ "confidence": 0.1065
+ },
+ "label": {
+ "type": "choice",
+ "choice": "other",
+ "probabilities": {
+ "billing": 0.2063,
+ "technical": 0.1946,
+ "sales": 0.2165,
+ "other": 0.3826
+ },
+ "confidence": 0.0312
+ }
+ },
+ "input_tokens": 10240
+ },
+ {
+ "name": "non_ascii_masks",
+ "state": "Bonjour, je voudrais annuler ma commande n°1234 — merci. [MASK] Grüße <mask> ¿qué? 😀",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 65,
+ "sha256": "b7a8e0fa67ee84b9d25596523e3b5734b1f168f8d10ad896382b47184ed6c9de",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.4602,
+ 2.412621,
+ -0.757889,
+ -0.762385
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 48,
+ "sha256": "23bdbce83c4d8385764215cf75cb833061d6807710558dab3ade49769a8004b8",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.332338,
+ 1.018985,
+ 0.035736
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 66,
+ "sha256": "7c7f6f464362f251b19ceeff004299c1cdf016bbb496514533b6add200d69a2b",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.643323,
+ -0.755013,
+ -0.219409,
+ -1.168251,
+ 0.482903,
+ -1.100232,
+ -0.215124,
+ -0.412782,
+ 0.052461,
+ -0.327617,
+ 0.372693,
+ -0.023697
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 65,
+ "sha256": "eef220e57789264475b0958af6bc2fb85d61299180bba8b534271ca92a418550",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ 1.686457,
+ -0.093227
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 62,
+ "sha256": "b55e4fb367123a8504a111f930b0c9efc8d72a155f11b393ee6061fb629f30ec",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 0.879106,
+ -0.287779
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 79,
+ "sha256": "0a6c8965dd16555dd54b6100ac6067375564839da77af86a49bcf07791d35a8b",
+ "markers": [
+ 17,
+ 22,
+ 35,
+ 40
+ ],
+ "qtype": 1,
+ "logits": [
+ 0.137553,
+ 1.6862,
+ 0.618163,
+ -0.683161
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 71,
+ "sha256": "faba680574b237a6b1dcdd7f74c49e890f193e0ec26f8dc3139a7b1fe0c3e258",
+ "markers": [
+ 12,
+ 16,
+ 27,
+ 35
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.148032,
+ -0.771641,
+ 0.883612,
+ 0.183385
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 65,
+ "sha256": "bba119c93d618ba15a7bb3f01edd23b445f9ebaa39d3266447e5232b475ffb58",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ 0.548383,
+ 0.431696
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 288,
+ "sha256": "dc6d6bcd8b77120f072a2921fcb62fb9a74b51434a6f190a3eb0251d7a70d61b",
+ "markers": [
+ 14,
+ 22,
+ 30,
+ 38,
+ 46,
+ 54,
+ 62,
+ 70,
+ 78,
+ 86,
+ 94,
+ 102,
+ 110,
+ 118,
+ 126,
+ 134,
+ 142,
+ 150,
+ 158,
+ 166,
+ 174,
+ 182,
+ 190,
+ 198,
+ 206,
+ 214,
+ 222,
+ 230,
+ 238,
+ 246
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.307158,
+ 0.281338,
+ 0.143088,
+ -0.186578,
+ -0.009434,
+ 0.178122,
+ 0.169382,
+ -0.393847,
+ -0.053993,
+ 0.085224,
+ 0.14469,
+ -0.192823,
+ -0.311179,
+ -0.346356,
+ -0.274145,
+ -0.223361,
+ -0.253024,
+ -0.188514,
+ -0.288039,
+ -0.135642,
+ -0.098484,
+ -0.282696,
+ -0.617431,
+ -0.514414,
+ -0.313414,
+ -0.323189,
+ -0.110657,
+ -0.318289,
+ -0.497285,
+ -0.966434
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 55,
+ "sha256": "0d1f6119eeba3dc58f88058a5eeef9cdc8777735b1fe9441e251ca02028083bb",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.993582,
+ 0.188483,
+ -0.291252,
+ 0.273916
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "cancel",
+ "probabilities": {
+ "refund": 0.0769,
+ "cancel": 0.6942,
+ "technical": 0.1146,
+ "other": 0.1143
+ },
+ "confidence": 0.317
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "normal",
+ "probabilities": {
+ "low": 0.301,
+ "normal": 0.4446,
+ "urgent": 0.2543
+ },
+ "confidence": 0.0261
+ },
+ "many": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.2764,
+ "sales": 0.0169,
+ "support": 0.0492,
+ "legal": 0.0074,
+ "security": 0.2005,
+ "hr": 0.0085,
+ "it": 0.0496,
+ "ops": 0.0334,
+ "finance": 0.0848,
+ "marketing": 0.0396,
+ "product": 0.1609,
+ "design": 0.0728
+ },
+ "confidence": 0.1727
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.2896,
+ "confidence": 0.7104
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.357,
+ "confidence": 0.643
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.2341,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.1554,
+ "1": 0.5357,
+ "2": 0.2282,
+ "3": 0.0807
+ },
+ "confidence": 0.1604
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "chat",
+ "probabilities": {
+ "email": 0.2125,
+ "phone": 0.1491,
+ "chat": 0.3819,
+ "none": 0.2565
+ },
+ "confidence": 0.041
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.4853,
+ "confidence": 0.5147
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_00",
+ "probabilities": {
+ "dept_00": 0.0777,
+ "dept_01": 0.0738,
+ "dept_02": 0.0559,
+ "dept_03": 0.0289,
+ "dept_04": 0.0412,
+ "dept_05": 0.06,
+ "dept_06": 0.059,
+ "dept_07": 0.0191,
+ "dept_08": 0.0377,
+ "dept_09": 0.0498,
+ "dept_10": 0.0561,
+ "dept_11": 0.0286,
+ "dept_12": 0.0226,
+ "dept_13": 0.021,
+ "dept_14": 0.0243,
+ "dept_15": 0.0269,
+ "dept_16": 0.0253,
+ "dept_17": 0.0288,
+ "dept_18": 0.0236,
+ "dept_19": 0.032,
+ "dept_20": 0.0345,
+ "dept_21": 0.0239,
+ "dept_22": 0.0122,
+ "dept_23": 0.015,
+ "dept_24": 0.0224,
+ "dept_25": 0.022,
+ "dept_26": 0.0337,
+ "dept_27": 0.0222,
+ "dept_28": 0.0155,
+ "dept_29": 0.0061
+ },
+ "confidence": 0.0392
+ },
+ "label": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.3598,
+ "technical": 0.2277,
+ "sales": 0.1734,
+ "other": 0.2391
+ },
+ "confidence": 0.0257
+ }
+ },
+ "input_tokens": 864
+ },
+ {
+ "name": "non_latin",
+ "state": "मुझसे दो बार शुल्क लिया गया, कृपया पैसे वापस करें। 二重に請求されました。返金してください。",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 101,
+ "sha256": "b04af0b06018bac14ebe6c1d948a9664409af6253782c6f572367a487b331379",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ 2.793465,
+ -2.404757,
+ -1.687445,
+ -1.971103
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 84,
+ "sha256": "2f0392deb4678379fbca764358b2f39df50395bdb61425b20dd3fb2684796cee",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.229664,
+ -0.087428,
+ 1.567957
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 102,
+ "sha256": "847c80a996c7412abb1b11018df00c95d97b08c1639fb5487975a101f2549ccb",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 1.650142,
+ -1.340325,
+ -0.259035,
+ -1.87279,
+ -2.251753,
+ -2.402206,
+ -0.797895,
+ -1.842896,
+ 0.154439,
+ -1.300193,
+ -0.694197,
+ -1.445293
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 101,
+ "sha256": "cfa6a479c727cae88dbd21e92278591f22afc8234f0a2bade8597fb3777987f7",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ -1.216047,
+ 0.124587
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 98,
+ "sha256": "f182b212be86bff0097cc58a371d3f998f3f47e7f1ee6c51866ba7a2a4b4f4a6",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 1.410074,
+ -1.029474
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 115,
+ "sha256": "e39dc0b7ca9eae7c7e4ca6a277d9faf565f3b3cb28e901f2555c7be36d4d5327",
+ "markers": [
+ 17,
+ 22,
+ 35,
+ 40
+ ],
+ "qtype": 1,
+ "logits": [
+ -1.18392,
+ 1.37717,
+ 1.624821,
+ 0.252732
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 107,
+ "sha256": "41707d625a90af46a96571473e89a58b645c97872f45521e6779014a221cf6a6",
+ "markers": [
+ 12,
+ 16,
+ 27,
+ 35
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.1336,
+ -0.382518,
+ 1.277713,
+ -0.313903
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 101,
+ "sha256": "3fcdf9bb80c4022e95134a7ed1b2f495af828e98ec332b23b6f704c6898e75fe",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ -0.527944,
+ 0.564524
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 324,
+ "sha256": "cb8e7921d15b0f0a977774158392fda33e55612db3671f96fccbaa4224eec05e",
+ "markers": [
+ 14,
+ 22,
+ 30,
+ 38,
+ 46,
+ 54,
+ 62,
+ 70,
+ 78,
+ 86,
+ 94,
+ 102,
+ 110,
+ 118,
+ 126,
+ 134,
+ 142,
+ 150,
+ 158,
+ 166,
+ 174,
+ 182,
+ 190,
+ 198,
+ 206,
+ 214,
+ 222,
+ 230,
+ 238,
+ 246
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.283573,
+ 0.343855,
+ 0.197057,
+ -0.007383,
+ 0.095727,
+ 0.328393,
+ 0.252741,
+ -0.132932,
+ -0.031211,
+ 0.236805,
+ 0.119015,
+ -0.066209,
+ -0.175219,
+ -0.119423,
+ -0.12908,
+ -0.13699,
+ -0.122354,
+ -0.072783,
+ -0.101559,
+ 0.11322,
+ 0.019332,
+ -0.221192,
+ -0.487033,
+ -0.329502,
+ -0.390045,
+ -0.311201,
+ -0.136612,
+ -0.256,
+ 0.060057,
+ 0.084229
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 91,
+ "sha256": "499757ac04dcf36fcc70f312f8bd7ec845fdfd0603e5bec26f30903088a53f7f",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.447827,
+ -1.710313,
+ -1.11104,
+ 0.608654
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "refund",
+ "probabilities": {
+ "refund": 0.8352,
+ "cancel": 0.0436,
+ "technical": 0.0655,
+ "other": 0.0557
+ },
+ "confidence": 0.5482
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.2057,
+ "normal": 0.223,
+ "urgent": 0.5712
+ },
+ "confidence": 0.1081
+ },
+ "many": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.9102,
+ "sales": 0.0023,
+ "support": 0.02,
+ "legal": 0.0008,
+ "security": 0.0004,
+ "hr": 0.0003,
+ "it": 0.0068,
+ "ops": 0.0008,
+ "finance": 0.0457,
+ "marketing": 0.0025,
+ "product": 0.0084,
+ "design": 0.0019
+ },
+ "confidence": 0.8244
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.6628,
+ "confidence": 0.6628
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.2262,
+ "confidence": 0.7738
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.6911,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0469,
+ "1": 0.363,
+ "2": 0.4424,
+ "3": 0.1478
+ },
+ "confidence": 0.1671
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "chat",
+ "probabilities": {
+ "email": 0.2254,
+ "phone": 0.1681,
+ "chat": 0.4317,
+ "none": 0.1748
+ },
+ "confidence": 0.06
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.6343,
+ "confidence": 0.6343
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_01",
+ "probabilities": {
+ "dept_00": 0.0579,
+ "dept_01": 0.0653,
+ "dept_02": 0.0487,
+ "dept_03": 0.0323,
+ "dept_04": 0.0398,
+ "dept_05": 0.0633,
+ "dept_06": 0.0544,
+ "dept_07": 0.0252,
+ "dept_08": 0.0308,
+ "dept_09": 0.0527,
+ "dept_10": 0.0417,
+ "dept_11": 0.0288,
+ "dept_12": 0.0231,
+ "dept_13": 0.0259,
+ "dept_14": 0.0254,
+ "dept_15": 0.025,
+ "dept_16": 0.0257,
+ "dept_17": 0.0284,
+ "dept_18": 0.0268,
+ "dept_19": 0.0412,
+ "dept_20": 0.0341,
+ "dept_21": 0.0211,
+ "dept_22": 0.0124,
+ "dept_23": 0.017,
+ "dept_24": 0.015,
+ "dept_25": 0.0176,
+ "dept_26": 0.025,
+ "dept_27": 0.0197,
+ "dept_28": 0.037,
+ "dept_29": 0.0389
+ },
+ "confidence": 0.0254
+ },
+ "label": {
+ "type": "choice",
+ "choice": "other",
+ "probabilities": {
+ "billing": 0.3569,
+ "technical": 0.1047,
+ "sales": 0.1472,
+ "other": 0.3911
+ },
+ "confidence": 0.096
+ }
+ },
+ "input_tokens": 1224
+ },
+ {
+ "name": "empty",
+ "state": "",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 33,
+ "sha256": "52496ca00e1c20570025397c6af37f3946657b938377de44e610fae456d9b214",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.941084,
+ -0.962283,
+ -0.34991,
+ 0.526128
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 16,
+ "sha256": "4a7bbdff422ce338f022d20ed517241deec5d079b1b59d10f30b22968466caec",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.782811,
+ 0.705241,
+ -0.303398
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 34,
+ "sha256": "c621baa2174e61ad1a45c20e8979a2bc3a7e88e35b53679c61cff61f9ec40761",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.852894,
+ -0.682482,
+ 0.026201,
+ -1.567783,
+ -0.16331,
+ -1.215957,
+ -0.477749,
+ -0.730292,
+ -0.205372,
+ -0.426556,
+ -0.208779,
+ -0.538169
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 33,
+ "sha256": "aad54c921e0a943bd8770c7e6d94afac03963b208d20fd5d81d039ca88abf48d",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ 2.249372,
+ -0.42532
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 30,
+ "sha256": "65b0570ad31deb0a75003a3fc605e9b8669f73c10c2e88c3c7befef42715549d",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 1.153175,
+ -0.612936
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 47,
+ "sha256": "c57c0cbe154cc11ea8a070a019a5bef7bd4a52dc12c6b41448921a87f3c7e0f9",
+ "markers": [
+ 17,
+ 22,
+ 35,
+ 40
+ ],
+ "qtype": 1,
+ "logits": [
+ 0.724451,
+ 1.583362,
+ 0.637424,
+ -0.983854
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 39,
+ "sha256": "65d3a76288b1e8b547976a5498508cb80eca10bdee3f113ae75e401d8371b973",
+ "markers": [
+ 12,
+ 16,
+ 27,
+ 35
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.498146,
+ -0.440955,
+ 0.732575,
+ -0.053798
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 33,
+ "sha256": "271cc6f92fa25ce5f23a13d49b407cd89de14d93932a13ca3228c0db58f209e8",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ 1.305337,
+ -0.093733
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 256,
+ "sha256": "f8c72efb107566d85eab0c605c96f14ffae90b2ab603f5d38857b2389afccad5",
+ "markers": [
+ 14,
+ 22,
+ 30,
+ 38,
+ 46,
+ 54,
+ 62,
+ 70,
+ 78,
+ 86,
+ 94,
+ 102,
+ 110,
+ 118,
+ 126,
+ 134,
+ 142,
+ 150,
+ 158,
+ 166,
+ 174,
+ 182,
+ 190,
+ 198,
+ 206,
+ 214,
+ 222,
+ 230,
+ 238,
+ 246
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.812846,
+ 0.728369,
+ 0.348097,
+ 0.0307,
+ 0.195017,
+ 0.306704,
+ 0.23349,
+ -0.094868,
+ -0.002706,
+ 0.27584,
+ 0.466057,
+ 0.082302,
+ -0.044863,
+ -0.067229,
+ -0.046646,
+ -0.051054,
+ -0.042489,
+ 0.071137,
+ 0.085602,
+ 0.212413,
+ 0.416367,
+ -0.041022,
+ -0.360416,
+ -0.083088,
+ -0.10134,
+ -0.053255,
+ 0.03374,
+ -0.026666,
+ 0.123756,
+ -0.034781
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 23,
+ "sha256": "8d421b8609f726d199db97d4098f6875768a70d19405bc8bf01756912c06cf30",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.220696,
+ -0.651751,
+ -0.39153,
+ 0.24198
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "other",
+ "probabilities": {
+ "refund": 0.1758,
+ "cancel": 0.1737,
+ "technical": 0.246,
+ "other": 0.4046
+ },
+ "confidence": 0.0473
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "low",
+ "probabilities": {
+ "low": 0.4006,
+ "normal": 0.3833,
+ "urgent": 0.2161
+ },
+ "confidence": 0.0305
+ },
+ "many": {
+ "type": "choice",
+ "choice": "support",
+ "probabilities": {
+ "billing": 0.036,
+ "sales": 0.0506,
+ "support": 0.2087,
+ "legal": 0.0086,
+ "security": 0.1429,
+ "hr": 0.0174,
+ "it": 0.0762,
+ "ops": 0.046,
+ "finance": 0.1313,
+ "marketing": 0.0844,
+ "product": 0.1305,
+ "design": 0.0675
+ },
+ "confidence": 0.0955
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.2061,
+ "confidence": 0.7939
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.291,
+ "confidence": 0.709
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.1062,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.2395,
+ "1": 0.4758,
+ "2": 0.2235,
+ "3": 0.0612
+ },
+ "confidence": 0.1333
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "chat",
+ "probabilities": {
+ "email": 0.1875,
+ "phone": 0.1937,
+ "chat": 0.3773,
+ "none": 0.2414
+ },
+ "confidence": 0.0314
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.3306,
+ "confidence": 0.6694
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_00",
+ "probabilities": {
+ "dept_00": 0.1167,
+ "dept_01": 0.0986,
+ "dept_02": 0.0461,
+ "dept_03": 0.0244,
+ "dept_04": 0.0339,
+ "dept_05": 0.0424,
+ "dept_06": 0.0366,
+ "dept_07": 0.019,
+ "dept_08": 0.0228,
+ "dept_09": 0.0399,
+ "dept_10": 0.0583,
+ "dept_11": 0.0271,
+ "dept_12": 0.021,
+ "dept_13": 0.0201,
+ "dept_14": 0.0209,
+ "dept_15": 0.0207,
+ "dept_16": 0.0211,
+ "dept_17": 0.0265,
+ "dept_18": 0.0273,
+ "dept_19": 0.0351,
+ "dept_20": 0.0528,
+ "dept_21": 0.0212,
+ "dept_22": 0.0112,
+ "dept_23": 0.0195,
+ "dept_24": 0.0188,
+ "dept_25": 0.0207,
+ "dept_26": 0.0246,
+ "dept_27": 0.0218,
+ "dept_28": 0.0294,
+ "dept_29": 0.0214
+ },
+ "confidence": 0.0507
+ },
+ "label": {
+ "type": "choice",
+ "choice": "other",
+ "probabilities": {
+ "billing": 0.2506,
+ "technical": 0.1961,
+ "sales": 0.2274,
+ "other": 0.3259
+ },
+ "confidence": 0.0129
+ }
+ },
+ "input_tokens": 544
+ }
+ ],
+ "override": {
+ "max_len": 96,
+ "head_max_len": 40,
+ "questions": {
+ "intent": {
+ "type": "choice",
+ "instructions": "What does the customer want?",
+ "criteria": {
+ "refund": "wants money back",
+ "cancel": "wants to cancel",
+ "technical": "reports a bug",
+ "other": null
+ }
+ },
+ "priority": {
+ "type": "choice",
+ "instructions": "Ticket priority",
+ "criteria": [
+ "low",
+ "normal",
+ "urgent"
+ ]
+ },
+ "many": {
+ "type": "choice",
+ "instructions": "Pick the department",
+ "criteria": [
+ "billing",
+ "sales",
+ "support",
+ "legal",
+ "security",
+ "hr",
+ "it",
+ "ops",
+ "finance",
+ "marketing",
+ "product",
+ "design"
+ ]
+ },
+ "refund_requested": {
+ "type": "noul",
+ "instructions": "The customer explicitly requests a refund."
+ },
+ "frustration": {
+ "type": "score",
+ "instructions": {
+ "rubric": "How frustrated is the customer?"
+ },
+ "criteria": [
+ "calm",
+ {
+ "desc": "mildly annoyed"
+ },
+ "frustrated",
+ "furious"
+ ]
+ }
+ },
+ "cases": [
+ {
+ "name": "plain_email",
+ "state": "Hi, I was charged twice for my subscription this month. Please refund one charge ASAP!",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 52,
+ "sha256": "f4c9a7769de8197a8399394710266ff5c019f10483fc0b56814d4221b2c90b12",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ 2.380727,
+ -1.680062,
+ -1.919917,
+ -2.241886
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 35,
+ "sha256": "94250219a4f5f609e46ceef6fd66c33d20d8808d5a6cf08ec7ebbe6476247f55",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.11123,
+ -1.053504,
+ 1.809858
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 53,
+ "sha256": "6d2f44621f79cbe840188d1381db0ef9e05cb1271bef83af9683d16f478809bf",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 2.503726,
+ -2.577757,
+ -0.278216,
+ -0.500895,
+ -2.414421,
+ -2.167154,
+ -2.050599,
+ -2.779984,
+ 0.08022,
+ -2.499422,
+ -2.661594,
+ -2.917166
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 52,
+ "sha256": "bf132729b01d753f033c2f4dff67b28a7872fbe81d0fa852fe4949b4328f73f3",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ -0.745525,
+ 0.088168
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 59,
+ "sha256": "c8e4dc8d3caffbb4a59b8d35863664ff8336c7377e0f3a425cde8a5afa1e8f53",
+ "markers": [
+ 17,
+ 22,
+ 28,
+ 33
+ ],
+ "qtype": 1,
+ "logits": [
+ -1.983989,
+ 0.579833,
+ 1.674167,
+ 1.887729
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "refund",
+ "probabilities": {
+ "refund": 0.7944,
+ "cancel": 0.0791,
+ "technical": 0.069,
+ "other": 0.0575
+ },
+ "confidence": 0.4719
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.1372,
+ "normal": 0.1417,
+ "urgent": 0.7211
+ },
+ "confidence": 0.2853
+ },
+ "many": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.9857,
+ "sales": 0.0,
+ "support": 0.0038,
+ "legal": 0.0024,
+ "security": 0.0001,
+ "hr": 0.0001,
+ "it": 0.0001,
+ "ops": 0.0,
+ "finance": 0.0077,
+ "marketing": 0.0,
+ "product": 0.0,
+ "design": 0.0
+ },
+ "confidence": 0.9632
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.6036,
+ "confidence": 0.6036
+ },
+ "frustration": {
+ "type": "score",
+ "score": 2.249,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0202,
+ "1": 0.157,
+ "2": 0.3764,
+ "3": 0.4464
+ },
+ "confidence": 0.2084
+ }
+ },
+ "input_tokens": 251
+ },
+ {
+ "name": "long_conversation_left_truncated",
+ "state": [
+ {
+ "role": "user",
+ "content": "Message 0: my order #1000 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 0: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 1: my order #1001 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 1: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 2: my order #1002 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 2: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 3: my order #1003 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 3: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 4: my order #1004 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 4: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 5: my order #1005 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 5: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 6: my order #1006 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 6: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 7: my order #1007 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 7: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 8: my order #1008 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 8: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 9: my order #1009 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 9: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 10: my order #1010 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 10: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 11: my order #1011 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 11: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 12: my order #1012 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 12: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 13: my order #1013 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 13: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 14: my order #1014 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 14: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 15: my order #1015 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 15: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 16: my order #1016 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 16: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 17: my order #1017 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 17: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 18: my order #1018 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 18: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 19: my order #1019 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 19: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 20: my order #1020 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 20: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 21: my order #1021 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 21: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 22: my order #1022 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 22: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 23: my order #1023 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 23: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 24: my order #1024 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 24: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 25: my order #1025 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 25: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 26: my order #1026 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 26: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 27: my order #1027 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 27: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 28: my order #1028 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 28: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 29: my order #1029 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 29: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 30: my order #1030 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 30: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 31: my order #1031 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 31: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 32: my order #1032 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 32: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 33: my order #1033 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 33: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 34: my order #1034 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 34: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 35: my order #1035 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 35: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 36: my order #1036 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 36: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 37: my order #1037 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 37: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 38: my order #1038 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 38: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 39: my order #1039 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 39: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 40: my order #1040 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 40: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 41: my order #1041 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 41: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 42: my order #1042 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 42: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 43: my order #1043 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 43: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 44: my order #1044 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 44: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "FINAL: forget it, cancel everything and refund me now."
+ }
+ ],
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 96,
+ "sha256": "c78202f7f530c1fcae50a2a61fbd32049491cdd351b08ff28760648542e5459c",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ 2.124737,
+ 0.80642,
+ -1.568658,
+ -0.487699
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 96,
+ "sha256": "464f814af5c845ea65e3855865c82c46d923fab3f88d677a778a597fabcfc781",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.083653,
+ -1.749088,
+ 2.759744
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 96,
+ "sha256": "6ea326f38627b3efd7ad41c4036608941c108bcf3d393c40713d844f1a677d23",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.62646,
+ -2.517138,
+ 0.167851,
+ -0.560204,
+ -2.304255,
+ -2.069067,
+ -0.703113,
+ -2.020033,
+ -0.435849,
+ -2.758672,
+ -1.336036,
+ -2.717464
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 96,
+ "sha256": "a393677b0717f84ee99dbcef178b88e928e6278e088590cde84158cf0f6d845a",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ -2.203518,
+ 0.295589
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 96,
+ "sha256": "62d370f496e6fec6af84bd95a446e7bce76982e262ed4b5bc251504a48aea5af",
+ "markers": [
+ 17,
+ 22,
+ 28,
+ 33
+ ],
+ "qtype": 1,
+ "logits": [
+ -2.020778,
+ 0.225496,
+ 1.551471,
+ 1.08375
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "refund",
+ "probabilities": {
+ "refund": 0.5488,
+ "cancel": 0.2595,
+ "technical": 0.0673,
+ "other": 0.1244
+ },
+ "confidence": 0.1919
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.0947,
+ "normal": 0.0649,
+ "urgent": 0.8405
+ },
+ "confidence": 0.5024
+ },
+ "many": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.5818,
+ "sales": 0.0011,
+ "support": 0.2325,
+ "legal": 0.0542,
+ "security": 0.0017,
+ "hr": 0.0027,
+ "it": 0.0407,
+ "ops": 0.0029,
+ "finance": 0.0695,
+ "marketing": 0.0007,
+ "product": 0.0115,
+ "design": 0.0007
+ },
+ "confidence": 0.5009
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.779,
+ "confidence": 0.779
+ },
+ "frustration": {
+ "type": "score",
+ "score": 2.1082,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0275,
+ "1": 0.1657,
+ "2": 0.4779,
+ "3": 0.3289
+ },
+ "confidence": 0.1955
+ }
+ },
+ "input_tokens": 480
+ }
+ ]
+ },
+ "overflow_error": "question 'too_many' options exceed head_max_len=64",
+ "tokenizations": {
+ "choice question: What does the customer want?": [
+ 22122,
+ 1953,
+ 27,
+ 1737,
+ 1057,
+ 253,
+ 7731,
+ 971,
+ 32
+ ],
+ " refund: wants money back": [
+ 23005,
+ 27,
+ 5605,
+ 2583,
+ 896
+ ],
+ " cancel: wants to cancel": [
+ 14002,
+ 27,
+ 5605,
+ 281,
+ 14002
+ ],
+ " technical: reports a bug": [
+ 7681,
+ 27,
+ 5012,
+ 247,
+ 7505
+ ],
+ " other": [
+ 643
+ ],
+ "Hi, I was charged twice for my subscription this month. Please refund one charge ASAP!": [
+ 12764,
+ 13,
+ 309,
+ 369,
+ 6636,
+ 7019,
+ 323,
+ 619,
+ 21729,
+ 436,
+ 1770,
+ 15,
+ 7764,
+ 23005,
+ 581,
+ 4179,
+ 7412,
+ 2088,
+ 2
+ ],
+ "choice question: Ticket priority": [
+ 22122,
+ 1953,
+ 27,
+ 308,
+ 21315,
+ 11674
+ ],
+ " low": [
+ 1698
+ ],
+ " normal": [
+ 2622
+ ],
+ " urgent": [
+ 21007
+ ],
+ "choice question: Pick the department": [
+ 22122,
+ 1953,
+ 27,
+ 20745,
+ 253,
+ 7811
+ ],
+ " billing": [
+ 33484
+ ],
+ " sales": [
+ 6224
+ ],
+ " support": [
+ 1329
+ ],
+ " legal": [
+ 4320
+ ],
+ " security": [
+ 3988
+ ],
+ " hr": [
+ 20589
+ ],
+ " it": [
+ 352
+ ],
+ " ops": [
+ 38322
+ ],
+ " finance": [
+ 15065
+ ],
+ " marketing": [
+ 9137
+ ],
+ " product": [
+ 1885
+ ],
+ " design": [
+ 2216
+ ],
+ "noul question: The customer explicitly requests a refund.": [
+ 79,
+ 3941,
+ 1953,
+ 27,
+ 380,
+ 7731,
+ 11120,
+ 9762,
+ 247,
+ 23005,
+ 15
+ ],
+ " false: no, the statement does not hold": [
+ 3221,
+ 27,
+ 642,
+ 13,
+ 253,
+ 3908,
+ 1057,
+ 417,
+ 2186
+ ],
+ " true: yes, the statement holds": [
+ 2032,
+ 27,
+ 4754,
+ 13,
+ 253,
+ 3908,
+ 6556
+ ],
+ "noul question: Is the customer angry?": [
+ 79,
+ 3941,
+ 1953,
+ 27,
+ 1680,
+ 253,
+ 7731,
+ 11790,
+ 32
+ ],
+ " calm: no, the statement does not hold": [
+ 11874,
+ 27,
+ 642,
+ 13,
+ 253,
+ 3908,
+ 1057,
+ 417,
+ 2186
+ ],
+ " angry: angry or hostile tone": [
+ 11790,
+ 27,
+ 11790,
+ 390,
+ 21668,
+ 10541
+ ],
+ "score question: {\"rubric\": \"How frustrated is the customer?\"}": [
+ 18891,
+ 1953,
+ 27,
+ 17579,
+ 18241,
+ 695,
+ 1381,
+ 346,
+ 2347,
+ 23573,
+ 310,
+ 253,
+ 7731,
+ 865,
+ 94
+ ],
+ " level 0: calm": [
+ 1268,
+ 470,
+ 27,
+ 11874
+ ],
+ " level 1: {\"desc\": \"mildly annoyed\"}": [
+ 1268,
+ 337,
+ 27,
+ 17579,
+ 12898,
+ 1381,
+ 346,
+ 78,
+ 786,
+ 314,
+ 34639,
+ 986
+ ],
+ " level 2: frustrated": [
+ 1268,
+ 374,
+ 27,
+ 23573
+ ],
+ " level 3: furious": [
+ 1268,
+ 495,
+ 27,
+ 32986
+ ],
+ "choice question: Which channel? <mask>": [
+ 22122,
+ 1953,
+ 27,
+ 6758,
+ 5048,
+ 32,
+ 50275,
+ 29,
+ 12477,
+ 31
+ ],
+ " email: 0": [
+ 4579,
+ 27,
+ 470
+ ],
+ " phone: [\"call\", \"voicemail\"]": [
+ 4481,
+ 27,
+ 15640,
+ 4065,
+ 995,
+ 346,
+ 5711,
+ 280,
+ 12812,
+ 9686
+ ],
+ " chat: {\"live\": true}": [
+ 12939,
+ 27,
+ 17579,
+ 22621,
+ 1381,
+ 2032,
+ 94
+ ],
+ " none": [
+ 5293
+ ],
+ "noul question: Does the text mention money?": [
+ 79,
+ 3941,
+ 1953,
+ 27,
+ 9876,
+ 253,
+ 2505,
+ 3748,
+ 2583,
+ 32
+ ],
+ " false: no money is mentioned": [
+ 3221,
+ 27,
+ 642,
+ 2583,
+ 310,
+ 5393
+ ],
+ " true: mentions a payment, charge, price or refund": [
+ 2032,
+ 27,
+ 25957,
+ 247,
+ 7830,
+ 13,
+ 4179,
+ 13,
+ 4376,
+ 390,
+ 23005
+ ],
+ "choice question: Which of the thirty departments owns this request?": [
+ 22122,
+ 1953,
+ 27,
+ 6758,
+ 273,
+ 253,
+ 10488,
+ 20036,
+ 21186,
+ 436,
+ 2748,
+ 32
+ ],
+ " dept_00: requests that belong to department number 0 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 361,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 470,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_01: requests that belong to department number 1 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 520,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 337,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_02: requests that belong to department number 2 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 2640,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 374,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_03: requests that belong to department number 3 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 2941,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 495,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_04: requests that belong to department number 4 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 2125,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 577,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_05: requests that belong to department number 5 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1762,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 608,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_06: requests that belong to department number 6 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 3071,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 721,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_07: requests that belong to department number 7 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 2922,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 818,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_08: requests that belong to department number 8 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 2904,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 854,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_09: requests that belong to department number 9 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 2693,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 898,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_10: requests that belong to department number 10 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 740,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 884,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_11: requests that belong to department number 11 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 883,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 1903,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_12: requests that belong to department number 12 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 805,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 1249,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_13: requests that belong to department number 13 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1012,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 2145,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_14: requests that belong to department number 14 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1047,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 1638,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_15: requests that belong to department number 15 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1010,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 1458,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_16: requests that belong to department number 16 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1036,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 1668,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_17: requests that belong to department number 17 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1166,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 1722,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_18: requests that belong to department number 18 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1093,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 1283,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_19: requests that belong to department number 19 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 746,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 655,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_20: requests that belong to department number 20 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 938,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 1384,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_21: requests that belong to department number 21 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1797,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 3127,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_22: requests that belong to department number 22 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1423,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 3307,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_23: requests that belong to department number 23 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1508,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 3495,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_24: requests that belong to department number 24 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1348,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 2164,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_25: requests that belong to department number 25 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1099,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 2030,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_26: requests that belong to department number 26 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1731,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 3436,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_27: requests that belong to department number 27 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1630,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 3435,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_28: requests that belong to department number 28 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1619,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 3349,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_29: requests that belong to department number 29 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1717,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 3285,
+ 285,
+ 17663,
+ 2010
+ ],
+ "choice question: Which category does this text belong to?": [
+ 22122,
+ 1953,
+ 27,
+ 6758,
+ 7140,
+ 1057,
+ 436,
+ 2505,
+ 5663,
+ 281,
+ 32
+ ],
+ " technical": [
+ 7681
+ ],
+ "{\"subject\": \"Login broken\", \"body\": \"Since the update I can't log in; error 500.\", \"customer_tier\": \"enterprise\", \"prior_tickets\": 3}": [
+ 9819,
+ 19091,
+ 1381,
+ 346,
+ 27689,
+ 7154,
+ 995,
+ 346,
+ 2915,
+ 1381,
+ 346,
+ 7542,
+ 253,
+ 5731,
+ 309,
+ 476,
+ 626,
+ 2412,
+ 275,
+ 28,
+ 2228,
+ 6783,
+ 17295,
+ 346,
+ 34590,
+ 64,
+ 42614,
+ 1381,
+ 346,
+ 9553,
+ 10344,
+ 995,
+ 346,
+ 40844,
+ 64,
+ 85,
+ 26195,
+ 1381,
+ 495,
+ 94
+ ],
+ "[{\"role\": \"user\", \"content\": \"I want to cancel.\"}, {\"role\": \"agent\", \"content\": \"Sorry to hear that - may I ask why?\"}, {\"role\": \"user\", \"content\": \"Too expensive, and support is slow. Cancel it now.\"}]": [
+ 60,
+ 9819,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 42,
+ 971,
+ 281,
+ 14002,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 15953,
+ 281,
+ 4089,
+ 326,
+ 428,
+ 778,
+ 309,
+ 1642,
+ 2139,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 25643,
+ 8214,
+ 13,
+ 285,
+ 1329,
+ 310,
+ 3468,
+ 15,
+ 330,
+ 18721,
+ 352,
+ 1024,
+ 449,
+ 12084
+ ],
+ "The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times.": [
+ 510,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15
+ ],
+ "[{\"role\": \"user\", \"content\": \"Message 0: my order #1000 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 0: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 1: my order #1001 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 1: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 2: my order #1002 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 2: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 3: my order #1003 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 3: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 4: my order #1004 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 4: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 5: my order #1005 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 5: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 6: my order #1006 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 6: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 7: my order #1007 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 7: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 8: my order #1008 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 8: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 9: my order #1009 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 9: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 10: my order #1010 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 10: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 11: my order #1011 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 11: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 12: my order #1012 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 12: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 13: my order #1013 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 13: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 14: my order #1014 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 14: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 15: my order #1015 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 15: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 16: my order #1016 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 16: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 17: my order #1017 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 17: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 18: my order #1018 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 18: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 19: my order #1019 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 19: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 20: my order #1020 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 20: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 21: my order #1021 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 21: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 22: my order #1022 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 22: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 23: my order #1023 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 23: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 24: my order #1024 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 24: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 25: my order #1025 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 25: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 26: my order #1026 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 26: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 27: my order #1027 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 27: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 28: my order #1028 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 28: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 29: my order #1029 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 29: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 30: my order #1030 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 30: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 31: my order #1031 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 31: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 32: my order #1032 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 32: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 33: my order #1033 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 33: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 34: my order #1034 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 34: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 35: my order #1035 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 35: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 36: my order #1036 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 36: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 37: my order #1037 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 37: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 38: my order #1038 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 38: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 39: my order #1039 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 39: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 40: my order #1040 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 40: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 41: my order #1041 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 41: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 42: my order #1042 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 42: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 43: my order #1043 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 43: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 44: my order #1044 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 44: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"FINAL: forget it, cancel everything and refund me now.\"}]": [
+ 60,
+ 9819,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 470,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 9138,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 470,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 337,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 40506,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 337,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 374,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 41441,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 374,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 495,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 2313,
+ 20,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 495,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 577,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 44197,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 577,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 608,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 38723,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 608,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 721,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 45535,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 721,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 818,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 31182,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 818,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 854,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 39687,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 854,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 898,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 2313,
+ 26,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 898,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 884,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 17,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 884,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1903,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 18,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1903,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1249,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 19,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1249,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 2145,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 20,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 2145,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1638,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 21,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1638,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1458,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 22,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1458,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1668,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 37524,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1668,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1722,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 24,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1722,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1283,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 25,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1283,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 655,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 26,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 655,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1384,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 938,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1384,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 3127,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 42596,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 3127,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 3307,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1423,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 3307,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 3495,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1508,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 3495,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 2164,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 31111,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 2164,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 2030,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1099,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 2030,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 3436,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1731,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 3436,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 3435,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1630,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 3435,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 3349,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1619,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 3349,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 3285,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1717,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 3285,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1884,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1229,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1884,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 4562,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 2405,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 4562,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 4567,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1237,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 4567,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 5922,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1610,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 5922,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 5910,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1706,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 5910,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 4791,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1671,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 4791,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 5540,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1812,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 5540,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 5345,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1787,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 5345,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 6480,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 43224,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 6480,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 6931,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1867,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 6931,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 3387,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1449,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 3387,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 7609,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 3156,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 7609,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 5976,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 2945,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 5976,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 7652,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 3079,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 7652,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 7127,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 2031,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 7127,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 29003,
+ 1556,
+ 27,
+ 7740,
+ 352,
+ 13,
+ 14002,
+ 3253,
+ 285,
+ 23005,
+ 479,
+ 1024,
+ 449,
+ 12084
+ ],
+ "Bonjour, je voudrais annuler ma commande n°1234 — merci. Grüße <mask> ¿qué? 😀": [
+ 27157,
+ 19923,
+ 13,
+ 5139,
+ 362,
+ 2995,
+ 21269,
+ 2459,
+ 14398,
+ 6429,
+ 3923,
+ 70,
+ 295,
+ 3272,
+ 28941,
+ 1905,
+ 14480,
+ 74,
+ 15,
+ 50275,
+ 3594,
+ 3090,
+ 44366,
+ 654,
+ 12477,
+ 31,
+ 25769,
+ 371,
+ 860,
+ 32,
+ 49042,
+ 211
+ ],
+ "मुझसे दो बार शुल्क लिया गया, कृपया पैसे वापस करें। 二重に請求されました。返金してください。": [
+ 32191,
+ 38619,
+ 2483,
+ 240,
+ 28733,
+ 15472,
+ 6280,
+ 101,
+ 25159,
+ 6280,
+ 107,
+ 12001,
+ 15754,
+ 6280,
+ 116,
+ 38619,
+ 29903,
+ 17665,
+ 24381,
+ 6280,
+ 112,
+ 20489,
+ 29950,
+ 12001,
+ 6280,
+ 234,
+ 29950,
+ 12001,
+ 13,
+ 21433,
+ 6123,
+ 214,
+ 39695,
+ 29950,
+ 12001,
+ 42042,
+ 33358,
+ 28733,
+ 15472,
+ 6280,
+ 115,
+ 12001,
+ 39695,
+ 28733,
+ 21433,
+ 15754,
+ 15472,
+ 22143,
+ 6123,
+ 99,
+ 209,
+ 34744,
+ 34698,
+ 5444,
+ 43894,
+ 222,
+ 43741,
+ 22323,
+ 35550,
+ 4340,
+ 47397,
+ 38001,
+ 18309,
+ 14016,
+ 13973,
+ 13129,
+ 5151,
+ 4340
+ ],
+ "": [],
+ "choice question: pick": [
+ 22122,
+ 1953,
+ 27,
+ 2619
+ ],
+ " option 0": [
+ 4500,
+ 470
+ ],
+ " option 1": [
+ 4500,
+ 337
+ ],
+ " option 2": [
+ 4500,
+ 374
+ ],
+ " option 3": [
+ 4500,
+ 495
+ ],
+ " option 4": [
+ 4500,
+ 577
+ ],
+ " option 5": [
+ 4500,
+ 608
+ ],
+ " option 6": [
+ 4500,
+ 721
+ ],
+ " option 7": [
+ 4500,
+ 818
+ ],
+ " option 8": [
+ 4500,
+ 854
+ ],
+ " option 9": [
+ 4500,
+ 898
+ ],
+ " option 10": [
+ 4500,
+ 884
+ ],
+ " option 11": [
+ 4500,
+ 1903
+ ],
+ " option 12": [
+ 4500,
+ 1249
+ ],
+ " option 13": [
+ 4500,
+ 2145
+ ],
+ " option 14": [
+ 4500,
+ 1638
+ ],
+ " option 15": [
+ 4500,
+ 1458
+ ],
+ " option 16": [
+ 4500,
+ 1668
+ ],
+ " option 17": [
+ 4500,
+ 1722
+ ],
+ " option 18": [
+ 4500,
+ 1283
+ ],
+ " option 19": [
+ 4500,
+ 655
+ ],
+ " option 20": [
+ 4500,
+ 1384
+ ],
+ " option 21": [
+ 4500,
+ 3127
+ ],
+ " option 22": [
+ 4500,
+ 3307
+ ],
+ " option 23": [
+ 4500,
+ 3495
+ ],
+ " option 24": [
+ 4500,
+ 2164
+ ],
+ " option 25": [
+ 4500,
+ 2030
+ ],
+ " option 26": [
+ 4500,
+ 3436
+ ],
+ " option 27": [
+ 4500,
+ 3435
+ ],
+ " option 28": [
+ 4500,
+ 3349
+ ],
+ " option 29": [
+ 4500,
+ 3285
+ ],
+ " option 30": [
+ 4500,
+ 1884
+ ],
+ " option 31": [
+ 4500,
+ 4562
+ ],
+ " option 32": [
+ 4500,
+ 4567
+ ],
+ " option 33": [
+ 4500,
+ 5922
+ ],
+ " option 34": [
+ 4500,
+ 5910
+ ],
+ " option 35": [
+ 4500,
+ 4791
+ ],
+ " option 36": [
+ 4500,
+ 5540
+ ],
+ " option 37": [
+ 4500,
+ 5345
+ ],
+ " option 38": [
+ 4500,
+ 6480
+ ],
+ " option 39": [
+ 4500,
+ 6931
+ ],
+ " option 40": [
+ 4500,
+ 3387
+ ],
+ " option 41": [
+ 4500,
+ 7609
+ ],
+ " option 42": [
+ 4500,
+ 5976
+ ],
+ " option 43": [
+ 4500,
+ 7652
+ ],
+ " option 44": [
+ 4500,
+ 7127
+ ],
+ " option 45": [
+ 4500,
+ 5329
+ ],
+ " option 46": [
+ 4500,
+ 7904
+ ],
+ " option 47": [
+ 4500,
+ 7543
+ ],
+ " option 48": [
+ 4500,
+ 5693
+ ],
+ " option 49": [
+ 4500,
+ 7584
+ ],
+ " option 50": [
+ 4500,
+ 2456
+ ],
+ " option 51": [
+ 4500,
+ 8319
+ ],
+ " option 52": [
+ 4500,
+ 8073
+ ],
+ " option 53": [
+ 4500,
+ 8676
+ ],
+ " option 54": [
+ 4500,
+ 8255
+ ],
+ " option 55": [
+ 4500,
+ 7288
+ ],
+ " option 56": [
+ 4500,
+ 8026
+ ],
+ " option 57": [
+ 4500,
+ 8988
+ ],
+ " option 58": [
+ 4500,
+ 9135
+ ],
+ " option 59": [
+ 4500,
+ 8978
+ ],
+ " option 60": [
+ 4500,
+ 3925
+ ],
+ " option 61": [
+ 4500,
+ 9901
+ ],
+ " option 62": [
+ 4500,
+ 9743
+ ],
+ " option 63": [
+ 4500,
+ 9654
+ ],
+ " option 64": [
+ 4500,
+ 6705
+ ],
+ " option 65": [
+ 4500,
+ 7251
+ ],
+ " option 66": [
+ 4500,
+ 9523
+ ],
+ " option 67": [
+ 4500,
+ 9963
+ ],
+ " option 68": [
+ 4500,
+ 9934
+ ],
+ " option 69": [
+ 4500,
+ 10447
+ ],
+ " option 70": [
+ 4500,
+ 5571
+ ],
+ " option 71": [
+ 4500,
+ 11102
+ ],
+ " option 72": [
+ 4500,
+ 8187
+ ],
+ " option 73": [
+ 4500,
+ 11087
+ ],
+ " option 74": [
+ 4500,
+ 10677
+ ],
+ " option 75": [
+ 4500,
+ 6879
+ ],
+ " option 76": [
+ 4500,
+ 10909
+ ],
+ " option 77": [
+ 4500,
+ 10484
+ ],
+ " option 78": [
+ 4500,
+ 10523
+ ],
+ " option 79": [
+ 4500,
+ 11275
+ ],
+ "x": [
+ 89
+ ]
+ }
+}
diff --git a/packages/sie_server/tests/adapters/fixtures/laya/laya.json b/packages/sie_server/tests/adapters/fixtures/laya/laya.json
new file mode 100644
index 000000000..b740eec01
--- /dev/null
+++ b/packages/sie_server/tests/adapters/fixtures/laya/laya.json
@@ -0,0 +1,9263 @@
+{
+ "generator": "laya reference implementation (pip laya==0.3.11), CPU float32",
+ "environment": {
+ "torch": "2.8.0+cpu",
+ "transformers": "4.57.6"
+ },
+ "repo": "convaiinnovations/laya",
+ "revision": "aa8c91ca088ec597df95a0d1c76b3063cb2ae5e8",
+ "max_len": 512,
+ "head_max_len": 192,
+ "rl_agent_config": {
+ "temperature": [
+ 1.6369030475616455,
+ 1.2514300346374512,
+ 1.983399510383606
+ ],
+ "temperature_by_options": {
+ "choice:3-5": 1.7601518630981445,
+ "choice:6-10": 1.0000158548355103,
+ "score:3-5": 1.2514300346374512,
+ "noul:2": 1.983399510383606,
+ "choice:11+": 0.10058280825614929,
+ "choice:2": 1.9063563346862793
+ }
+ },
+ "temperature_applied": [
+ 1.6369030475616455,
+ 1.2514300346374512,
+ 1.983399510383606
+ ],
+ "temperature_by_options_applied": {
+ "choice:3-5": 1.7601518630981445,
+ "choice:6-10": 1.0000158548355103,
+ "score:3-5": 1.2514300346374512,
+ "noul:2": 1.983399510383606,
+ "choice:11+": 0.5,
+ "choice:2": 1.9063563346862793
+ },
+ "tokenizer": {
+ "mask_token": "[MASK]",
+ "mask_token_id": 50284,
+ "cls_token_id": 50281,
+ "sep_token_id": 50282,
+ "pad_token_id": 50283
+ },
+ "questions": {
+ "intent": {
+ "type": "choice",
+ "instructions": "What does the customer want?",
+ "criteria": {
+ "refund": "wants money back",
+ "cancel": "wants to cancel",
+ "technical": "reports a bug",
+ "other": null
+ }
+ },
+ "priority": {
+ "type": "choice",
+ "instructions": "Ticket priority",
+ "criteria": [
+ "low",
+ "normal",
+ "urgent"
+ ]
+ },
+ "many": {
+ "type": "choice",
+ "instructions": "Pick the department",
+ "criteria": [
+ "billing",
+ "sales",
+ "support",
+ "legal",
+ "security",
+ "hr",
+ "it",
+ "ops",
+ "finance",
+ "marketing",
+ "product",
+ "design"
+ ]
+ },
+ "refund_requested": {
+ "type": "noul",
+ "instructions": "The customer explicitly requests a refund."
+ },
+ "angry_labels": {
+ "type": "noul",
+ "instructions": "Is the customer angry?",
+ "criteria": {
+ "true": "angry or hostile tone"
+ },
+ "labels": {
+ "false": "calm",
+ "true": "angry"
+ }
+ },
+ "frustration": {
+ "type": "score",
+ "instructions": {
+ "rubric": "How frustrated is the customer?"
+ },
+ "criteria": [
+ "calm",
+ {
+ "desc": "mildly annoyed"
+ },
+ "frustrated",
+ "furious"
+ ]
+ },
+ "crit_values": {
+ "type": "choice",
+ "instructions": "Which channel? [MASK] <mask>",
+ "criteria": {
+ "email": 0,
+ "phone": [
+ "call",
+ "voicemail"
+ ],
+ "chat": {
+ "live": true
+ },
+ "none": ""
+ }
+ },
+ "noul_both": {
+ "type": "noul",
+ "instructions": "Does the text mention money?",
+ "criteria": {
+ "true": "mentions a payment, charge, price or refund",
+ "false": "no money is mentioned"
+ }
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "instructions": "Which of the thirty departments owns this request?",
+ "criteria": {
+ "dept_00": "requests that belong to department number 0 and nowhere else",
+ "dept_01": "requests that belong to department number 1 and nowhere else",
+ "dept_02": "requests that belong to department number 2 and nowhere else",
+ "dept_03": "requests that belong to department number 3 and nowhere else",
+ "dept_04": "requests that belong to department number 4 and nowhere else",
+ "dept_05": "requests that belong to department number 5 and nowhere else",
+ "dept_06": "requests that belong to department number 6 and nowhere else",
+ "dept_07": "requests that belong to department number 7 and nowhere else",
+ "dept_08": "requests that belong to department number 8 and nowhere else",
+ "dept_09": "requests that belong to department number 9 and nowhere else",
+ "dept_10": "requests that belong to department number 10 and nowhere else",
+ "dept_11": "requests that belong to department number 11 and nowhere else",
+ "dept_12": "requests that belong to department number 12 and nowhere else",
+ "dept_13": "requests that belong to department number 13 and nowhere else",
+ "dept_14": "requests that belong to department number 14 and nowhere else",
+ "dept_15": "requests that belong to department number 15 and nowhere else",
+ "dept_16": "requests that belong to department number 16 and nowhere else",
+ "dept_17": "requests that belong to department number 17 and nowhere else",
+ "dept_18": "requests that belong to department number 18 and nowhere else",
+ "dept_19": "requests that belong to department number 19 and nowhere else",
+ "dept_20": "requests that belong to department number 20 and nowhere else",
+ "dept_21": "requests that belong to department number 21 and nowhere else",
+ "dept_22": "requests that belong to department number 22 and nowhere else",
+ "dept_23": "requests that belong to department number 23 and nowhere else",
+ "dept_24": "requests that belong to department number 24 and nowhere else",
+ "dept_25": "requests that belong to department number 25 and nowhere else",
+ "dept_26": "requests that belong to department number 26 and nowhere else",
+ "dept_27": "requests that belong to department number 27 and nowhere else",
+ "dept_28": "requests that belong to department number 28 and nowhere else",
+ "dept_29": "requests that belong to department number 29 and nowhere else"
+ }
+ },
+ "label": {
+ "type": "choice",
+ "instructions": "Which category does this text belong to?",
+ "criteria": [
+ "billing",
+ "technical",
+ "sales",
+ "other"
+ ]
+ }
+ },
+ "cases": [
+ {
+ "name": "plain_email",
+ "state": "Hi, I was charged twice for my subscription this month. Please refund one charge ASAP!",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 52,
+ "sha256": "f4c9a7769de8197a8399394710266ff5c019f10483fc0b56814d4221b2c90b12",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ 4.765211,
+ -1.987753,
+ -2.295288,
+ -3.050006
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 35,
+ "sha256": "94250219a4f5f609e46ceef6fd66c33d20d8808d5a6cf08ec7ebbe6476247f55",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.031025,
+ -1.206777,
+ 3.353679
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 53,
+ "sha256": "6d2f44621f79cbe840188d1381db0ef9e05cb1271bef83af9683d16f478809bf",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 6.27338,
+ -3.45758,
+ 0.145292,
+ -1.056249,
+ -3.104906,
+ -2.750935,
+ -2.869752,
+ -3.675894,
+ 0.077295,
+ -2.444453,
+ -2.733496,
+ -3.866102
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 52,
+ "sha256": "bf132729b01d753f033c2f4dff67b28a7872fbe81d0fa852fe4949b4328f73f3",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ -1.59238,
+ 0.920969
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 49,
+ "sha256": "0c14fd4c2c29f967ae4ec67405dcd0c0d060d530eeeeb7833066eadabeae834e",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 0.106885,
+ 1.523532
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 66,
+ "sha256": "7c517aa209c94dea35f303de62eda88c956c1753ad3cc8d2146ead1ab52a4d19",
+ "markers": [
+ 17,
+ 22,
+ 35,
+ 40
+ ],
+ "qtype": 1,
+ "logits": [
+ -1.86378,
+ 1.824159,
+ 2.583644,
+ 0.251509
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 58,
+ "sha256": "15e5fdfb46d3103cc9df5626f16887eeca249a1cea2738c7155f37b982dd948c",
+ "markers": [
+ 12,
+ 16,
+ 27,
+ 35
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.043299,
+ -0.985035,
+ -0.666066,
+ 1.086985
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 52,
+ "sha256": "0f9ad58a746aaed3c43542c3a79e301cfc28c980e5db9547e2ed3f181bde2890",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ -1.424446,
+ 1.826577
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 185,
+ "sha256": "4cc7834b4c5b4a0a0d7c604a698d081d0ff089188874b0d123e06fd43a7fc899",
+ "markers": [
+ 14,
+ 19,
+ 24,
+ 29,
+ 34,
+ 39,
+ 44,
+ 49,
+ 54,
+ 59,
+ 64,
+ 69,
+ 74,
+ 79,
+ 84,
+ 89,
+ 94,
+ 99,
+ 104,
+ 109,
+ 114,
+ 119,
+ 124,
+ 129,
+ 134,
+ 139,
+ 144,
+ 149,
+ 154,
+ 159
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.431415,
+ -0.024649,
+ 0.151361,
+ -0.332643,
+ -0.316485,
+ -0.182127,
+ -0.120976,
+ -0.342299,
+ -0.263041,
+ -0.153436,
+ -0.05741,
+ -0.198226,
+ -0.171841,
+ -0.131709,
+ -0.053463,
+ -0.12541,
+ -0.221393,
+ -0.00348,
+ -0.175342,
+ -0.129099,
+ -0.441222,
+ -0.874584,
+ -0.697553,
+ -0.504636,
+ -0.421422,
+ -0.755915,
+ -0.536343,
+ -0.751692,
+ -1.791682,
+ -1.459419
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 42,
+ "sha256": "aacf503acf8d3174b75b8ee396c3869729f8ba0d451af7ce0142e6b3ee30e563",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ 4.988472,
+ -2.971035,
+ -3.107461,
+ -3.368205
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "refund",
+ "probabilities": {
+ "refund": 0.951,
+ "cancel": 0.0205,
+ "technical": 0.0172,
+ "other": 0.0112
+ },
+ "confidence": 0.8213
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.0715,
+ "normal": 0.0647,
+ "urgent": 0.8637
+ },
+ "confidence": 0.5518
+ },
+ "many": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 1.0,
+ "sales": 0.0,
+ "support": 0.0,
+ "legal": 0.0,
+ "security": 0.0,
+ "hr": 0.0,
+ "it": 0.0,
+ "ops": 0.0,
+ "finance": 0.0,
+ "marketing": 0.0,
+ "product": 0.0,
+ "design": 0.0
+ },
+ "confidence": 0.9999
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.7803,
+ "confidence": 0.7803
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.6713,
+ "confidence": 0.6713
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.7413,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0166,
+ "1": 0.3153,
+ "2": 0.5784,
+ "3": 0.0897
+ },
+ "confidence": 0.3041
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "none",
+ "probabilities": {
+ "email": 0.2388,
+ "phone": 0.1398,
+ "chat": 0.1676,
+ "none": 0.4538
+ },
+ "confidence": 0.0803
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.8374,
+ "confidence": 0.8374
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_00",
+ "probabilities": {
+ "dept_00": 0.1224,
+ "dept_01": 0.0492,
+ "dept_02": 0.0699,
+ "dept_03": 0.0266,
+ "dept_04": 0.0274,
+ "dept_05": 0.0359,
+ "dept_06": 0.0406,
+ "dept_07": 0.026,
+ "dept_08": 0.0305,
+ "dept_09": 0.038,
+ "dept_10": 0.0461,
+ "dept_11": 0.0347,
+ "dept_12": 0.0366,
+ "dept_13": 0.0397,
+ "dept_14": 0.0464,
+ "dept_15": 0.0402,
+ "dept_16": 0.0332,
+ "dept_17": 0.0513,
+ "dept_18": 0.0364,
+ "dept_19": 0.0399,
+ "dept_20": 0.0214,
+ "dept_21": 0.009,
+ "dept_22": 0.0128,
+ "dept_23": 0.0188,
+ "dept_24": 0.0222,
+ "dept_25": 0.0114,
+ "dept_26": 0.0177,
+ "dept_27": 0.0115,
+ "dept_28": 0.0014,
+ "dept_29": 0.0028
+ },
+ "confidence": 0.0608
+ },
+ "label": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.9713,
+ "technical": 0.0106,
+ "sales": 0.0098,
+ "other": 0.0084
+ },
+ "confidence": 0.8833
+ }
+ },
+ "input_tokens": 644
+ },
+ {
+ "name": "json_ticket",
+ "state": {
+ "subject": "Login broken",
+ "body": "Since the update I can't log in; error 500.",
+ "customer_tier": "enterprise",
+ "prior_tickets": 3
+ },
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 73,
+ "sha256": "5476cce6cfe277353629f05bffbdd36c7c9472c25d10950c00ffa1fb5e5a2b4b",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.191308,
+ -3.236459,
+ 3.674984,
+ -2.214473
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 56,
+ "sha256": "3e8157cde2ee30d3de8a51c0eb83fd69215139f3729f738f170ba46422aec9b2",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.104844,
+ 0.96975,
+ 1.971585
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 74,
+ "sha256": "2955998e861765816883c314b3676a3b4e4ab232209ca2ea3350071193d789e1",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.16708,
+ -2.939617,
+ 0.908976,
+ -2.87071,
+ 4.301089,
+ -3.100464,
+ -0.935879,
+ -1.452865,
+ -2.008635,
+ -2.061483,
+ -0.704149,
+ -1.695319
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 73,
+ "sha256": "643a4de149eaf773ee6e0fcb8b3614294e26823fd49f69ea33a2424c55adcc34",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ 4.547837,
+ -0.182078
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 70,
+ "sha256": "d68ef17f568ac9db7a619d855b4c8ea55716df7c2e4be6ad2226bee61482b794",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 2.150068,
+ -0.58767
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 87,
+ "sha256": "245a21fe4e13e61c709bb81d70937460764ae3340812100a3ffa819c5d69f6cd",
+ "markers": [
+ 17,
+ 22,
+ 35,
+ 40
+ ],
+ "qtype": 1,
+ "logits": [
+ -1.904488,
+ 2.10025,
+ 3.043569,
+ 0.163357
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 79,
+ "sha256": "b64d93c473a745b551405b9731be5247f20ce1cccc4087787e283064b682eacb",
+ "markers": [
+ 12,
+ 16,
+ 27,
+ 35
+ ],
+ "qtype": 0,
+ "logits": [
+ 4.49368,
+ -3.391978,
+ -2.773943,
+ -0.791821
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 73,
+ "sha256": "4dfd710f14c4f771894a1978bb25c8ddb673794d24a1d5aa4aaa53117f815cfa",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ 5.542341,
+ -2.104899
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 206,
+ "sha256": "722b0a8fea994fc37fd50b9f282c13b81ca7077778e5f28f2008a45a2ac873b9",
+ "markers": [
+ 14,
+ 19,
+ 24,
+ 29,
+ 34,
+ 39,
+ 44,
+ 49,
+ 54,
+ 59,
+ 64,
+ 69,
+ 74,
+ 79,
+ 84,
+ 89,
+ 94,
+ 99,
+ 104,
+ 109,
+ 114,
+ 119,
+ 124,
+ 129,
+ 134,
+ 139,
+ 144,
+ 149,
+ 154,
+ 159
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.802276,
+ -0.627886,
+ -0.176336,
+ -0.120566,
+ -0.631076,
+ -0.82858,
+ -0.513723,
+ -0.469644,
+ -0.545803,
+ -0.422618,
+ -0.586993,
+ -0.526843,
+ -0.550091,
+ -0.478844,
+ -0.351624,
+ -0.452612,
+ -0.59831,
+ -0.367283,
+ -0.462809,
+ -0.619617,
+ -0.772482,
+ -1.032248,
+ -1.067153,
+ -0.801361,
+ -0.645749,
+ -0.924612,
+ -0.788255,
+ -0.803463,
+ -1.363326,
+ -1.631768
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 63,
+ "sha256": "028e608aed5bb3ec3d932b8b5ecc6522abb760b25b5193de0589be9b07d968b9",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.689579,
+ 3.736798,
+ -2.390855,
+ -1.95262
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "technical",
+ "probabilities": {
+ "refund": 0.0327,
+ "cancel": 0.0181,
+ "technical": 0.9169,
+ "other": 0.0323
+ },
+ "confidence": 0.7296
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.1811,
+ "normal": 0.296,
+ "urgent": 0.5229
+ },
+ "confidence": 0.0818
+ },
+ "many": {
+ "type": "choice",
+ "choice": "security",
+ "probabilities": {
+ "billing": 0.0,
+ "sales": 0.0,
+ "support": 0.0011,
+ "legal": 0.0,
+ "security": 0.9988,
+ "hr": 0.0,
+ "it": 0.0,
+ "ops": 0.0,
+ "finance": 0.0,
+ "marketing": 0.0,
+ "product": 0.0,
+ "design": 0.0
+ },
+ "confidence": 0.996
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.0843,
+ "confidence": 0.9157
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.201,
+ "confidence": 0.799
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.7429,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0121,
+ "1": 0.296,
+ "2": 0.629,
+ "3": 0.063
+ },
+ "confidence": 0.3657
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "email",
+ "probabilities": {
+ "email": 0.9284,
+ "phone": 0.0105,
+ "chat": 0.0149,
+ "none": 0.0461
+ },
+ "confidence": 0.7681
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.0207,
+ "confidence": 0.9793
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_03",
+ "probabilities": {
+ "dept_00": 0.0216,
+ "dept_01": 0.0306,
+ "dept_02": 0.0755,
+ "dept_03": 0.0844,
+ "dept_04": 0.0304,
+ "dept_05": 0.0205,
+ "dept_06": 0.0385,
+ "dept_07": 0.042,
+ "dept_08": 0.0361,
+ "dept_09": 0.0461,
+ "dept_10": 0.0332,
+ "dept_11": 0.0375,
+ "dept_12": 0.0358,
+ "dept_13": 0.0412,
+ "dept_14": 0.0532,
+ "dept_15": 0.0435,
+ "dept_16": 0.0325,
+ "dept_17": 0.0515,
+ "dept_18": 0.0426,
+ "dept_19": 0.0311,
+ "dept_20": 0.0229,
+ "dept_21": 0.0136,
+ "dept_22": 0.0127,
+ "dept_23": 0.0216,
+ "dept_24": 0.0295,
+ "dept_25": 0.0169,
+ "dept_26": 0.0222,
+ "dept_27": 0.0215,
+ "dept_28": 0.007,
+ "dept_29": 0.0041
+ },
+ "confidence": 0.0397
+ },
+ "label": {
+ "type": "choice",
+ "choice": "technical",
+ "probabilities": {
+ "billing": 0.0237,
+ "technical": 0.9122,
+ "sales": 0.0281,
+ "other": 0.036
+ },
+ "confidence": 0.7169
+ }
+ },
+ "input_tokens": 854
+ },
+ {
+ "name": "conversation_list",
+ "state": [
+ {
+ "role": "user",
+ "content": "I want to cancel."
+ },
+ {
+ "role": "agent",
+ "content": "Sorry to hear that - may I ask why?"
+ },
+ {
+ "role": "user",
+ "content": "Too expensive, and support is slow. Cancel it now."
+ }
+ ],
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 95,
+ "sha256": "9f4676aeb5967b2dca42af36658e715dd3df4a45a831bdfd0b757ada3dbb6066",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ -2.11901,
+ 10.495611,
+ -3.046867,
+ -3.44614
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 78,
+ "sha256": "99a791b7f8469848a2f79193bdacce86aa302ec5c86682071583371443bd15b1",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ 1.545655,
+ -0.716973,
+ 2.893778
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 96,
+ "sha256": "4c3440306a5aed286680daf9648693b2d23fc09b417474ecb2fee95dedc4f4ff",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.947255,
+ -2.260449,
+ 0.842523,
+ -2.343589,
+ -3.92172,
+ -3.487804,
+ 0.900675,
+ -3.974556,
+ -2.458084,
+ -3.48044,
+ -3.06261,
+ -4.001501
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 95,
+ "sha256": "e718b478cd2d0941b405d787e30fdf7c930ae0aba5bc5a8768c8f1c7f42a835b",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ 3.231877,
+ 0.437944
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 92,
+ "sha256": "4e1865fffd8ba2e7d8c184fbfffc446e254150c3bcc8b1a61cc1c5a3d81c0763",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 1.346423,
+ 0.800842
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 109,
+ "sha256": "a70487ce58e9361d585d9a339501377ff63e9439b2c48a89cb0e5c9184569a42",
+ "markers": [
+ 17,
+ 22,
+ 35,
+ 40
+ ],
+ "qtype": 1,
+ "logits": [
+ -1.508778,
+ 1.797796,
+ 3.047141,
+ -0.672776
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 101,
+ "sha256": "4688b4f70f8ea4c74519097d29b4e6dcf6d5e00293a1187d632f1e486fb8b67a",
+ "markers": [
+ 12,
+ 16,
+ 27,
+ 35
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.390505,
+ -2.082301,
+ -0.308359,
+ 0.129555
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 95,
+ "sha256": "8d33613d6b103a3fc834011237acd37818cc7262dc710bcc423546cc7d44090b",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ 2.496811,
+ -0.728144
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 228,
+ "sha256": "b69fb09d5df03817b943d905209f3d8ec56b39da2bbc62d9b6366458542e07e4",
+ "markers": [
+ 14,
+ 19,
+ 24,
+ 29,
+ 34,
+ 39,
+ 44,
+ 49,
+ 54,
+ 59,
+ 64,
+ 69,
+ 74,
+ 79,
+ 84,
+ 89,
+ 94,
+ 99,
+ 104,
+ 109,
+ 114,
+ 119,
+ 124,
+ 129,
+ 134,
+ 139,
+ 144,
+ 149,
+ 154,
+ 159
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.500921,
+ -1.491947,
+ -1.118665,
+ -1.442906,
+ -1.578493,
+ -1.591245,
+ -1.292888,
+ -1.334843,
+ -1.446609,
+ -1.35172,
+ -1.087572,
+ -1.102986,
+ -0.934528,
+ -0.891845,
+ -0.976171,
+ -0.843052,
+ -0.963858,
+ -0.711726,
+ -1.022325,
+ -1.463117,
+ -1.845369,
+ -1.979432,
+ -1.807551,
+ -1.47797,
+ -1.630965,
+ -2.03699,
+ -1.88054,
+ -2.54329,
+ -3.498814,
+ -3.631732
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 85,
+ "sha256": "54e323d60091d042e449142cb78ef95faff857e0a113ee47edd2f9b61b8573cc",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.517564,
+ -1.845572,
+ -2.624063,
+ -2.254869
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "cancel",
+ "probabilities": {
+ "refund": 0.0008,
+ "cancel": 0.9984,
+ "technical": 0.0005,
+ "other": 0.0004
+ },
+ "confidence": 0.9903
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.2918,
+ "normal": 0.0807,
+ "urgent": 0.6276
+ },
+ "confidence": 0.2219
+ },
+ "many": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.3667,
+ "sales": 0.0006,
+ "support": 0.2974,
+ "legal": 0.0005,
+ "security": 0.0,
+ "hr": 0.0001,
+ "it": 0.3341,
+ "ops": 0.0,
+ "finance": 0.0004,
+ "marketing": 0.0001,
+ "product": 0.0001,
+ "design": 0.0
+ },
+ "confidence": 0.5537
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.1964,
+ "confidence": 0.8036
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.4317,
+ "confidence": 0.5683
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.7442,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0181,
+ "1": 0.2549,
+ "2": 0.6916,
+ "3": 0.0354
+ },
+ "confidence": 0.4269
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "none",
+ "probabilities": {
+ "email": 0.1696,
+ "phone": 0.1145,
+ "chat": 0.3137,
+ "none": 0.4023
+ },
+ "confidence": 0.0774
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.1644,
+ "confidence": 0.8356
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_17",
+ "probabilities": {
+ "dept_00": 0.0219,
+ "dept_01": 0.0223,
+ "dept_02": 0.0471,
+ "dept_03": 0.0246,
+ "dept_04": 0.0188,
+ "dept_05": 0.0183,
+ "dept_06": 0.0332,
+ "dept_07": 0.0306,
+ "dept_08": 0.0244,
+ "dept_09": 0.0296,
+ "dept_10": 0.0501,
+ "dept_11": 0.0486,
+ "dept_12": 0.0681,
+ "dept_13": 0.0742,
+ "dept_14": 0.0626,
+ "dept_15": 0.0818,
+ "dept_16": 0.0642,
+ "dept_17": 0.1063,
+ "dept_18": 0.0571,
+ "dept_19": 0.0237,
+ "dept_20": 0.011,
+ "dept_21": 0.0084,
+ "dept_22": 0.0119,
+ "dept_23": 0.023,
+ "dept_24": 0.0169,
+ "dept_25": 0.0075,
+ "dept_26": 0.0103,
+ "dept_27": 0.0027,
+ "dept_28": 0.0004,
+ "dept_29": 0.0003
+ },
+ "confidence": 0.0921
+ },
+ "label": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.6113,
+ "technical": 0.1596,
+ "sales": 0.1026,
+ "other": 0.1265
+ },
+ "confidence": 0.2145
+ }
+ },
+ "input_tokens": 1074
+ },
+ {
+ "name": "long_truncated",
+ "state": "The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times.",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 512,
+ "sha256": "7b423d7344f44a0d6a1d9865991b7cdab49f2d35784e8b53660812c4ed5d0975",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.481821,
+ -1.175263,
+ -0.019042,
+ 0.385887
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 512,
+ "sha256": "2c3074a10ffbe2cfbbb72bfd5308e13af85dc79f6e3c0bfe21e164c33ef75d16",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.797957,
+ -0.302218,
+ 0.061652
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 512,
+ "sha256": "30c643a9a50b799cfcba227c369e5204eecfab41c526006f0fefd6ec92f339f1",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 1.182433,
+ -0.352737,
+ 0.198081,
+ -1.335517,
+ 0.156948,
+ -1.691961,
+ -0.302641,
+ -0.353772,
+ 0.32352,
+ -0.17392,
+ -0.641259,
+ -0.849563
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 512,
+ "sha256": "ceb8b9ec1c02c0a9ee7d45e227f6a4fdd122b5142584447f71255a4453a75633",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ 0.302537,
+ 0.462545
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 512,
+ "sha256": "b206d15dd7ff99a70b53aeb43a9b32ce7d59a109c6d587dee31feb6cdd9537db",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 2.075118,
+ 0.050603
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 512,
+ "sha256": "668fb0f066556e5965fb8fc1d3890cd8358e726e149a57d8c330d7c3ab0814c7",
+ "markers": [
+ 17,
+ 22,
+ 35,
+ 40
+ ],
+ "qtype": 1,
+ "logits": [
+ -1.566721,
+ 2.225044,
+ 2.143717,
+ -0.754476
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 512,
+ "sha256": "db065ca14b8b9d1fc4e3318ac814350c8f86b9694f65555b5d39b04c1104f118",
+ "markers": [
+ 12,
+ 16,
+ 27,
+ 35
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.293681,
+ -0.609307,
+ -0.197697,
+ 1.106057
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 512,
+ "sha256": "fecafb7a961079b1b548951150ba0ab8e6f701b8ac400707476e2fb03ffe3f14",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ 2.122884,
+ 0.157716
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 512,
+ "sha256": "d91af729fe83271c3b2058e10b9ebe32545cb250cbba74a230880f8399f45355",
+ "markers": [
+ 14,
+ 19,
+ 24,
+ 29,
+ 34,
+ 39,
+ 44,
+ 49,
+ 54,
+ 59,
+ 64,
+ 69,
+ 74,
+ 79,
+ 84,
+ 89,
+ 94,
+ 99,
+ 104,
+ 109,
+ 114,
+ 119,
+ 124,
+ 129,
+ 134,
+ 139,
+ 144,
+ 149,
+ 154,
+ 159
+ ],
+ "qtype": 0,
+ "logits": [
+ 1.202148,
+ 0.840976,
+ 0.712129,
+ 0.44216,
+ 0.26961,
+ 0.478648,
+ 0.557968,
+ 0.475163,
+ 0.305189,
+ 0.693298,
+ 0.538787,
+ 0.330928,
+ 0.229134,
+ 0.228619,
+ 0.263939,
+ 0.233308,
+ 0.092834,
+ 0.452455,
+ 0.363266,
+ 0.257378,
+ 0.308432,
+ -0.186851,
+ -0.273398,
+ -0.02921,
+ 0.04095,
+ -0.125079,
+ 0.111381,
+ -0.082493,
+ -0.165836,
+ -0.248801
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 512,
+ "sha256": "80d50be9eb0f12be64b167d20313f8c431a390c7352196a463b2b1ff37c7f1df",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ 1.145305,
+ -0.454474,
+ -0.489517,
+ -0.241659
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "refund",
+ "probabilities": {
+ "refund": 0.3237,
+ "cancel": 0.1263,
+ "technical": 0.2435,
+ "other": 0.3065
+ },
+ "confidence": 0.0386
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "low",
+ "probabilities": {
+ "low": 0.4559,
+ "normal": 0.244,
+ "urgent": 0.3001
+ },
+ "confidence": 0.032
+ },
+ "many": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.5845,
+ "sales": 0.0271,
+ "support": 0.0816,
+ "legal": 0.0038,
+ "security": 0.0752,
+ "hr": 0.0019,
+ "it": 0.03,
+ "ops": 0.0271,
+ "finance": 0.1049,
+ "marketing": 0.0388,
+ "product": 0.0152,
+ "design": 0.01
+ },
+ "confidence": 0.3887
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.5202,
+ "confidence": 0.5202
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.2649,
+ "confidence": 0.7351
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.5167,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0233,
+ "1": 0.4813,
+ "2": 0.451,
+ "3": 0.0445
+ },
+ "confidence": 0.3241
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "none",
+ "probabilities": {
+ "email": 0.2537,
+ "phone": 0.1519,
+ "chat": 0.1919,
+ "none": 0.4025
+ },
+ "confidence": 0.0498
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.2708,
+ "confidence": 0.7292
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_00",
+ "probabilities": {
+ "dept_00": 0.1654,
+ "dept_01": 0.0803,
+ "dept_02": 0.0621,
+ "dept_03": 0.0362,
+ "dept_04": 0.0256,
+ "dept_05": 0.0389,
+ "dept_06": 0.0456,
+ "dept_07": 0.0387,
+ "dept_08": 0.0275,
+ "dept_09": 0.0598,
+ "dept_10": 0.0439,
+ "dept_11": 0.029,
+ "dept_12": 0.0236,
+ "dept_13": 0.0236,
+ "dept_14": 0.0253,
+ "dept_15": 0.0238,
+ "dept_16": 0.018,
+ "dept_17": 0.0369,
+ "dept_18": 0.0309,
+ "dept_19": 0.025,
+ "dept_20": 0.0277,
+ "dept_21": 0.0103,
+ "dept_22": 0.0086,
+ "dept_23": 0.0141,
+ "dept_24": 0.0162,
+ "dept_25": 0.0116,
+ "dept_26": 0.0187,
+ "dept_27": 0.0127,
+ "dept_28": 0.0107,
+ "dept_29": 0.0091
+ },
+ "confidence": 0.0806
+ },
+ "label": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.4439,
+ "technical": 0.1789,
+ "sales": 0.1754,
+ "other": 0.2019
+ },
+ "confidence": 0.0646
+ }
+ },
+ "input_tokens": 5120
+ },
+ {
+ "name": "long_conversation_left_truncated",
+ "state": [
+ {
+ "role": "user",
+ "content": "Message 0: my order #1000 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 0: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 1: my order #1001 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 1: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 2: my order #1002 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 2: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 3: my order #1003 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 3: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 4: my order #1004 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 4: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 5: my order #1005 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 5: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 6: my order #1006 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 6: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 7: my order #1007 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 7: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 8: my order #1008 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 8: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 9: my order #1009 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 9: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 10: my order #1010 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 10: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 11: my order #1011 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 11: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 12: my order #1012 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 12: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 13: my order #1013 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 13: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 14: my order #1014 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 14: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 15: my order #1015 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 15: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 16: my order #1016 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 16: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 17: my order #1017 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 17: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 18: my order #1018 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 18: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 19: my order #1019 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 19: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 20: my order #1020 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 20: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 21: my order #1021 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 21: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 22: my order #1022 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 22: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 23: my order #1023 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 23: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 24: my order #1024 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 24: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 25: my order #1025 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 25: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 26: my order #1026 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 26: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 27: my order #1027 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 27: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 28: my order #1028 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 28: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 29: my order #1029 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 29: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 30: my order #1030 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 30: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 31: my order #1031 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 31: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 32: my order #1032 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 32: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 33: my order #1033 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 33: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 34: my order #1034 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 34: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 35: my order #1035 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 35: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 36: my order #1036 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 36: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 37: my order #1037 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 37: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 38: my order #1038 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 38: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 39: my order #1039 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 39: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 40: my order #1040 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 40: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 41: my order #1041 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 41: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 42: my order #1042 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 42: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 43: my order #1043 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 43: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 44: my order #1044 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 44: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "FINAL: forget it, cancel everything and refund me now."
+ }
+ ],
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 512,
+ "sha256": "5adb4bf81d15129bc06f9f3a345ed0d0bbf2efddbd83d6f0bf54822e5aa39a4b",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.416494,
+ 0.359139,
+ 1.096523,
+ 0.640234
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 512,
+ "sha256": "dcc0c935c91163c296acdb35af7a0cf42cf89efcb053b726b8c823ac2219080a",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.883575,
+ 0.998739,
+ 1.161148
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 512,
+ "sha256": "3644968eb67a416e2cb556791c2ca5040dbad169679e5ff7238bf3ca12d153b9",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.962746,
+ -0.689867,
+ 1.919702,
+ 0.262154,
+ -0.258708,
+ -0.533548,
+ 0.674842,
+ 0.08662,
+ -1.864024,
+ -0.588377,
+ -0.824707,
+ -1.364955
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 512,
+ "sha256": "7e42406c71ff68299ff0e0860c9ea25565312153ef52f50a32b181a1b7dc8e34",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ 0.206485,
+ 0.859643
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 512,
+ "sha256": "143f49e1ed45542120e91ed7e14ef5438574892d72b3c18e04f43d4218fbb07d",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 1.447852,
+ 0.197354
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 512,
+ "sha256": "ce661cc927fd7b67a50b58d5f5344b89661ca3375617f403bf8bce5c051c5f87",
+ "markers": [
+ 17,
+ 22,
+ 35,
+ 40
+ ],
+ "qtype": 1,
+ "logits": [
+ 0.738589,
+ 1.507763,
+ 2.21958,
+ 1.18874
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 512,
+ "sha256": "abd4ba1759e8a249f46bb1f6c8917e136d184f5b4f830272f47046c2622883e2",
+ "markers": [
+ 12,
+ 16,
+ 27,
+ 35
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.571256,
+ -0.66314,
+ 0.029289,
+ 0.724516
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 512,
+ "sha256": "5fede5a140e05cb733e6c5f242e7a734fb2bb3e76127eec1d3a82c4826122c62",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ 1.595592,
+ 0.60529
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 512,
+ "sha256": "5f6a50cada06c8c987645ec3d2907268ff2d90c96fa57da4215dd9ab68f0ba94",
+ "markers": [
+ 14,
+ 19,
+ 24,
+ 29,
+ 34,
+ 39,
+ 44,
+ 49,
+ 54,
+ 59,
+ 64,
+ 69,
+ 74,
+ 79,
+ 84,
+ 89,
+ 94,
+ 99,
+ 104,
+ 109,
+ 114,
+ 119,
+ 124,
+ 129,
+ 134,
+ 139,
+ 144,
+ 149,
+ 154,
+ 159
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.024874,
+ -0.007736,
+ 0.042157,
+ -0.168213,
+ -0.465439,
+ -0.547274,
+ -0.440416,
+ -0.29891,
+ -0.419843,
+ -0.308646,
+ 0.217601,
+ -0.484532,
+ -0.47021,
+ 0.102728,
+ -0.254971,
+ -0.450339,
+ -0.530477,
+ -0.267441,
+ -0.071587,
+ -0.288175,
+ -0.58329,
+ -1.204287,
+ -0.969917,
+ -0.785023,
+ -0.724563,
+ -1.352807,
+ -1.24249,
+ -0.85949,
+ -1.02033,
+ -1.159545
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 512,
+ "sha256": "ecd4ad3aa171f06d301b91f26f4f9390e6d66e2d6c4d0de40899ee8dadb9594c",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.494866,
+ 1.452032,
+ 0.509286,
+ 0.323519
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "technical",
+ "probabilities": {
+ "refund": 0.2186,
+ "cancel": 0.2116,
+ "technical": 0.3217,
+ "other": 0.2482
+ },
+ "confidence": 0.0105
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.3088,
+ "normal": 0.3297,
+ "urgent": 0.3615
+ },
+ "confidence": 0.0019
+ },
+ "many": {
+ "type": "choice",
+ "choice": "support",
+ "probabilities": {
+ "billing": 0.0026,
+ "sales": 0.0046,
+ "support": 0.843,
+ "legal": 0.0306,
+ "security": 0.0108,
+ "hr": 0.0062,
+ "it": 0.0699,
+ "ops": 0.0216,
+ "finance": 0.0004,
+ "marketing": 0.0056,
+ "product": 0.0035,
+ "design": 0.0012
+ },
+ "confidence": 0.7181
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.5816,
+ "confidence": 0.5816
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.3474,
+ "confidence": 0.6526
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.6799,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.1325,
+ "1": 0.245,
+ "2": 0.4327,
+ "3": 0.1899
+ },
+ "confidence": 0.0692
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "none",
+ "probabilities": {
+ "email": 0.1837,
+ "phone": 0.1744,
+ "chat": 0.2584,
+ "none": 0.3836
+ },
+ "confidence": 0.0384
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.3777,
+ "confidence": 0.6223
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_10",
+ "probabilities": {
+ "dept_00": 0.064,
+ "dept_01": 0.0663,
+ "dept_02": 0.0732,
+ "dept_03": 0.0481,
+ "dept_04": 0.0265,
+ "dept_05": 0.0225,
+ "dept_06": 0.0279,
+ "dept_07": 0.037,
+ "dept_08": 0.0291,
+ "dept_09": 0.0363,
+ "dept_10": 0.104,
+ "dept_11": 0.0255,
+ "dept_12": 0.0263,
+ "dept_13": 0.0826,
+ "dept_14": 0.0404,
+ "dept_15": 0.0273,
+ "dept_16": 0.0233,
+ "dept_17": 0.0394,
+ "dept_18": 0.0583,
+ "dept_19": 0.0378,
+ "dept_20": 0.021,
+ "dept_21": 0.0061,
+ "dept_22": 0.0097,
+ "dept_23": 0.014,
+ "dept_24": 0.0158,
+ "dept_25": 0.0045,
+ "dept_26": 0.0056,
+ "dept_27": 0.0121,
+ "dept_28": 0.0087,
+ "dept_29": 0.0066
+ },
+ "confidence": 0.0748
+ },
+ "label": {
+ "type": "choice",
+ "choice": "technical",
+ "probabilities": {
+ "billing": 0.2156,
+ "technical": 0.3714,
+ "sales": 0.2174,
+ "other": 0.1956
+ },
+ "confidence": 0.0265
+ }
+ },
+ "input_tokens": 5120
+ },
+ {
+ "name": "non_ascii_masks",
+ "state": "Bonjour, je voudrais annuler ma commande n°1234 — merci. [MASK] Grüße <mask> ¿qué? 😀",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 65,
+ "sha256": "b7a8e0fa67ee84b9d25596523e3b5734b1f168f8d10ad896382b47184ed6c9de",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.491825,
+ 6.492561,
+ -1.222152,
+ -2.701731
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 48,
+ "sha256": "23bdbce83c4d8385764215cf75cb833061d6807710558dab3ade49769a8004b8",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.420235,
+ 1.058508,
+ 0.246958
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 66,
+ "sha256": "7c7f6f464362f251b19ceeff004299c1cdf016bbb496514533b6add200d69a2b",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 2.539722,
+ -0.814377,
+ -0.378029,
+ -1.684963,
+ 0.872794,
+ -2.039004,
+ -0.903686,
+ -0.845575,
+ 0.919778,
+ -1.390709,
+ 0.367512,
+ -1.420102
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 65,
+ "sha256": "eef220e57789264475b0958af6bc2fb85d61299180bba8b534271ca92a418550",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ -2.128078,
+ 1.082394
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 62,
+ "sha256": "b55e4fb367123a8504a111f930b0c9efc8d72a155f11b393ee6061fb629f30ec",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 1.919817,
+ -0.216655
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 79,
+ "sha256": "0a6c8965dd16555dd54b6100ac6067375564839da77af86a49bcf07791d35a8b",
+ "markers": [
+ 17,
+ 22,
+ 35,
+ 40
+ ],
+ "qtype": 1,
+ "logits": [
+ -0.285661,
+ 3.077541,
+ 1.076661,
+ -1.430945
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 71,
+ "sha256": "faba680574b237a6b1dcdd7f74c49e890f193e0ec26f8dc3139a7b1fe0c3e258",
+ "markers": [
+ 12,
+ 16,
+ 27,
+ 35
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.068596,
+ -1.55878,
+ 0.763728,
+ 0.882314
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 65,
+ "sha256": "bba119c93d618ba15a7bb3f01edd23b445f9ebaa39d3266447e5232b475ffb58",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ 1.289194,
+ 1.173434
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 198,
+ "sha256": "69f57a2a193241ef98ec416124b59774c3aef3f2ff49676227903bb1d4c63b03",
+ "markers": [
+ 14,
+ 19,
+ 24,
+ 29,
+ 34,
+ 39,
+ 44,
+ 49,
+ 54,
+ 59,
+ 64,
+ 69,
+ 74,
+ 79,
+ 84,
+ 89,
+ 94,
+ 99,
+ 104,
+ 109,
+ 114,
+ 119,
+ 124,
+ 129,
+ 134,
+ 139,
+ 144,
+ 149,
+ 154,
+ 159
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.226756,
+ 0.34723,
+ 0.155136,
+ -0.201347,
+ -0.276921,
+ -0.044132,
+ 0.058292,
+ -0.149029,
+ -0.299763,
+ -0.009844,
+ 0.045654,
+ -0.109756,
+ -0.059898,
+ 0.051658,
+ 0.034628,
+ -0.022089,
+ -0.128752,
+ 0.144504,
+ -0.04314,
+ -0.277061,
+ -0.299816,
+ -0.770207,
+ -0.762101,
+ -0.36355,
+ -0.403449,
+ -0.569885,
+ -0.352401,
+ -0.542265,
+ -0.853274,
+ -1.403558
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 55,
+ "sha256": "0d1f6119eeba3dc58f88058a5eeef9cdc8777735b1fe9441e251ca02028083bb",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ 3.525985,
+ -0.049487,
+ -1.009947,
+ -1.99035
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "cancel",
+ "probabilities": {
+ "refund": 0.0182,
+ "cancel": 0.9645,
+ "technical": 0.012,
+ "other": 0.0052
+ },
+ "confidence": 0.8641
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "normal",
+ "probabilities": {
+ "low": 0.2991,
+ "normal": 0.4298,
+ "urgent": 0.2711
+ },
+ "confidence": 0.019
+ },
+ "many": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.9131,
+ "sales": 0.0011,
+ "support": 0.0027,
+ "legal": 0.0002,
+ "security": 0.0326,
+ "hr": 0.0001,
+ "it": 0.0009,
+ "ops": 0.001,
+ "finance": 0.0358,
+ "marketing": 0.0004,
+ "product": 0.0119,
+ "design": 0.0003
+ },
+ "confidence": 0.8345
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.8346,
+ "confidence": 0.8346
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.254,
+ "confidence": 0.746
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.1453,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0525,
+ "1": 0.7708,
+ "2": 0.1558,
+ "3": 0.021
+ },
+ "confidence": 0.4762
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "none",
+ "probabilities": {
+ "email": 0.2105,
+ "phone": 0.0903,
+ "chat": 0.3378,
+ "none": 0.3614
+ },
+ "confidence": 0.077
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.4854,
+ "confidence": 0.5146
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_01",
+ "probabilities": {
+ "dept_00": 0.0675,
+ "dept_01": 0.0859,
+ "dept_02": 0.0585,
+ "dept_03": 0.0287,
+ "dept_04": 0.0246,
+ "dept_05": 0.0393,
+ "dept_06": 0.0482,
+ "dept_07": 0.0318,
+ "dept_08": 0.0235,
+ "dept_09": 0.042,
+ "dept_10": 0.047,
+ "dept_11": 0.0344,
+ "dept_12": 0.038,
+ "dept_13": 0.0475,
+ "dept_14": 0.046,
+ "dept_15": 0.041,
+ "dept_16": 0.0331,
+ "dept_17": 0.0572,
+ "dept_18": 0.0393,
+ "dept_19": 0.0246,
+ "dept_20": 0.0235,
+ "dept_21": 0.0092,
+ "dept_22": 0.0093,
+ "dept_23": 0.0207,
+ "dept_24": 0.0191,
+ "dept_25": 0.0137,
+ "dept_26": 0.0212,
+ "dept_27": 0.0145,
+ "dept_28": 0.0078,
+ "dept_29": 0.0026
+ },
+ "confidence": 0.0477
+ },
+ "label": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.7996,
+ "technical": 0.1049,
+ "sales": 0.0608,
+ "other": 0.0348
+ },
+ "confidence": 0.4933
+ }
+ },
+ "input_tokens": 774
+ },
+ {
+ "name": "non_latin",
+ "state": "मुझसे दो बार शुल्क लिया गया, कृपया पैसे वापस करें। 二重に請求されました。返金してください。",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 101,
+ "sha256": "b04af0b06018bac14ebe6c1d948a9664409af6253782c6f572367a487b331379",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ 6.398067,
+ -3.256957,
+ -2.083276,
+ -3.186811
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 84,
+ "sha256": "2f0392deb4678379fbca764358b2f39df50395bdb61425b20dd3fb2684796cee",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ 1.010126,
+ 0.117465,
+ 1.919358
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 102,
+ "sha256": "847c80a996c7412abb1b11018df00c95d97b08c1639fb5487975a101f2549ccb",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 3.948682,
+ -1.756186,
+ -0.500679,
+ -2.199656,
+ -3.002871,
+ -3.402653,
+ -1.429865,
+ -2.844949,
+ -0.545431,
+ -2.463423,
+ -1.281702,
+ -2.674345
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 101,
+ "sha256": "cfa6a479c727cae88dbd21e92278591f22afc8234f0a2bade8597fb3777987f7",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ -3.739312,
+ 1.447669
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 98,
+ "sha256": "f182b212be86bff0097cc58a371d3f998f3f47e7f1ee6c51866ba7a2a4b4f4a6",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 2.433067,
+ -1.05794
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 115,
+ "sha256": "e39dc0b7ca9eae7c7e4ca6a277d9faf565f3b3cb28e901f2555c7be36d4d5327",
+ "markers": [
+ 17,
+ 22,
+ 35,
+ 40
+ ],
+ "qtype": 1,
+ "logits": [
+ -1.368343,
+ 2.95968,
+ 1.32364,
+ -1.570379
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 107,
+ "sha256": "41707d625a90af46a96571473e89a58b645c97872f45521e6779014a221cf6a6",
+ "markers": [
+ 12,
+ 16,
+ 27,
+ 35
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.730389,
+ -1.058777,
+ 1.276649,
+ 0.614422
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 101,
+ "sha256": "3fcdf9bb80c4022e95134a7ed1b2f495af828e98ec332b23b6f704c6898e75fe",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ -1.243271,
+ 1.48064
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 234,
+ "sha256": "f0e4adaf690aeac2d90338b73200695425bf1b824fae47f3b5a038a4e2e02506",
+ "markers": [
+ 14,
+ 19,
+ 24,
+ 29,
+ 34,
+ 39,
+ 44,
+ 49,
+ 54,
+ 59,
+ 64,
+ 69,
+ 74,
+ 79,
+ 84,
+ 89,
+ 94,
+ 99,
+ 104,
+ 109,
+ 114,
+ 119,
+ 124,
+ 129,
+ 134,
+ 139,
+ 144,
+ 149,
+ 154,
+ 159
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.352211,
+ -0.135123,
+ 0.157764,
+ 0.04604,
+ -0.155263,
+ 0.029474,
+ 0.191416,
+ 0.134313,
+ -0.078575,
+ 0.250545,
+ -0.040692,
+ -0.199197,
+ -0.312166,
+ -0.098263,
+ -0.054206,
+ -0.13256,
+ -0.287567,
+ 0.084194,
+ -0.118112,
+ -0.171121,
+ -0.279054,
+ -0.638878,
+ -0.824735,
+ -0.560418,
+ -0.568143,
+ -0.636719,
+ -0.20319,
+ -0.277698,
+ -0.070252,
+ -0.181801
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 91,
+ "sha256": "499757ac04dcf36fcc70f312f8bd7ec845fdfd0603e5bec26f30903088a53f7f",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.490076,
+ -1.941853,
+ -1.010598,
+ -0.207823
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "refund",
+ "probabilities": {
+ "refund": 0.9837,
+ "cancel": 0.0041,
+ "technical": 0.0079,
+ "other": 0.0042
+ },
+ "confidence": 0.9277
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.305,
+ "normal": 0.1837,
+ "urgent": 0.5113
+ },
+ "confidence": 0.0748
+ },
+ "many": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.9997,
+ "sales": 0.0,
+ "support": 0.0001,
+ "legal": 0.0,
+ "security": 0.0,
+ "hr": 0.0,
+ "it": 0.0,
+ "ops": 0.0,
+ "finance": 0.0001,
+ "marketing": 0.0,
+ "product": 0.0,
+ "design": 0.0
+ },
+ "confidence": 0.9986
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.9318,
+ "confidence": 0.9318
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.1468,
+ "confidence": 0.8532
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.2202,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0237,
+ "1": 0.7526,
+ "2": 0.2036,
+ "3": 0.0202
+ },
+ "confidence": 0.4912
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "chat",
+ "probabilities": {
+ "email": 0.2731,
+ "phone": 0.0988,
+ "chat": 0.3724,
+ "none": 0.2557
+ },
+ "confidence": 0.0625
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.7979,
+ "confidence": 0.7979
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_09",
+ "probabilities": {
+ "dept_00": 0.0211,
+ "dept_01": 0.0326,
+ "dept_02": 0.0585,
+ "dept_03": 0.0468,
+ "dept_04": 0.0313,
+ "dept_05": 0.0453,
+ "dept_06": 0.0626,
+ "dept_07": 0.0558,
+ "dept_08": 0.0365,
+ "dept_09": 0.0704,
+ "dept_10": 0.0393,
+ "dept_11": 0.0287,
+ "dept_12": 0.0229,
+ "dept_13": 0.0351,
+ "dept_14": 0.0383,
+ "dept_15": 0.0327,
+ "dept_16": 0.024,
+ "dept_17": 0.0505,
+ "dept_18": 0.0337,
+ "dept_19": 0.0303,
+ "dept_20": 0.0244,
+ "dept_21": 0.0119,
+ "dept_22": 0.0082,
+ "dept_23": 0.0139,
+ "dept_24": 0.0137,
+ "dept_25": 0.0119,
+ "dept_26": 0.0284,
+ "dept_27": 0.0245,
+ "dept_28": 0.0371,
+ "dept_29": 0.0297
+ },
+ "confidence": 0.031
+ },
+ "label": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.4255,
+ "technical": 0.1069,
+ "sales": 0.1814,
+ "other": 0.2862
+ },
+ "confidence": 0.0837
+ }
+ },
+ "input_tokens": 1134
+ },
+ {
+ "name": "empty",
+ "state": "",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 33,
+ "sha256": "52496ca00e1c20570025397c6af37f3946657b938377de44e610fae456d9b214",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.512189,
+ 0.448884,
+ 0.673663,
+ 0.277191
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 16,
+ "sha256": "4a7bbdff422ce338f022d20ed517241deec5d079b1b59d10f30b22968466caec",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ 1.515138,
+ 0.656807,
+ 1.415705
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 34,
+ "sha256": "c621baa2174e61ad1a45c20e8979a2bc3a7e88e35b53679c61cff61f9ec40761",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.819596,
+ -0.531265,
+ 0.360528,
+ -1.563478,
+ 0.674912,
+ -1.348189,
+ -0.405368,
+ -0.749191,
+ -0.009559,
+ -0.289285,
+ -0.215583,
+ -0.509472
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 33,
+ "sha256": "aad54c921e0a943bd8770c7e6d94afac03963b208d20fd5d81d039ca88abf48d",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ 2.59825,
+ 0.244663
+ ]
+ },
+ {
+ "qid": "angry_labels",
+ "len": 30,
+ "sha256": "65b0570ad31deb0a75003a3fc605e9b8669f73c10c2e88c3c7befef42715549d",
+ "markers": [
+ 11,
+ 21
+ ],
+ "qtype": 2,
+ "logits": [
+ 2.262646,
+ -0.052078
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 47,
+ "sha256": "c57c0cbe154cc11ea8a070a019a5bef7bd4a52dc12c6b41448921a87f3c7e0f9",
+ "markers": [
+ 17,
+ 22,
+ 35,
+ 40
+ ],
+ "qtype": 1,
+ "logits": [
+ -0.38492,
+ 2.648327,
+ 1.55236,
+ -1.496698
+ ]
+ },
+ {
+ "qid": "crit_values",
+ "len": 39,
+ "sha256": "65d3a76288b1e8b547976a5498508cb80eca10bdee3f113ae75e401d8371b973",
+ "markers": [
+ 12,
+ 16,
+ 27,
+ 35
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.274674,
+ -1.383932,
+ 0.722187,
+ 0.867549
+ ]
+ },
+ {
+ "qid": "noul_both",
+ "len": 33,
+ "sha256": "271cc6f92fa25ce5f23a13d49b407cd89de14d93932a13ca3228c0db58f209e8",
+ "markers": [
+ 12,
+ 19
+ ],
+ "qtype": 2,
+ "logits": [
+ 2.334498,
+ 0.443962
+ ]
+ },
+ {
+ "qid": "budget_squeeze",
+ "len": 166,
+ "sha256": "23a454a4a4ccc4d61765349391e0c5843e8fe309f8bde4adeaeae9bd01dcafeb",
+ "markers": [
+ 14,
+ 19,
+ 24,
+ 29,
+ 34,
+ 39,
+ 44,
+ 49,
+ 54,
+ 59,
+ 64,
+ 69,
+ 74,
+ 79,
+ 84,
+ 89,
+ 94,
+ 99,
+ 104,
+ 109,
+ 114,
+ 119,
+ 124,
+ 129,
+ 134,
+ 139,
+ 144,
+ 149,
+ 154,
+ 159
+ ],
+ "qtype": 0,
+ "logits": [
+ 1.158363,
+ 0.812139,
+ 0.664597,
+ 0.41509,
+ 0.264249,
+ 0.457426,
+ 0.519066,
+ 0.496132,
+ 0.263461,
+ 0.687441,
+ 0.514107,
+ 0.330745,
+ 0.192047,
+ 0.247243,
+ 0.23763,
+ 0.208458,
+ 0.103677,
+ 0.51763,
+ 0.499291,
+ 0.338146,
+ 0.528717,
+ -0.171495,
+ -0.3145,
+ 0.040106,
+ 0.011382,
+ -0.083597,
+ 0.175278,
+ 0.06904,
+ -0.025308,
+ -0.227095
+ ]
+ },
+ {
+ "qid": "label",
+ "len": 23,
+ "sha256": "8d421b8609f726d199db97d4098f6875768a70d19405bc8bf01756912c06cf30",
+ "markers": [
+ 13,
+ 15,
+ 17,
+ 19
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.265143,
+ -0.351165,
+ -0.39666,
+ 0.181808
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "technical",
+ "probabilities": {
+ "refund": 0.2541,
+ "cancel": 0.2451,
+ "technical": 0.2785,
+ "other": 0.2223
+ },
+ "confidence": 0.0023
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "low",
+ "probabilities": {
+ "low": 0.3908,
+ "normal": 0.24,
+ "urgent": 0.3693
+ },
+ "confidence": 0.0192
+ },
+ "many": {
+ "type": "choice",
+ "choice": "security",
+ "probabilities": {
+ "billing": 0.0198,
+ "sales": 0.0353,
+ "support": 0.2102,
+ "legal": 0.0045,
+ "security": 0.3942,
+ "hr": 0.0069,
+ "it": 0.0454,
+ "ops": 0.0228,
+ "finance": 0.1003,
+ "marketing": 0.0573,
+ "product": 0.0664,
+ "design": 0.0369
+ },
+ "confidence": 0.2466
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.2339,
+ "confidence": 0.7661
+ },
+ "angry_labels": {
+ "type": "noul",
+ "noul": 0.2374,
+ "confidence": 0.7626
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.26,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0575,
+ "1": 0.6487,
+ "2": 0.2702,
+ "3": 0.0236
+ },
+ "confidence": 0.3602
+ },
+ "crit_values": {
+ "type": "choice",
+ "choice": "none",
+ "probabilities": {
+ "email": 0.1187,
+ "phone": 0.1115,
+ "chat": 0.369,
+ "none": 0.4008
+ },
+ "confidence": 0.1114
+ },
+ "noul_both": {
+ "type": "noul",
+ "noul": 0.2782,
+ "confidence": 0.7218
+ },
+ "budget_squeeze": {
+ "type": "choice",
+ "choice": "dept_00",
+ "probabilities": {
+ "dept_00": 0.1501,
+ "dept_01": 0.0751,
+ "dept_02": 0.0559,
+ "dept_03": 0.0339,
+ "dept_04": 0.0251,
+ "dept_05": 0.0369,
+ "dept_06": 0.0418,
+ "dept_07": 0.0399,
+ "dept_08": 0.0251,
+ "dept_09": 0.0585,
+ "dept_10": 0.0414,
+ "dept_11": 0.0287,
+ "dept_12": 0.0217,
+ "dept_13": 0.0243,
+ "dept_14": 0.0238,
+ "dept_15": 0.0225,
+ "dept_16": 0.0182,
+ "dept_17": 0.0417,
+ "dept_18": 0.0402,
+ "dept_19": 0.0291,
+ "dept_20": 0.0426,
+ "dept_21": 0.0105,
+ "dept_22": 0.0079,
+ "dept_23": 0.016,
+ "dept_24": 0.0151,
+ "dept_25": 0.0125,
+ "dept_26": 0.021,
+ "dept_27": 0.017,
+ "dept_28": 0.0141,
+ "dept_29": 0.0094
+ },
+ "confidence": 0.0688
+ },
+ "label": {
+ "type": "choice",
+ "choice": "other",
+ "probabilities": {
+ "billing": 0.2398,
+ "technical": 0.2284,
+ "sales": 0.2226,
+ "other": 0.3092
+ },
+ "confidence": 0.0067
+ }
+ },
+ "input_tokens": 454
+ }
+ ],
+ "override": {
+ "max_len": 96,
+ "head_max_len": 40,
+ "questions": {
+ "intent": {
+ "type": "choice",
+ "instructions": "What does the customer want?",
+ "criteria": {
+ "refund": "wants money back",
+ "cancel": "wants to cancel",
+ "technical": "reports a bug",
+ "other": null
+ }
+ },
+ "priority": {
+ "type": "choice",
+ "instructions": "Ticket priority",
+ "criteria": [
+ "low",
+ "normal",
+ "urgent"
+ ]
+ },
+ "many": {
+ "type": "choice",
+ "instructions": "Pick the department",
+ "criteria": [
+ "billing",
+ "sales",
+ "support",
+ "legal",
+ "security",
+ "hr",
+ "it",
+ "ops",
+ "finance",
+ "marketing",
+ "product",
+ "design"
+ ]
+ },
+ "refund_requested": {
+ "type": "noul",
+ "instructions": "The customer explicitly requests a refund."
+ },
+ "frustration": {
+ "type": "score",
+ "instructions": {
+ "rubric": "How frustrated is the customer?"
+ },
+ "criteria": [
+ "calm",
+ {
+ "desc": "mildly annoyed"
+ },
+ "frustrated",
+ "furious"
+ ]
+ }
+ },
+ "cases": [
+ {
+ "name": "plain_email",
+ "state": "Hi, I was charged twice for my subscription this month. Please refund one charge ASAP!",
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 52,
+ "sha256": "f4c9a7769de8197a8399394710266ff5c019f10483fc0b56814d4221b2c90b12",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ 4.76521,
+ -1.987753,
+ -2.295287,
+ -3.050005
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 35,
+ "sha256": "94250219a4f5f609e46ceef6fd66c33d20d8808d5a6cf08ec7ebbe6476247f55",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ -1.031025,
+ -1.206778,
+ 3.353679
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 53,
+ "sha256": "6d2f44621f79cbe840188d1381db0ef9e05cb1271bef83af9683d16f478809bf",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 6.273379,
+ -3.45758,
+ 0.145288,
+ -1.056248,
+ -3.104906,
+ -2.750932,
+ -2.869753,
+ -3.675894,
+ 0.077295,
+ -2.444452,
+ -2.733496,
+ -3.866101
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 52,
+ "sha256": "bf132729b01d753f033c2f4dff67b28a7872fbe81d0fa852fe4949b4328f73f3",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ -1.592385,
+ 0.92097
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 59,
+ "sha256": "c8e4dc8d3caffbb4a59b8d35863664ff8336c7377e0f3a425cde8a5afa1e8f53",
+ "markers": [
+ 17,
+ 22,
+ 28,
+ 33
+ ],
+ "qtype": 1,
+ "logits": [
+ -1.11121,
+ 1.454241,
+ 2.085924,
+ 1.710791
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "refund",
+ "probabilities": {
+ "refund": 0.951,
+ "cancel": 0.0205,
+ "technical": 0.0172,
+ "other": 0.0112
+ },
+ "confidence": 0.8213
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.0715,
+ "normal": 0.0647,
+ "urgent": 0.8637
+ },
+ "confidence": 0.5518
+ },
+ "many": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 1.0,
+ "sales": 0.0,
+ "support": 0.0,
+ "legal": 0.0,
+ "security": 0.0,
+ "hr": 0.0,
+ "it": 0.0,
+ "ops": 0.0,
+ "finance": 0.0,
+ "marketing": 0.0,
+ "product": 0.0,
+ "design": 0.0
+ },
+ "confidence": 0.9999
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.7803,
+ "confidence": 0.7803
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.9925,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0321,
+ "1": 0.2492,
+ "2": 0.4128,
+ "3": 0.3059
+ },
+ "confidence": 0.1458
+ }
+ },
+ "input_tokens": 251
+ },
+ {
+ "name": "long_conversation_left_truncated",
+ "state": [
+ {
+ "role": "user",
+ "content": "Message 0: my order #1000 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 0: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 1: my order #1001 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 1: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 2: my order #1002 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 2: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 3: my order #1003 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 3: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 4: my order #1004 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 4: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 5: my order #1005 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 5: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 6: my order #1006 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 6: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 7: my order #1007 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 7: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 8: my order #1008 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 8: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 9: my order #1009 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 9: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 10: my order #1010 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 10: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 11: my order #1011 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 11: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 12: my order #1012 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 12: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 13: my order #1013 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 13: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 14: my order #1014 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 14: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 15: my order #1015 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 15: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 16: my order #1016 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 16: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 17: my order #1017 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 17: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 18: my order #1018 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 18: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 19: my order #1019 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 19: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 20: my order #1020 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 20: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 21: my order #1021 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 21: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 22: my order #1022 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 22: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 23: my order #1023 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 23: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 24: my order #1024 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 24: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 25: my order #1025 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 25: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 26: my order #1026 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 26: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 27: my order #1027 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 27: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 28: my order #1028 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 28: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 29: my order #1029 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 29: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 30: my order #1030 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 30: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 31: my order #1031 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 31: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 32: my order #1032 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 32: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 33: my order #1033 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 33: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 34: my order #1034 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 34: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 35: my order #1035 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 35: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 36: my order #1036 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 36: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 37: my order #1037 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 37: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 38: my order #1038 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 38: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 39: my order #1039 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 39: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 40: my order #1040 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 40: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 41: my order #1041 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 41: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 42: my order #1042 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 42: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 43: my order #1043 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 43: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "Message 44: my order #1044 still has not arrived, where is it?"
+ },
+ {
+ "role": "agent",
+ "content": "Reply 44: sorry, we are checking with the courier."
+ },
+ {
+ "role": "user",
+ "content": "FINAL: forget it, cancel everything and refund me now."
+ }
+ ],
+ "rows": [
+ {
+ "qid": "intent",
+ "len": 96,
+ "sha256": "c78202f7f530c1fcae50a2a61fbd32049491cdd351b08ff28760648542e5459c",
+ "markers": [
+ 11,
+ 17,
+ 23,
+ 29
+ ],
+ "qtype": 0,
+ "logits": [
+ 3.129485,
+ 2.103893,
+ -1.154006,
+ -0.828259
+ ]
+ },
+ {
+ "qid": "priority",
+ "len": 96,
+ "sha256": "464f814af5c845ea65e3855865c82c46d923fab3f88d677a778a597fabcfc781",
+ "markers": [
+ 8,
+ 10,
+ 12
+ ],
+ "qtype": 0,
+ "logits": [
+ -0.112005,
+ 1.788719,
+ 3.950062
+ ]
+ },
+ {
+ "qid": "many",
+ "len": 96,
+ "sha256": "6ea326f38627b3efd7ad41c4036608941c108bcf3d393c40713d844f1a677d23",
+ "markers": [
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24,
+ 26,
+ 28,
+ 30
+ ],
+ "qtype": 0,
+ "logits": [
+ 0.988297,
+ -3.079058,
+ 0.966454,
+ -1.548125,
+ -2.947975,
+ -2.756598,
+ -0.723279,
+ -3.196079,
+ -2.315074,
+ -3.52689,
+ -1.433348,
+ -3.668041
+ ]
+ },
+ {
+ "qid": "refund_requested",
+ "len": 96,
+ "sha256": "a393677b0717f84ee99dbcef178b88e928e6278e088590cde84158cf0f6d845a",
+ "markers": [
+ 13,
+ 23
+ ],
+ "qtype": 2,
+ "logits": [
+ -3.047478,
+ 1.250447
+ ]
+ },
+ {
+ "qid": "frustration",
+ "len": 96,
+ "sha256": "62d370f496e6fec6af84bd95a446e7bce76982e262ed4b5bc251504a48aea5af",
+ "markers": [
+ 17,
+ 22,
+ 28,
+ 33
+ ],
+ "qtype": 1,
+ "logits": [
+ -1.272222,
+ 1.314703,
+ 2.948901,
+ 1.434765
+ ]
+ }
+ ],
+ "answers": {
+ "intent": {
+ "type": "choice",
+ "choice": "refund",
+ "probabilities": {
+ "refund": 0.5709,
+ "cancel": 0.3188,
+ "technical": 0.0501,
+ "other": 0.0603
+ },
+ "confidence": 0.276
+ },
+ "priority": {
+ "type": "choice",
+ "choice": "urgent",
+ "probabilities": {
+ "low": 0.0714,
+ "normal": 0.2104,
+ "urgent": 0.7182
+ },
+ "confidence": 0.3135
+ },
+ "many": {
+ "type": "choice",
+ "choice": "billing",
+ "probabilities": {
+ "billing": 0.4982,
+ "sales": 0.0001,
+ "support": 0.4769,
+ "legal": 0.0031,
+ "security": 0.0002,
+ "hr": 0.0003,
+ "it": 0.0162,
+ "ops": 0.0001,
+ "finance": 0.0007,
+ "marketing": 0.0001,
+ "product": 0.0039,
+ "design": 0.0
+ },
+ "confidence": 0.6704
+ },
+ "refund_requested": {
+ "type": "noul",
+ "noul": 0.8972,
+ "confidence": 0.8972
+ },
+ "frustration": {
+ "type": "score",
+ "score": 1.9742,
+ "legend": {
+ "0": "calm",
+ "1": {
+ "desc": "mildly annoyed"
+ },
+ "2": "frustrated",
+ "3": "furious"
+ },
+ "probabilities": {
+ "0": 0.0214,
+ "1": 0.169,
+ "2": 0.6237,
+ "3": 0.186
+ },
+ "confidence": 0.2859
+ }
+ },
+ "input_tokens": 480
+ }
+ ]
+ },
+ "overflow_error": "question 'too_many' options exceed head_max_len=64",
+ "tokenizations": {
+ "choice question: What does the customer want?": [
+ 22122,
+ 1953,
+ 27,
+ 1737,
+ 1057,
+ 253,
+ 7731,
+ 971,
+ 32
+ ],
+ " refund: wants money back": [
+ 23005,
+ 27,
+ 5605,
+ 2583,
+ 896
+ ],
+ " cancel: wants to cancel": [
+ 14002,
+ 27,
+ 5605,
+ 281,
+ 14002
+ ],
+ " technical: reports a bug": [
+ 7681,
+ 27,
+ 5012,
+ 247,
+ 7505
+ ],
+ " other": [
+ 643
+ ],
+ "Hi, I was charged twice for my subscription this month. Please refund one charge ASAP!": [
+ 12764,
+ 13,
+ 309,
+ 369,
+ 6636,
+ 7019,
+ 323,
+ 619,
+ 21729,
+ 436,
+ 1770,
+ 15,
+ 7764,
+ 23005,
+ 581,
+ 4179,
+ 7412,
+ 2088,
+ 2
+ ],
+ "choice question: Ticket priority": [
+ 22122,
+ 1953,
+ 27,
+ 308,
+ 21315,
+ 11674
+ ],
+ " low": [
+ 1698
+ ],
+ " normal": [
+ 2622
+ ],
+ " urgent": [
+ 21007
+ ],
+ "choice question: Pick the department": [
+ 22122,
+ 1953,
+ 27,
+ 20745,
+ 253,
+ 7811
+ ],
+ " billing": [
+ 33484
+ ],
+ " sales": [
+ 6224
+ ],
+ " support": [
+ 1329
+ ],
+ " legal": [
+ 4320
+ ],
+ " security": [
+ 3988
+ ],
+ " hr": [
+ 20589
+ ],
+ " it": [
+ 352
+ ],
+ " ops": [
+ 38322
+ ],
+ " finance": [
+ 15065
+ ],
+ " marketing": [
+ 9137
+ ],
+ " product": [
+ 1885
+ ],
+ " design": [
+ 2216
+ ],
+ "noul question: The customer explicitly requests a refund.": [
+ 79,
+ 3941,
+ 1953,
+ 27,
+ 380,
+ 7731,
+ 11120,
+ 9762,
+ 247,
+ 23005,
+ 15
+ ],
+ " false: no, the statement does not hold": [
+ 3221,
+ 27,
+ 642,
+ 13,
+ 253,
+ 3908,
+ 1057,
+ 417,
+ 2186
+ ],
+ " true: yes, the statement holds": [
+ 2032,
+ 27,
+ 4754,
+ 13,
+ 253,
+ 3908,
+ 6556
+ ],
+ "noul question: Is the customer angry?": [
+ 79,
+ 3941,
+ 1953,
+ 27,
+ 1680,
+ 253,
+ 7731,
+ 11790,
+ 32
+ ],
+ " calm: no, the statement does not hold": [
+ 11874,
+ 27,
+ 642,
+ 13,
+ 253,
+ 3908,
+ 1057,
+ 417,
+ 2186
+ ],
+ " angry: angry or hostile tone": [
+ 11790,
+ 27,
+ 11790,
+ 390,
+ 21668,
+ 10541
+ ],
+ "score question: {\"rubric\": \"How frustrated is the customer?\"}": [
+ 18891,
+ 1953,
+ 27,
+ 17579,
+ 18241,
+ 695,
+ 1381,
+ 346,
+ 2347,
+ 23573,
+ 310,
+ 253,
+ 7731,
+ 865,
+ 94
+ ],
+ " level 0: calm": [
+ 1268,
+ 470,
+ 27,
+ 11874
+ ],
+ " level 1: {\"desc\": \"mildly annoyed\"}": [
+ 1268,
+ 337,
+ 27,
+ 17579,
+ 12898,
+ 1381,
+ 346,
+ 78,
+ 786,
+ 314,
+ 34639,
+ 986
+ ],
+ " level 2: frustrated": [
+ 1268,
+ 374,
+ 27,
+ 23573
+ ],
+ " level 3: furious": [
+ 1268,
+ 495,
+ 27,
+ 32986
+ ],
+ "choice question: Which channel? <mask>": [
+ 22122,
+ 1953,
+ 27,
+ 6758,
+ 5048,
+ 32,
+ 50275,
+ 29,
+ 12477,
+ 31
+ ],
+ " email: 0": [
+ 4579,
+ 27,
+ 470
+ ],
+ " phone: [\"call\", \"voicemail\"]": [
+ 4481,
+ 27,
+ 15640,
+ 4065,
+ 995,
+ 346,
+ 5711,
+ 280,
+ 12812,
+ 9686
+ ],
+ " chat: {\"live\": true}": [
+ 12939,
+ 27,
+ 17579,
+ 22621,
+ 1381,
+ 2032,
+ 94
+ ],
+ " none": [
+ 5293
+ ],
+ "noul question: Does the text mention money?": [
+ 79,
+ 3941,
+ 1953,
+ 27,
+ 9876,
+ 253,
+ 2505,
+ 3748,
+ 2583,
+ 32
+ ],
+ " false: no money is mentioned": [
+ 3221,
+ 27,
+ 642,
+ 2583,
+ 310,
+ 5393
+ ],
+ " true: mentions a payment, charge, price or refund": [
+ 2032,
+ 27,
+ 25957,
+ 247,
+ 7830,
+ 13,
+ 4179,
+ 13,
+ 4376,
+ 390,
+ 23005
+ ],
+ "choice question: Which of the thirty departments owns this request?": [
+ 22122,
+ 1953,
+ 27,
+ 6758,
+ 273,
+ 253,
+ 10488,
+ 20036,
+ 21186,
+ 436,
+ 2748,
+ 32
+ ],
+ " dept_00: requests that belong to department number 0 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 361,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 470,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_01: requests that belong to department number 1 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 520,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 337,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_02: requests that belong to department number 2 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 2640,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 374,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_03: requests that belong to department number 3 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 2941,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 495,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_04: requests that belong to department number 4 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 2125,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 577,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_05: requests that belong to department number 5 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1762,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 608,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_06: requests that belong to department number 6 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 3071,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 721,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_07: requests that belong to department number 7 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 2922,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 818,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_08: requests that belong to department number 8 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 2904,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 854,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_09: requests that belong to department number 9 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 2693,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 898,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_10: requests that belong to department number 10 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 740,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 884,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_11: requests that belong to department number 11 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 883,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 1903,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_12: requests that belong to department number 12 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 805,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 1249,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_13: requests that belong to department number 13 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1012,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 2145,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_14: requests that belong to department number 14 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1047,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 1638,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_15: requests that belong to department number 15 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1010,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 1458,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_16: requests that belong to department number 16 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1036,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 1668,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_17: requests that belong to department number 17 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1166,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 1722,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_18: requests that belong to department number 18 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1093,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 1283,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_19: requests that belong to department number 19 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 746,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 655,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_20: requests that belong to department number 20 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 938,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 1384,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_21: requests that belong to department number 21 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1797,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 3127,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_22: requests that belong to department number 22 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1423,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 3307,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_23: requests that belong to department number 23 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1508,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 3495,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_24: requests that belong to department number 24 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1348,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 2164,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_25: requests that belong to department number 25 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1099,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 2030,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_26: requests that belong to department number 26 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1731,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 3436,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_27: requests that belong to department number 27 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1630,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 3435,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_28: requests that belong to department number 28 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1619,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 3349,
+ 285,
+ 17663,
+ 2010
+ ],
+ " dept_29: requests that belong to department number 29 and nowhere else": [
+ 372,
+ 431,
+ 64,
+ 1717,
+ 27,
+ 9762,
+ 326,
+ 5663,
+ 281,
+ 7811,
+ 1180,
+ 3285,
+ 285,
+ 17663,
+ 2010
+ ],
+ "choice question: Which category does this text belong to?": [
+ 22122,
+ 1953,
+ 27,
+ 6758,
+ 7140,
+ 1057,
+ 436,
+ 2505,
+ 5663,
+ 281,
+ 32
+ ],
+ " technical": [
+ 7681
+ ],
+ "{\"subject\": \"Login broken\", \"body\": \"Since the update I can't log in; error 500.\", \"customer_tier\": \"enterprise\", \"prior_tickets\": 3}": [
+ 9819,
+ 19091,
+ 1381,
+ 346,
+ 27689,
+ 7154,
+ 995,
+ 346,
+ 2915,
+ 1381,
+ 346,
+ 7542,
+ 253,
+ 5731,
+ 309,
+ 476,
+ 626,
+ 2412,
+ 275,
+ 28,
+ 2228,
+ 6783,
+ 17295,
+ 346,
+ 34590,
+ 64,
+ 42614,
+ 1381,
+ 346,
+ 9553,
+ 10344,
+ 995,
+ 346,
+ 40844,
+ 64,
+ 85,
+ 26195,
+ 1381,
+ 495,
+ 94
+ ],
+ "[{\"role\": \"user\", \"content\": \"I want to cancel.\"}, {\"role\": \"agent\", \"content\": \"Sorry to hear that - may I ask why?\"}, {\"role\": \"user\", \"content\": \"Too expensive, and support is slow. Cancel it now.\"}]": [
+ 60,
+ 9819,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 42,
+ 971,
+ 281,
+ 14002,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 15953,
+ 281,
+ 4089,
+ 326,
+ 428,
+ 778,
+ 309,
+ 1642,
+ 2139,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 25643,
+ 8214,
+ 13,
+ 285,
+ 1329,
+ 310,
+ 3468,
+ 15,
+ 330,
+ 18721,
+ 352,
+ 1024,
+ 449,
+ 12084
+ ],
+ "The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times. The shipment was delayed again and the customer wrote in several times.": [
+ 510,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15,
+ 380,
+ 38388,
+ 369,
+ 13444,
+ 969,
+ 285,
+ 253,
+ 7731,
+ 4159,
+ 275,
+ 2067,
+ 2069,
+ 15
+ ],
+ "[{\"role\": \"user\", \"content\": \"Message 0: my order #1000 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 0: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 1: my order #1001 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 1: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 2: my order #1002 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 2: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 3: my order #1003 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 3: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 4: my order #1004 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 4: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 5: my order #1005 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 5: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 6: my order #1006 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 6: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 7: my order #1007 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 7: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 8: my order #1008 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 8: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 9: my order #1009 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 9: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 10: my order #1010 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 10: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 11: my order #1011 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 11: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 12: my order #1012 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 12: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 13: my order #1013 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 13: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 14: my order #1014 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 14: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 15: my order #1015 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 15: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 16: my order #1016 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 16: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 17: my order #1017 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 17: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 18: my order #1018 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 18: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 19: my order #1019 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 19: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 20: my order #1020 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 20: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 21: my order #1021 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 21: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 22: my order #1022 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 22: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 23: my order #1023 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 23: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 24: my order #1024 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 24: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 25: my order #1025 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 25: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 26: my order #1026 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 26: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 27: my order #1027 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 27: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 28: my order #1028 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 28: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 29: my order #1029 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 29: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 30: my order #1030 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 30: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 31: my order #1031 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 31: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 32: my order #1032 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 32: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 33: my order #1033 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 33: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 34: my order #1034 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 34: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 35: my order #1035 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 35: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 36: my order #1036 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 36: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 37: my order #1037 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 37: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 38: my order #1038 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 38: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 39: my order #1039 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 39: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 40: my order #1040 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 40: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 41: my order #1041 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 41: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 42: my order #1042 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 42: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 43: my order #1043 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 43: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"Message 44: my order #1044 still has not arrived, where is it?\"}, {\"role\": \"agent\", \"content\": \"Reply 44: sorry, we are checking with the courier.\"}, {\"role\": \"user\", \"content\": \"FINAL: forget it, cancel everything and refund me now.\"}]": [
+ 60,
+ 9819,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 470,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 9138,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 470,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 337,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 40506,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 337,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 374,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 41441,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 374,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 495,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 2313,
+ 20,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 495,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 577,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 44197,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 577,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 608,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 38723,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 608,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 721,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 45535,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 721,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 818,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 31182,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 818,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 854,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 39687,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 854,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 898,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 2313,
+ 26,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 898,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 884,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 17,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 884,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1903,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 18,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1903,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1249,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 19,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1249,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 2145,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 20,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 2145,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1638,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 21,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1638,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1458,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 22,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1458,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1668,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 37524,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1668,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1722,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 24,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1722,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1283,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 25,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1283,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 655,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 6903,
+ 26,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 655,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1384,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 938,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1384,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 3127,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 42596,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 3127,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 3307,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1423,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 3307,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 3495,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1508,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 3495,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 2164,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 31111,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 2164,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 2030,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1099,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 2030,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 3436,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1731,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 3436,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 3435,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1630,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 3435,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 3349,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1619,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 3349,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 3285,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1717,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 3285,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 1884,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1229,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 1884,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 4562,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 2405,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 4562,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 4567,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1237,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 4567,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 5922,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1610,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 5922,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 5910,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1706,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 5910,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 4791,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1671,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 4791,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 5540,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1812,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 5540,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 5345,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1787,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 5345,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 6480,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 43224,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 6480,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 6931,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1867,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 6931,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 3387,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 1449,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 3387,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 7609,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 3156,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 7609,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 5976,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 2945,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 5976,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 7652,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 3079,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 7652,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 7474,
+ 7127,
+ 27,
+ 619,
+ 1340,
+ 1852,
+ 740,
+ 2031,
+ 1335,
+ 556,
+ 417,
+ 7244,
+ 13,
+ 835,
+ 310,
+ 352,
+ 865,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 12788,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 37226,
+ 7127,
+ 27,
+ 7016,
+ 13,
+ 359,
+ 403,
+ 12669,
+ 342,
+ 253,
+ 2565,
+ 4586,
+ 449,
+ 2023,
+ 17579,
+ 14337,
+ 1381,
+ 346,
+ 4537,
+ 995,
+ 346,
+ 6071,
+ 1381,
+ 346,
+ 29003,
+ 1556,
+ 27,
+ 7740,
+ 352,
+ 13,
+ 14002,
+ 3253,
+ 285,
+ 23005,
+ 479,
+ 1024,
+ 449,
+ 12084
+ ],
+ "Bonjour, je voudrais annuler ma commande n°1234 — merci. Grüße <mask> ¿qué? 😀": [
+ 27157,
+ 19923,
+ 13,
+ 5139,
+ 362,
+ 2995,
+ 21269,
+ 2459,
+ 14398,
+ 6429,
+ 3923,
+ 70,
+ 295,
+ 3272,
+ 28941,
+ 1905,
+ 14480,
+ 74,
+ 15,
+ 50275,
+ 3594,
+ 3090,
+ 44366,
+ 654,
+ 12477,
+ 31,
+ 25769,
+ 371,
+ 860,
+ 32,
+ 49042,
+ 211
+ ],
+ "मुझसे दो बार शुल्क लिया गया, कृपया पैसे वापस करें। 二重に請求されました。返金してください。": [
+ 32191,
+ 38619,
+ 2483,
+ 240,
+ 28733,
+ 15472,
+ 6280,
+ 101,
+ 25159,
+ 6280,
+ 107,
+ 12001,
+ 15754,
+ 6280,
+ 116,
+ 38619,
+ 29903,
+ 17665,
+ 24381,
+ 6280,
+ 112,
+ 20489,
+ 29950,
+ 12001,
+ 6280,
+ 234,
+ 29950,
+ 12001,
+ 13,
+ 21433,
+ 6123,
+ 214,
+ 39695,
+ 29950,
+ 12001,
+ 42042,
+ 33358,
+ 28733,
+ 15472,
+ 6280,
+ 115,
+ 12001,
+ 39695,
+ 28733,
+ 21433,
+ 15754,
+ 15472,
+ 22143,
+ 6123,
+ 99,
+ 209,
+ 34744,
+ 34698,
+ 5444,
+ 43894,
+ 222,
+ 43741,
+ 22323,
+ 35550,
+ 4340,
+ 47397,
+ 38001,
+ 18309,
+ 14016,
+ 13973,
+ 13129,
+ 5151,
+ 4340
+ ],
+ "": [],
+ "choice question: pick": [
+ 22122,
+ 1953,
+ 27,
+ 2619
+ ],
+ " option 0": [
+ 4500,
+ 470
+ ],
+ " option 1": [
+ 4500,
+ 337
+ ],
+ " option 2": [
+ 4500,
+ 374
+ ],
+ " option 3": [
+ 4500,
+ 495
+ ],
+ " option 4": [
+ 4500,
+ 577
+ ],
+ " option 5": [
+ 4500,
+ 608
+ ],
+ " option 6": [
+ 4500,
+ 721
+ ],
+ " option 7": [
+ 4500,
+ 818
+ ],
+ " option 8": [
+ 4500,
+ 854
+ ],
+ " option 9": [
+ 4500,
+ 898
+ ],
+ " option 10": [
+ 4500,
+ 884
+ ],
+ " option 11": [
+ 4500,
+ 1903
+ ],
+ " option 12": [
+ 4500,
+ 1249
+ ],
+ " option 13": [
+ 4500,
+ 2145
+ ],
+ " option 14": [
+ 4500,
+ 1638
+ ],
+ " option 15": [
+ 4500,
+ 1458
+ ],
+ " option 16": [
+ 4500,
+ 1668
+ ],
+ " option 17": [
+ 4500,
+ 1722
+ ],
+ " option 18": [
+ 4500,
+ 1283
+ ],
+ " option 19": [
+ 4500,
+ 655
+ ],
+ " option 20": [
+ 4500,
+ 1384
+ ],
+ " option 21": [
+ 4500,
+ 3127
+ ],
+ " option 22": [
+ 4500,
+ 3307
+ ],
+ " option 23": [
+ 4500,
+ 3495
+ ],
+ " option 24": [
+ 4500,
+ 2164
+ ],
+ " option 25": [
+ 4500,
+ 2030
+ ],
+ " option 26": [
+ 4500,
+ 3436
+ ],
+ " option 27": [
+ 4500,
+ 3435
+ ],
+ " option 28": [
+ 4500,
+ 3349
+ ],
+ " option 29": [
+ 4500,
+ 3285
+ ],
+ " option 30": [
+ 4500,
+ 1884
+ ],
+ " option 31": [
+ 4500,
+ 4562
+ ],
+ " option 32": [
+ 4500,
+ 4567
+ ],
+ " option 33": [
+ 4500,
+ 5922
+ ],
+ " option 34": [
+ 4500,
+ 5910
+ ],
+ " option 35": [
+ 4500,
+ 4791
+ ],
+ " option 36": [
+ 4500,
+ 5540
+ ],
+ " option 37": [
+ 4500,
+ 5345
+ ],
+ " option 38": [
+ 4500,
+ 6480
+ ],
+ " option 39": [
+ 4500,
+ 6931
+ ],
+ " option 40": [
+ 4500,
+ 3387
+ ],
+ " option 41": [
+ 4500,
+ 7609
+ ],
+ " option 42": [
+ 4500,
+ 5976
+ ],
+ " option 43": [
+ 4500,
+ 7652
+ ],
+ " option 44": [
+ 4500,
+ 7127
+ ],
+ " option 45": [
+ 4500,
+ 5329
+ ],
+ " option 46": [
+ 4500,
+ 7904
+ ],
+ " option 47": [
+ 4500,
+ 7543
+ ],
+ " option 48": [
+ 4500,
+ 5693
+ ],
+ " option 49": [
+ 4500,
+ 7584
+ ],
+ " option 50": [
+ 4500,
+ 2456
+ ],
+ " option 51": [
+ 4500,
+ 8319
+ ],
+ " option 52": [
+ 4500,
+ 8073
+ ],
+ " option 53": [
+ 4500,
+ 8676
+ ],
+ " option 54": [
+ 4500,
+ 8255
+ ],
+ " option 55": [
+ 4500,
+ 7288
+ ],
+ " option 56": [
+ 4500,
+ 8026
+ ],
+ " option 57": [
+ 4500,
+ 8988
+ ],
+ " option 58": [
+ 4500,
+ 9135
+ ],
+ " option 59": [
+ 4500,
+ 8978
+ ],
+ " option 60": [
+ 4500,
+ 3925
+ ],
+ " option 61": [
+ 4500,
+ 9901
+ ],
+ " option 62": [
+ 4500,
+ 9743
+ ],
+ " option 63": [
+ 4500,
+ 9654
+ ],
+ " option 64": [
+ 4500,
+ 6705
+ ],
+ " option 65": [
+ 4500,
+ 7251
+ ],
+ " option 66": [
+ 4500,
+ 9523
+ ],
+ " option 67": [
+ 4500,
+ 9963
+ ],
+ " option 68": [
+ 4500,
+ 9934
+ ],
+ " option 69": [
+ 4500,
+ 10447
+ ],
+ " option 70": [
+ 4500,
+ 5571
+ ],
+ " option 71": [
+ 4500,
+ 11102
+ ],
+ " option 72": [
+ 4500,
+ 8187
+ ],
+ " option 73": [
+ 4500,
+ 11087
+ ],
+ " option 74": [
+ 4500,
+ 10677
+ ],
+ " option 75": [
+ 4500,
+ 6879
+ ],
+ " option 76": [
+ 4500,
+ 10909
+ ],
+ " option 77": [
+ 4500,
+ 10484
+ ],
+ " option 78": [
+ 4500,
+ 10523
+ ],
+ " option 79": [
+ 4500,
+ 11275
+ ],
+ "x": [
+ 89
+ ]
+ }
+}
diff --git a/packages/sie_server/tests/adapters/test_laya.py b/packages/sie_server/tests/adapters/test_laya.py
new file mode 100644
index 000000000..96e630716
--- /dev/null
+++ b/packages/sie_server/tests/adapters/test_laya.py
@@ -0,0 +1,498 @@
+"""Laya adapter: parity with the reference implementation, without model weights.
+
+The fixtures under ``fixtures/laya/`` were recorded from the reference
+implementation (the ``laya`` 0.3.11 package, CPU float32) at each model's pinned
+revision. For every (state, question) row they hold the sha256 and length of the
+exact ``input_ids``, the option-marker positions, and the raw decision-head
+logits; per state, the reference's final answers and token usage; and every
+string the reference tokenized, with its token ids.
+
+That last map stands in for the real tokenizer here: it answers only for strings
+the reference tokenized, so these tests fail if the adapter tokenizes anything
+different, and they check sequence assembly, truncation, calibration, decoding,
+labels mode, and metering against the reference with no network access.
+
+``packages/sie_server/scripts/generate_laya_fixtures.py`` regenerates the
+fixtures (outside CI, with the reference package installed); re-run it when a
+model config's ``hf_revision`` changes.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+from pathlib import Path
+from typing import Any, cast
+from unittest.mock import MagicMock, patch
+
+import numpy as np
+import pytest
+import torch
+from sie_server.adapters.laya import questions as laya_questions
+from sie_server.adapters.laya.adapter import DEFAULT_LABELS_INSTRUCTION, MAX_QUESTIONS, LayaAdapter
+from sie_server.adapters.laya.model import apply_rope_parameters, split_checkpoint
+from sie_server.adapters.laya.questions import Calibration, build_prefix, calibrated_probs, parse_questions
+from sie_server.core.extract_cost import adapter_extract_item_costs, build_extract_prepared_items
+from sie_server.types.inputs import InvalidInputError, Item
+
+FIXTURES = Path(__file__).parent / "fixtures" / "laya"
+VARIANTS = ("laya", "laya-multilingual", "laya-typed-decisions")
+# Reference answers are rounded to 4 decimals.
+ROUNDED_ATOL = 5.1e-5
+
+
+def _golden(variant: str) -> dict[str, Any]:
+ return json.loads((FIXTURES / f"{variant}.json").read_text(encoding="utf-8"))
+
+
+def _sha(ids: list[int]) -> str:
+ return hashlib.sha256(json.dumps(ids).encode()).hexdigest()
+
+
+class RecordedTokenizer:
+ """Answers exactly the tokenizations the reference performed; anything else is a KeyError."""
+
+ def __init__(self, golden: dict[str, Any]) -> None:
+ spec = golden["tokenizer"]
+ self.mask_token = spec["mask_token"]
+ self.mask_token_id = spec["mask_token_id"]
+ self.cls_token_id = spec["cls_token_id"]
+ self.sep_token_id = spec["sep_token_id"]
+ self.pad_token_id = spec["pad_token_id"]
+ self._ids: dict[str, list[int]] = golden["tokenizations"]
+
+ def __call__(self, text: str | list[str], add_special_tokens: bool = True) -> dict[str, Any]:
+ assert add_special_tokens is False
+ if isinstance(text, list):
+ return {"input_ids": [list(self._ids[t]) for t in text]}
+ return {"input_ids": list(self._ids[text])}
+
+
+class GoldenLogitsModel:
+ """Stands in for the network: returns the reference logits of each row, keyed by its exact ids."""
+
+ use_flash = False
+
+ def __init__(self, golden: dict[str, Any]) -> None:
+ self.by_row: dict[str, list[float]] = {}
+ for case in [*golden["cases"], *golden["override"]["cases"]]:
+ for row in case["rows"]:
+ self.by_row[row["sha256"]] = row["logits"]
+ self.calls: list[int] = []
+
+ def forward_padded(
+ self, rows: list[list[int]], marker_pos: torch.Tensor, qtype: torch.Tensor, device: str, pad_token_id: int
+ ) -> torch.Tensor:
+ _ = (qtype, device, pad_token_id)
+ self.calls.append(len(rows))
+ out = torch.zeros(marker_pos.shape, dtype=torch.float32)
+ for i, row in enumerate(rows):
+ logits = self.by_row[_sha(row)]
+ out[i, : len(logits)] = torch.tensor(logits)
+ return out
+
+
+def _adapter(golden: dict[str, Any], *, max_forward_tokens: int = 16384) -> LayaAdapter:
+ adapter = LayaAdapter(golden["repo"], revision=golden["revision"], max_forward_tokens=max_forward_tokens)
+ adapter._tokenizer = RecordedTokenizer(golden) # ty: ignore[invalid-assignment]
+ adapter._model = GoldenLogitsModel(golden) # ty: ignore[invalid-assignment]
+ adapter._device = "cpu"
+ adapter._max_len = golden["max_len"]
+ adapter._head_max_len = golden["head_max_len"]
+ adapter._calibration = Calibration.from_config(golden["rl_agent_config"])
+ return adapter
+
+
+def _item(state: Any) -> Item:
+ return Item(text=state) if isinstance(state, str) else Item(metadata={"state": state})
+
+
+def _assert_answer(mine: dict[str, Any], ref: dict[str, Any]) -> None:
+ assert mine["type"] == ref["type"]
+ assert mine["confidence"] == pytest.approx(ref["confidence"], abs=ROUNDED_ATOL)
+ if ref["type"] == "noul":
+ assert mine["noul"] == pytest.approx(ref["noul"], abs=ROUNDED_ATOL)
+ assert mine["answer"] is (mine["noul"] > 0.5)
+ return
+ assert mine["probabilities"].keys() == ref["probabilities"].keys()
+ for key, value in ref["probabilities"].items():
+ assert mine["probabilities"][key] == pytest.approx(value, abs=ROUNDED_ATOL)
+ if ref["type"] == "choice":
+ assert mine["choice"] == ref["choice"]
+ else:
+ assert mine["score"] == pytest.approx(ref["score"], abs=ROUNDED_ATOL)
+ assert mine["legend"] == ref["legend"]
+
+
[email protected]("variant", VARIANTS)
+def test_rows_match_reference(variant: str) -> None:
+ """Every row's input_ids and marker positions equal the reference's, byte for byte."""
+ golden = _golden(variant)
+ adapter = _adapter(golden)
+ for section, max_len, head_max_len in (
+ (golden, golden["max_len"], golden["head_max_len"]),
+ (golden["override"], golden["override"]["max_len"], golden["override"]["head_max_len"]),
+ ):
+ questions = parse_questions(section["questions"])
+ states = [adapter._item_state(_item(case["state"])) for case in section["cases"]]
+ prefixes, rows = adapter._build_rows(states, questions, max_len=max_len, head_max_len=head_max_len)
+ expected = [row for case in section["cases"] for row in case["rows"]]
+ assert len(rows) == len(expected)
+ for n, (row, ref) in enumerate(zip(rows, expected, strict=True)):
+ prefix = prefixes[n % len(prefixes)]
+ assert prefix.question.qid == ref["qid"]
+ assert (len(row), _sha(row)) == (ref["len"], ref["sha256"]), ref["qid"]
+ assert prefix.markers == ref["markers"]
+ assert laya_questions.QTYPES[prefix.question.qtype] == ref["qtype"]
+
+
[email protected]("variant", VARIANTS)
+def test_rows_cover_truncation_paths(variant: str) -> None:
+ """The fixtures exercise full-length rows, left truncation, and the option-budget squeeze."""
+ golden = _golden(variant)
+ by_name = {case["name"]: case for case in golden["cases"]}
+ assert {row["len"] for row in by_name["long_truncated"]["rows"]} == {golden["max_len"]}
+ assert {row["len"] for row in by_name["long_conversation_left_truncated"]["rows"]} == {golden["max_len"]}
+ squeeze = next(row for row in by_name["plain_email"]["rows"] if row["qid"] == "budget_squeeze")
+ assert len(squeeze["markers"]) == 30
+
+
[email protected]("variant", VARIANTS)
+def test_extract_matches_reference_answers(variant: str) -> None:
+ """Typed answers and usage equal the reference's, through the full extract() path."""
+ golden = _golden(variant)
+ # A small token budget forces several forward chunks.
+ adapter = _adapter(golden, max_forward_tokens=2 * golden["max_len"])
+ items = [_item(case["state"]) for case in golden["cases"]]
+ output = adapter.extract(items, output_schema=golden["questions"])
+
+ assert len(cast("GoldenLogitsModel", adapter._model).calls) > 1
+ assert output.entities == [[] for _ in items]
+ assert output.classifications is None
+ assert output.errors is None
+ assert output.input_token_counts == [case["input_tokens"] for case in golden["cases"]]
+ assert output.data is not None
+ for data, case in zip(output.data, golden["cases"], strict=True):
+ assert list(data) == list(golden["questions"])
+ for qid, ref in case["answers"].items():
+ _assert_answer(data[qid], ref)
+
+
[email protected]("variant", VARIANTS)
+def test_extract_token_budget_overrides_match_reference(variant: str) -> None:
+ golden = _golden(variant)
+ override = golden["override"]
+ adapter = _adapter(golden)
+ output = adapter.extract(
+ [_item(case["state"]) for case in override["cases"]],
+ output_schema=override["questions"],
+ options={"max_len": override["max_len"], "head_max_len": override["head_max_len"]},
+ )
+ assert output.input_token_counts == [case["input_tokens"] for case in override["cases"]]
+ assert output.data is not None
+ for data, case in zip(output.data, override["cases"], strict=True):
+ for qid, ref in case["answers"].items():
+ _assert_answer(data[qid], ref)
+
+
[email protected]("variant", VARIANTS)
+def test_labels_mode_matches_reference_choice(variant: str) -> None:
+ """labels=[...] is one choice question over the labels, returned as sorted classifications."""
+ golden = _golden(variant)
+ label_question = golden["questions"]["label"]
+ adapter = _adapter(golden)
+ items = [_item(case["state"]) for case in golden["cases"]]
+ output = adapter.extract(items, labels=list(label_question["criteria"]))
+
+ assert output.data is None
+ assert output.classifications is not None
+ for classifications, case in zip(output.classifications, golden["cases"], strict=True):
+ ref = case["answers"]["label"]["probabilities"]
+ assert [c["label"] for c in classifications] == sorted(ref, key=lambda k: -ref[k])
+ for c in classifications:
+ assert c["score"] == pytest.approx(ref[c["label"]], abs=ROUNDED_ATOL)
+ assert sum(c["score"] for c in classifications) == pytest.approx(1.0, abs=1e-5)
+ assert output.input_token_counts == [
+ next(row["len"] for row in case["rows"] if row["qid"] == "label") for case in golden["cases"]
+ ]
+
+
+def test_labels_mode_echoes_caller_labels() -> None:
+ """The model reads each label stripped; classifications carry the caller's label unchanged."""
+ golden = _golden("laya")
+ adapter = _adapter(golden)
+ labels = list(golden["questions"]["label"]["criteria"])
+ padded = [f" {label}\t" if n % 2 else f"{label} " for n, label in enumerate(labels)]
+ case = golden["cases"][0]
+ output = adapter.extract([_item(case["state"])], labels=padded)
+ assert output.classifications is not None
+ ref = case["answers"]["label"]["probabilities"]
+ by_label = {c["label"]: c["score"] for c in output.classifications[0]}
+ assert set(by_label) == set(padded)
+ for label in padded:
+ assert by_label[label] == pytest.approx(ref[label.strip()], abs=ROUNDED_ATOL)
+
+
+def test_labels_mode_instruction_and_threshold() -> None:
+ golden = _golden("laya")
+ adapter = _adapter(golden)
+ (question,), caller_labels = adapter._resolve_questions([" a ", "b"], None, "Which team?")
+ assert caller_labels == [" a ", "b"]
+ assert (question.qtype, question.instructions, list(question.criteria)) == ("choice", "Which team?", ["a", "b"])
+ label_question = golden["questions"]["label"]
+ case = golden["cases"][0]
+ output = adapter.extract(
+ [_item(case["state"])],
+ labels=list(label_question["criteria"]),
+ instruction=label_question["instructions"],
+ options={"threshold": 0.2},
+ )
+ assert output.classifications is not None
+ ref = case["answers"]["label"]["probabilities"]
+ assert [c["label"] for c in output.classifications[0]] == [k for k, v in ref.items() if v >= 0.2]
+
+
[email protected]("variant", VARIANTS)
+def test_calibration_matches_reference(variant: str) -> None:
+ """Temperatures are the shipped buckets, clamped to [0.5, 5] like laya 0.3.11."""
+ golden = _golden(variant)
+ calibration = Calibration.from_config(golden["rl_agent_config"])
+ assert list(calibration.temperature) == pytest.approx(golden["temperature_applied"])
+ assert calibration.temperature_by_options == pytest.approx(golden["temperature_by_options_applied"])
+ if variant == "laya-multilingual":
+ assert calibration.temperature == (1.0, 1.0, 1.0)
+ assert calibration.temperature_by_options == {}
+ else:
+ # The shipped 12-option bucket sharpens by 10x; it is applied clamped.
+ assert golden["rl_agent_config"]["temperature_by_options"]["choice:11+"] < 0.5
+ assert calibration.temperature_for("choice", 12) == 0.5
+
+
+def test_calibration_rejects_non_finite_and_malformed() -> None:
+ calibration = Calibration.from_config(
+ {"temperature": [float("nan"), "x", 9.0], "temperature_by_options": {"noul:2": float("inf")}}
+ )
+ assert calibration.temperature == (1.0, 1.0, 5.0)
+ assert calibration.temperature_by_options == {"noul:2": 1.0}
+ assert Calibration.from_config({"temperature": [2.0]}).temperature == (1.0, 1.0, 1.0)
+ probs = calibrated_probs(np.array([1.0, 2.0, 3.0], dtype=np.float32), "choice", calibration)
+ assert probs.dtype == np.float32
+ assert float(probs.sum()) == pytest.approx(1.0)
+
+
+def test_options_overflow_error_matches_reference() -> None:
+ golden = _golden("laya")
+ tokenizer = RecordedTokenizer(golden)
+ (question,) = parse_questions(
+ {"too_many": {"type": "choice", "instructions": "pick", "criteria": [f"option {i}" for i in range(80)]}}
+ )
+ with pytest.raises(InvalidInputError, match="options exceed head_max_len") as excinfo:
+ build_prefix(tokenizer, question, max_len=96, head_max_len=64)
+ assert str(excinfo.value) == golden["overflow_error"]
+
+
+ ("questions", "message"),
+ [
+ ({"q": "not a dict"}, "question 'q': definition must be a dict, got str"),
+ ({"q": {"type": "rank", "instructions": "x"}}, "question 'q': unknown type 'rank'"),
+ ({"q": {"type": "noul"}}, "question 'q': no 'instructions'"),
+ ({"q": {"type": "choice", "instructions": "x"}}, "a choice question takes 'criteria' as a dict"),
+ ({"q": {"type": "choice", "instructions": "x", "criteria": []}}, "needs at least one criterion"),
+ ({"q": {"type": "choice", "instructions": "x", "criteria": [1, 2]}}, "list criteria must be strings"),
+ ({"q": {"type": "score", "instructions": "x", "criteria": {"a": 1}}}, "a score question takes 'criteria'"),
+ ({"q": {"type": "score", "instructions": "x", "criteria": []}}, "needs at least one level"),
+ ({"q": {"type": "noul", "instructions": "x", "criteria": ["yes"]}}, "a noul question takes 'criteria'"),
+ ({"q": {"type": "noul", "instructions": "x", "criteria": {"yes": "y"}}}, "keyed only 'true'/'false'"),
+ ({"q": {"type": "choice", "instructions": "x", "criteria": ["a"], "labels": {}}}, "only supported for noul"),
+ ({"q": {"type": "noul", "instructions": "x", "labels": {"false": "a", "true": "a"}}}, "distinct non-empty"),
+ ({"q": {"type": "noul", "instructions": {"raw": b"\x00"}}}, "'instructions' must be a string or JSON"),
+ ],
+)
+def test_malformed_questions_are_rejected(questions: dict[str, Any], message: str) -> None:
+ adapter = _adapter(_golden("laya"))
+ with pytest.raises(InvalidInputError, match=message.replace("(", r"\(").replace(")", r"\)")):
+ adapter.extract([Item(text="x")], output_schema=questions)
+
+
+def test_request_shape_errors() -> None:
+ """Caller mistakes raise InvalidInputError, which both HTTP and the queue path report as INVALID_INPUT."""
+ adapter = _adapter(_golden("laya"))
+ item = [Item(text="x")]
+ with pytest.raises(InvalidInputError, match="output_schema"):
+ adapter.extract(item)
+ with pytest.raises(InvalidInputError, match="not both"):
+ adapter.extract(item, labels=["a"], output_schema={"q": {"type": "noul", "instructions": "x"}})
+ with pytest.raises(InvalidInputError, match="applies only to labels"):
+ adapter.extract(item, instruction="x", output_schema={"q": {"type": "noul", "instructions": "x"}})
+ with pytest.raises(InvalidInputError, match="unique"):
+ adapter.extract(item, labels=["a", " a "])
+ with pytest.raises(InvalidInputError, match="non-empty strings"):
+ adapter.extract(item, labels=["a", " "])
+ with pytest.raises(InvalidInputError, match="must map question ids"):
+ adapter.extract(item, output_schema=["q"]) # ty: ignore[invalid-argument-type]
+ with pytest.raises(InvalidInputError, match=f"at most {MAX_QUESTIONS} questions"):
+ adapter.extract(
+ item, output_schema={f"q{i}": {"type": "noul", "instructions": "x"} for i in range(MAX_QUESTIONS + 1)}
+ )
+ one = {"q": {"type": "noul", "instructions": "x"}}
+ with pytest.raises(InvalidInputError, match="max_len must be at most 512"):
+ adapter.extract(item, output_schema=one, options={"max_len": 513})
+ with pytest.raises(InvalidInputError, match="positive integer"):
+ adapter.extract(item, output_schema=one, options={"head_max_len": "64"})
+ with pytest.raises(InvalidInputError, match=r"head_max_len must be at most max_len \(96\)"):
+ adapter.extract(item, output_schema=one, options={"max_len": 96, "head_max_len": 97})
+ with pytest.raises(InvalidInputError, match="threshold"):
+ adapter.extract(item, labels=["a"], options={"threshold": 2})
+
+
+def test_empty_question_mapping_is_rejected() -> None:
+ adapter = _adapter(_golden("laya"))
+ with pytest.raises(InvalidInputError, match="requires typed questions"):
+ adapter.extract([Item(text="x"), Item(text="y")], output_schema={})
+ assert cast("GoldenLogitsModel", adapter._model).calls == []
+
+
+def test_default_head_budget_is_kept_under_a_smaller_max_len() -> None:
+ """Only a head_max_len the caller sets is bounded by max_len; the checkpoint default is used as is."""
+ adapter = _adapter(_golden("laya"))
+ assert adapter._token_budget({"max_len": 96}) == (96, adapter._head_max_len)
+ assert adapter._token_budget({"max_len": 96, "head_max_len": 96}) == (96, 96)
+
+
+def test_invalid_states_fail_only_their_item() -> None:
+ golden = _golden("laya")
+ adapter = _adapter(golden)
+ case = golden["cases"][0]
+ items = [
+ Item(),
+ _item(case["state"]),
+ Item(text="x", metadata={"state": "y"}),
+ Item(metadata={"state": 42}),
+ Item(metadata={"state": {"blob": b"\x00"}}), # msgpack bytes cannot be serialized
+ ]
+ output = adapter.extract(items, output_schema=golden["questions"])
+ assert output.errors is not None
+ assert [e is None for e in output.errors] == [False, True, False, False, False]
+ assert {e.code for e in output.errors if e is not None} == {"INVALID_INPUT"}
+ assert output.errors[4] is not None
+ assert "JSON-serializable" in output.errors[4].message
+ assert output.data is not None
+ assert output.data[0] == output.data[2] == output.data[3] == output.data[4] == {}
+ for qid, ref in case["answers"].items():
+ _assert_answer(output.data[1][qid], ref)
+ assert output.input_token_counts == [0, case["input_tokens"], 0, 0, 0]
+
+
+def test_item_states_serialize_like_the_reference() -> None:
+ state = {"b": "é", "a": [1, 2]}
+ assert LayaAdapter._item_state(Item(metadata={"state": state})) == (json.dumps(state, ensure_ascii=False), False)
+ turns = [{"role": "user", "content": "hi"}]
+ assert LayaAdapter._item_state(Item(metadata={"state": turns})) == (json.dumps(turns), True)
+ assert LayaAdapter._item_state(Item(metadata={"state": "plain"})) == ("plain", False)
+ assert LayaAdapter._item_state(Item(text="plain", metadata={"other": 1})) == ("plain", False)
+
+
+def test_extract_item_costs_scale_with_questions() -> None:
+ """Each question re-encodes the state, so an item costs its state once per question plus the questions."""
+ adapter = LayaAdapter("convaiinnovations/laya")
+ schema = {f"q{i}": {"type": "noul", "instructions": "x"} for i in range(4)}
+ ticket = {"subject": "Login broken", "body": "Since the update I can't log in; error 500.", "prior_tickets": 3}
+ items = [Item(text="a" * 100), Item(metadata={"state": ticket}), Item()]
+ costs = adapter.extract_item_costs(items, output_schema=schema)
+ assert costs is not None
+ question_chars = costs[2] # an item with no state costs only the question text
+ assert costs[0] == 4 * 100 + question_chars
+ state_chars = (costs[1] - question_chars) / 4
+ assert state_chars == pytest.approx(len(json.dumps(ticket)), rel=0.25)
+ assert question_chars == pytest.approx(len(json.dumps(schema)), rel=0.25)
+ label_costs = adapter.extract_item_costs([Item(text="abc")], labels=["x", "yy"])
+ assert label_costs == [3 + 3 + len(DEFAULT_LABELS_INSTRUCTION)]
+
+ prepared = build_extract_prepared_items(
+ items, item_costs=adapter_extract_item_costs(adapter, items, output_schema=schema)
+ )
+ assert [p.cost for p in prepared] == costs
+ # Adapters without the hook (or with a malformed answer) keep the character count.
+ assert [p.cost for p in build_extract_prepared_items(items, item_costs=None)] == [100, 0, 0]
+ assert [p.cost for p in build_extract_prepared_items(items, item_costs=[1, -2, 3])] == [100, 0, 0]
+ assert adapter_extract_item_costs(MagicMock(), items) is None
+
+
+def test_extract_item_costs_are_bounded_and_never_serialize() -> None:
+ """The estimate runs on the event loop: it walks at most one row's worth of a state and never serializes it."""
+ adapter = LayaAdapter("convaiinnovations/laya")
+ row_chars = 4 * adapter._max_len
+ turns = [{"role": "user", "content": "x" * 50} for _ in range(100_000)]
+ items = [
+ Item(metadata={"state": turns}),
+ Item(metadata={"state": {"history": turns}}),
+ Item(metadata={"state": "y" * 1_000_000}),
+ Item(text="z" * 1_000_000),
+ ]
+ schema = {"q": {"type": "noul", "instructions": "x"}}
+ with patch("json.dumps", side_effect=AssertionError("serialized")):
+ costs = adapter.extract_item_costs(items, output_schema=schema)
+ question_chars = adapter.extract_item_costs([Item()], output_schema=schema)
+ assert costs is not None
+ assert question_chars is not None
+ assert costs == [row_chars + question_chars[0]] * len(items)
+
+
+def test_rope_parameters_override_transformers4_defaults() -> None:
+ """The mmBERT encoder declares 160000 for both layer kinds; transformers 4.x defaults sliding layers to 10000."""
+ config = MagicMock(spec=["rope_parameters", "global_rope_theta", "local_rope_theta"])
+ config.rope_parameters = {
+ "full_attention": {"rope_theta": 160000, "rope_type": "default"},
+ "sliding_attention": {"rope_theta": 160000, "rope_type": "default"},
+ }
+ config.global_rope_theta, config.local_rope_theta = 160000.0, 10000.0
+ apply_rope_parameters(config)
+ assert (config.global_rope_theta, config.local_rope_theta) == (160000.0, 160000.0)
+
+
+def test_split_checkpoint_drops_unused_heads() -> None:
+ tensor = torch.zeros(1)
+ encoder, head = split_checkpoint(
+ {
+ "encoder.layers.0.attn.Wqkv.weight": tensor,
+ "head.layers.0.linear1.weight": tensor,
+ "type_emb.weight": tensor,
+ "scorer.0.weight": tensor,
+ "act_head.0.weight": tensor,
+ "temperature": tensor,
+ }
+ )
+ assert list(encoder) == ["layers.0.attn.Wqkv.weight"]
+ assert list(head) == ["layers.0.linear1.weight", "type_emb.weight", "scorer.0.weight"]
+ with pytest.raises(ValueError, match="Unexpected tensor") as excinfo:
+ split_checkpoint({"encoder.x": tensor, "head.y": tensor, "classifier.weight": tensor})
+ # A bad checkpoint is a server fault, not a caller error.
+ assert not isinstance(excinfo.value, InvalidInputError)
+
+
+def test_checkpoint_download_is_pinned_and_filtered(tmp_path: Path) -> None:
+ adapter = LayaAdapter("convaiinnovations/laya", revision="0123abc")
+ with patch("sie_server.adapters.laya.adapter.snapshot_download", return_value=str(tmp_path)) as download:
+ assert adapter._checkpoint_dir() == tmp_path
+ kwargs = download.call_args.kwargs
+ assert kwargs["repo_id"] == "convaiinnovations/laya"
+ assert kwargs["revision"] == "0123abc"
+ assert set(kwargs["allow_patterns"]) == {"rl_agent_config.json", "model.safetensors", "tokenizer/*", "encoder/*"}
+ local = LayaAdapter(str(tmp_path))
+ with patch("sie_server.adapters.laya.adapter.snapshot_download") as download:
+ assert local._checkpoint_dir() == tmp_path
+ download.assert_not_called()
+
+
+def test_tokenizer_list_special_tokens_are_passed_as_mapping(tmp_path: Path) -> None:
+ """A list-valued extra_special_tokens (unreadable on transformers 4.x) is passed as a mapping, not rewritten."""
+ config_file = tmp_path / "tokenizer_config.json"
+ config_file.write_text(json.dumps({"extra_special_tokens": ["<start_of_turn>", "<end_of_turn>"]}))
+ before = config_file.read_text()
+ with patch("transformers.PreTrainedTokenizerFast.from_pretrained") as from_pretrained:
+ LayaAdapter._load_tokenizer(tmp_path)
+ assert from_pretrained.call_args.kwargs == {
+ "extra_special_tokens": {"extra_0": "<start_of_turn>", "extra_1": "<end_of_turn>"}
+ }
+ assert config_file.read_text() == before
diff --git a/packages/sie_server/tests/adapters/test_laya_bounds.py b/packages/sie_server/tests/adapters/test_laya_bounds.py
new file mode 100644
index 000000000..7963c9c36
--- /dev/null
+++ b/packages/sie_server/tests/adapters/test_laya_bounds.py
@@ -0,0 +1,399 @@
+"""Laya adapter: request bounds, and long inputs tokenized only as far as a row can read.
+
+Count limits fail before any tokenizer call. Long states, instructions, and
+options are cut to a budget of UTF-8 bytes per token a row can use before
+tokenizing, and structured states are rendered only that far; these tests check
+the cuts leave every row as the whole texts would produce it, in any script.
+Error messages quote caller data only in bounded form.
+"""
+
+from __future__ import annotations
+
+import json
+import math
+import random
+import re
+import zlib
+from typing import Any
+from unittest.mock import MagicMock, patch
+
+import numpy as np
+import pytest
+from sie_server.adapters.laya import adapter as laya_adapter
+from sie_server.adapters.laya import questions as laya_questions
+from sie_server.adapters.laya.adapter import MAX_ITEM_TOKENS, MAX_OPTIONS, MAX_QUESTIONS, LayaAdapter
+from sie_server.adapters.laya.questions import (
+ STATE_BYTES_PER_TOKEN,
+ clip_text,
+ parse_questions,
+ render_criterion,
+ serialize_state,
+)
+from sie_server.types.inputs import InvalidInputError, Item
+
+MAX_LEN = 512
+HEAD_MAX_LEN = 192
+
+
+class WordTokenizer:
+ """Deterministic stand-in tokenizer: an ASCII word, a whitespace run, or any other character is one token."""
+
+ mask_token = "[MASK]" # noqa: S105 — tokenizer attribute, not a secret
+ mask_token_id = 4
+ cls_token_id = 1
+ sep_token_id = 2
+ pad_token_id = 0
+
+ def __init__(self) -> None:
+ self.inputs: list[str] = []
+
+ def __call__(self, text: str | list[str], add_special_tokens: bool = True) -> dict[str, Any]:
+ assert add_special_tokens is False
+ texts = text if isinstance(text, list) else [text]
+ self.inputs.extend(texts)
+ pieces = (re.findall(r"\s+|[A-Za-z0-9_]+|[^\sA-Za-z0-9_]", s) for s in texts)
+ ids = [[5 + zlib.crc32(t.encode("utf-8", "surrogatepass")) % 50_000 for t in piece] for piece in pieces]
+ return {"input_ids": ids if isinstance(text, list) else ids[0]}
+
+
+class NoCallTokenizer(WordTokenizer):
+ def __call__(self, text: str | list[str], add_special_tokens: bool = True) -> dict[str, Any]:
+ raise AssertionError("tokenized before the request was validated")
+
+
+def _adapter(tokenizer: WordTokenizer, *, max_len: int = MAX_LEN) -> LayaAdapter:
+ adapter = LayaAdapter("convaiinnovations/laya")
+ adapter._tokenizer = tokenizer # ty: ignore[invalid-assignment]
+ adapter._model = MagicMock() # ty: ignore[invalid-assignment]
+ adapter._device = "cpu"
+ adapter._max_len = max_len
+ adapter._head_max_len = HEAD_MAX_LEN
+ return adapter
+
+
+# ---------------------------------------------------------------------------- counts
+
+
+ ("request_kwargs", "message"),
+ [
+ ({"labels": [f"l{i}" for i in range(MAX_OPTIONS + 1)]}, f"at most {MAX_OPTIONS} labels"),
+ (
+ {"output_schema": {"q": {"type": "choice", "instructions": "x", "criteria": list(range(100_000))}}},
+ f"at most {MAX_OPTIONS} answer options",
+ ),
+ (
+ {
+ "output_schema": {
+ f"q{i}": {"type": "choice", "instructions": "x", "criteria": [f"o{j}" for j in range(40)]}
+ for i in range(MAX_OPTIONS // 40 + 1)
+ }
+ },
+ f"at most {MAX_OPTIONS} answer options",
+ ),
+ (
+ {"output_schema": {"q": {"type": "choice", "instructions": "x", "criteria": [f"o{j}" for j in range(95)]}}},
+ "question 'q' options exceed head_max_len=40",
+ ),
+ (
+ {"output_schema": {f"q{i}": {"type": "noul", "instructions": "x"} for i in range(MAX_QUESTIONS + 1)}},
+ f"at most {MAX_QUESTIONS} questions",
+ ),
+ ],
+)
+def test_oversized_requests_fail_before_tokenizing(request_kwargs: dict[str, Any], message: str) -> None:
+ adapter = _adapter(NoCallTokenizer())
+ options = {"max_len": 96, "head_max_len": 40} # 95 options cannot all be marked in 96 positions
+ with pytest.raises(InvalidInputError, match=re.escape(message)):
+ adapter.extract([Item(text="x")], options=options, **request_kwargs)
+ assert adapter._model.mock_calls == [] # ty: ignore[unresolved-attribute]
+
+
+def test_item_token_cap_limits_questions_by_max_len() -> None:
+ """Questions x max_len stay within MAX_ITEM_TOKENS: 32 questions at max_len 1024, all 64 at 512."""
+ adapter = _adapter(NoCallTokenizer(), max_len=1024)
+ schema = {f"q{i}": {"type": "noul", "instructions": "x"} for i in range(MAX_ITEM_TOKENS // 1024 + 1)}
+ with pytest.raises(InvalidInputError, match="send at most 32 questions, or a smaller max_len option"):
+ adapter.extract([Item(text="x")], output_schema=schema)
+ LayaAdapter._check_item_tokens(MAX_ITEM_TOKENS // 1024, 1024)
+ LayaAdapter._check_item_tokens(MAX_QUESTIONS, 512)
+ # A smaller max_len option admits more questions on a 1024-token model.
+ with pytest.raises(AssertionError, match="tokenized before"):
+ adapter.extract([Item(text="x")], output_schema=schema, options={"max_len": 512})
+
+
+def test_count_check_is_exact_at_the_marker_limit() -> None:
+ """max_len - 2 options can still be marked (one [MASK] each after [CLS] [SEP]); one more cannot."""
+ tokenizer = WordTokenizer()
+ adapter = _adapter(tokenizer)
+ for n, fits in ((94, True), (95, False)):
+ question = parse_questions(
+ {"q": {"type": "choice", "instructions": "", "criteria": {f"{j}": None for j in range(n)}}}
+ )[0]
+ if fits:
+ laya_questions.check_options_fit(question, max_len=96, head_max_len=40)
+ else:
+ with pytest.raises(InvalidInputError, match="options exceed head_max_len=40"):
+ adapter._build_rows([("x", False)], [question], max_len=96, head_max_len=40)
+ assert tokenizer.inputs == []
+
+
+# ---------------------------------------------------------------------------- long inputs
+
+LONG_TEXT = " ".join(f"word{i % 997} and some more text, number {i}." for i in range(8_000)) # ~330k chars
+LONG_CJK = "二重に請求されました。返金してください。注文番号は一二三四です。" * 5_000 # 3 bytes per character
+LONG_ASTRAL = "𠀀𠀁😀🎉" * 50_000 # 4 bytes per character
+
+
+def _long_inputs() -> tuple[list[Item], dict[str, Any]]:
+ items = [
+ Item(text=LONG_TEXT),
+ Item(metadata={"state": {"subject": "a long ticket", "body": LONG_TEXT, "tags": list(range(5_000))}}),
+ Item(metadata={"state": [{"role": "user", "content": f"turn {i}: {LONG_TEXT[:200]}"} for i in range(3_000)]}),
+ Item(metadata={"state": LONG_TEXT[:500]}), # short: within bounds
+ Item(text=LONG_CJK),
+ Item(metadata={"state": [{"role": "user", "content": LONG_ASTRAL}]}),
+ ]
+ schema = {
+ "long_instructions": {"type": "noul", "instructions": LONG_TEXT},
+ "long_options": {
+ "type": "choice",
+ "instructions": "Which fits?",
+ "criteria": {"a": LONG_TEXT, "b": {"detail": LONG_TEXT, "n": 1}, "c": None},
+ },
+ "score": {"type": "score", "instructions": "How much?", "criteria": ["low", {"desc": LONG_TEXT}, "high"]},
+ "many": {"type": "choice", "instructions": "Pick", "criteria": [f"option {j}" for j in range(40)]},
+ "astral": {"type": "choice", "instructions": LONG_ASTRAL, "criteria": {"喜": LONG_CJK, "😀": LONG_ASTRAL}},
+ }
+ return items, schema
+
+
+def _rows(adapter: LayaAdapter, items: list[Item], schema: dict[str, Any]) -> tuple[list[Any], list[list[int]]]:
+ limit = adapter._max_len * laya_adapter.STATE_BYTES_PER_TOKEN
+ states = [adapter._item_state(item, limit) for item in items]
+ prefixes, rows = adapter._build_rows(states, parse_questions(schema), max_len=MAX_LEN, head_max_len=HEAD_MAX_LEN)
+ return [(p.ids, p.markers) for p in prefixes], rows
+
+
+def test_long_inputs_are_cut_before_tokenizing() -> None:
+ """extract() renders each state only as far as a row reads, and tokenizes only cut texts."""
+ tokenizer = WordTokenizer()
+ adapter = _adapter(tokenizer)
+ adapter._run_rows = lambda rows, prefixes: [np.zeros(len(p.markers), dtype=np.float32) for p in prefixes] # ty: ignore[invalid-assignment]
+ items, schema = _long_inputs()
+ state_bytes = MAX_LEN * STATE_BYTES_PER_TOKEN
+ with patch.object(laya_adapter, "serialize_state", wraps=laya_adapter.serialize_state) as render:
+ output = adapter.extract(items, output_schema=schema)
+ assert output.errors is None
+ assert [call.args[1] for call in render.call_args_list] == [state_bytes] * 4
+ sizes = [len(t.encode()) for t in tokenizer.inputs]
+ assert max(sizes) <= state_bytes
+ assert sum(sizes) < 12 * state_bytes
+
+
+def test_row_building_cuts_whole_texts() -> None:
+ """_build_rows cuts states it is given whole (as the parity tests pass them)."""
+ tokenizer = WordTokenizer()
+ adapter = _adapter(tokenizer)
+ items, schema = _long_inputs()
+ states = [adapter._item_state(item) for item in items]
+ adapter._build_rows(states, parse_questions(schema), max_len=MAX_LEN, head_max_len=HEAD_MAX_LEN)
+ assert max(len(t.encode()) for t in tokenizer.inputs) <= MAX_LEN * STATE_BYTES_PER_TOKEN
+
+
+def test_cut_inputs_keep_the_rows_of_whole_inputs() -> None:
+ """Every prefix and row equals the one built from the whole, uncut texts."""
+ items, schema = _long_inputs()
+ cut = _rows(_adapter(WordTokenizer()), items, schema)
+ with (
+ patch.object(laya_adapter, "STATE_BYTES_PER_TOKEN", 10**9),
+ patch.object(laya_questions, "QUESTION_BYTES_PER_TOKEN", 10**9),
+ ):
+ whole_tokenizer = WordTokenizer()
+ whole = _rows(_adapter(whole_tokenizer), items, schema)
+ assert max(len(t) for t in whole_tokenizer.inputs) > len(LONG_TEXT) # the comparison did tokenize whole texts
+ assert cut == whole
+ # The conversation keeps its newest turn; the other states their beginning.
+ _, rows = cut
+ assert all(len(row) == MAX_LEN for row in rows[: 3 * len(schema)])
+ assert all(len(row) == MAX_LEN for row in rows[4 * len(schema) :])
+
+
+# ---------------------------------------------------------------------------- bounded JSON
+
+
+def _random_json(rng: random.Random, depth: int = 0) -> Any:
+ kind = rng.randrange(9 if depth < 4 else 5)
+ if kind == 0:
+ return rng.choice(["", "plain", 'quote " and \\ back', "tab\tnew\nline\x01", "é ü 二重 😀", "x" * 50])
+ if kind == 1:
+ return rng.choice([0, -7, 2**70, 10**300])
+ if kind == 2:
+ return rng.choice([0.5, -1e-300, 1e300, math.inf, -math.inf, math.nan, 3.141592653589793])
+ if kind == 3:
+ return rng.choice([True, False, None])
+ if kind == 4:
+ return "y" * rng.randrange(0, 200)
+ if kind in (5, 6):
+ keys = ["k", "", "ключ", 1, 2.5, True, None, math.nan, 'q"k']
+ return {rng.choice(keys) if rng.random() < 0.3 else f"key{i}": _random_json(rng, depth + 1) for i in range(4)}
+ return [_random_json(rng, depth + 1) for _ in range(rng.randrange(0, 5))]
+
+
+def _utf8_head(text: str, limit: int) -> str:
+ return text.encode()[:limit].decode("utf-8", "ignore")
+
+
+def _utf8_tail(text: str, limit: int) -> str:
+ return text.encode()[-limit:].decode("utf-8", "ignore")
+
+
+def test_bounded_rendering_matches_json_dumps() -> None:
+ rng = random.Random(0) # noqa: S311 — deterministic test data
+ for _ in range(300):
+ state = {"root": _random_json(rng)} if rng.random() < 0.5 else [_random_json(rng) for _ in range(3)]
+ full = json.dumps(state, ensure_ascii=False)
+ criterion_full = json.dumps(state, ensure_ascii=False, separators=(", ", ": "), default=str)
+ size = len(full.encode())
+ for limit in sorted({1, 2, 3, 7, 64, size // 2 or 1, size - 1 or 1, size, size + 3}):
+ assert serialize_state(state, limit) == _utf8_head(full, limit)
+ assert serialize_state(state, limit, from_end=True) == _utf8_tail(full, limit)
+ assert render_criterion(state, limit) == _utf8_head(criterion_full, limit)
+
+
+def test_clip_text_cuts_utf8_bytes_at_character_boundaries() -> None:
+ text = "a€😀b" * 1000 # 1, 3, 4, and 1 bytes per character
+ for limit in range(1, 40):
+ head, tail = clip_text(text, limit), clip_text(text, limit, from_end=True)
+ assert head == _utf8_head(text, limit)
+ assert tail == _utf8_tail(text, limit)
+ assert len(head.encode()) <= limit >= len(tail.encode())
+ assert clip_text(text, 10**6) is text
+ assert clip_text("x" * 100, 40) == "x" * 40
+ lone = "a\ud800b" * 10 # a lone surrogate (possible from JSON escapes) survives a cut
+ assert clip_text(lone, 12) == "a\ud800b" * 2 + "a"
+
+
+def test_bounded_rendering_encodes_like_json_dumps_for_unusual_values() -> None:
+ value = {"blob": b"\x00", "set": {1}, "nested": [{"t": (1, 2)}]}
+ assert render_criterion(value, 1000) == json.dumps(value, ensure_ascii=False, separators=(", ", ": "), default=str)
+ for bad in ({"blob": b"\x00"}, {(1, 2): "tuple key"}, [{b"k": 1}]):
+ with pytest.raises(TypeError):
+ serialize_state(bad, 1000)
+ with pytest.raises(TypeError):
+ json.dumps(bad)
+
+
+def test_bounded_rendering_stops_early() -> None:
+ """A huge state renders in bounded work: the walk stops once the limit is reached."""
+ huge = {"items": [{"n": i, "text": "abc"} for i in range(200_000)], "tail": "z" * 5_000_000}
+ with patch.object(laya_questions, "_json_string", wraps=laya_questions._json_string) as encode:
+ assert serialize_state(huge, 100) == json.dumps(huge)[:100]
+ assert serialize_state(huge, 100, from_end=True) == json.dumps(huge)[-100:]
+ assert encode.call_count < 60
+
+
+# ---------------------------------------------------------------------------- caller data errors
+
+
+def test_unrenderable_states_are_invalid_input() -> None:
+ adapter = _adapter(WordTokenizer())
+ for state in ({(1, 2): "tuple key"}, {"blob": b"\x00"}, [{b"k": "bytes key"}]):
+ with pytest.raises(InvalidInputError, match="JSON-serializable"):
+ adapter._item_state(Item(metadata={"state": state}), MAX_LEN * STATE_BYTES_PER_TOKEN)
+
+
+ ("criteria", "message"),
+ [
+ ({"a": {b"key": 1}}, "criteria must be JSON-serializable"),
+ ({"a": {(1, 2): 1}}, "criteria must be JSON-serializable"),
+ ({1: "label from msgpack"}, "criteria labels must be strings"),
+ ],
+)
+def test_unrenderable_criteria_are_invalid_input(criteria: dict[Any, Any], message: str) -> None:
+ adapter = _adapter(WordTokenizer())
+ with pytest.raises(InvalidInputError, match=message):
+ questions = parse_questions({"q": {"type": "choice", "instructions": "x", "criteria": criteria}})
+ adapter._build_rows([("x", False)], questions, max_len=MAX_LEN, head_max_len=HEAD_MAX_LEN)
+
+
+ "criteria",
+ [
+ {f"k{i}": i for i in range(300_000)},
+ {"true": "x", "false": "y", "other": "z"},
+ {"t" * 5_000_000: "a key far too long to be 'true'"},
+ ],
+)
+def test_noul_criteria_keys_are_checked_without_reading_every_key(criteria: dict[str, Any]) -> None:
+ """More than two keys fail on the count alone; long keys are never lowercased or echoed whole."""
+ adapter = _adapter(NoCallTokenizer())
+ with (
+ patch.object(laya_questions, "_noul_key", wraps=laya_questions._noul_key) as read_key,
+ pytest.raises(InvalidInputError, match="keyed only 'true'/'false'") as excinfo,
+ ):
+ adapter.extract(
+ [Item(text="x")], output_schema={"q": {"type": "noul", "instructions": "x", "criteria": criteria}}
+ )
+ assert read_key.call_count == (0 if len(criteria) > 2 else len(criteria))
+ assert len(str(excinfo.value)) < 700
+ if len(criteria) > 3:
+ assert f"({len(criteria)} keys)" in str(excinfo.value)
+
+
+def test_noul_labels_mapping_is_checked_by_size_first() -> None:
+ adapter = _adapter(NoCallTokenizer())
+ labels = {f"k{i}": "x" for i in range(1_000_000)}
+ with pytest.raises(InvalidInputError, match="noul labels must map exactly"):
+ adapter.extract([Item(text="x")], output_schema={"q": {"type": "noul", "instructions": "x", "labels": labels}})
+
+
+ ("schema", "message"),
+ [
+ ({"q" * 1_000_000: {"type": "rank", "instructions": "x"}}, "unknown type 'rank'"),
+ ({"q": {"type": "r" * 1_000_000, "instructions": "x"}}, "unknown type 'rrrr"),
+ ({"q": {"type": ["choice"] * 1_000, "instructions": "x"}}, "unknown type <list>"),
+ ({"q" * 1_000_000: {"type": "noul"}}, "no 'instructions'"),
+ (
+ {"q" * 1_000_000: {"type": "choice", "instructions": "x", "criteria": [f"o{j}" for j in range(95)]}},
+ "options exceed head_max_len=40",
+ ),
+ ],
+)
+def test_error_messages_quote_caller_data_briefly(schema: dict[str, Any], message: str) -> None:
+ adapter = _adapter(NoCallTokenizer())
+ with pytest.raises(InvalidInputError, match=re.escape(message)) as excinfo:
+ adapter.extract([Item(text="x")], output_schema=schema, options={"max_len": 96, "head_max_len": 40})
+ assert len(str(excinfo.value)) < 400
+
+
+ ("options", "message"),
+ [
+ ({"max_len": 10**5000}, "max_len must be at most 512 for this model, got <int>"),
+ ({"max_len": 96, "head_max_len": 10**5000}, "head_max_len must be at most max_len (96), got <int>"),
+ ({"threshold": 10**400}, "threshold must be a finite number"),
+ ],
+)
+def test_oversized_numbers_are_invalid_input(options: dict[str, Any], message: str) -> None:
+ adapter = _adapter(NoCallTokenizer())
+ kwargs: dict[str, Any] = {"labels": ["a", "b"]} if "threshold" in options else {"output_schema": ONE_QUESTION}
+ with pytest.raises(InvalidInputError, match=re.escape(message)):
+ adapter.extract([Item(text="x")], options=options, **kwargs)
+
+
+ONE_QUESTION = {"q": {"type": "noul", "instructions": "x"}}
+
+
+# ---------------------------------------------------------------------------- cost hook
+
+
+def test_cost_hook_is_bounded_for_oversized_requests() -> None:
+ adapter = LayaAdapter("convaiinnovations/laya")
+ too_many = {f"q{i}": {"type": "noul", "instructions": "x"} for i in range(MAX_QUESTIONS + 1)}
+ assert adapter.extract_item_costs([Item(text="abc")], output_schema=too_many) is None
+ row_chars = 4 * adapter._max_len
+ costs = adapter.extract_item_costs([Item(text="abc")], labels=["x" * 10] * 1_000_000)
+ assert costs == [3 + row_chars]
diff --git a/packages/sie_server/tests/adapters/test_laya_model.py b/packages/sie_server/tests/adapters/test_laya_model.py
new file mode 100644
index 000000000..0ddb8b8be
--- /dev/null
+++ b/packages/sie_server/tests/adapters/test_laya_model.py
@@ -0,0 +1,166 @@
+"""Laya network code on a tiny random encoder, against the reference forward (no downloads).
+
+The reference ``DecisionModel`` below is laya 0.3.11's (``laya/common.py``,
+Apache-2.0) with its training-only branches removed. Its state dict has the same
+keys as a released ``model.safetensors``; loading it through
+``split_checkpoint`` and ``LayaModel`` and comparing logits checks the decision
+head's wiring (head count, activations, pre-norm, marker gather, question-type
+embedding) and the checkpoint split on real modules, on CPU.
+"""
+
+from __future__ import annotations
+
+from pathlib import Path
+
+import pytest
+import torch
+from safetensors.torch import load_file, save_file
+from sie_server.adapters.laya.model import LayaDecisionHead, LayaModel, split_checkpoint
+from torch import nn
+from transformers import AutoModel, ModernBertConfig
+
+HIDDEN = 128 # two head attention heads (hidden // 64), so the head split is exercised
+PAD_ID = 0
+
+
+class ReferenceDecisionModel(nn.Module):
+ """laya 0.3.11 ``DecisionModel``, inference path only."""
+
+ def __init__(self, encoder: nn.Module, head_layers: int = 2, n_act: int = 2, dropout: float = 0.1) -> None:
+ super().__init__()
+ self.encoder = encoder
+ d = encoder.config.hidden_size
+ layer = nn.TransformerEncoderLayer(d, max(1, d // 64), 4 * d, dropout, batch_first=True, norm_first=True)
+ self.head = nn.TransformerEncoder(layer, head_layers, enable_nested_tensor=False)
+ self.type_emb = nn.Embedding(3, d)
+ self.scorer = nn.Sequential(nn.LayerNorm(d), nn.Linear(d, d), nn.GELU(), nn.Linear(d, 1))
+ self.act_head = nn.Sequential(nn.Linear(d + 4, 256), nn.GELU(), nn.Linear(256, n_act))
+ self.register_buffer("temperature", torch.ones(3))
+
+ def forward(self, input_ids, attention_mask, marker_pos, marker_mask, qtype):
+ h = self.encoder(input_ids=input_ids, attention_mask=attention_mask).last_hidden_state
+ h = h + self.type_emb(qtype)[:, None, :]
+ pad = ~attention_mask.bool()
+ for layer in self.head.layers:
+ h = layer(h, src_key_padding_mask=pad)
+ idx = marker_pos.clamp(min=0)[:, :, None].expand(-1, -1, h.size(-1))
+ logits = self.scorer(torch.gather(h, 1, idx)).squeeze(-1).float()
+ return logits.masked_fill(~marker_mask, -1e4)
+
+
+def _encoder_config() -> ModernBertConfig:
+ config = ModernBertConfig(
+ vocab_size=128,
+ hidden_size=HIDDEN,
+ intermediate_size=192,
+ num_hidden_layers=2,
+ num_attention_heads=4,
+ max_position_embeddings=64,
+ global_attn_every_n_layers=2, # layer 0 global, layer 1 sliding-window
+ local_attention=8,
+ pad_token_id=PAD_ID,
+ bos_token_id=1,
+ cls_token_id=1,
+ eos_token_id=2,
+ sep_token_id=2,
+ )
+ config.reference_compile = False
+ return config
+
+
+# Three rows of different lengths (padding), one per question type, with 3/2/4 option markers.
+ROWS = [
+ [1, *range(10, 40), 2],
+ [1, *range(40, 52), 2],
+ [1, *range(60, 80), 2, 3, 4, 2],
+]
+MARKERS = [[3, 9, 20], [2, 7], [1, 5, 12, 22]]
+QTYPES = [0, 1, 2]
+
+
+def _reference_logits(reference: ReferenceDecisionModel) -> torch.Tensor:
+ n, width, k = len(ROWS), max(len(r) for r in ROWS), max(len(m) for m in MARKERS)
+ input_ids = torch.full((n, width), PAD_ID, dtype=torch.long)
+ attention_mask = torch.zeros((n, width), dtype=torch.long)
+ marker_pos = torch.zeros((n, k), dtype=torch.long)
+ marker_mask = torch.zeros((n, k), dtype=torch.bool)
+ for i, (row, markers) in enumerate(zip(ROWS, MARKERS, strict=True)):
+ input_ids[i, : len(row)] = torch.tensor(row)
+ attention_mask[i, : len(row)] = 1
+ marker_pos[i, : len(markers)] = torch.tensor(markers)
+ marker_mask[i, : len(markers)] = True
+ with torch.inference_mode():
+ return reference(input_ids, attention_mask, marker_pos, marker_mask, torch.tensor(QTYPES))
+
+
+def _marker_tensor() -> torch.Tensor:
+ marker_pos = torch.zeros((len(MARKERS), max(len(m) for m in MARKERS)), dtype=torch.long)
+ for i, markers in enumerate(MARKERS):
+ marker_pos[i, : len(markers)] = torch.tensor(markers)
+ return marker_pos
+
+
+def _load_like_adapter(checkpoint: Path, config: ModernBertConfig) -> tuple[LayaModel, torch.dtype]:
+ """Build the served model from a ``model.safetensors`` the way ``LayaAdapter.load`` does."""
+ encoder_weights, head_weights = split_checkpoint(load_file(str(checkpoint)))
+ encoder = AutoModel.from_config(config, attn_implementation="sdpa")
+ head = LayaDecisionHead(config.hidden_size, 2)
+ encoder.load_state_dict(encoder_weights, strict=True)
+ head.load_state_dict(head_weights, strict=True)
+ return LayaModel(encoder, head), encoder_weights["embeddings.tok_embeddings.weight"].dtype
+
+
+def reference_checkpoint(tmp_path: Path) -> tuple[ReferenceDecisionModel, Path]:
+ torch.manual_seed(0)
+ reference = ReferenceDecisionModel(AutoModel.from_config(_encoder_config(), attn_implementation="sdpa")).eval()
+ checkpoint = tmp_path / "model.safetensors"
+ save_file(reference.state_dict(), str(checkpoint))
+ return reference, checkpoint
+
+
+def test_padded_forward_matches_reference(reference_checkpoint: tuple[ReferenceDecisionModel, Path]) -> None:
+ reference, checkpoint = reference_checkpoint
+ expected = _reference_logits(reference)
+ model, embedding_dtype = _load_like_adapter(checkpoint, _encoder_config())
+ model.prepare(
+ "cpu", use_flash=False, compute_dtype=torch.float32, max_positions=64, embedding_dtype=embedding_dtype
+ )
+
+ with torch.inference_mode():
+ logits = model.forward_padded(ROWS, _marker_tensor(), torch.tensor(QTYPES), "cpu", pad_token_id=PAD_ID)
+
+ assert logits.dtype == torch.float32
+ for i, markers in enumerate(MARKERS):
+ mine, ref = logits[i, : len(markers)], expected[i, : len(markers)]
+ torch.testing.assert_close(mine, ref, atol=1e-5, rtol=1e-5)
+ # Guard against a vacuous pass: the options get distinct scores.
+ assert float(ref.max() - ref.min()) > 1e-3
+
+
+ ("checkpoint_dtype", "expected"),
+ [
+ (torch.float16, torch.float16),
+ (torch.bfloat16, torch.bfloat16),
+ (torch.float32, torch.float32),
+ (None, torch.float32),
+ ],
+)
+def test_flash_prepare_keeps_embedding_at_checkpoint_precision(
+ reference_checkpoint: tuple[ReferenceDecisionModel, Path],
+ checkpoint_dtype: torch.dtype | None,
+ expected: torch.dtype,
+) -> None:
+ """The flash path stores the embedding table at the checkpoint's own precision (never narrower)."""
+ _, checkpoint = reference_checkpoint
+ model, _ = _load_like_adapter(checkpoint, _encoder_config())
+ # prepare() only places weights and builds RoPE tables; no flash kernel runs here.
+ model.prepare(
+ "cpu", use_flash=True, compute_dtype=torch.bfloat16, max_positions=64, embedding_dtype=checkpoint_dtype
+ )
+ encoder = model.encoder
+ assert encoder.embeddings.tok_embeddings.weight.dtype == expected
+ assert encoder.layers[0].attn.Wqkv.weight.dtype == torch.bfloat16
+ assert encoder.embeddings.norm.weight.dtype == torch.float32
+ assert encoder.final_norm.weight.dtype == torch.float32
diff --git a/packages/sie_server/tests/adapters/test_laya_parity.py b/packages/sie_server/tests/adapters/test_laya_parity.py
new file mode 100644
index 000000000..b4c6855b9
--- /dev/null
+++ b/packages/sie_server/tests/adapters/test_laya_parity.py
@@ -0,0 +1,138 @@
+"""Laya adapter parity with the reference implementation, on real weights.
+
+Downloads each checkpoint at the revision pinned in its model config and
+compares against the reference fixtures in ``fixtures/laya/`` (the ``laya``
+0.3.11 package, CPU float32; regenerate them with
+``packages/sie_server/scripts/generate_laya_fixtures.py`` when a revision changes):
+
+* real-tokenizer rows: exact ``input_ids`` and marker positions;
+* CPU float32: raw decision-head logits within 1e-3 (same math as the reference);
+* CUDA (bfloat16, flash-attention backbone when available): argmax agreement
+ >= 98%, mean |dp| <= 0.02, max |dp| <= 0.08 against the float32 reference.
+ The reference's own bfloat16-autocast forward differs from its float32
+ forward by up to ~0.06 on these inputs, so exact equality is not expected.
+
+Run with ``mise run test -- -m model packages/sie_server/tests/adapters/test_laya_parity.py``.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+from pathlib import Path
+from typing import Any
+
+import numpy as np
+import pytest
+import torch
+from sie_server.adapters.laya.questions import calibrated_probs, parse_questions
+from sie_server.core.loader import load_adapter, load_model_configs
+from sie_server.types.inputs import Item
+
+pytestmark = pytest.mark.model
+
+FIXTURES = Path(__file__).parent / "fixtures" / "laya"
+MODELS_DIR = Path(__file__).resolve().parents[2] / "models"
+VARIANTS = ("laya", "laya-multilingual", "laya-typed-decisions")
+
+_adapters: dict[tuple[str, str], Any] = {}
+
+
+def _golden(variant: str) -> dict[str, Any]:
+ return json.loads((FIXTURES / f"{variant}.json").read_text(encoding="utf-8"))
+
+
+def _adapter(variant: str, device: str) -> Any:
+ key = (variant, device)
+ if key not in _adapters:
+ configs = load_model_configs(MODELS_DIR)
+ config = configs[f"convaiinnovations/{variant}"]
+ adapter = load_adapter(config, MODELS_DIR, device=device)
+ adapter.load(device)
+ _adapters[key] = adapter
+ return _adapters[key]
+
+
+def _item(state: Any) -> Item:
+ return Item(text=state) if isinstance(state, str) else Item(metadata={"state": state})
+
+
+def _logits(adapter: Any, golden: dict[str, Any]) -> tuple[list[np.ndarray], list[dict[str, Any]]]:
+ """Adapter logits for every golden row, with the matching golden rows."""
+ questions = parse_questions(golden["questions"])
+ states = [adapter._item_state(_item(case["state"])) for case in golden["cases"]]
+ prefixes, rows = adapter._build_rows(
+ states, questions, max_len=golden["max_len"], head_max_len=golden["head_max_len"]
+ )
+ logits = adapter._run_rows(rows, [prefixes[r % len(prefixes)] for r in range(len(rows))])
+ expected = [row for case in golden["cases"] for row in case["rows"]]
+ for row, ref in zip(rows, expected, strict=True):
+ assert hashlib.sha256(json.dumps(row).encode()).hexdigest() == ref["sha256"], ref["qid"]
+ return logits, expected
+
+
+def _check_config_pins_fixture(variant: str, golden: dict[str, Any]) -> None:
+ config = load_model_configs(MODELS_DIR)[f"convaiinnovations/{variant}"]
+ assert config.hf_revision == golden["revision"]
+ assert config.max_sequence_length == golden["max_len"]
+
+
[email protected]("variant", VARIANTS)
+def test_real_tokenizer_rows_match_reference(variant: str) -> None:
+ """Tokenizer loading (no cache rewrite) plus row assembly reproduce the reference ids exactly."""
+ from huggingface_hub import snapshot_download
+ from sie_server.adapters.laya.adapter import LayaAdapter
+
+ golden = _golden(variant)
+ _check_config_pins_fixture(variant, golden)
+ local = Path(snapshot_download(golden["repo"], revision=golden["revision"], allow_patterns=["tokenizer/*"]))
+ adapter = LayaAdapter(golden["repo"], revision=golden["revision"])
+ adapter._tokenizer = LayaAdapter._load_tokenizer(local / "tokenizer")
+ for section in (golden, golden["override"]):
+ questions = parse_questions(section["questions"])
+ states = [adapter._item_state(_item(case["state"])) for case in section["cases"]]
+ prefixes, rows = adapter._build_rows(
+ states, questions, max_len=section["max_len"], head_max_len=section["head_max_len"]
+ )
+ expected = [row for case in section["cases"] for row in case["rows"]]
+ for n, (row, ref) in enumerate(zip(rows, expected, strict=True)):
+ assert hashlib.sha256(json.dumps(row).encode()).hexdigest() == ref["sha256"], ref["qid"]
+ assert prefixes[n % len(prefixes)].markers == ref["markers"]
+
+
[email protected]("variant", VARIANTS)
+def test_cpu_float32_logits_match_reference(variant: str) -> None:
+ golden = _golden(variant)
+ _check_config_pins_fixture(variant, golden)
+ adapter = _adapter(variant, "cpu")
+ logits, expected = _logits(adapter, golden)
+ for mine, ref in zip(logits, expected, strict=True):
+ np.testing.assert_allclose(mine, np.array(ref["logits"], dtype=np.float32), atol=1e-3, err_msg=ref["qid"])
+
+ output = adapter.extract([_item(case["state"]) for case in golden["cases"]], output_schema=golden["questions"])
+ assert output.input_token_counts == [case["input_tokens"] for case in golden["cases"]]
+
+
[email protected]("variant", VARIANTS)
+def test_cuda_bfloat16_matches_reference(variant: str) -> None:
+ if not torch.cuda.is_available():
+ pytest.skip("requires CUDA")
+ from sie_server.core.inference import is_flash_attention_available
+
+ golden = _golden(variant)
+ adapter = _adapter(variant, "cuda:0")
+ assert adapter._model.use_flash == is_flash_attention_available("cuda:0")
+ logits, expected = _logits(adapter, golden)
+
+ calibration = adapter._calibration
+ agree, deltas = [], []
+ for mine, ref in zip(logits, expected, strict=True):
+ qtype = next(t for t, i in (("choice", 0), ("score", 1), ("noul", 2)) if i == ref["qtype"])
+ p_ref = calibrated_probs(np.array(ref["logits"], dtype=np.float32), qtype, calibration)
+ p_mine = calibrated_probs(mine, qtype, calibration)
+ agree.append(int(p_ref.argmax()) == int(p_mine.argmax()))
+ deltas.extend(np.abs(p_ref - p_mine).tolist())
+ assert np.mean(agree) >= 0.98
+ assert np.mean(deltas) <= 0.02
+ assert np.max(deltas) <= 0.08
diff --git a/packages/sie_server/tests/api/test_extract.py b/packages/sie_server/tests/api/test_extract.py
index a5fd3580f..f15447fa5 100644
--- a/packages/sie_server/tests/api/test_extract.py
+++ b/packages/sie_server/tests/api/test_extract.py
@@ -1,7 +1,7 @@
"""Tests for extract endpoint."""
import asyncio
-from typing import Any
+from typing import Any, ClassVar
from unittest.mock import AsyncMock, MagicMock
import msgpack
@@ -9,7 +9,10 @@ import msgpack_numpy as m
import pytest
from fastapi import FastAPI
from fastapi.testclient import TestClient
+from sie_server.adapters._base_adapter import BaseAdapter
+from sie_server.adapters._spec import AdapterSpec
from sie_server.adapters.base import ModelCapabilities, ModelDims
+from sie_server.api.extract import _extract_via_worker
from sie_server.api.extract import router as extract_router
from sie_server.config.model import (
EmbeddingDim,
@@ -892,3 +895,81 @@ class TestExtractCost:
]
prepared = build_extract_prepared_items(items)
assert [(p.cost, p.original_index) for p in prepared] == [(3, 0), (11, 1)]
+
+
+class _PlainExtractAdapter(BaseAdapter):
+ """An extract adapter that keeps ModelAdapter's default (no per-item cost hook)."""
+
+ spec: ClassVar[AdapterSpec] = AdapterSpec(inputs=("text",), outputs=("json",))
+
+ def load(self, device: str) -> None:
+ pass
+
+ def extract(self, items: list[Item], **kwargs: Any) -> ExtractOutput:
+ return ExtractOutput(entities=[[] for _ in items])
+
+
+class _RowCostAdapter(_PlainExtractAdapter):
+ """Reports its own per-item costs, like an adapter that runs several model rows per item."""
+
+ def __init__(self) -> None:
+ self.hook_calls: list[dict[str, Any]] = []
+
+ def extract_item_costs(
+ self,
+ items: list[Item],
+ *,
+ labels: list[str] | None = None,
+ output_schema: dict[str, Any] | None = None,
+ instruction: str | None = None,
+ options: dict[str, Any] | None = None,
+ ) -> list[int] | None:
+ self.hook_calls.append(
+ {"labels": labels, "output_schema": output_schema, "instruction": instruction, "options": options}
+ )
+ return [1000 + 10 * i for i in range(len(items))]
+
+
+def _cost_capture_registry(adapter: BaseAdapter) -> tuple[MagicMock, MagicMock]:
+ registry = MagicMock(spec=["get", "get_config", "start_worker"])
+ registry.get.return_value = adapter
+ worker = MagicMock()
+
+ async def submit_extract(*, prepared_items: list[Any], items: list[Item], **kwargs: Any) -> asyncio.Future:
+ future = asyncio.get_running_loop().create_future()
+ future.set_result(WorkerResult(output=ExtractOutput(entities=[[] for _ in items]), timing=RequestTiming()))
+ return future
+
+ worker.submit_extract = AsyncMock(side_effect=submit_extract)
+ registry.start_worker = AsyncMock(return_value=worker)
+ return registry, worker
+
+
+class TestExtractItemCostHook:
+ """``_extract_via_worker`` sizes batches from the adapter's per-item cost hook when it has one."""
+
+ @pytest.mark.asyncio
+ async def test_hook_costs_reach_the_worker(self) -> None:
+ adapter = _RowCostAdapter()
+ registry, worker = _cost_capture_registry(adapter)
+ items = [Item(text="a"), Item(text="bb"), Item(metadata={"state": {"k": "v"}})]
+ schema = {"q": {"type": "noul", "instructions": "x"}}
+
+ await _extract_via_worker(registry, "m", items, output_schema=schema, instruction=None, options={"max_len": 64})
+
+ prepared = worker.submit_extract.await_args.kwargs["prepared_items"]
+ assert [(p.cost, p.original_index) for p in prepared] == [(1000, 0), (1010, 1), (1020, 2)]
+ assert adapter.hook_calls == [
+ {"labels": None, "output_schema": schema, "instruction": None, "options": {"max_len": 64}}
+ ]
+
+ @pytest.mark.asyncio
+ async def test_default_hook_keeps_character_and_byte_costs(self) -> None:
+ registry, worker = _cost_capture_registry(_PlainExtractAdapter())
+ document = {"data": b"%PDF-1.4 fake", "format": "pdf"}
+ items = [Item(text="hello"), Item(document=document)]
+
+ await _extract_via_worker(registry, "m", items, labels=["person"])
+
+ prepared = worker.submit_extract.await_args.kwargs["prepared_items"]
+ assert [p.cost for p in prepared] == [5, len(document["data"])]
diff --git a/packages/sie_server/tests/test_all_models.py b/packages/sie_server/tests/test_all_models.py
index e8b1578f1..542a44687 100644
--- a/packages/sie_server/tests/test_all_models.py
+++ b/packages/sie_server/tests/test_all_models.py
@@ -992,6 +992,63 @@ def test_urchade_gliner_small_v2_1_extract() -> None:
_assert_extract("urchade/gliner_small-v2.1", _NER_LABELS, ["location", "organization", "person"])
+# =============================================================================
+# Extract models (text input - Laya typed decisions)
+# =============================================================================
+
+_LAYA_STATE = "Hi, I was charged twice for my subscription this month. Please refund one charge ASAP!"
+_LAYA_QUESTIONS = {
+ "intent": {
+ "type": "choice",
+ "instructions": "What does the customer want?",
+ "criteria": {"refund": "wants money back", "cancel": "wants to cancel", "technical": "reports a bug"},
+ },
+ "refund_requested": {"type": "noul", "instructions": "The customer explicitly requests a refund."},
+ "frustration": {
+ "type": "score",
+ "instructions": "How frustrated is the customer?",
+ "criteria": ["calm", "mildly annoyed", "frustrated", "furious"],
+ },
+}
+
+
+def _check_laya(adapter: Any, model_name: str, expected: tuple[str, bool, str] | None) -> None:
+ """Typed answers for one state: (intent choice, refund noul answer, top department label)."""
+ output = adapter.extract([Item(text=_LAYA_STATE)], output_schema=_LAYA_QUESTIONS)
+ assert output.data is not None
+ answers = output.data[0]
+ assert list(answers) == list(_LAYA_QUESTIONS)
+ assert sum(answers["intent"]["probabilities"].values()) == pytest.approx(1.0, abs=1e-5)
+ assert 0.0 <= answers["frustration"]["score"] <= 3.0
+ labels = adapter.extract([Item(text=_LAYA_STATE)], labels=["billing", "technical", "sales"])
+ assert labels.classifications is not None
+ actual = (answers["intent"]["choice"], answers["refund_requested"]["answer"], labels.classifications[0][0]["label"])
+ if expected is None:
+ msg = f"FILL: {model_name} laya = {actual}"
+ raise AssertionError(msg)
+ assert actual == expected
+
+
+def test_convaiinnovations_laya_extract() -> None:
+ _check_laya(_get_adapter("convaiinnovations/laya"), "convaiinnovations/laya", ("refund", True, "billing"))
+
+
+def test_convaiinnovations_laya_multilingual_extract() -> None:
+ _check_laya(
+ _get_adapter("convaiinnovations/laya-multilingual"),
+ "convaiinnovations/laya-multilingual",
+ ("refund", True, "billing"),
+ )
+
+
+def test_convaiinnovations_laya_typed_decisions_extract() -> None:
+ _check_laya(
+ _get_adapter("convaiinnovations/laya-typed-decisions"),
+ "convaiinnovations/laya-typed-decisions",
+ ("refund", True, "billing"),
+ )
+
+
# =============================================================================
# Extract models (image input - Florence-2, Donut)
# These require image input, skipping for now as they need special handling
diff --git a/packages/sie_server/tests/test_queue_executor.py b/packages/sie_server/tests/test_queue_executor.py
index f059b23fe..f9e4dcafd 100644
--- a/packages/sie_server/tests/test_queue_executor.py
+++ b/packages/sie_server/tests/test_queue_executor.py
@@ -4,11 +4,15 @@ import asyncio
import time
from contextlib import ExitStack
from pathlib import Path
+from typing import Any, ClassVar
from unittest.mock import AsyncMock, MagicMock, patch
import msgpack
import numpy as np
import pytest
+from sie_server.adapters._base_adapter import BaseAdapter
+from sie_server.adapters._spec import AdapterSpec
+from sie_server.adapters.laya.adapter import LayaAdapter
from sie_server.config.model import EmbeddingDim, EncodeTask, ModelConfig, ProfileConfig, Tasks
from sie_server.core.inference_output import ExtractOutput, ScoreOutput
from sie_server.core.loader import expand_profile_variants, load_model_config
@@ -24,6 +28,7 @@ from sie_server.ipc_types import (
ScoreBatchItem,
)
from sie_server.queue_executor import QueueExecutor, _validate_prepared_audio
+from sie_server.types.inputs import InvalidInputError, Item
_MODELS_DIR = Path(__file__).resolve().parents[1] / "models"
@@ -1512,6 +1517,117 @@ class TestProcessExtractBatch:
assert outcome.outcomes[0].error_code is None
assert outcome.outcomes[0].error is None
+ @pytest.mark.asyncio
+ async def test_adapter_cost_hook_sizes_prepared_items(self) -> None:
+ reg = _make_registry()
+ adapter = _RowCostAdapter()
+ reg.get.return_value = adapter
+ worker = _extract_worker(ExtractOutput(entities=[[]]))
+ reg.start_worker = AsyncMock(return_value=worker)
+ schema = {"q": {"type": "noul", "instructions": "x"}}
+
+ await QueueExecutor(reg).process_extract_batch(
+ ProcessExtractBatchRequest(model_id="test/model", items=[_schema_extract_item(schema)])
+ )
+
+ (request,) = worker.submit_extract_preformed_batch.await_args.args[0]
+ assert [p.cost for p in request.prepared_items] == [1000]
+ assert adapter.hook_calls == [
+ {"labels": None, "output_schema": schema, "instruction": None, "options": request.options}
+ ]
+
+ @pytest.mark.asyncio
+ async def test_default_cost_hook_keeps_character_count(self) -> None:
+ reg = _make_registry()
+ reg.get.return_value = _PlainExtractAdapter()
+ worker = _extract_worker(ExtractOutput(entities=[[]]))
+ reg.start_worker = AsyncMock(return_value=worker)
+
+ await QueueExecutor(reg).process_extract_batch(
+ ProcessExtractBatchRequest(model_id="test/model", items=[_extract_item()])
+ )
+
+ (request,) = worker.submit_extract_preformed_batch.await_args.args[0]
+ assert [p.cost for p in request.prepared_items] == [len("Alice works at Acme.")]
+
+ @pytest.mark.asyncio
+ async def test_laya_request_error_publishes_invalid_input(self) -> None:
+ """A caller mistake raised as InvalidInputError (here a Laya question error) is INVALID_INPUT, not a 500."""
+ schema = {"q": {"type": "rank", "instructions": "x"}}
+ with pytest.raises(InvalidInputError) as excinfo:
+ LayaAdapter("convaiinnovations/laya")._resolve_questions(None, schema, None)
+ outcomes = []
+ for exc in (excinfo.value, ValueError("internal fault")):
+ reg = _make_registry()
+ fut: asyncio.Future[WorkerResult] = asyncio.Future()
+ fut.set_exception(exc)
+ worker = AsyncMock()
+ worker.submit_extract_preformed_batch = AsyncMock(return_value=[fut])
+ reg.start_worker = AsyncMock(return_value=worker)
+ outcome = await QueueExecutor(reg).process_extract_batch(
+ ProcessExtractBatchRequest(model_id="test/model", items=[_schema_extract_item(schema)])
+ )
+ outcomes.append(outcome.outcomes[0])
+
+ invalid, internal = outcomes
+ assert invalid.disposition == "publish_error_and_ack"
+ assert invalid.error_code == "INVALID_INPUT"
+ assert invalid.error == "question 'q': unknown type 'rank'; use one of ['choice', 'noul', 'score']"
+ assert internal.error_code == "inference_error"
+
+
+class _PlainExtractAdapter(BaseAdapter):
+ """An extract adapter that keeps ModelAdapter's default (no per-item cost hook)."""
+
+ spec: ClassVar[AdapterSpec] = AdapterSpec(inputs=("text",), outputs=("json",))
+
+ def load(self, device: str) -> None:
+ pass
+
+ def extract(self, items: list[Item], **kwargs: Any) -> ExtractOutput:
+ return ExtractOutput(entities=[[] for _ in items])
+
+
+class _RowCostAdapter(_PlainExtractAdapter):
+ """Reports its own per-item costs, like an adapter that runs several model rows per item."""
+
+ def __init__(self) -> None:
+ self.hook_calls: list[dict[str, Any]] = []
+
+ def extract_item_costs(
+ self,
+ items: list[Item],
+ *,
+ labels: list[str] | None = None,
+ output_schema: dict[str, Any] | None = None,
+ instruction: str | None = None,
+ options: dict[str, Any] | None = None,
+ ) -> list[int] | None:
+ self.hook_calls.append(
+ {"labels": labels, "output_schema": output_schema, "instruction": instruction, "options": options}
+ )
+ return [1000 + 10 * i for i in range(len(items))]
+
+
+def _extract_worker(output: ExtractOutput) -> AsyncMock:
+ worker = AsyncMock()
+ fut: asyncio.Future[WorkerResult] = asyncio.Future()
+ fut.set_result(WorkerResult(output=output, timing=RequestTiming()))
+ worker.submit_extract_preformed_batch = AsyncMock(return_value=[fut])
+ return worker
+
+
+def _schema_extract_item(output_schema: dict[str, Any]) -> ExtractBatchItem:
+ return ExtractBatchItem(
+ work_item_id="req-1.0",
+ request_id="req-1",
+ item_index=0,
+ total_items=1,
+ timestamp=time.time(),
+ item={"text": "Alice works at Acme."},
+ output_schema=output_schema,
+ )
+
# -----------------------------------------------------------------------------
# _wrap_encode_output: queue path MUST match HTTP wire shape for every