-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextraction-schema.json
More file actions
77 lines (77 loc) · 2.33 KB
/
Copy pathextraction-schema.json
File metadata and controls
77 lines (77 loc) · 2.33 KB
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/fredericoahb/hse-ai-insight-platform/specs/ai/extraction-schema.json",
"title": "AiExtraction",
"description": "Structured output produced by the LLM (or rules-based fallback) for a single HSE incident report.",
"type": "object",
"required": [
"classification",
"severity",
"equipment",
"location",
"injuryType",
"probableRootCause",
"summary",
"tags"
],
"additionalProperties": false,
"properties": {
"classification": {
"type": "string",
"enum": [
"Serious Incident",
"Minor Accident",
"Near Miss",
"Preventive Observation"
],
"description": "Incident category according to HSE taxonomy"
},
"severity": {
"type": "string",
"enum": ["High", "Medium", "Low"],
"description": "Assessed risk level of the incident"
},
"equipment": {
"type": "string",
"description": "Primary equipment involved (use 'Unknown' when not determinable)"
},
"location": {
"type": "string",
"description": "Physical location or area where the incident occurred (use 'Unknown' when not determinable)"
},
"injuryType": {
"type": "string",
"description": "Nature of injury or health impact (use 'None' when no injury occurred)"
},
"probableRootCause": {
"type": "string",
"description": "Most likely root cause inferred from the report narrative"
},
"summary": {
"type": "string",
"maxLength": 500,
"description": "Concise operational summary of the incident (max 500 characters)"
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"maxItems": 10,
"description": "Short classification tags for filtering and grouping (e.g. slip-trip-fall, gas-detection)"
}
},
"examples": [
{
"classification": "Near Miss",
"severity": "Medium",
"equipment": "Compressor station valve",
"location": "Compressor station C2",
"injuryType": "None",
"probableRootCause": "Loose fitting after valve inspection",
"summary": "Gas detector alarm triggered at compressor station C2. Area isolated, no injury.",
"tags": ["gas-detection", "maintenance", "near-miss"]
}
]
}