File size: 1,013 Bytes
72954bd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# XL-DocBench Code

All runnable code is kept in this directory. The release smoke test and
evaluator require only Python's standard library.

## One-command smoke test

Run from the release root:

```bash
uv run --no-project python code/quickstart.py
```

This validates the data files, IDs, document references, evidence metadata,
per-question score coverage, manifest counts, and a five-question evaluation
fixture.

## Files

- `quickstart.py`: zero-dependency release validation and evaluation smoke test.
- `evaluate.py`: primary Accuracy, Token F1, and ANLS evaluator.
- `examples/load_data.py`: minimal standard-library data loader.
- `examples/gold_sample.jsonl`: five-record evaluation fixture.
- `examples/predictions_sample.jsonl`: perfect predictions for that fixture.

## Examples

```bash
uv run --no-project python code/examples/load_data.py

uv run --no-project python code/evaluate.py \
  --gold-files code/examples/gold_sample.jsonl \
  --predictions code/examples/predictions_sample.jsonl
```