Skip to content

Display images in conversation for report - #6286

Merged
shyamnamboodiripad merged 4 commits into
dotnet:mainfrom
shyamnamboodiripad:images
Apr 11, 2025
Merged

Display images in conversation for report#6286
shyamnamboodiripad merged 4 commits into
dotnet:mainfrom
shyamnamboodiripad:images

Conversation

@shyamnamboodiripad

@shyamnamboodiripadshyamnamboodiripad commented Apr 11, 2025

Copy link
Copy Markdown
Contributor

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 ownerApril 11, 2025 10:15
@github-actionsgithub-actionsBot added the area-ai-eval Microsoft.Extensions.AI.Evaluation and related label Apr 11, 2025
@shyamnamboodiripad
shyamnamboodiripad merged commit f0a1a79 into dotnet:mainApr 11, 2025
@shyamnamboodiripad
shyamnamboodiripad deleted the images branch April 11, 2025 18:39
@github-actionsgithub-actionsBot locked and limited conversation to collaborators May 12, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-ai-evalMicrosoft.Extensions.AI.Evaluation and related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@shyamnamboodiripad@peterwald