Issue #1611 Fixes#1638
Merged
penguine-ip merged 2 commits intoconfident-ai:mainfrom May 29, 2025
Merged
Conversation
Got it working, replicated code from issue and it runs well. Needed to account for ValueError which catches the JSON Parsing issues
|
@PradyMagal is attempting to deploy a commit to the Confident AI Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
hey @PradyMagal thanks! But can you please undo poetry lock and all the adds to the |
Contributor
Author
|
Poetry Lock has been undone, same with the additions to the toml file Let me know if there's anything I missed |
Contributor
|
@PradyMagal perfect, thanks! |
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.
Fix TruthfulQA compatibility with AnthropicModel
Issue
TruthfulQA benchmark was incompatible with AnthropicModel, always failing with:
ValueError: Evaluation LLM outputted an invalid JSON. Please use a better evaluation model.Root Cause
TypeErrorwas caught, notValueErrorLine 175 (predict method):
Line 235 (batch_predict method):
Result
Testing
Confirmed working with:
Output:
Filter: 100%|████████████████████████████████████████████████████████████████████████████| 817/817 [00:00<00:00, 24678.95 examples/s] Processing Fiction: 100%|████████████████████████████████████████████████████████████████████████████| 30/30 [05:04<00:00, 10.14s/it] TruthfulQA Task Accuracy (task=Fiction): 82.43333333333334 Overall TruthfulQA Accuracy: 82.43333333333334