-
Notifications
You must be signed in to change notification settings - Fork 231
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
[Enhancement]: Handle non-string outputs gracefully in auto_contains_json evaluator #1987
Merged
jp-agenta
merged 18 commits into
feature/age-491-poc-1e-expose-running-evaluators-via-api-to-playground
from
feature/age-573-evaluators-fail-gracefully-when-we-send-a-dict-to-a-str-only
Aug 23, 2024
Conversation
This file contains 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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
dosubot
bot
added
the
size:S
This PR changes 10-29 lines, ignoring generated files.
label
Aug 13, 2024
jp-agenta
reviewed
Aug 19, 2024
jp-agenta
reviewed
Aug 19, 2024
jp-agenta
reviewed
Aug 19, 2024
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.
Thanks @aybruhm, quick question 👇
Shouldn't this apply to all non-RAG evaluators (not just contains_json
) ?
…i-to-playground' into feature/age-573-evaluators-fail-gracefully-when-we-send-a-dict-to-a-str-only
…i-to-playground' into feature/age-573-evaluators-fail-gracefully-when-we-send-a-dict-to-a-str-only
…i-to-playground' into feature/age-573-evaluators-fail-gracefully-when-we-send-a-dict-to-a-str-only
…i-to-playground' into feature/age-573-evaluators-fail-gracefully-when-we-send-a-dict-to-a-str-only
…nd use functions in evaluators
…flect changes in test cases - Added parameters in 'test_auto_json_diff' for BaseResponse compatibility - Updated parameters in 'test_auto_contains_json' to align with recent changes
jp-agenta
approved these changes
Aug 22, 2024
QA'd in |
…o-@next/font fix(frontend): Migrate Inter Font to @next/font
…hen-we-send-a-dict-to-a-str-only
jp-agenta
merged commit Aug 23, 2024
532a4bb
into
feature/age-491-poc-1e-expose-running-evaluators-via-api-to-playground
11 checks passed
jp-agenta
deleted the
feature/age-573-evaluators-fail-gracefully-when-we-send-a-dict-to-a-str-only
branch
August 23, 2024 14:29
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Backend
enhancement
New feature or request
lgtm
This PR has been approved by a maintainer
size:L
This PR changes 100-499 lines, ignoring generated files.
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.
Description
This PR enhances the
auto_contains_json
evaluator to handle cases where the output is not a string more gracefully, ensuring that any untracked errors lead to a clear and informative failure.Related Issue
Closes AGE-573
What to QA
Acceptance Tests
Test 1: Evaluator Handles Non-String Output Gracefully
auto_contains_json
evaluator is set up.Test 2: Evaluation Completes Successfully
auto_contains_json
evaluator is set up.auto_contains_json
evaluator with a string output (where output is the LLM response of the application).