Python API and CLI
Table normalisation and the documentation builder are in the tracecite-docs package:
Core function
The ranked-results tutorial demonstrates this API end to end, including the public debug-markdown representation in the Python-only build: examples/python/hottest_temperature.py.
The result contains:
raw_source— exact evidence supplied to the function;canonical_markdown— deterministic flat Markdown;normalised_text— table-level retrieval text;row_ids— stable per-row identifiers, using configured logical keys where available;row_records— independently interpretable row text;diagnostics— structural and semantic warnings or errors;source_hashandnormaliser_version— incremental rebuild keys.
HTML adapter
The HTML adapter expands row and column spans, records diagnostics, preserves the original HTML, and then uses the same Pandoc-table normal form.
Whole-document extraction
CLI
Pandoc is authoritative. --allow-pipe-fallback is an explicit reduced mode for ordinary pipe tables when neither standalone Pandoc nor Quarto’s bundled Pandoc is available.
Prepare the inspectable copy
For a repository with Quarto sources, the automatic builder is:
It discovers configured render inputs and performs Quarto execution, retained Markdown staging, and optional inspection export. Use the direct prepare command below when a site has already been rendered and staged.
The selected profile is merged into the copied site’s configuration. Navigation, theme, brand, and ordinary website settings are retained. Execution engines and pre/post-render hooks are removed because the copied Markdown already contains executed results.
debug-markdown and the embedding inspection site expose normalised retrieval text, raw and canonical representations, and row records. They do not generate or display embedding vectors.