Craftquantities's picture
Upload 2 files
43a501a verified
|
Raw History Blame Contribute Delete
12 kB
metadata
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, 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/ and /formulas/. The values are copied verbatim and only reshaped into tables.

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 ?";
  • 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/). 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):

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). 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

@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