-
Notifications
You must be signed in to change notification settings - Fork 21
Feature/add ToolCallPrecisionRecallMatchGrader & rename: ToolCallSequenceMatchGrader ->ToolCallStepSequenceMatchGrader #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/add ToolCallPrecisionRecallMatchGrader & rename: ToolCallSequenceMatchGrader ->ToolCallStepSequenceMatchGrader #68
Conversation
…uation - Add ToolCallSequenceMatchSimpleGrader supporting precision/recall metrics - Support flexible matching with/without arguments - Add comprehensive test suite with 21 test cases - Update documentation in overview.md and agent_graders.md - Emphasize ToolCallSequenceMatchGrader for multi-step complex scenarios
| RECALL = "recall" | ||
|
|
||
|
|
||
| class ToolCallSequenceMatchSimpleGrader(BaseGrader): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class ToolCallSequenceExpectationGrader ?
"simple" is not necessary in the class name if it describes the "simple" nature of this grader.
"Simple" does not help people understand this grader at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ToolCallSequenceMatchSimpleGrader is a simplified version of ToolCallSequenceMatchGrader. The latter uses a multi-step concept, treating tool_call as a two-dimensional array, while the former simplifies this logic. Which naming approach do you prefer:
Keep the current names: ToolCallSequenceMatchGrader, ToolCallSequenceMatchSimpleGrader
Rename based on code logic: ToolCallSequenceMatchGrader → ToolCallStepSequenceMatchGrader, ToolCallSequenceMatchSimpleGrader → ToolCallPrecisionRecallMatchGrader
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename based on code logic: ToolCallSequenceMatchGrader → ToolCallStepSequenceMatchGrader, ToolCallSequenceMatchSimpleGrader → ToolCallPrecisionRecallMatchGrader
This looks better.
ployts
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
OpenJudge Version
[The version of OpenJudge you are working on, e.g.
import openjudge; print(openjudge.__version__)]Description
[Please describe the background, purpose, changes made, and how to test this PR]
Checklist
Please check the following items before code is ready to be reviewed.
pre-commit run --all-filescommand