Save evaluation results to a file.
(results: Dict, save_path: str)
| 188 | |
| 189 | |
| 190 | def save_results(results: Dict, save_path: str): |
| 191 | """Save evaluation results to a file.""" |
| 192 | dump(results, save_path, indent=4) |
| 193 | Console().print(f"[green]Results saved to: {save_path}[/green]") |
| 194 | |
| 195 | class RichLogHandler(logging.Handler): |
| 196 | """Custom logging handler that uses Rich for formatting.""" |