-
Fixes ToolCallAccuracy raises ZeroDivisionError when called without any arguments. (#1685)
发布于
2024-11-19 13:25:31 +00:00 | 472 次提交 在此版本后已推送到 main- Fixes: #1684
- Check for both empty dictionaries:
- If both refs and preds are empty, return 1.0 as you specified in your
logic.
- Check for empty refs:
- If refs is empty but preds is not, return 0.0 since there's nothing to
compare.
Co-authored-by: ikka shahules786@gmail.com
下载附件