Add multi-turn quality tests for coherence, customer_satisfaction, groundedness, task_completion evaluators#5072
Merged
Conversation
…oundedness, task_completion evaluators Add 16 multi-turn quality tests (4 coherence, 4 CSAT, 5 groundedness, 3 task_completion) that validate real LLM evaluation with Azure OpenAI (no mocking). Test traces validated across 7 judge models with 100% pass rate. Key implementation details: - normalize_messages_for_evaluator() helper converts OpenAI-format tool call messages to Azure AI Evaluation content-block format - Coherence/groundedness test classes override expected_result_fields (multi-turn _build_result omits _passed) and _extract_and_print_result (derives passed from label) - Coherence skip test overrides assert_not_applicable (LLM reason doesn't contain fixed 'not applicable' string) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Test Results for assets-test0 tests 0 ✅ 0s ⏱️ Results for commit 8b509dc. ♻️ This comment has been updated with latest results. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
salma-elshafey
approved these changes
May 21, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds 16 multi-turn quality tests across 4 evaluators that validate real LLM evaluation with Azure OpenAI (no mocking). Each test trace was validated across 7 judge models with 100% pass rate.
Tests Added
Key Implementation Details
ormalize_messages_for_evaluator()* helper in \common_test_data.py\ converts OpenAI-format tool call messages to Azure AI Evaluation content-block format
Files Changed
ormalize_messages_for_evaluator()\ helper
Test Results
All 16 tests pass locally with both gpt-5-nano (~3.5 min) and gpt-5.4 (~2.5 min).