A self-hosted Rust + React workspace for SQuAD v1/v2 datasets: mark answer spans, review agreement and optionally request model suggestions. Rewritten from the original Flask application in 2026, keeping annotation, review and export in one workspace.
What it's good for
For teams building extractive QA or RAG evaluation sets: answers are stored as exact character offsets, a model can draft the first pass, and disagreements show up in review rather than in the trained model's answers.
Diagrams
Main paths only. The edge cases stayed in the code.
Browsers count positions in UTF-16. Emoji had opinions about that.
Point at a box to see what it connects to.
Import passages or SQuAD filesOld mrc.label files too
Stored offset still matches?
Use the nearest same textNone found: skipped, with warning
Ask a model first?
Model drafts questions and answersClaude or OpenAI-compatible API
Answer copied word for word?
Drop it and say whyParaphrases don't count
Accept, edit or select answersOthers' answers hidden until done
Reviewer checks agreementExact match and F1
Approved?
Export the datasetSQuAD, JSONL, RAG or chat
Import passages or SQuAD files(Old mrc.label files too) → Stored offset still matches?
Stored offset still matches? → yes: Ask a model first? → no: Use the nearest same text
Use the nearest same text(None found: skipped, with warning) → Ask a model first?
Ask a model first? → yes: Model drafts questions and answers → no: Accept, edit or select answers
Model drafts questions and answers(Claude or OpenAI-compatible API) → Answer copied word for word?
Answer copied word for word? → yes: Accept, edit or select answers → no: Drop it and say why
Drop it and say why(Paraphrases don't count)
Accept, edit or select answers(Others' answers hidden until done) → Reviewer checks agreement
Reviewer checks agreement(Exact match and F1) → Approved?
Approved? → approved: Export the dataset → returned: Accept, edit or select answers
Export the dataset(SQuAD, JSONL, RAG or chat)
Features
Answer-span annotation and SQuAD v1/v2 import/export
Multi-person review and agreement scores
Optional model suggestions and built-in login
Single-image Docker deployment
Results
2026 Rust and React rewrite with import, annotation, review and export
Annotating: select a span in the passage; a small model's suggestions wait on the right
What I learned
Small local models write shaky questions, sometimes in the wrong language or with off-topic answers, which is why every suggestion needs a human click.
Browsers count UTF-16 units while SQuAD and Python count characters; the old version stored browser offsets, which an emoji throws off.
The old front end could submit without selecting an answer, stored as 0; those rows now import as questions still waiting for one.
How it fits together
Simplified on purpose. The real thing has more arrows and at least one config file nobody understands.
Screenshots
Review: answers of 2004 and 2004 年 agree at 67% F1, one character apart
Project overview: annotation and review progress, agreement F1, per-annotator counts
Optional login: admins add accounts, pick roles, reset passwords or disable them
Related projects
Spin-off · Leopard Mobile
Web apps & extensionsLanguage & sentiment11 stars on GitHub
A Rust + React labeling platform with configurable schemas, multi-annotator agreement and optional model-assisted pre-labeling. One Docker image to self-host.