Datasets:
Download schemas/dependency_proposal.schema.json from sungguk/visual-answerability: direct link, hf CLI and curl.
- Browser
- Download file 8.52 kB
-
https://huggingface.co/datasets/sungguk/visual-answerability/resolve/main/schemas/dependency_proposal.schema.json
- Command line
-
hf download hf://datasets/sungguk/visual-answerability/schemas/dependency_proposal.schema.json
-
curl -L -o dependency_proposal.schema.json https://huggingface.co/datasets/sungguk/visual-answerability/resolve/main/schemas/dependency_proposal.schema.json
8.52 kB
| { | |
| "$schema": "https://json-schema.org/draft/2020-12/schema", | |
| "$id": "https://explicit-learning.local/schemas/dependency_proposal.schema.json", | |
| "title": "Dependency proposal for one verified FULL problem", | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": [ | |
| "schema_version", | |
| "proposal_id", | |
| "base_id", | |
| "question_sha256", | |
| "choices_sha256", | |
| "model", | |
| "referents", | |
| "evidence_nodes", | |
| "dependency_edges", | |
| "control_candidates", | |
| "intervention_candidates" | |
| ], | |
| "properties": { | |
| "schema_version": {"const": 1}, | |
| "proposal_id": {"type": "string", "minLength": 16}, | |
| "base_id": {"$ref": "#/$defs/sha256"}, | |
| "question_sha256": {"$ref": "#/$defs/sha256"}, | |
| "choices_sha256": {"$ref": "#/$defs/sha256"}, | |
| "model": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": ["resource_name", "repo_id", "revision", "request_sha256"], | |
| "properties": { | |
| "resource_name": {"const": "qwen35_9b"}, | |
| "repo_id": {"const": "Qwen/Qwen3.5-9B"}, | |
| "revision": {"$ref": "#/$defs/gitRevision"}, | |
| "request_sha256": {"$ref": "#/$defs/sha256"}, | |
| "response_sha256": {"$ref": "#/$defs/sha256"} | |
| } | |
| }, | |
| "problem_family": { | |
| "type": "string", | |
| "enum": [ | |
| "geometry", | |
| "algebra", | |
| "chart", | |
| "table", | |
| "document", | |
| "physics", | |
| "engineering", | |
| "chemistry", | |
| "biology", | |
| "medicine", | |
| "map", | |
| "music", | |
| "professional_other", | |
| "other" | |
| ] | |
| }, | |
| "answer_operation": { | |
| "type": "string", | |
| "enum": [ | |
| "select", | |
| "read_attribute", | |
| "read_text", | |
| "relate", | |
| "order", | |
| "count", | |
| "exist", | |
| "compare", | |
| "arithmetic", | |
| "argmax", | |
| "multi_step", | |
| "other" | |
| ] | |
| }, | |
| "referents": { | |
| "type": "array", | |
| "items": {"$ref": "#/$defs/referent"}, | |
| "uniqueItems": true | |
| }, | |
| "evidence_nodes": { | |
| "type": "array", | |
| "minItems": 1, | |
| "items": {"$ref": "#/$defs/evidenceNode"} | |
| }, | |
| "dependency_edges": { | |
| "type": "array", | |
| "items": {"$ref": "#/$defs/dependencyEdge"} | |
| }, | |
| "control_candidates": { | |
| "type": "array", | |
| "items": {"$ref": "#/$defs/controlCandidate"} | |
| }, | |
| "intervention_candidates": { | |
| "type": "array", | |
| "items": {"$ref": "#/$defs/interventionCandidate"} | |
| }, | |
| "dependency_depth": { | |
| "type": ["integer", "null"], | |
| "minimum": 0 | |
| }, | |
| "uncertainties": { | |
| "type": "array", | |
| "items": {"type": "string", "minLength": 1} | |
| } | |
| }, | |
| "$defs": { | |
| "sha256": { | |
| "type": "string", | |
| "pattern": "^[a-f0-9]{64}$" | |
| }, | |
| "gitRevision": { | |
| "type": "string", | |
| "pattern": "^[a-f0-9]{40}$" | |
| }, | |
| "regionHint": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": ["image_index", "kind"], | |
| "properties": { | |
| "image_index": {"type": "integer", "minimum": 0}, | |
| "kind": { | |
| "type": "string", | |
| "enum": ["source_box", "text", "formula", "point", "box", "object", "line", "panel"] | |
| }, | |
| "text": {"type": ["string", "null"]}, | |
| "bbox_xyxy": { | |
| "type": ["array", "null"], | |
| "prefixItems": [ | |
| {"type": "number"}, | |
| {"type": "number"}, | |
| {"type": "number"}, | |
| {"type": "number"} | |
| ], | |
| "minItems": 4, | |
| "maxItems": 4 | |
| }, | |
| "point_xy": { | |
| "type": ["array", "null"], | |
| "prefixItems": [{"type": "number"}, {"type": "number"}], | |
| "minItems": 2, | |
| "maxItems": 2 | |
| }, | |
| "description": {"type": "string", "minLength": 1} | |
| } | |
| }, | |
| "referent": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": ["referent_id", "description", "question_span", "region_hints"], | |
| "properties": { | |
| "referent_id": {"type": "string", "pattern": "^ref-[A-Za-z0-9_-]+$"}, | |
| "description": {"type": "string", "minLength": 1}, | |
| "question_span": {"type": "string", "minLength": 1}, | |
| "region_hints": { | |
| "type": "array", | |
| "items": {"$ref": "#/$defs/regionHint"} | |
| } | |
| } | |
| }, | |
| "evidenceNode": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": [ | |
| "node_id", | |
| "description", | |
| "role", | |
| "necessity", | |
| "region_hints", | |
| "redundancy_group" | |
| ], | |
| "properties": { | |
| "node_id": {"type": "string", "pattern": "^ev-[A-Za-z0-9_-]+$"}, | |
| "description": {"type": "string", "minLength": 1}, | |
| "role": { | |
| "type": "string", | |
| "enum": [ | |
| "referent", | |
| "operand", | |
| "attribute", | |
| "relation", | |
| "label", | |
| "structure", | |
| "constraint", | |
| "derived_intermediate", | |
| "answer" | |
| ] | |
| }, | |
| "necessity": { | |
| "type": "string", | |
| "enum": ["necessary", "redundant", "supporting", "unknown"] | |
| }, | |
| "visible_value": {"type": ["string", "number", "boolean", "null"]}, | |
| "region_hints": { | |
| "type": "array", | |
| "items": {"$ref": "#/$defs/regionHint"} | |
| }, | |
| "redundancy_group": {"type": ["string", "null"]}, | |
| "referent_ids": { | |
| "type": "array", | |
| "items": {"type": "string", "pattern": "^ref-[A-Za-z0-9_-]+$"}, | |
| "uniqueItems": true | |
| } | |
| } | |
| }, | |
| "dependencyEdge": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": ["from_node", "to_node", "relation"], | |
| "properties": { | |
| "from_node": {"type": "string", "pattern": "^ev-[A-Za-z0-9_-]+$"}, | |
| "to_node": {"type": "string", "pattern": "^ev-[A-Za-z0-9_-]+$"}, | |
| "relation": { | |
| "type": "string", | |
| "enum": ["required_for", "combined_with", "disambiguates", "derives", "duplicates"] | |
| } | |
| } | |
| }, | |
| "executor": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": ["kind", "specification", "deterministic"], | |
| "properties": { | |
| "kind": { | |
| "type": "string", | |
| "enum": ["sympy", "table_program", "chart_program", "circuit", "source_renderer", "none"] | |
| }, | |
| "specification": {"type": ["string", "object", "null"]}, | |
| "deterministic": {"type": "boolean"} | |
| } | |
| }, | |
| "controlCandidate": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": ["candidate_id", "description", "region_hints", "why_non_required"], | |
| "properties": { | |
| "candidate_id": {"type": "string", "pattern": "^control-[A-Za-z0-9_-]+$"}, | |
| "description": {"type": "string", "minLength": 1}, | |
| "region_hints": { | |
| "type": "array", | |
| "minItems": 1, | |
| "items": {"$ref": "#/$defs/regionHint"} | |
| }, | |
| "why_non_required": {"type": "string", "minLength": 1}, | |
| "matched_to_evidence_node": { | |
| "type": ["string", "null"], | |
| "pattern": "^ev-[A-Za-z0-9_-]+$" | |
| } | |
| } | |
| }, | |
| "interventionCandidate": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": [ | |
| "candidate_id", | |
| "operator_family", | |
| "target_evidence_nodes", | |
| "target_referents", | |
| "region_hints", | |
| "rationale", | |
| "executor" | |
| ], | |
| "properties": { | |
| "candidate_id": {"type": "string", "pattern": "^int-[A-Za-z0-9_-]+$"}, | |
| "operator_family": { | |
| "type": "string", | |
| "enum": ["REDACT", "CLEAN_DELETE", "SUBSTITUTE", "CONTROL"] | |
| }, | |
| "target_evidence_nodes": { | |
| "type": "array", | |
| "items": {"type": "string", "pattern": "^ev-[A-Za-z0-9_-]+$"}, | |
| "uniqueItems": true | |
| }, | |
| "target_referents": { | |
| "type": "array", | |
| "items": {"type": "string", "pattern": "^ref-[A-Za-z0-9_-]+$"}, | |
| "uniqueItems": true | |
| }, | |
| "region_hints": { | |
| "type": "array", | |
| "minItems": 1, | |
| "items": {"$ref": "#/$defs/regionHint"} | |
| }, | |
| "substitute_value": {"type": ["string", "number", "boolean", "null"]}, | |
| "rationale": { | |
| "type": "string", | |
| "description": "Proposal rationale only. This is never a gold state label.", | |
| "minLength": 1 | |
| }, | |
| "executor": {"$ref": "#/$defs/executor"} | |
| } | |
| } | |
| } | |
| } | |