Skip to content

Add json correctness scorer #37

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

Merged
merged 49 commits into from
Jan 21, 2025
Merged

Add json correctness scorer #37

merged 49 commits into from
Jan 21, 2025

Conversation

SecroLoL
Copy link
Contributor

Adds JSON correctness scorer

  • validates whether the LLM output adheres to a given JSON schema

Adds a custom model_dump() to EvaluationRun such that kwargs can now be passed to the init of different scorers on the backend. In the case of JSON correctness, we need to pass the schema.

  • this is extendable to new scorers in the future that require something more than just threshold.

Also, removed some telemetry stuff that is unused

JCamyre and others added 30 commits January 7, 2025 19:32
…tions, tools, etc. Tweak condense() logic to properly support structure.
JCamyre and others added 19 commits January 16, 2025 13:09
… the results after logged (important as it contains example_id).
Additional features for span-level (multi-step) evaluations
@SecroLoL SecroLoL merged commit 05b3ddb into main Jan 21, 2025
@SecroLoL SecroLoL deleted the add_json_correctness_scorer branch February 10, 2025 21:35
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