diff --git a/garak/analyze/report_digest.py b/garak/analyze/report_digest.py index 243275651..b1901cad1 100644 --- a/garak/analyze/report_digest.py +++ b/garak/analyze/report_digest.py @@ -266,10 +266,22 @@ def compile_digest(report_path, taxonomy=_config.reporting.taxonomy): conn.close() - calibration_date = "" + calibration_date, calibration_model_count, calibration_model_list = "", "?", "" if "garak_calibration_meta" in calibration_data: calibration_date = calibration_data["garak_calibration_meta"]["date"] - digest_content += footer_template.render({"calibration_date": calibration_date}) + calibration_models = calibration_data["garak_calibration_meta"]["filenames"] + calibration_models = [ + s.replace(".report.jsonl", "") for s in calibration_models + ] + calibration_model_list = ", ".join(sorted(calibration_models)) + calibration_model_count = len(calibration_models) + digest_content += footer_template.render( + { + "calibration_date": calibration_date, + "model_count": calibration_model_count, + "model_list": calibration_model_list, + } + ) return digest_content diff --git a/garak/analyze/templates/digest_footer.jinja b/garak/analyze/templates/digest_footer.jinja index c75ce91f1..a34903485 100644 --- a/garak/analyze/templates/digest_footer.jinja +++ b/garak/analyze/templates/digest_footer.jinja @@ -1,4 +1,23 @@ +
+ + +
About Z-scores in this analysis:
+