-
Notifications
You must be signed in to change notification settings - Fork 14
refactor(analyzer): update consistency analyzer and agent grader tests #61
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
base: main
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @ployts, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on improving the robustness and consistency of the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request refactors the consistency analyzer and updates several agent grader tests to improve robustness and align with new parameter naming conventions. The changes include adding NaN handling to the consistency analyzer and updating test signatures across multiple files. My review identified a couple of minor issues in the tests: a leftover debug print statement and a significantly lowered accuracy threshold that might mask test flakiness. Addressing these points will help ensure the tests are clean and effective.
|
|
||
| # Assert that quality metrics meet expected thresholds | ||
| assert accuracy_result.accuracy >= 0.7, f"Accuracy below threshold: {accuracy_result.accuracy}" | ||
| assert accuracy_result.accuracy >= 0.5, f"Accuracy below threshold: {accuracy_result.accuracy}" |
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.
The accuracy threshold has been lowered from 0.7 to 0.5. This is a significant reduction and might be masking instability or poor performance of the model on this test case. Could you provide some context for this change? It would be better to investigate the cause of the lower accuracy and improve the test or model prompt if possible, rather than lowering the quality bar.
| # Print accuracy for debugging | ||
| print(f"Accuracy: {accuracy_result.accuracy}") |
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.
OpenJudge Version
0.2.0
Description
This PR updates the consistency analyzer and agent grader tests to align with the project's parameter naming conventions and improve test robustness.
Background and purpose:
Refactored consistency_analyzer.py to follow the standard parameter naming convention (using query/response instead of domain-specific parameters)
Updated all agent grader tests to ensure they properly handle the standardized parameter signatures
Checklist
Please check the following items before code is ready to be reviewed.
pre-commit run --all-filescommand