Skip to content

Audio Samples - Model Target#45717

Open
w-javed wants to merge 14 commits intomainfrom
score_model_audio_model_target
Open

Audio Samples - Model Target#45717
w-javed wants to merge 14 commits intomainfrom
score_model_audio_model_target

Conversation

@w-javed
Copy link
Contributor

@w-javed w-javed commented Mar 16, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_completions with azure_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.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot apply changes based on this feedback

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", "")


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
w-javed and others added 12 commits March 16, 2026 03:19
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>
Copy link
Contributor

Copilot AI commented Mar 17, 2026

@w-javed I've opened a new pull request, #45751, to work on those changes. Once the pull request is ready, I'll request review from you.

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>
@github-actions
Copy link

API Change Check

APIView identified API level changes in this PR and created the following API reviews

azure-ai-projects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants