Datasets:
Tasks:
Question Answering
Modalities:
Text
Formats:
json
Sub-tasks:
multiple-choice-qa
Languages:
Spanish
Size:
< 1K
License:
Publish XCol v1.0: 183 Colombian assessment questions
Browse files- CITATION.cff +11 -0
- LICENSE +13 -0
- README.md +107 -0
- audit.json +272 -0
- data/test.jsonl +0 -0
- evaluation/evaluate.py +81 -0
- evaluation/prompts.jsonl +0 -0
- manifest.json +40 -0
- sources.json +162 -0
CITATION.cff
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cff-version: 1.2.0
|
| 2 |
+
message: "Cite XCol and credit the original ICFES and CSJ sources."
|
| 3 |
+
title: "XCol: Colombian Spanish Assessments"
|
| 4 |
+
type: dataset
|
| 5 |
+
authors:
|
| 6 |
+
- family-names: Driscoll
|
| 7 |
+
given-names: Peter
|
| 8 |
+
version: "1.0"
|
| 9 |
+
date-released: "2026-11-02"
|
| 10 |
+
url: "https://huggingface.co/datasets/pvd232/XCol"
|
| 11 |
+
abstract: "183 multiple-choice questions with official answer keys from Colombian assessments."
|
LICENSE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Source copyright and use terms
|
| 2 |
+
|
| 3 |
+
Copyright in assessment questions, answer options, and quoted passages remains
|
| 4 |
+
with ICFES, the Consejo Superior de la Judicatura, and the credited authors.
|
| 5 |
+
|
| 6 |
+
The ICFES booklets authorize academic and research use under their stated
|
| 7 |
+
conditions, require attribution, and restrict commercial exploitation and
|
| 8 |
+
adaptations. Each document's terms govern reuse of its content.
|
| 9 |
+
|
| 10 |
+
The official source URLs and relevant rights pages appear in sources.json.
|
| 11 |
+
Original source terms define reuse permissions.
|
| 12 |
+
|
| 13 |
+
Dataset curation and evaluation code: Peter Driscoll, 2026.
|
README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: XCol
|
| 3 |
+
language:
|
| 4 |
+
- es
|
| 5 |
+
license: other
|
| 6 |
+
license_name: icfes-csj-source-terms
|
| 7 |
+
license_link: LICENSE
|
| 8 |
+
task_categories:
|
| 9 |
+
- question-answering
|
| 10 |
+
task_ids:
|
| 11 |
+
- multiple-choice-qa
|
| 12 |
+
size_categories:
|
| 13 |
+
- n<1K
|
| 14 |
+
tags:
|
| 15 |
+
- colombia
|
| 16 |
+
- spanish
|
| 17 |
+
- benchmark
|
| 18 |
+
- multiple-choice
|
| 19 |
+
- reading-comprehension
|
| 20 |
+
- legal
|
| 21 |
+
configs:
|
| 22 |
+
- config_name: default
|
| 23 |
+
data_files:
|
| 24 |
+
- split: test
|
| 25 |
+
path: data/test.jsonl
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
# XCol
|
| 29 |
+
|
| 30 |
+
XCol evaluates reading and reasoning with **183 multiple-choice questions from official Colombian assessments**. Version 1.0 contains one fixed **TEST** set. Each question has four options and an official answer letter.
|
| 31 |
+
|
| 32 |
+
## Load
|
| 33 |
+
|
| 34 |
+
```python
|
| 35 |
+
from datasets import load_dataset
|
| 36 |
+
|
| 37 |
+
test = load_dataset("pvd232/XCol", split="test")
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
| Assessment | Questions |
|
| 41 |
+
|---|---:|
|
| 42 |
+
| Saber Pro: Lectura crítica | 24 |
|
| 43 |
+
| Saber Pro: Comunicación jurídica | 20 |
|
| 44 |
+
| Saber Pro: Investigación jurídica | 20 |
|
| 45 |
+
| Saber Pro: Gestión del conflicto | 20 |
|
| 46 |
+
| Saber Pro: Competencias ciudadanas | 24 |
|
| 47 |
+
| Saber Pro: Investigación en ciencias sociales | 21 |
|
| 48 |
+
| Saber 11: Lectura crítica | 34 |
|
| 49 |
+
| Saber TyT: Lectura crítica | 11 |
|
| 50 |
+
| Lawyer-qualification guide | 9 |
|
| 51 |
+
|
| 52 |
+
## Format
|
| 53 |
+
|
| 54 |
+
Each row in [data/test.jsonl](data/test.jsonl) contains:
|
| 55 |
+
|
| 56 |
+
| Field | Meaning |
|
| 57 |
+
|---|---|
|
| 58 |
+
| `id` | Stable question ID |
|
| 59 |
+
| `source_id`, `question_number` | Original document and question |
|
| 60 |
+
| `context_id`, `context` | Shared passage or case; standalone questions use `null` and an empty string |
|
| 61 |
+
| `question`, `options`, `answer` | Question, options A–D, and official answer letter |
|
| 62 |
+
| `skill` | Source's official *Afirmación* statement |
|
| 63 |
+
| `pages` | PDF pages for the context, question, and answer key, starting at 1 |
|
| 64 |
+
|
| 65 |
+
[sources.json](sources.json) records official URLs, publishers, publication years, and PDF SHA-256 hashes. [manifest.json](manifest.json) records file hashes and counts.
|
| 66 |
+
|
| 67 |
+
## Evaluate
|
| 68 |
+
|
| 69 |
+
Send each `prompt` in [evaluation/prompts.jsonl](evaluation/prompts.jsonl) to the model. Save predictions as JSONL:
|
| 70 |
+
|
| 71 |
+
```json
|
| 72 |
+
{"id":"sp_lc_2026_001","prediction":"A"}
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
From a downloaded copy of this repository, run:
|
| 76 |
+
|
| 77 |
+
```bash
|
| 78 |
+
python3 evaluation/evaluate.py predictions.jsonl
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
Accuracy is `100 × correct / 183`. The scorer also reports accuracy by assessment, source booklet, and skill, using each group's question count. Missing answers and invalid letters count as incorrect. Duplicate and unknown IDs raise an error. The scorer accepts lowercase letters and trims surrounding spaces.
|
| 82 |
+
|
| 83 |
+
Use the same prompts and decoding settings across models. Record the model version, settings, and training data. Reserve XCol for final TEST evaluation.
|
| 84 |
+
|
| 85 |
+
## Provenance and scope
|
| 86 |
+
|
| 87 |
+
Eight ICFES booklets supply **174 released exam questions**. The CSJ/ICFES guide supplies **nine illustrative questions**. Publication years are 2018 and 2026; original exam dates are unspecified. Extraction preserves Spanish wording and answer labels while joining wrapped lines and removing page headers and footers.
|
| 88 |
+
|
| 89 |
+
From 212 source questions, XCol excludes 28 requiring images and holds Ciudadanas Q23 for an apparent answer-key mismatch. Five reviewed questions retain their official labels. [audit.json](audit.json) records these decisions.
|
| 90 |
+
|
| 91 |
+
Coverage is formal assessment Spanish, including legal and civic reasoning. Some reading passages are translated works. Models may have encountered these public questions during pretraining.
|
| 92 |
+
|
| 93 |
+
## Rights and citation
|
| 94 |
+
|
| 95 |
+
Question and passage text retains the source holders' copyright. Reuse follows the original documents' terms; see [LICENSE](LICENSE) and [sources.json](sources.json).
|
| 96 |
+
|
| 97 |
+
```bibtex
|
| 98 |
+
@misc{driscoll2026xcol,
|
| 99 |
+
author = {Peter Driscoll},
|
| 100 |
+
title = {XCol: Colombian Spanish Assessments},
|
| 101 |
+
year = {2026},
|
| 102 |
+
version = {1.0},
|
| 103 |
+
url = {https://huggingface.co/datasets/pvd232/XCol}
|
| 104 |
+
}
|
| 105 |
+
```
|
| 106 |
+
|
| 107 |
+
Credit the original ICFES and CSJ sources when using their questions.
|
audit.json
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"source_questions": 212,
|
| 3 |
+
"included": 183,
|
| 4 |
+
"excluded": [
|
| 5 |
+
{
|
| 6 |
+
"id": "s11_lc_2026_006",
|
| 7 |
+
"source_id": "s11_lc_2026",
|
| 8 |
+
"question_number": "6",
|
| 9 |
+
"reason": "Requires visual context."
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"id": "s11_lc_2026_007",
|
| 13 |
+
"source_id": "s11_lc_2026",
|
| 14 |
+
"question_number": "7",
|
| 15 |
+
"reason": "Requires visual context."
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"id": "s11_lc_2026_008",
|
| 19 |
+
"source_id": "s11_lc_2026",
|
| 20 |
+
"question_number": "8",
|
| 21 |
+
"reason": "Requires visual context."
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"id": "s11_lc_2026_013",
|
| 25 |
+
"source_id": "s11_lc_2026",
|
| 26 |
+
"question_number": "13",
|
| 27 |
+
"reason": "Requires visual context."
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"id": "s11_lc_2026_014",
|
| 31 |
+
"source_id": "s11_lc_2026",
|
| 32 |
+
"question_number": "14",
|
| 33 |
+
"reason": "Requires visual context."
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"id": "s11_lc_2026_021",
|
| 37 |
+
"source_id": "s11_lc_2026",
|
| 38 |
+
"question_number": "21",
|
| 39 |
+
"reason": "Requires visual context."
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"id": "s11_lc_2026_025",
|
| 43 |
+
"source_id": "s11_lc_2026",
|
| 44 |
+
"question_number": "25",
|
| 45 |
+
"reason": "Requires visual context."
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"id": "s11_lc_2026_042",
|
| 49 |
+
"source_id": "s11_lc_2026",
|
| 50 |
+
"question_number": "42",
|
| 51 |
+
"reason": "Requires visual context."
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"id": "s11_lc_2026_043",
|
| 55 |
+
"source_id": "s11_lc_2026",
|
| 56 |
+
"question_number": "43",
|
| 57 |
+
"reason": "Requires visual context."
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"id": "s11_lc_2026_044",
|
| 61 |
+
"source_id": "s11_lc_2026",
|
| 62 |
+
"question_number": "44",
|
| 63 |
+
"reason": "Requires visual context."
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"id": "s11_lc_2026_045",
|
| 67 |
+
"source_id": "s11_lc_2026",
|
| 68 |
+
"question_number": "45",
|
| 69 |
+
"reason": "Requires visual context."
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"id": "s11_lc_2026_046",
|
| 73 |
+
"source_id": "s11_lc_2026",
|
| 74 |
+
"question_number": "46",
|
| 75 |
+
"reason": "Requires visual context."
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"id": "s11_lc_2026_047",
|
| 79 |
+
"source_id": "s11_lc_2026",
|
| 80 |
+
"question_number": "47",
|
| 81 |
+
"reason": "Requires visual context."
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"id": "s11_lc_2026_048",
|
| 85 |
+
"source_id": "s11_lc_2026",
|
| 86 |
+
"question_number": "48",
|
| 87 |
+
"reason": "Requires visual context."
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"id": "s11_lc_2026_049",
|
| 91 |
+
"source_id": "s11_lc_2026",
|
| 92 |
+
"question_number": "49",
|
| 93 |
+
"reason": "Requires visual context."
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"id": "tyt_lc_2026_001",
|
| 97 |
+
"source_id": "tyt_lc_2026",
|
| 98 |
+
"question_number": "1",
|
| 99 |
+
"reason": "Requires visual context."
|
| 100 |
+
},
|
| 101 |
+
{
|
| 102 |
+
"id": "tyt_lc_2026_002",
|
| 103 |
+
"source_id": "tyt_lc_2026",
|
| 104 |
+
"question_number": "2",
|
| 105 |
+
"reason": "Requires visual context."
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"id": "tyt_lc_2026_003",
|
| 109 |
+
"source_id": "tyt_lc_2026",
|
| 110 |
+
"question_number": "3",
|
| 111 |
+
"reason": "Requires visual context."
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"id": "tyt_lc_2026_004",
|
| 115 |
+
"source_id": "tyt_lc_2026",
|
| 116 |
+
"question_number": "4",
|
| 117 |
+
"reason": "Requires visual context."
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"id": "tyt_lc_2026_005",
|
| 121 |
+
"source_id": "tyt_lc_2026",
|
| 122 |
+
"question_number": "5",
|
| 123 |
+
"reason": "Requires visual context."
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"id": "tyt_lc_2026_006",
|
| 127 |
+
"source_id": "tyt_lc_2026",
|
| 128 |
+
"question_number": "6",
|
| 129 |
+
"reason": "Requires visual context."
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"id": "tyt_lc_2026_014",
|
| 133 |
+
"source_id": "tyt_lc_2026",
|
| 134 |
+
"question_number": "14",
|
| 135 |
+
"reason": "Requires visual context."
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"id": "tyt_lc_2026_015",
|
| 139 |
+
"source_id": "tyt_lc_2026",
|
| 140 |
+
"question_number": "15",
|
| 141 |
+
"reason": "Requires visual context."
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"id": "tyt_lc_2026_016",
|
| 145 |
+
"source_id": "tyt_lc_2026",
|
| 146 |
+
"question_number": "16",
|
| 147 |
+
"reason": "Requires visual context."
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"id": "tyt_lc_2026_021",
|
| 151 |
+
"source_id": "tyt_lc_2026",
|
| 152 |
+
"question_number": "21",
|
| 153 |
+
"reason": "Requires visual context."
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"id": "tyt_lc_2026_022",
|
| 157 |
+
"source_id": "tyt_lc_2026",
|
| 158 |
+
"question_number": "22",
|
| 159 |
+
"reason": "Requires visual context."
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"id": "tyt_lc_2026_023",
|
| 163 |
+
"source_id": "tyt_lc_2026",
|
| 164 |
+
"question_number": "23",
|
| 165 |
+
"reason": "Requires visual context."
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"id": "tyt_lc_2026_024",
|
| 169 |
+
"source_id": "tyt_lc_2026",
|
| 170 |
+
"question_number": "24",
|
| 171 |
+
"reason": "Requires visual context."
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"id": "sp_cc_2018_023",
|
| 175 |
+
"source_id": "sp_cc_2018",
|
| 176 |
+
"question_number": "23",
|
| 177 |
+
"official_answer": "A",
|
| 178 |
+
"review_answer": "B",
|
| 179 |
+
"pages": {
|
| 180 |
+
"question": [
|
| 181 |
+
11
|
| 182 |
+
],
|
| 183 |
+
"answer": [
|
| 184 |
+
14
|
| 185 |
+
]
|
| 186 |
+
},
|
| 187 |
+
"reason": "Held: the scenario prioritizes enrollment coverage (B); the official key selects student welfare (A). This is an apparent mismatch."
|
| 188 |
+
}
|
| 189 |
+
],
|
| 190 |
+
"retained_with_notes": [
|
| 191 |
+
{
|
| 192 |
+
"id": "sp_cj_2026_016",
|
| 193 |
+
"official_answer": "A",
|
| 194 |
+
"pages": {
|
| 195 |
+
"context": [],
|
| 196 |
+
"question": [
|
| 197 |
+
14
|
| 198 |
+
],
|
| 199 |
+
"answer": [
|
| 200 |
+
18
|
| 201 |
+
]
|
| 202 |
+
},
|
| 203 |
+
"note": "The stem combines voluntary recognition with marital paternity presumption.",
|
| 204 |
+
"decision": "Included with the official answer."
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"id": "sp_ij_2026_002",
|
| 208 |
+
"official_answer": "B",
|
| 209 |
+
"pages": {
|
| 210 |
+
"context": [],
|
| 211 |
+
"question": [
|
| 212 |
+
7
|
| 213 |
+
],
|
| 214 |
+
"answer": [
|
| 215 |
+
17
|
| 216 |
+
]
|
| 217 |
+
},
|
| 218 |
+
"note": "The stem describes Raizal communities through Indigenous Special Jurisdiction.",
|
| 219 |
+
"decision": "Included with the official answer."
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"id": "sp_ij_2026_019",
|
| 223 |
+
"official_answer": "C",
|
| 224 |
+
"pages": {
|
| 225 |
+
"context": [],
|
| 226 |
+
"question": [
|
| 227 |
+
16
|
| 228 |
+
],
|
| 229 |
+
"answer": [
|
| 230 |
+
18
|
| 231 |
+
]
|
| 232 |
+
},
|
| 233 |
+
"note": "The stem omits confidentiality arrangements and circumstances relevant to reporting crimes.",
|
| 234 |
+
"decision": "Included with the official answer."
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"id": "csj_guia_2026_comunicacion_2",
|
| 238 |
+
"official_answer": "C",
|
| 239 |
+
"pages": {
|
| 240 |
+
"context": [
|
| 241 |
+
47
|
| 242 |
+
],
|
| 243 |
+
"question": [
|
| 244 |
+
49,
|
| 245 |
+
50
|
| 246 |
+
],
|
| 247 |
+
"answer": [
|
| 248 |
+
53
|
| 249 |
+
]
|
| 250 |
+
},
|
| 251 |
+
"note": "The selected report supplies a judicial outcome absent from the case description.",
|
| 252 |
+
"decision": "Included with the official answer."
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"id": "csj_guia_2026_diagnostico_1",
|
| 256 |
+
"official_answer": "B",
|
| 257 |
+
"pages": {
|
| 258 |
+
"context": [
|
| 259 |
+
37
|
| 260 |
+
],
|
| 261 |
+
"question": [
|
| 262 |
+
38
|
| 263 |
+
],
|
| 264 |
+
"answer": [
|
| 265 |
+
53
|
| 266 |
+
]
|
| 267 |
+
},
|
| 268 |
+
"note": "The guide uses inexistencia here and nulidad in the companion question.",
|
| 269 |
+
"decision": "Included with the official answer."
|
| 270 |
+
}
|
| 271 |
+
]
|
| 272 |
+
}
|
data/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evaluation/evaluate.py
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Score XCol answer letters and report accuracy as a percentage."""
|
| 3 |
+
|
| 4 |
+
import argparse
|
| 5 |
+
from collections import defaultdict
|
| 6 |
+
import json
|
| 7 |
+
from pathlib import Path
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def read_rows(path):
|
| 11 |
+
"""Read JSON objects from a JSONL file."""
|
| 12 |
+
rows = []
|
| 13 |
+
for number, line in enumerate(path.read_text(encoding='utf-8').splitlines(), 1):
|
| 14 |
+
if line.strip():
|
| 15 |
+
row = json.loads(line)
|
| 16 |
+
if not isinstance(row, dict):
|
| 17 |
+
raise ValueError(f'{path}:{number}: expected a JSON object')
|
| 18 |
+
rows.append(row)
|
| 19 |
+
return rows
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def accuracy(results):
|
| 23 |
+
"""Count correct answers over every question in a group."""
|
| 24 |
+
return {'correct': sum(results), 'total': len(results),
|
| 25 |
+
'accuracy': round(100 * sum(results) / len(results), 4)}
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def score(questions, predictions, sources):
|
| 29 |
+
"""Match predictions by ID; count missing or invalid letters as incorrect."""
|
| 30 |
+
question_ids = {row['id'] for row in questions}
|
| 31 |
+
if len(question_ids) != len(questions) or not questions:
|
| 32 |
+
raise ValueError('Benchmark questions require unique IDs and at least one row')
|
| 33 |
+
answers = {}
|
| 34 |
+
for row in predictions:
|
| 35 |
+
row_id = row.get('id')
|
| 36 |
+
if not isinstance(row_id, str) or row_id not in question_ids:
|
| 37 |
+
raise ValueError(f'Unknown prediction ID: {row_id!r}')
|
| 38 |
+
if row_id in answers:
|
| 39 |
+
raise ValueError(f'Duplicate prediction ID: {row_id}')
|
| 40 |
+
value = row.get('prediction')
|
| 41 |
+
answers[row_id] = value.strip().upper() if isinstance(value, str) else ''
|
| 42 |
+
groups = {name: defaultdict(list) for name in ('assessment', 'source', 'skill')}
|
| 43 |
+
all_results = []
|
| 44 |
+
missing = invalid = 0
|
| 45 |
+
for question in questions:
|
| 46 |
+
row_id = question['id']
|
| 47 |
+
prediction = answers.get(row_id, '')
|
| 48 |
+
missing += row_id not in answers
|
| 49 |
+
invalid += row_id in answers and prediction not in {'A', 'B', 'C', 'D'}
|
| 50 |
+
valid = prediction in {'A', 'B', 'C', 'D'}
|
| 51 |
+
correct = valid and prediction == question['answer']
|
| 52 |
+
all_results.append(correct)
|
| 53 |
+
source_id = question['source_id']
|
| 54 |
+
groups['assessment'][sources[source_id]['assessment']].append(correct)
|
| 55 |
+
groups['source'][source_id].append(correct)
|
| 56 |
+
groups['skill'][question['skill']].append(correct)
|
| 57 |
+
return {
|
| 58 |
+
'overall': accuracy(all_results),
|
| 59 |
+
'missing_predictions': missing,
|
| 60 |
+
'invalid_predictions': invalid,
|
| 61 |
+
**{f'by_{name}': {key: accuracy(value) for key, value in sorted(group.items())}
|
| 62 |
+
for name, group in groups.items()},
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
def main():
|
| 67 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 68 |
+
parser.add_argument('predictions', type=Path, help='JSONL rows with id and prediction')
|
| 69 |
+
parser.add_argument('--data', type=Path, default=Path(__file__).resolve().parents[1] / 'data/test.jsonl')
|
| 70 |
+
parser.add_argument('--sources', type=Path, default=Path(__file__).resolve().parents[1] / 'sources.json')
|
| 71 |
+
args = parser.parse_args()
|
| 72 |
+
try:
|
| 73 |
+
sources = {s['source_id']: s for s in json.loads(args.sources.read_text(encoding='utf-8'))}
|
| 74 |
+
result = score(read_rows(args.data), read_rows(args.predictions), sources)
|
| 75 |
+
except (OSError, ValueError, KeyError, TypeError) as error:
|
| 76 |
+
parser.error(str(error))
|
| 77 |
+
print(json.dumps(result, ensure_ascii=False, indent=2))
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
if __name__ == '__main__':
|
| 81 |
+
main()
|
evaluation/prompts.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
manifest.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "XCol",
|
| 3 |
+
"version": "1.0",
|
| 4 |
+
"assembled": "2026-10-29",
|
| 5 |
+
"language": "es",
|
| 6 |
+
"country": "CO",
|
| 7 |
+
"split": "TEST",
|
| 8 |
+
"questions": 183,
|
| 9 |
+
"source_documents": 9,
|
| 10 |
+
"shared_contexts": 26,
|
| 11 |
+
"questions_by_source": {
|
| 12 |
+
"sp_lc_2026": 24,
|
| 13 |
+
"sp_cj_2026": 20,
|
| 14 |
+
"sp_ij_2026": 20,
|
| 15 |
+
"sp_gc_2026": 20,
|
| 16 |
+
"s11_lc_2026": 34,
|
| 17 |
+
"csj_guia_2026": 9,
|
| 18 |
+
"sp_cc_2018": 24,
|
| 19 |
+
"sp_ics_2026": 21,
|
| 20 |
+
"tyt_lc_2026": 11
|
| 21 |
+
},
|
| 22 |
+
"answers": {
|
| 23 |
+
"A": 39,
|
| 24 |
+
"B": 50,
|
| 25 |
+
"C": 48,
|
| 26 |
+
"D": 46
|
| 27 |
+
},
|
| 28 |
+
"files": {
|
| 29 |
+
"CITATION.cff": "a0df0b3cec7b984ca05136ec864f393254e93e8a4e5813ce2c159c62ac85e540",
|
| 30 |
+
"LICENSE": "9fb5c2957c6954fa6eac1da5c6d24bdd14d2bc4028c9774be2554499305ac4a0",
|
| 31 |
+
"README.md": "88f7cf00772174ac4990489d81db8ac50e0a98f9e8d86a1663b8562611d021a9",
|
| 32 |
+
"audit.json": "16186078963e03e6dd031cabf9279f32ede836471cb72b8d84188ca61a062770",
|
| 33 |
+
"data/test.jsonl": "8b76e698977b74ea3511429b9d68241afc863de38e715c6bf0a0cfcbe72d3a87",
|
| 34 |
+
"evaluation/evaluate.py": "60d0e83f5e51416b94543d3a53d30fc7c810f5ae8b2aae9d336dca98c8ccc49e",
|
| 35 |
+
"evaluation/prompts.jsonl": "7ed79dc80a13ca1cd3d8795eb90e2d545d4089aeb0fcf153089798d836dec953",
|
| 36 |
+
"sources.json": "f2b4847e9f164d95e30cd21c5ee71858ac71ce9684e0cdc5266fc417d062b0a3"
|
| 37 |
+
},
|
| 38 |
+
"published": "2026-11-02",
|
| 39 |
+
"repository": "https://huggingface.co/datasets/pvd232/XCol"
|
| 40 |
+
}
|
sources.json
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"source_id": "sp_lc_2026",
|
| 4 |
+
"assessment": "Saber Pro",
|
| 5 |
+
"category": "Lectura crítica",
|
| 6 |
+
"publication_year": 2026,
|
| 7 |
+
"raw_questions": 24,
|
| 8 |
+
"url": "https://www.icfes.gov.co/wp-content/uploads/2026/10/cuadernillo-lectura-critica-saber-pro-2026.pdf",
|
| 9 |
+
"publisher": "ICFES",
|
| 10 |
+
"provenance": "released_exam",
|
| 11 |
+
"sha256": "1a9beac8bc4708a821bf30fbb14787a51afe6463dd71358d9feafdaee93be458",
|
| 12 |
+
"retrieved": "2026-10-29",
|
| 13 |
+
"included_questions": 24,
|
| 14 |
+
"exam_year": null,
|
| 15 |
+
"rights_pages": [
|
| 16 |
+
3
|
| 17 |
+
],
|
| 18 |
+
"title": "Saber Pro — Lectura crítica: Cuadernillo de preguntas (2026)"
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"source_id": "sp_cj_2026",
|
| 22 |
+
"assessment": "Saber Pro",
|
| 23 |
+
"category": "Comunicación jurídica",
|
| 24 |
+
"publication_year": 2026,
|
| 25 |
+
"raw_questions": 20,
|
| 26 |
+
"url": "https://www.icfes.gov.co/wp-content/uploads/2026/03/16-feb-cuadernillo-comunicacion-juridica-saber-pro-2026.pdf",
|
| 27 |
+
"publisher": "ICFES",
|
| 28 |
+
"provenance": "released_exam",
|
| 29 |
+
"sha256": "ca323e2f2b89aa56d1c574183098b9b6dd9774d48917c68ef79b0e93f3cbdd1f",
|
| 30 |
+
"retrieved": "2026-10-29",
|
| 31 |
+
"included_questions": 20,
|
| 32 |
+
"exam_year": null,
|
| 33 |
+
"rights_pages": [
|
| 34 |
+
3
|
| 35 |
+
],
|
| 36 |
+
"title": "Saber Pro — Comunicación jurídica: Cuadernillo de preguntas (2026)"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"source_id": "sp_ij_2026",
|
| 40 |
+
"assessment": "Saber Pro",
|
| 41 |
+
"category": "Investigación jurídica",
|
| 42 |
+
"publication_year": 2026,
|
| 43 |
+
"raw_questions": 20,
|
| 44 |
+
"url": "https://www.icfes.gov.co/wp-content/uploads/2026/03/cuadernillo-investigacion-juridica-saber-pro-2026.pdf",
|
| 45 |
+
"publisher": "ICFES",
|
| 46 |
+
"provenance": "released_exam",
|
| 47 |
+
"sha256": "f6fe32fedd87d5bdc679135b2bcb4dafc1d6d99aa8dee4588cfcec83358472bd",
|
| 48 |
+
"retrieved": "2026-10-29",
|
| 49 |
+
"included_questions": 20,
|
| 50 |
+
"exam_year": null,
|
| 51 |
+
"rights_pages": [
|
| 52 |
+
3
|
| 53 |
+
],
|
| 54 |
+
"title": "Saber Pro — Investigación jurídica: Cuadernillo de preguntas (2026)"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"source_id": "sp_gc_2026",
|
| 58 |
+
"assessment": "Saber Pro",
|
| 59 |
+
"category": "Gestión del conflicto",
|
| 60 |
+
"publication_year": 2026,
|
| 61 |
+
"raw_questions": 20,
|
| 62 |
+
"url": "https://www.icfes.gov.co/wp-content/uploads/2026/03/cuadernillo-gestion-del-conflicto-saber-pro-2026-23-feb.pdf",
|
| 63 |
+
"publisher": "ICFES",
|
| 64 |
+
"provenance": "released_exam",
|
| 65 |
+
"sha256": "fb3ec2ac0c7d8756cbf629c878724b30f599519a1899e35a1e6557ee221cb336",
|
| 66 |
+
"retrieved": "2026-10-29",
|
| 67 |
+
"included_questions": 20,
|
| 68 |
+
"exam_year": null,
|
| 69 |
+
"rights_pages": [
|
| 70 |
+
3
|
| 71 |
+
],
|
| 72 |
+
"title": "Saber Pro — Gestión del conflicto: Cuadernillo de preguntas (2026)"
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"source_id": "s11_lc_2026",
|
| 76 |
+
"assessment": "Saber 11",
|
| 77 |
+
"category": "Lectura crítica",
|
| 78 |
+
"publication_year": 2026,
|
| 79 |
+
"raw_questions": 49,
|
| 80 |
+
"url": "https://www.icfes.gov.co/wp-content/uploads/2026/03/16-feb-cuadernillo-de-preguntas-lectura-critica-saber-11-2026.pdf",
|
| 81 |
+
"publisher": "ICFES",
|
| 82 |
+
"provenance": "released_exam",
|
| 83 |
+
"sha256": "fcaf7be0b06490bd071d5bf307ec2dafdf3602bf0b4a036700c01aa93ccc73ac",
|
| 84 |
+
"retrieved": "2026-10-29",
|
| 85 |
+
"included_questions": 34,
|
| 86 |
+
"exam_year": null,
|
| 87 |
+
"rights_pages": [
|
| 88 |
+
3
|
| 89 |
+
],
|
| 90 |
+
"title": "Saber 11 — Lectura crítica: Cuadernillo de preguntas (2026)"
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"source_id": "csj_guia_2026",
|
| 94 |
+
"assessment": "Abogacía",
|
| 95 |
+
"category": "Guía de orientación",
|
| 96 |
+
"publication_year": 2026,
|
| 97 |
+
"raw_questions": 9,
|
| 98 |
+
"url": "https://sirna.ramajudicial.gov.co/SiteAssets/Paginas/LEY19052018/Guia_2026.pdf",
|
| 99 |
+
"publisher": "Consejo Superior de la Judicatura / ICFES",
|
| 100 |
+
"provenance": "guide_example",
|
| 101 |
+
"sha256": "ef72e4814f16f39c6be3b868482373ccfaf4b789ffe04065fffb9e51143d90d9",
|
| 102 |
+
"retrieved": "2026-10-29",
|
| 103 |
+
"included_questions": 9,
|
| 104 |
+
"exam_year": null,
|
| 105 |
+
"title": "Guía de orientación 2026: Examen de Estado para abogados"
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"source_id": "sp_cc_2018",
|
| 109 |
+
"assessment": "Saber Pro",
|
| 110 |
+
"category": "Competencias ciudadanas",
|
| 111 |
+
"publication_year": 2018,
|
| 112 |
+
"raw_questions": 25,
|
| 113 |
+
"url": "https://www.icfes.gov.co/wp-content/uploads/2025/01/03_02_Cuadernillo_de_preguntas_competencias_ciudadanas_Saber_Pro_2018.pdf",
|
| 114 |
+
"publisher": "ICFES",
|
| 115 |
+
"provenance": "released_exam",
|
| 116 |
+
"sha256": "9f9fa81446b337a043a4e95a82563d77d3fdda4d45c6763affd5da61179e60dc",
|
| 117 |
+
"retrieved": "2026-10-29",
|
| 118 |
+
"included_questions": 24,
|
| 119 |
+
"exam_year": null,
|
| 120 |
+
"rights_pages": [
|
| 121 |
+
2,
|
| 122 |
+
3
|
| 123 |
+
],
|
| 124 |
+
"title": "Saber Pro — Competencias ciudadanas: Cuadernillo de preguntas (2018)"
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"source_id": "sp_ics_2026",
|
| 128 |
+
"assessment": "Saber Pro",
|
| 129 |
+
"category": "Investigación en ciencias sociales",
|
| 130 |
+
"publication_year": 2026,
|
| 131 |
+
"raw_questions": 21,
|
| 132 |
+
"url": "https://www.icfes.gov.co/wp-content/uploads/2026/04/24-marzo-cuadernillo-investigacion-en-ciencias-sociales-saber-pro-2026.pdf",
|
| 133 |
+
"publisher": "ICFES",
|
| 134 |
+
"provenance": "released_exam",
|
| 135 |
+
"sha256": "ef3c5d9ca0721e3c777a89b23356117d8fc71e85215d08bd77e59996aa20dbae",
|
| 136 |
+
"retrieved": "2026-10-29",
|
| 137 |
+
"included_questions": 21,
|
| 138 |
+
"exam_year": null,
|
| 139 |
+
"rights_pages": [
|
| 140 |
+
3
|
| 141 |
+
],
|
| 142 |
+
"title": "Saber Pro — Investigación en ciencias sociales: Cuadernillo de preguntas (2026)"
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"source_id": "tyt_lc_2026",
|
| 146 |
+
"assessment": "Saber TyT",
|
| 147 |
+
"category": "Lectura crítica",
|
| 148 |
+
"publication_year": 2026,
|
| 149 |
+
"raw_questions": 24,
|
| 150 |
+
"url": "https://www.icfes.gov.co/wp-content/uploads/2026/10/cuadernillo-lectura-critica-saber-tyt-2026.pdf",
|
| 151 |
+
"publisher": "ICFES",
|
| 152 |
+
"provenance": "released_exam",
|
| 153 |
+
"sha256": "df57ccc0a8168cac82a0dfa74528e930d9ebff184cb365ede0cf4242dc3e7fff",
|
| 154 |
+
"retrieved": "2026-10-29",
|
| 155 |
+
"included_questions": 11,
|
| 156 |
+
"exam_year": null,
|
| 157 |
+
"rights_pages": [
|
| 158 |
+
3
|
| 159 |
+
],
|
| 160 |
+
"title": "Saber TyT — Lectura crítica: Cuadernillo de preguntas (2026)"
|
| 161 |
+
}
|
| 162 |
+
]
|