Datasets:
File size: 11,986 Bytes
8693a67 43a501a 8693a67 | 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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | ---
license: cc-by-4.0
pretty_name: Craft Quantities open data and CraftQuantities-Bench
language:
- en
task_categories:
- question-answering
- table-question-answering
tags:
- construction
- quantity-takeoff
- estimating
- building
- engineering
- units
- unit-conversion
- calculators
- benchmark
- numerical-reasoning
- tool-use
size_categories:
- 10K<n<100K
configs:
- config_name: bench
default: true
data_files:
- split: test
path: data/bench.parquet
- config_name: calculators
data_files:
- split: train
path: data/calculators.parquet
- config_name: calculator_inputs
data_files:
- split: train
path: data/calculator_inputs.parquet
- config_name: test_vectors
data_files:
- split: train
path: data/test_vectors.parquet
- config_name: formulas
data_files:
- split: train
path: data/formulas.parquet
- config_name: units
data_files:
- split: train
path: data/units.parquet
- config_name: reference_tables
data_files:
- split: train
path: data/reference_tables.parquet
- config_name: reference_rows
data_files:
- split: train
path: data/reference_rows.parquet
- config_name: reference_cells
data_files:
- split: train
path: data/reference_cells.parquet
- config_name: glossary
data_files:
- split: train
path: data/glossary.parquet
- config_name: standards_codes
data_files:
- split: train
path: data/standards_codes.parquet
- config_name: standards_bodies
data_files:
- split: train
path: data/standards_bodies.parquet
- config_name: standards_citations
data_files:
- split: train
path: data/standards_citations.parquet
- config_name: corrections
data_files:
- split: train
path: data/corrections.parquet
---
# Craft Quantities open data and CraftQuantities-Bench
**Version 1.9.0, 2026-11-30.** This is the machine-readable data behind [craftquantities.com](https://craftquantities.com), a free site of 1,257 construction quantity calculators. It covers the calculator definitions, their inputs and units, the 3,820 published test vectors, the formula library, exact unit factors, cited reference tables, a cross-market glossary, the codes-and-standards register and the corrections ledger. It also includes **CraftQuantities-Bench**, a 3,820-item benchmark built from the test vectors.
Everything here comes from files the site already publishes under **CC BY 4.0**, [/api/v1/](https://craftquantities.com/api/) and [/formulas/](https://craftquantities.com/formulas/). The values are copied verbatim and only reshaped into tables.
- Site: https://craftquantities.com
- API documentation: https://craftquantities.com/api/
- Validation corpus and how to reproduce it: https://craftquantities.com/validation/
- Calculation engine (REST and MCP): https://api.craftquantities.com/mcp (MCP), https://api.craftquantities.com/v1/calculate/{slug} (REST)
- DOI (Zenodo): [10.5281/zenodo.24679327](https://doi.org/10.5281/zenodo.24679327)
## What is in it
| Config | Rows | One row is |
|---|---:|---|
| `bench` | 3,820 | a benchmark item: a natural-language question, the inputs, the expected value with its unit and tolerance |
| `calculators` | 1,257 | a calculator: title, category, description, page, version, last verified date, sources |
| `calculator_inputs` | 5,018 | one input of one calculator: type, dimension, base unit, default, bounds, select options |
| `test_vectors` | 3,820 | a published test vector: inputs (base units), expected value, unit, tolerance, basis, worked steps |
| `formulas` | 28 | an equation from the formula library, with its symbols, bindings to calculators and its pinned vectors |
| `units` | 137 | a unit and its exact factor (and offset, for temperature) to its dimension's base unit |
| `reference_tables` | 50 | a reference table: title, summary, what it excludes, its columns |
| `reference_rows` | 1,773 | a table row: its cells (JSON), **its own source**, and the calculators that compute with it |
| `reference_cells` | 16,920 | the same rows, one cell per line: value, or low/typical/high band, or text, with unit and the row's source |
| `glossary` | 153 | a construction concept with its names in US, CA, UK and AU usage and how exact each name is |
| `standards_codes` | 22 | a code family (IRC, NEC, Eurocode...): publisher, scope, region, editions |
| `standards_bodies` | 18 | a standards publisher |
| `standards_citations` | 123 | one calculator citing one section of one standard |
| `corrections` | 31 | a confirmed error the site published: what was wrong, what is right, what now prevents it |
Each table ships twice: `data/<table>.parquet` (zstd) and `jsonl/<table>.jsonl`, with the same rows. `manifest.json` gives the row counts, sizes and SHA-256 of every file. It also lists the counts checked against the API's own `index.json`; all of them match.
### Conventions you need
- **Base units.** Test vector inputs are in each dimension's base unit, as the site's calculators receive them: metres, square metres, **litres for volume** (not cubic metres), kilograms, pascals and so on. `units` gives every factor: `base = (value + offset_to_base) × to_base`.
- **Tolerance.** A vector passes when `|result − expected| < 0.5 × 10^−tolerance_decimal_places`. A missing value means 2; 0 means the nearest whole number; a negative value widens the margin (−1 means within 5).
- **Omitted inputs** take the calculator's default (`calculator_inputs.default_value`, JSON-encoded).
- **Mixed-type fields** such as defaults, options, worked steps and table cells are JSON strings, so every column has one type.
- **Sources per row.** Every reference row keeps its source: `source_kind` is one of `standard`, `published`, `manufacturer`, `arithmetic` (worked by the site from a definition) or `trade-practice` (a widely quoted figure with no checked source). Keep it next to the value if you flatten a table.
## CraftQuantities-Bench
There are 3,820 items, one per published test vector, in the `bench` config (split `test`). Each item has:
- `question`: the calculator's name and description, every input with its value and unit (defaults marked), the calculator's own method notes, and the question "What is the calculator's headline result for these inputs, in <unit>?";
- `inputs` (base units, as JSON) and `inputs_described`;
- `expected_value`, `expected_unit`, `tolerance_decimal_places`, `abs_tolerance`;
- `basis` (`cited`, `sole-source` or `ambiguous`), `confidence`, `category`, `calculator_url`.
**What it measures.** It measures whether a model, alone or with tools, reproduces the Craft Quantities calculators' answers for stated inputs within the published tolerance. That covers unit handling, geometry, the waste and rounding conventions (whole bags, whole sheets) and the trade rules the method notes state. A model that calls the site's engine (MCP or REST) should score close to 100%. The gap between a model alone and the same model with the tool is the interesting number.
**What it does not measure.** It does not measure whether the answers are right about the physical world, or whether they agree with a standard. The expected values were computed by the authors of the formulas, from those formulas. This is first-party validation, not independent review (see [/validation/](https://craftquantities.com/validation/)). Some items depend on a convention stated only in the method notes, such as a bag yield or a waste allowance. The question names the result by its unit, not by a label, because the static API does not publish result labels.
**Scoring** (standard library only, no network):
```bash
python eval/evaluate.py --bench jsonl/bench.jsonl --predictions my_predictions.jsonl
# my_predictions.jsonl: {"id": "concrete-calculator#0", "prediction": 1.29} (text such as "1.29 yd³" is read too)
python eval/evaluate.py --bench jsonl/bench.jsonl --self-check # expected values against themselves: 100.00%
```
The scorer prints the overall pass rate and the rate per calculator category.
## Intended uses
- Grounding and retrieval for assistants that answer construction quantity questions, with a source to cite on every figure;
- testing an implementation of a construction calculator against the published vectors;
- evaluating numerical reasoning and tool use on practical, unit-heavy problems (CraftQuantities-Bench);
- translating construction terms between US, Canadian, UK and Australian usage without assuming that two words mean the same thing;
- resolving a code abbreviation to its document and publisher.
## Limitations and exclusions
- **Quantities, not design.** Nothing here sizes a beam, footing, cable, breaker or HVAC unit, and nothing certifies compliance with a code. The steel-section tables give geometric properties, not capacities. Structural, electrical and code decisions belong to a licensed engineer and the building department.
- **No prices.** The site publishes no prices. Inputs flagged `is_money` take the user's own rates.
- **Labour production rates are excluded.** The site's `production-rates` table (68 rows) gives person-hour bands that are mostly rule-of-thumb, with no checked source. They are not ground truth, so they are not in this dataset.
- **Trade-practice rows.** A few remaining reference rows are labelled `trade-practice`, for example in bulk densities and screw gauges. They are typical figures, not measurements. The label stays on every such row.
- **AISC-derived rows.** 108 rows in the `w-shapes`, `c-channels`, `hss-sections` and `us-angles` tables are taken from the AISC Shapes Database v16.0, as each row's `source_text` says (`derived_from_aisc = true`). The site publishes these rows under CC BY 4.0 with that attribution on every row. Keep the attribution when you reuse them, and use AISC's own database for any shape not listed here.
- **Snapshot.** This is the state of the site on 2026-11-30 (engine 1.9.0). The live API is updated as calculators are added and corrected; `corrections` records every confirmed error.
- **English only.** Text fields are in English. Some calculator pages also exist in Spanish, French and Portuguese (`calculators.translations`).
## Licence and attribution
The data is licensed under [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/). Reuse it for any purpose, including commercially, with this credit:
> Craft Quantities — craftquantities.com (CC BY 4.0)
When you cite a single calculator, use its own citation (`calculators.citation`). The site's web pages themselves are not part of this licence; only the data is.
## Citation
```bibtex
@dataset{craftquantities_2026_opendata,
author = {{Craft Quantities}},
title = {Craft Quantities open data and CraftQuantities-Bench},
version = {1.9.0},
year = {2026},
month = nov,
publisher = {Zenodo},
doi = {10.5281/zenodo.24679327},
url = {https://doi.org/10.5281/zenodo.24679327},
note = {Data from https://craftquantities.com/api/v1/, CC BY 4.0}
}
```
## How it was built
`scripts/build_dataset.py` reads verbatim copies of the published JSON files (downloaded 2026-11-30 from the production site, commit a87df7c, engine 1.9.0) and writes the tables. `scripts/validate_dataset.py` then checks four things: every Parquet file reads back with the same rows as its JSONL twin, every checksum matches `manifest.json`, the 3,820 test vectors equal the site's `validation.json` one for one, and the counts match the API's `index.json`.
## Links
- Hugging Face: https://huggingface.co/datasets/Craftquantities/craftquantities-open-data
- Kaggle: https://www.kaggle.com/datasets/ionalexandrutanasie/craft-quantities-construction-data-and-bench
- Zenodo: https://doi.org/10.5281/zenodo.24679327
- Site: https://craftquantities.com · API: https://craftquantities.com/api/ · Formulas: https://craftquantities.com/formulas/ · Developers: https://craftquantities.com/developers/
|