Add Gemini 2.5 support and robust answer key handling#8
Open
codelion wants to merge 3 commits intosnap-research:mainfrom
Open
Add Gemini 2.5 support and robust answer key handling#8codelion wants to merge 3 commits intosnap-research:mainfrom
codelion wants to merge 3 commits intosnap-research:mainfrom
Conversation
Updated Gemini integration to use the new google-genai SDK and support Gemini 2.5 models. Refactored answer extraction logic across evaluation, Claude, GPT, Gemini, and HF utils to handle both 'answer' and 'adversarial_answer' keys, improving robustness to missing fields. Cleaned up requirements.txt, added .gitignore, and removed compiled Python cache files.
Introduced a CATEGORY_MAPPING dictionary in evaluate_qa.py, evaluation.py, and evaluation_stats.py to map category numbers to descriptive names. Enhanced output and result dictionaries to include category names and detailed statistics, improving interpretability of QA evaluation results and reporting.
Author
|
This also fixes #6 |
Added checks to convert non-string answer values to strings in the process_output function. This prevents errors when processing outputs that may not be strings.
Author
Gemini-2.5-FlashOverall accuracy: 0.728 Category | Name | Count | Correct | AccuracyGemini-2.5-Flash-LiteOverall accuracy: 0.490 Category | Name | Count | Correct | AccuracyThese are the results with the Gemini 2.5 models. |
|
|
Model: Gemini-2.5-Flash, this is my eval score
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated Gemini integration to use the new google-genai SDK and support Gemini 2.5 models. Refactored answer extraction logic across evaluation, Claude, GPT, Gemini, and HF utils to handle both 'answer' and 'adversarial_answer' keys, improving robustness to missing fields. Cleaned up requirements.txt, added .gitignore, and removed compiled Python cache files.
Will fix #6 #5 #3 #2