Skip to content

feat: add safe_metric_calculation decorator for LLM judge error handling#154

Open
AhmedHammam-AA wants to merge 1 commit intomainfrom
feature/llm-judge-error-handling
Open

feat: add safe_metric_calculation decorator for LLM judge error handling#154
AhmedHammam-AA wants to merge 1 commit intomainfrom
feature/llm-judge-error-handling

Conversation

@AhmedHammam-AA
Copy link
Collaborator

Adds a safe_metric_calculation decorator to handle exceptions in LLM judge metrics gracefully. Previously, if any exception occurred during metric calculation, the entire evaluation process would crash. Now, exceptions are caught and converted to MetricResult objects with error details, allowing the evaluation to continue for other samples.

@AhmedHammam-AA AhmedHammam-AA requested a review from GrS-AA January 13, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant