Datasets:
File size: 2,674 Bytes
e1ced61 | 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 | {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://explicit-learning.local/schemas/normalized_item.schema.json",
"title": "Normalized source item",
"type": "object",
"additionalProperties": false,
"required": [
"schema_version",
"base_id",
"source",
"source_revision",
"source_config",
"source_split",
"source_native_id",
"question",
"question_sha256",
"choices",
"choices_sha256",
"answer_raw",
"answer_canonical",
"answer_type",
"image_paths",
"image_sha256",
"provenance",
"policy"
],
"properties": {
"schema_version": {"const": 2},
"base_id": {"$ref": "#/$defs/sha256"},
"source": {"type": "string", "minLength": 1},
"source_revision": {"type": "string", "pattern": "^[a-f0-9]{40}$"},
"source_config": {"type": "string", "minLength": 1},
"source_split": {"type": "string", "minLength": 1},
"source_native_id": {"type": "string", "minLength": 1},
"subject": {"type": ["string", "null"]},
"question": {"type": "string", "minLength": 1},
"question_sha256": {"$ref": "#/$defs/sha256"},
"choices": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["key", "text"],
"properties": {
"key": {"type": "string", "minLength": 1},
"text": {"type": "string", "minLength": 1}
}
}
},
"choices_sha256": {"$ref": "#/$defs/sha256"},
"answer_raw": {"type": ["string", "number", "boolean"]},
"answer_canonical": {"type": ["string", "number", "boolean"]},
"answer_type": {
"type": "string",
"enum": ["multiple_choice", "integer", "number", "expression", "short_text", "boolean"]
},
"image_paths": {
"type": "array",
"minItems": 1,
"items": {"type": "string", "minLength": 1}
},
"image_sha256": {
"type": "array",
"minItems": 1,
"items": {"$ref": "#/$defs/sha256"}
},
"provenance": {
"type": "object",
"additionalProperties": true,
"required": ["native_row_json_sha256"],
"properties": {
"native_row_json_sha256": {"$ref": "#/$defs/sha256"},
"inferred_source": {"type": ["string", "null"]}
}
},
"policy": {
"type": "string",
"enum": [
"c1_train_candidate",
"c1_certified_eval_candidate",
"c2_train_candidate",
"untouched_evaluation_only",
"blocked"
]
},
"license_gate": {"type": ["string", "null"]}
},
"$defs": {
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
}
}
|