Skip to content
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

Support non-strings in valid json #103

Merged
merged 1 commit into from
Dec 15, 2024
Merged

Support non-strings in valid json #103

merged 1 commit into from
Dec 15, 2024

Conversation

ankrgyl
Copy link
Contributor

@ankrgyl ankrgyl commented Dec 15, 2024

ValidJSON was returning 0% for non-strings. This is somewhat appropriate, since once a value is parsed, if it's a string then it's ambiguous. However in practice, structured outputs/tools only return JSON objects/dicts and it's useful to validate that they're working correctly via this scorer.

Discovered on Discord.

@ankrgyl ankrgyl merged commit 629b623 into main Dec 15, 2024
8 checks passed
Copy link

github-actions bot commented Dec 15, 2024

Braintrust eval report

Autoevals (main-1734297234)

Score Average Improvements Regressions
NumericDiff 75.9% (+0pp) - -
Duration 1.54s (+0.03s) 23 🟢 77 🔴
Prompt_tokens 279.25tok (+0tok) - -
Completion_tokens 17.85tok (+0tok) - -
Total_tokens 297.1tok (+0tok) - -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants