design: Add 0004-multimodal-i2t proposal#674
Open
sangminwoo wants to merge 3 commits intostrands-agents:mainfrom
Open
design: Add 0004-multimodal-i2t proposal#674sangminwoo wants to merge 3 commits intostrands-agents:mainfrom
sangminwoo wants to merge 3 commits intostrands-agents:mainfrom
Conversation
afarntrog
reviewed
Mar 19, 2026
|
|
||
| * `InputT=dict` is less type-safe than a dataclass (`MultimodalInput` TypedDict provides partial typing) | ||
| * Multimodal judge calls are more expensive/slower than text-only (image tokens cost more) | ||
| * Remote image sources (S3, HTTP URLs) require user to download before evaluation — no built-in fetching to avoid heavy dependencies (boto3, requests) |
Contributor
There was a problem hiding this comment.
I think we can probably support remote images in this:
# Define cases with image data in input dict
cases = [Case[dict, str](
input={"image": ImageData(source="chart.png"), "instruction": "What is the revenue trend?"},
)]
Author
There was a problem hiding this comment.
Good point. we can support HTTP URLs using urllib.request (stdlib), so no new dependency is needed. For S3 URIs, we can make boto3 an optional dependency:
- HTTP/HTTPS: auto fetched via
urllib.request - S3: auto fetched if
boto3is installed, error message otherwise
Does this makes sense to you?
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.
Description
Add design doc for multimodal image-to-text evaluation support in strands-evals SDK.
Introduces
MultimodalOutputEvaluatorextendingOutputEvaluatorto enable MLLM-as-a-Judge evaluation for image/document-to-text tasks. The evaluator constructs multimodal prompts using strands SDK ContentBlock format and supports both reference-based and reference-free evaluation across four dimensions: Overall Quality (P0), Correctness (P0), Faithfulness (P1), and Instruction Following (P1).Key design decisions:
OutputEvaluatorto reuse rubric/model/system_prompt managementInputT=dictcarries{"image": ImageData, "instruction": str}ImageDatasupports file paths, base64, data URLs, bytes, PIL Images with JSON-safe serializationRelated Issues
Type of Change
Checklist
npm run devBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.