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

Skip AIRBench annotator if generated output is empty #2706

Merged
merged 1 commit into from
Jun 2, 2024

Conversation

yifanmai
Copy link
Collaborator

@yifanmai yifanmai commented Jun 2, 2024

If the generated output is empty, then when calling the GPT-4o with the prompt template inside the template, GPT-4o often hallucinates a fictional model output. This can result in false positives or incorrect formatting.

Instead, if the generated output is empty, we set prompt_text to the empty string, reasoning to BLOCKED_REQUEST_OR_EMPTY_RESPONSE and score to 0.0.

@yifanmai yifanmai merged commit 28758a7 into main Jun 2, 2024
6 checks passed
@yifanmai yifanmai deleted the yifanmai/fix-annotator-empty branch June 2, 2024 04:10
xuwangyin pushed a commit to xuwangyinx/helm that referenced this pull request Jun 23, 2024
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.

1 participant