sweep_table()

Render an eval sweep summary as a polished Great Table.

Usage

Source

sweep_table(source)

Takes the combined sweep output from run_eval_sweep.py and produces a persona × model matrix with color-coded overall scores and pass/fail status.

Parameters

source: str | Path | dict[str, Any]
Path to a sweep summary JSON file, or a sweep dict.

Returns

gt.GT
A formatted Great Table ready for display, .save("file.html"), or embedding in a Quarto document.

Raises

ImportError
If great_tables or pandas is not installed.

Examples

import talk_box as tb

table = tb.sweep_table("scorecards/_sweeps/2025-05-07T12-00-00.json")
table.save("sweep_report.html")