You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: improve batch classification test to validate accuracy
Previously, the batch classification test only validated HTTP status
and result count, but never checked if the classifications were correct.
The expected_categories variable was created but never used for validation.
Changes:
- Extract actual categories from batch classification results
- Compare against expected categories and calculate accuracy percentage
- Add detailed output showing each classification result
- Assert that accuracy meets 75% threshold
- Maintain backward compatibility with existing HTTP/count checks
This improved test now properly catches classification accuracy issues
and will fail when the classification system returns incorrect results,
exposing problems that were previously hidden.
Related to issue vllm-project#318: Batch Classification API Returns Incorrect Categories
Signed-off-by: Yossi Ovadia <[email protected]>
* style: apply black formatting to classification test
Automatic formatting applied by black pre-commit hook.
Signed-off-by: Yossi Ovadia <[email protected]>
---------
Signed-off-by: Yossi Ovadia <[email protected]>
Signed-off-by: liuhy <[email protected]>
0 commit comments