Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds new Azure AI Projects evaluation samples demonstrating OpenAI Evals “score_model” graders for audio inputs and for using an Azure AI model as the eval run target (model-target data source), plus a small WAV asset used by the audio samples.
Changes:
- Add a new image evaluation sample using an Azure AI model target (
azure_ai_target_completionswithazure_ai_model). - Add a new audio evaluation sample and a corresponding model-target variant.
- Add a WAV file under
samples/evaluations/data_folder/used as the audio input.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 14 comments.
| File | Description |
|---|---|
| sdk/ai/azure-ai-projects/samples/evaluations/sample_evaluations_score_model_grader_with_image_model_target.py | New image-based score-model grader sample using an Azure AI model target for eval runs. |
| sdk/ai/azure-ai-projects/samples/evaluations/sample_evaluations_score_model_grader_with_audio_model_target.py | New audio-based score-model grader sample using an Azure AI model target for eval runs. |
| sdk/ai/azure-ai-projects/samples/evaluations/sample_evaluations_score_model_grader_with_audio.py | New audio-based score-model grader sample using the completions data source param class. |
| sdk/ai/azure-ai-projects/samples/evaluations/data_folder/sample_evaluations_score_model_grader_with_audio.wav | Audio input asset used by the audio evaluation samples. |
Comment on lines
+7
to
+10
| """ | ||
| DESCRIPTION: | ||
| Given an AIProjectClient, this sample demonstrates how to use the synchronous | ||
| `openai.evals.*` methods to create, get and list evaluation and eval runs. |
Contributor
Author
There was a problem hiding this comment.
@copilot apply changes based on this feedback
...rojects/samples/evaluations/sample_evaluations_score_model_grader_with_image_model_target.py
Outdated
Show resolved
Hide resolved
...rojects/samples/evaluations/sample_evaluations_score_model_grader_with_image_model_target.py
Outdated
Show resolved
Hide resolved
...rojects/samples/evaluations/sample_evaluations_score_model_grader_with_audio_model_target.py
Outdated
Show resolved
Hide resolved
Comment on lines
+51
to
+55
| endpoint = os.environ.get("FOUNDRY_PROJECT_ENDPOINT", "") | ||
| model_deployment_name = os.environ.get("FOUNDRY_MODEL_NAME", "") | ||
| model_deployment_name_for_audio = os.environ.get("FOUNDRY_MODEL_NAME_FOR_AUDIO", "") | ||
|
|
||
|
|
...ai/azure-ai-projects/samples/evaluations/sample_evaluations_score_model_grader_with_audio.py
Outdated
Show resolved
Hide resolved
...rojects/samples/evaluations/sample_evaluations_score_model_grader_with_image_model_target.py
Outdated
Show resolved
Hide resolved
...rojects/samples/evaluations/sample_evaluations_score_model_grader_with_image_model_target.py
Outdated
Show resolved
Hide resolved
| The OpenAI official tutorial is here: https://cookbook.openai.com/examples/evaluation/use-cases/evalsapi_audio_inputs | ||
|
|
||
| USAGE: | ||
| python sample_evaluations_score_model_grader_with_audio.py |
...rojects/samples/evaluations/sample_evaluations_score_model_grader_with_image_model_target.py
Show resolved
Hide resolved
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Contributor
Copilot AI
added a commit
that referenced
this pull request
Mar 18, 2026
…amples Co-authored-by: w-javed <7674577+w-javed@users.noreply.github.com>
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
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.
No description provided.