Skip to content
This repository was archived by the owner on Nov 21, 2026. It is now read-only.

Docs: generate the bindings A/B result tables from result files - #424

Merged
tae898 merged 2 commits into
mainfrom
ab-docs-pipeline
Oct 21, 2026
Merged

tae898 merged 2 commits into
mainfrom
ab-docs-pipeline

Conversation

@tae898

@tae898 tae898 commented Oct 21, 2026 •

Copy link
Copy Markdown

Closes #423.

Adds the pipeline that puts the bindings A/B study's results into the docs by script, ready for when the study finishes. Mechanism and placeholders only: no current recommendation text changes.

bindings/python/scripts/render_ab_tables.py reads bindings/python/docs/benchmarks/ab-results/<figure-id>.json (format 1, described in docs/development/documentation.md, "A/B Result Tables") and renders the blocks between <!-- ab-table: ID --> and <!-- /ab-table -->. With no result file nothing is rendered between the markers, so the published pages read as before; text typed there fails the check. --check fails on a hand-edited table, an invalid or unused result file, and an unclosed or unknown marker; --write is the only way to change a number. Markers inside code fences are examples and are ignored. The verdict is derived from the interval the way ab.py does, never stored.

The check runs as the render-ab-tables pre-commit hook (also in the existing pre-commit job) and as tests/test_render_ab_tables.py (35 tests, including one that checks the real docs and one that every figure has a block).

Marker blocks added (empty until a result file exists), by figure id and page:

  • ingest-path, parallel-buckets, async-sql-path: guide/import.md, end of "Bulk Ingest Recommendation"
  • commit-size: guide/import.md, after the commitEvery table
  • index-before-after: guide/import.md, after "Drop Heavy Indexes Before Bulk Loads"
  • materialization: guide/core/queries.md (after "Performance and Materialization") and guide/performance.md (before "Known limits")
  • udf-cost, callback-cost: guide/performance.md, before "Memory"
  • heap-pinned: guide/performance.md, before "Full report"
  • rebuild-threshold: guide/vectors.md, after the rebuild discussion

api/graph_batch.md has no figure in the study's A/B list, so it has no placeholder. bindings/python/AGENTS.md gets a rule that A/B numbers are never typed.

Checked: pre-commit on the changed files (black, isort and the new hook pass), the new tests (34 passed), and the strict mkdocs build with the CI versions. I did not wait for CI.

🤖 Generated with Claude Code

tae898 and others added 2 commits October 21, 2026 21:43
… for the bindings study

Adds scripts/render_ab_tables.py (renders the blocks between ab-table markers from docs/benchmarks/ab-results/*.json and fails on a hand-edited table), a pre-commit hook and tests, and a Measurement pending placeholder for each figure of the bindings best-practice study. No recommendation text changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The published pages read as before until a result file exists; an unknown figure id, an unclosed marker or text typed between the markers still fails the check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@tae898
tae898 merged commit 669eeae into main Oct 21, 2026
42 of 44 checks passed
@tae898
tae898 deleted the ab-docs-pipeline branch October 21, 2026 16:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: generate the bindings A/B result tables from result files

1 participant