Skip to content

Conversation

shyamnamboodiripad
Copy link
Contributor

@shyamnamboodiripad shyamnamboodiripad commented Apr 11, 2025

Also includes some fixes / improvements around how images are processed in the Safety evaluators.

  • Avoid redundant / double base64 encoding for images in DataContnet
  • Check for supported image extensions
  • Add tests for DataContent images

This is how images are displayed in the in the report -
image

Microsoft Reviewers: Open in CodeFlow

…dy base64 encoded.

Also use DataContent.Uri in the above case so that any subsequent calls to evaluate the same image can use the Uri value computed in previous calls instead of recomputing each time.
@shyamnamboodiripad shyamnamboodiripad requested a review from a team as a code owner April 11, 2025 10:15
@github-actions github-actions bot added the area-ai-eval Microsoft.Extensions.AI.Evaluation and related label Apr 11, 2025
@shyamnamboodiripad shyamnamboodiripad merged commit f0a1a79 into dotnet:main Apr 11, 2025
7 checks passed
@shyamnamboodiripad shyamnamboodiripad deleted the images branch April 11, 2025 18:39
@github-actions github-actions bot locked and limited conversation to collaborators May 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-ai-eval Microsoft.Extensions.AI.Evaluation and related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants