File size: 3,643 Bytes
1ad18e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://finmirror.dev/schema/case.schema.json",
  "title": "FinMirror Benchmark Case",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "case_id",
    "scenario_id",
    "pair_group_id",
    "parallel_id",
    "language",
    "question",
    "task_type",
    "documents",
    "expected",
    "relationship"
  ],
  "properties": {
    "case_id": {"type": "string", "minLength": 1},
    "scenario_id": {"type": "string", "minLength": 1},
    "pair_group_id": {"type": "string", "minLength": 1},
    "parallel_id": {"type": "string", "minLength": 1},
    "language": {"type": "string", "enum": ["en", "fr", "zh"]},
    "question": {"type": "string", "minLength": 1},
    "task_type": {"type": "string", "minLength": 1},
    "documents": {
      "type": "array",
      "minItems": 1,
      "items": {"$ref": "#/$defs/document"}
    },
    "expected": {"$ref": "#/$defs/expected"},
    "relationship": {"$ref": "#/$defs/relationship"},
    "tags": {
      "type": "array",
      "items": {"type": "string"}
    },
    "stakeholder": {"type": "string"},
    "harm_if_wrong": {"type": "string"}
  },
  "$defs": {
    "document": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "title", "content"],
      "properties": {
        "id": {"type": "string", "minLength": 1},
        "title": {"type": "string"},
        "content": {"type": "string"},
        "source_url": {"type": "string"},
        "media_type": {"type": "string"},
        "metadata": {"type": "object"}
      }
    },
    "operand": {
      "type": "object",
      "additionalProperties": false,
      "required": ["name", "value", "unit", "evidence"],
      "properties": {
        "name": {"type": "string"},
        "value": {"type": "number"},
        "unit": {"type": "string"},
        "evidence": {"type": "string"}
      }
    },
    "expected": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "answer_type",
        "value",
        "unit",
        "display",
        "tolerance",
        "required_evidence"
      ],
      "properties": {
        "answer_type": {"type": "string", "enum": ["number", "text"]},
        "value": {"type": ["number", "string", "null"]},
        "unit": {"type": "string"},
        "display": {"type": "string"},
        "tolerance": {"type": "number", "minimum": 0},
        "required_evidence": {
          "type": "array",
          "uniqueItems": true,
          "items": {"type": "string"}
        },
        "abstain": {"type": "boolean"},
        "formula": {"type": "string"},
        "formula_id": {"type": "string"},
        "operands": {
          "type": "array",
          "items": {"$ref": "#/$defs/operand"}
        },
        "missing_evidence": {
          "type": "array",
          "uniqueItems": true,
          "items": {"type": "string"}
        },
        "materiality": {"type": "number", "minimum": 0, "maximum": 1}
      }
    },
    "relationship": {
      "type": "object",
      "additionalProperties": false,
      "required": ["reference_case_id", "transform", "expectation"],
      "properties": {
        "reference_case_id": {"type": ["string", "null"]},
        "transform": {"type": "string"},
        "expectation": {
          "type": "string",
          "enum": [
            "reference",
            "should_change",
            "should_not_change",
            "should_abstain"
          ]
        },
        "changed_fields": {
          "type": "array",
          "items": {"type": "string"}
        }
      }
    }
  }
}