Evaluation Data Formats¶
Version: 1.0 | Status: Active
This documentation describes the JSON schemas for all 7 evaluation types in LLARS. Use the minimal examples for a quick start and the full examples as reference.
Overview¶
| Type | function_type_id | Use case |
|---|---|---|
| Ranking | 1 | Sort items into quality buckets |
| Rating | 2 | Multi-dimensional rating (LLM evaluator) |
| Mail Rating | 3 | Rate email conversations |
| Comparison | 4 | Pairwise A/B comparison |
| Authenticity | 5 | Real/Fake classification |
| Labeling | 7 | Assign categories |
| Communication Comparison | 8 | Counselling-style A/B — picks the response the rater would "send" (same data shape as Comparison, distinct UI shell with send-animation) |
| Conversation Labeling | 9 | Label each sense unit ("span") inside a conversation — one item = one conversation = many decisions |
Quick start: minimal examples¶
Ranking (minimal)¶
{
"schema_version": "1.0",
"type": "ranking",
"items": [
{ "id": "item_1", "label": "Text 1", "content": "Erster Text zum Ranken" },
{ "id": "item_2", "label": "Text 2", "content": "Zweiter Text zum Ranken" }
],
"config": {
"mode": "simple",
"buckets": [
{ "id": "good", "label": { "de": "Gut", "en": "Good" }, "color": "#98d4bb", "order": 1 },
{ "id": "poor", "label": { "de": "Schlecht", "en": "Poor" }, "color": "#e8a087", "order": 2 }
],
"allow_ties": true,
"require_complete": true
}
}
Rating (minimal)¶
{
"schema_version": "1.0",
"type": "rating",
"items": [
{ "id": "item_1", "label": "Zu bewertender Text", "content": "Der Text, der bewertet werden soll." }
],
"config": {
"scale": { "min": 1, "max": 5, "step": 1 },
"dimensions": [
{ "id": "quality", "label": { "de": "Qualität", "en": "Quality" }, "weight": 1.0 }
],
"show_overall": false
}
}
Comparison (minimal)¶
{
"schema_version": "1.0",
"type": "comparison",
"items": [
{ "id": "item_a", "label": "Option A", "content": "Erste Option" },
{ "id": "item_b", "label": "Option B", "content": "Zweite Option" }
],
"config": {
"question": { "de": "Welche Option ist besser?", "en": "Which option is better?" },
"allow_tie": true,
"show_source": false
}
}
Labeling (minimal)¶
{
"schema_version": "1.0",
"type": "labeling",
"items": [
{ "id": "item_1", "label": "Text", "content": "Zu klassifizierender Text" }
],
"config": {
"mode": "single",
"labels": [
{ "id": "positive", "label": { "de": "Positiv", "en": "Positive" } },
{ "id": "negative", "label": { "de": "Negativ", "en": "Negative" } }
],
"allow_other": false
}
}
Base schema¶
All evaluation types follow this base structure:
interface EvaluationData {
schema_version: "1.0";
type: "ranking" | "rating" | "mail_rating" | "comparison" | "authenticity" | "labeling"
| "communication_comparison" | "conversation_labeling";
// Optional: context/reference (right side in UI)
reference?: Reference;
// Items to evaluate (left side in UI)
items: Item[];
// Type-specific configuration
config: TypeConfig;
// Optional: ground truth for supervised evaluation
ground_truth?: GroundTruth;
}
interface Reference {
type: "text" | "conversation";
label: string; // UI display name
content: string | Message[]; // Text or messages
metadata?: Record<string, any>;
}
interface Item {
id: string; // Technical ID (NOT LLM names!)
label: string; // UI display name
source?: Source;
content: string | ConversationContent;
}
interface Source {
type: "human" | "llm" | "unknown";
name?: string; // For LLM: model name
}
interface Message {
role: string; // "Klient", "Berater", "User", "Assistant"
content: string;
timestamp?: string; // ISO 8601
}
1. Ranking (function_type_id = 1)¶
Purpose: Drag & drop items into quality buckets.
UI layout:
- Left: items to rank
- Right: reference/context (optional)
Full example: simple ranking¶
{
"schema_version": "1.0",
"type": "ranking",
"reference": {
"type": "text",
"label": "Original-Artikel",
"content": "Die Teilnehmer des Weltklimagipfels haben sich auf neue ambitionierte Ziele zur Reduktion von Treibhausgasen geeinigt. Die Industrieländer verpflichten sich zu einer Senkung der Emissionen um 55% bis 2030.",
"metadata": {
"source": "Reuters",
"date": "2024-01-15"
}
},
"items": [
{
"id": "item_1",
"label": "Zusammenfassung 1",
"source": { "type": "llm", "name": "mistralai/Mistral-Medium-3.5-128B" },
"content": "Auf dem Weltklimagipfel einigten sich die Teilnehmer auf eine CO2-Reduktion von 55% bis 2030."
},
{
"id": "item_2",
"label": "Zusammenfassung 2",
"source": { "type": "llm", "name": "openai/gpt-4" },
"content": "Die Klimakonferenz beschloss neue Ziele zur Emissionsreduktion mit Fokus auf Industrieländer."
},
{
"id": "item_3",
"label": "Zusammenfassung 3",
"source": { "type": "human" },
"content": "Industrieländer einigen sich auf 55% weniger Emissionen bis 2030."
}
],
"config": {
"mode": "simple",
"buckets": [
{ "id": "good", "label": { "de": "Gut", "en": "Good" }, "color": "#98d4bb", "order": 1 },
{ "id": "moderate", "label": { "de": "Moderat", "en": "Moderate" }, "color": "#D1BC8A", "order": 2 },
{ "id": "poor", "label": { "de": "Schlecht", "en": "Poor" }, "color": "#e8a087", "order": 3 }
],
"allow_ties": true,
"require_complete": true
}
}
Multi-group ranking (tabs)¶
For parallel ranking of multiple categories:
{
"schema_version": "1.0",
"type": "ranking",
"reference": {
"type": "text",
"label": "Original-Artikel",
"content": "Der Weltklimagipfel hat historische Beschlüsse gefasst..."
},
"items": [
{
"id": "item_1",
"label": "Zusammenfassung 1",
"group": "summaries",
"source": { "type": "llm", "name": "gpt-4" },
"content": "Klimagipfel einigt sich auf 55% CO2-Reduktion."
},
{
"id": "item_2",
"label": "Zusammenfassung 2",
"group": "summaries",
"source": { "type": "llm", "name": "claude-3" },
"content": "Neue Klimaziele für Industrieländer beschlossen."
}
],
"config": {
"mode": "multi_group",
"groups": [
{
"id": "summaries",
"label": { "de": "Zusammenfassungen", "en": "Summaries" },
"buckets": [
{ "id": "accurate", "label": { "de": "Präzise", "en": "Accurate" }, "color": "#98d4bb", "order": 1 },
{ "id": "acceptable", "label": { "de": "Akzeptabel", "en": "Acceptable" }, "color": "#D1BC8A", "order": 2 },
{ "id": "inaccurate", "label": { "de": "Ungenau", "en": "Inaccurate" }, "color": "#e8a087", "order": 3 }
],
"allow_ties": true
},
{
"id": "comments",
"label": { "de": "Kommentare", "en": "Comments" },
"buckets": [
{ "id": "insightful", "label": { "de": "Einsichtsreich", "en": "Insightful" }, "color": "#88c4c8", "order": 1 },
{ "id": "balanced", "label": { "de": "Ausgewogen", "en": "Balanced" }, "color": "#b0ca97", "order": 2 },
{ "id": "biased", "label": { "de": "Einseitig", "en": "Biased" }, "color": "#e8a087", "order": 3 }
],
"allow_ties": true
}
],
"require_complete": true
}
}
2. Rating (function_type_id = 2)¶
Purpose: Multi-dimensional rating on a Likert scale (LLM evaluator metrics).
UI layout:
- Left: dimensions with Likert scales
- Right: text/context to rate
Full example: SummEval style¶
{
"schema_version": "1.0",
"type": "rating",
"reference": {
"type": "text",
"label": "Quelldokument",
"content": "Ein führendes Technologieunternehmen hat heute einen bedeutenden Fortschritt im Bereich der künstlichen Intelligenz vorgestellt. Der neue Algorithmus kann komplexe wissenschaftliche Probleme in Sekunden lösen, für die menschliche Forscher Wochen benötigen würden.",
"metadata": { "source": "TechNews", "date": "2024-01-20" }
},
"items": [
{
"id": "item_1",
"label": "Generierte Zusammenfassung",
"source": { "type": "llm", "name": "mistralai/Mistral-Medium-3.5-128B" },
"content": "Ein Tech-Konzern stellte eine KI vor, die wissenschaftliche Probleme lösen kann."
}
],
"config": {
"scale": {
"min": 1,
"max": 5,
"step": 1,
"labels": {
"1": { "de": "Sehr schlecht", "en": "Very poor" },
"2": { "de": "Schlecht", "en": "Poor" },
"3": { "de": "Akzeptabel", "en": "Acceptable" },
"4": { "de": "Gut", "en": "Good" },
"5": { "de": "Sehr gut", "en": "Very good" }
}
},
"dimensions": [
{
"id": "coherence",
"label": { "de": "Kohärenz", "en": "Coherence" },
"description": { "de": "Logischer Aufbau und Zusammenhang", "en": "Logical structure and connection" },
"weight": 0.25
},
{
"id": "fluency",
"label": { "de": "Flüssigkeit", "en": "Fluency" },
"description": { "de": "Grammatik und Lesbarkeit", "en": "Grammar and readability" },
"weight": 0.25
},
{
"id": "relevance",
"label": { "de": "Relevanz", "en": "Relevance" },
"description": { "de": "Wichtige Informationen erfasst", "en": "Important information captured" },
"weight": 0.25
},
{
"id": "consistency",
"label": { "de": "Konsistenz", "en": "Consistency" },
"description": { "de": "Faktentreue zum Original", "en": "Factual accuracy to source" },
"weight": 0.25
}
],
"show_overall": true
}
}
Rating a counseling response¶
{
"schema_version": "1.0",
"type": "rating",
"reference": {
"type": "conversation",
"label": "Beratungskontext",
"content": [
{
"role": "Klient",
"content": "Ich fühle mich überfordert bei der Arbeit.",
"timestamp": "2024-01-15T09:00:00Z"
},
{
"role": "Berater",
"content": "Das tut mir leid. Seit wann haben Sie diese Gefühle?",
"timestamp": "2024-01-15T09:05:00Z"
}
]
},
"items": [
{
"id": "item_1",
"label": "Nächste Beraterantwort",
"source": { "type": "llm", "name": "openai/gpt-4" },
"content": "Es klingt, als ob Sie unter großem Druck stehen. Können Sie mir mehr darüber erzählen?"
}
],
"config": {
"scale": { "min": 1, "max": 5, "step": 1 },
"dimensions": [
{ "id": "empathy", "label": { "de": "Empathie", "en": "Empathy" }, "weight": 0.3 },
{ "id": "helpfulness", "label": { "de": "Hilfsbereitschaft", "en": "Helpfulness" }, "weight": 0.3 },
{ "id": "professionalism", "label": { "de": "Professionalität", "en": "Professionalism" }, "weight": 0.2 },
{ "id": "clarity", "label": { "de": "Klarheit", "en": "Clarity" }, "weight": 0.2 }
],
"show_overall": true
}
}
3. Mail Rating (function_type_id = 3)¶
Purpose: Rate an entire email conversation (LLARS-specific).
Full example¶
{
"schema_version": "1.0",
"type": "mail_rating",
"reference": null,
"items": [
{
"id": "item_1",
"label": "E-Mail-Verlauf #4521",
"source": { "type": "human" },
"content": {
"type": "conversation",
"messages": [
{
"role": "Klient",
"content": "Sehr geehrte Damen und Herren, ich habe eine Frage zu meinem Mietvertrag. Der Vermieter verlangt eine Nachzahlung von 500€.",
"timestamp": "2024-01-10T09:00:00Z"
},
{
"role": "Berater",
"content": "Vielen Dank für Ihre Anfrage. Haben Sie die Nebenkostenabrechnung bereits geprüft? Oft finden sich dort Fehler.",
"timestamp": "2024-01-10T14:30:00Z"
},
{
"role": "Klient",
"content": "Danke für die Antwort. Ich werde die Abrechnung nochmal genau prüfen.",
"timestamp": "2024-01-10T15:00:00Z"
}
]
}
}
],
"config": {
"scale": { "min": 1, "max": 5, "step": 1 },
"dimensions": [
{ "id": "response_quality", "label": { "de": "Antwortqualität", "en": "Response Quality" }, "weight": 0.3 },
{ "id": "solution_orientation", "label": { "de": "Lösungsorientierung", "en": "Solution Orientation" }, "weight": 0.3 },
{ "id": "communication", "label": { "de": "Kommunikation", "en": "Communication" }, "weight": 0.2 },
{ "id": "timeliness", "label": { "de": "Zeitnähe", "en": "Timeliness" }, "weight": 0.2 }
],
"focus_role": "Berater"
}
}
4. Comparison (function_type_id = 4)¶
Purpose: Pairwise A/B comparison (which is better?).
UI layout:
- Left: option A
- Right: option B
- Bottom: choice buttons
Full example¶
{
"schema_version": "1.0",
"type": "comparison",
"reference": {
"type": "text",
"label": "Originaltext (Englisch)",
"content": "The quick brown fox jumps over the lazy dog."
},
"items": [
{
"id": "item_a",
"label": "Übersetzung A",
"source": { "type": "llm", "name": "deepl/translator" },
"content": "Der schnelle braune Fuchs springt über den faulen Hund."
},
{
"id": "item_b",
"label": "Übersetzung B",
"source": { "type": "llm", "name": "openai/gpt-4" },
"content": "Der flinke braune Fuchs springt über den trägen Hund."
}
],
"config": {
"question": {
"de": "Welche Übersetzung ist natürlicher und genauer?",
"en": "Which translation is more natural and accurate?"
},
"criteria": ["Natürlichkeit", "Genauigkeit", "Stil"],
"allow_tie": true,
"show_source": false
}
}
Arena mode: with "randomize_order": true every rater sees A and B in an own, fixed order, the vote stores the shown order, and the analysis shows a leaderboard (Bradley-Terry on the Elo scale). A candidate (features[]) may then also be a whole conversation. Details: API v1 scenarios.
8. Communication Comparison (function_type_id = 8)¶
Purpose: A specialization of Comparison (type 4) for counselling contexts — the rater picks which response (A/B) they would "send".
Data format: identical to Comparison (type: "comparison", same items/reference/config structure). The only difference is the function_type_id (8) and the UI: the choice is framed as "send response" with a fly-out animation, an optional response prompt and a rater note.
Because the data format matches Comparison, the example in section 4 applies — just set the scenario's
function_type_idto8.
5. Authenticity (function_type_id = 5)¶
Purpose: Binary real/fake classification (detect AI-generated content).
Full example¶
{
"schema_version": "1.0",
"type": "authenticity",
"reference": {
"type": "text",
"label": "Bewertungskriterien",
"content": "Bewerten Sie, ob dieser Text von einem Menschen oder einer KI geschrieben wurde."
},
"items": [
{
"id": "item_1",
"label": "Nachricht",
"content": "Guten Tag, ich möchte wissen, wie ich mein Konto kündigen kann."
}
],
"config": {
"options": [
{ "id": "human", "label": { "de": "Mensch", "en": "Human" } },
{ "id": "ai", "label": { "de": "KI", "en": "AI" } }
],
"show_confidence": true
}
}
7. Labeling (function_type_id = 7)¶
Purpose: Assign categories (single or multi-label).
Single-label example¶
{
"schema_version": "1.0",
"type": "labeling",
"items": [
{
"id": "item_1",
"label": "Ticket",
"content": "Mein Internet ist seit gestern ausgefallen."
}
],
"config": {
"mode": "single",
"labels": [
{ "id": "technical", "label": { "de": "Technisches Problem", "en": "Technical issue" } },
{ "id": "billing", "label": { "de": "Abrechnung", "en": "Billing" } },
{ "id": "general", "label": { "de": "Allgemein", "en": "General" } }
],
"allow_other": false
},
"ground_truth": {
"value": "technical"
}
}
Multi-label example¶
{
"schema_version": "1.0",
"type": "labeling",
"items": [
{
"id": "item_1",
"label": "Anfrage",
"content": "Ich habe eine Frage zu meinem Mietvertrag und zu Reparaturen in meiner Wohnung."
}
],
"config": {
"mode": "multi",
"labels": [
{ "id": "legal", "label": { "de": "Rechtliche Frage", "en": "Legal question" } },
{ "id": "financial", "label": { "de": "Finanzielle Beratung", "en": "Financial advice" } },
{ "id": "conflict", "label": { "de": "Konfliktlösung", "en": "Conflict resolution" } },
{ "id": "housing", "label": { "de": "Wohnungsfragen", "en": "Housing issues" } },
{ "id": "maintenance", "label": { "de": "Instandhaltung", "en": "Maintenance" } }
],
"allow_other": true,
"min_labels": 1,
"max_labels": 3
},
"ground_truth": {
"value": ["legal", "housing", "maintenance"]
}
}
9. Conversation Labeling (function_type_id = 9)¶
Purpose: label every sense unit ("span") inside a conversation individually.
The difference to type 7 is the unit of analysis. In classic labeling one item is one decision; here one item is a whole conversation and holds many decisions — roughly 92 per conversation in the VRM study. That runs through everything: IRR is computed over span cells, time-on-task is measured per span, and a conversation only counts as done once every span is decided.
Segmentation is input, not a task. Spans arrive finished from the import; raters do not draw them. A wrong boundary is reported through a dedicated label card. Only as a deliberate exception can a span be cut with the quiet "split" affordance below it (see below).
Example¶
{
"schema_version": "1.0",
"type": "conversation_labeling",
"items": [
{
"id": "item_1",
"label": "Counselling thread A",
"source": { "type": "human" },
"content": {
"type": "conversation_labeling",
"messages": [
{
"role": "Client",
"content": "Our son is 12 and has been irritable for weeks.",
"labelable": false
},
{
"role": "Counsellor",
"message_id": 2,
"labelable": true,
"content": "Thank you for your message. Did you notice a trigger?",
"spans": [
{ "span_id": "gemco_A/1/m2/s001", "start": 0, "end": 29 },
{ "span_id": "gemco_A/1/m2/s002", "start": 30, "end": 53 }
]
}
]
}
}
],
"config": {
"labels": [
{ "id": "D", "label": { "de": "Disclosure", "en": "Disclosure" },
"description": { "de": "Offenbart eigene Gedanken, Gefuehle oder Absichten.",
"en": "Reveals the speaker's own thoughts, feelings or intentions." } },
{ "id": "K", "label": { "de": "Acknowledgement", "en": "Acknowledgement" },
"description": { "de": "Signalisiert blossen Empfang - Grussformeln, Anrede.",
"en": "Conveys mere receipt - salutations, terms of address." } },
{ "id": "FLAG", "label": { "de": "Span-Grenze falsch", "en": "Wrong span boundary" } }
],
"context_window": 3,
"future_spans": "dimmed",
"no_future_messages": true
}
}
Span¶
| Field | Required | Meaning |
|---|---|---|
span_id |
yes | Stable string from the import (max 64 chars), not a running DB id. This is what makes a re-import idempotent and lets exports from two points in time be joined. |
start / end |
yes | Character offsets into the message content. They are the truth — the text is stored once and spans only reference it (across 8,307 spans that is the difference between ~1 MB and ~100 MB). The offsets count Unicode code points like a Python str, not UTF-16 units like JavaScript's String.length: in Hut ab 😊! Wie geht es weiter? the second sentence sits at start: 10, end: 29, because the emoji counts as one character (UTF-16 would count two). |
text |
no | Redundant convenience for debugging. Validated against the offsets; content[start:end] wins in case of doubt. |
labelable: false means "context only" — such messages carry no spans and
produce no decisions.
The import rejects: duplicate span_id within an item, spans on non-labelable
messages, offsets beyond the message text, end <= start, and items with no
span at all.
Visibility¶
| Field | Default | Effect |
|---|---|---|
context_window |
3 |
How many preceding messages stay fully visible; older ones collapse. |
future_spans |
"dimmed" |
How not-yet-reached spans of the same message are rendered. |
no_future_messages |
true |
Later messages stay hidden — raters should not know how the conversation ends. |
This visibility is identical for human and co-pilot: the server-built
{context} in the prompt follows the same fields. Otherwise the two would decide
on different information and would not be comparable.
Export¶
Each row is one span decision. In addition to the shared columns:
| Column | Meaning |
|---|---|
span_id |
Join key back to the imported segmentation |
message_id |
Message the span belongs to |
span_index |
Position within the message |
The three columns sit at the end of the column list so consumers that index by position keep working. For every other type they stay empty.
Splitting a span¶
When a span plainly carries two speech acts it can be cut at a character
boundary through a deliberately understated link below it
(POST /api/evaluation/session/<sid>/items/<iid>/spans/split). Three rules keep
the data honest:
- The cut must fall strictly inside — at the edge it would create a zero-length unit.
- New ids are derived (
x→x+a/x+b), not renumbered. An older export still joins, and untouched spans keep their ids. - The vote on the old span is deleted for every rater, along with its co-pilot log row and timing. A decision about the whole span is not a decision about either half, and those measurements describe a unit that no longer exists.
Hierarchical labels¶
Since T-37 (07 Oct 2026) a conversation-labeling scenario can use a label tree, for example the OnCoCo category system. Annotators click through it level by level down to a leaf. If they stop on an intermediate level, the deepest node they chose is their label (partial depth). The OnCoCo paper has neither partial depth nor a second choice; both are LLARS extensions and can be switched off.
labels stays a flat list, and every node is a LabelOption of its own.
The tree comes only from additional, optional fields. Without them a label set
behaves exactly as before, and every existing reader (co-pilot, export, IRR,
label buttons) keeps working.
LabelOption field |
Meaning |
|---|---|
parent |
Id of the parent node or a root from hierarchy.root_by_role (e.g. "CO"). Roots are not labels. |
role |
counselor, client or any — which speaker role may pick the node |
level |
Depth in the tree, 1 = directly below the root |
leaf |
true = leaf, no children |
code |
Original scheme code, because the node id is the compact path without * (CO-IF-HP-ITFE ↔ CO-IF-HP-*-ITFE-*) |
paper |
false = not part of the published scheme (OnCoCo: the model labels PI and ST) |
anchors_source |
Where the anchor examples come from (source scenarios, number of available items, paper table) |
The hierarchy block of the config sets the rules:
| Field | Default | Meaning |
|---|---|---|
enabled |
true |
Tree active; false = flat labels |
scheme |
— | Identifier, e.g. "oncoco-1.0" |
separator |
"-" |
Separator of the path ids. The logic follows the parent pointers, never string prefixes, because OnCoCo segment codes are not unique (IF = impact factors and future forecast). |
partial_allowed |
true |
May an intermediate node be saved? |
min_depth |
1 |
Minimum depth of a saved intermediate node. A leaf is always allowed. |
advance_on |
"leaf" |
leaf: a leaf click moves on to the next span; confirm: only after "Apply" |
role_by_speaker |
{} |
Message.sender → role, fallback for span records without speaker_role (case-insensitive) |
root_by_role |
{} |
Role → root id, e.g. {"counselor": "CO", "client": "CL"} |
{
"mode": "single",
"second_choice": true,
"labels": [
{ "id": "CO-IF", "parent": "CO", "role": "counselor", "level": 1, "leaf": false,
"label": { "de": "Wirkfaktoren", "en": "Impact factors" }, "color": "#b0ca97" },
{ "id": "CO-IF-HP", "parent": "CO-IF", "role": "counselor", "level": 2, "leaf": false,
"label": { "de": "Hilfe, Problemlösung", "en": "Help, Problem Solving" } },
{ "id": "CO-IF-HP-IW", "parent": "CO-IF-HP", "role": "counselor", "level": 3, "leaf": true,
"code": "CO-IF-HP-*-IW-*", "paper": true,
"label": { "de": "Warnung", "en": "Warning" },
"description": { "de": "Weist auf Risiken oder Gefahren hin.", "en": "Points out risks or dangers." },
"anchors": { "de": ["…"], "en": [] },
"anchors_source": { "scenario_ids": [758, 791], "n_available": 12 } }
],
"hierarchy": {
"enabled": true, "scheme": "oncoco-1.0", "separator": "-",
"partial_allowed": true, "min_depth": 1, "advance_on": "leaf",
"role_by_speaker": { "Beratende": "counselor", "Ratsuchende": "client" },
"root_by_role": { "counselor": "CO", "client": "CL" }
}
}
On create the schema checks the tree: unique ids, every parent exists (as a
label or a root), no cycles, level and leaf match the parent chain, role
matches the root, and min_depth is reachable.
On save of a decision the server checks, when a tree is active, that the
label is part of the tree, fits the span's speaker role and is a leaf or an
allowed partial depth. A second choice has to meet the same rules and must be
neither an ancestor nor a descendant of the label. Violations are answered
with 400 and nothing is stored. A span's role is stored as speaker_role in
the span record; if it is missing, role_by_speaker[Message.sender] applies.
Refining along the same path (saved CO-IF, later CO-IF-HP-IW) writes the
event refine instead of label_change. A drill-down that was finished later
therefore does not count as a change of mind in n_label_changes. Moving to
another branch or back up stays a label_change.
Export: in addition to the shared columns, these come last
| Column | Meaning |
|---|---|
label_code |
Original code of the chosen node (leaves only) |
label_depth |
Depth of the chosen node |
label_is_leaf |
true when the full depth was reached |
label_l1 … label_l5 |
Path of the chosen node, level by level |
speaker_role |
Role of the span (counselor / client) |
vote_value_str stays the chosen node. The name label_path remains reserved
for the revision path.
IRR: with an active tree the standard metrics compare at full depth.
There a partial depth is a missing value and never a category of its own;
otherwise CO-IF against a leaf below it would read as plain disagreement.
label_hierarchy.hierarchy_agreement(scenario_id, depth=…) computes, from the
same votes, the agreement at a chosen depth, on level 1, on the analysis
level (for OnCoCo the nine categories per role used by GEMCo: FA, Mod, AC, AO,
Mot, RA, HP, FC, O) and per role. Cutting works like this: a deeper node is cut
to its ancestor, a shallower leaf stays complete, a shallower intermediate node
is missing.
OnCoCo 1.0 as a tree¶
services/oncoco/oncoco_tree.py builds the tree from oncoco_labels.py: 90
nodes, 22 of them intermediate and 68 leaves. 66 leaves come from the paper (38
counselor, 28 client). CO-O-PI and CO-O-ST exist only in the local 68-class
model; they carry paper: false. Leaf depths: 3 on level 1, 13 on level 2, 35
on level 3, 12 on level 4, 5 on level 5.
- Node ids are compact paths without
*; the only five-segment codeCO-IF-HP-*-IEAis completed toCO-IF-HP-*-IEA-*in thecodefield. - Parents follow the code. Paper and dataset card place
CO-IF-Mot-*-RS-*under "Resource activation" andCO-IF-HP-*-IEAunder "Personal perspective"; the domain experts decide about this difference. - Names come from
oncoco_labels.py, descriptions are mirrored from the frontend locales. Anchor examples come from OnCoCo Tab. 2, the dataset card and GEMCo Tab. 17, plus LLARS scenarios with gold labels. GET /api/oncoco/labels?tree=1returns the tree with counts for the tree overview.
An OnCoCo scenario is created with POST /api/v1/scenarios/<id>/derive from an
existing conversation-labeling scenario (see the
API guide "v1 Scenario API").
Schema reference¶
Ranking config¶
| Field | Type | Description |
|---|---|---|
mode |
"simple" | "multi_group" |
Simple or with tabs |
buckets |
Bucket[] |
Bucket definitions |
allow_ties |
boolean |
Allow multiple items per bucket? |
require_complete |
boolean |
Require all items to be assigned? |
groups |
RankingGroup[] |
Only for multi_group |
Rating config¶
| Field | Type | Description |
|---|---|---|
scale.min |
number |
Minimum (usually 1) |
scale.max |
number |
Maximum (usually 5) |
scale.step |
number |
Step size (usually 1) |
scale.labels |
Record<number, I18nLabel> |
Scale labels |
dimensions |
Dimension[] |
Rating dimensions |
show_overall |
boolean |
Show overall score? |
Dimension¶
| Field | Type | Description |
|---|---|---|
id |
string |
Technical ID |
label |
I18nLabel |
Display name |
description |
I18nLabel |
Tooltip/help text |
weight |
number |
Weight (0-1, sum = 1) |
Files¶
Schemas are defined in: