Skip to content

Conversation

@vincentkoc
Copy link
Member

@vincentkoc vincentkoc commented Nov 8, 2025

Note

No extra work is needed on this branch before PR #3993 is merged; the multimodal helpers already treat any *_url type (image, video, audio, file) the same way, so base64 or URL-backed video/audio parts will flow through prompts, mutations, reporting, and ChatPrompt replacement logic without additional work except for FewShot which is not supported as it needs to inject media types and search.

Details

This PR adds multimodal support to the Opik Optimizer SDK, enabling optimization of prompts that include both text and images. The implementation introduces type-safe message handling using MessageDict type aliases, adds helper utilities for processing multimodal content, and includes a new driving hazard detection dataset with base64-encoded images.

Key changes:

  • Introduced MessageDict and related type aliases for structured multimodal content
  • Added image processing utilities in image_helpers.py and message content utilities in message_content.py
  • Updated all optimizers to handle both string and multimodal content in messages
  • Added driving hazard dataset with image support

Change checklist

  • User facing
  • Documentation update

Issues

  • Resolves #
  • OPIK-

Testing

See examples below

Documentation

Updates

Examples

GEPA:
Screenshot 2025-11-09 at 19 37 34

MetaPrompter:
Screenshot 2025-11-09 at 19 29 35

Evolutionary:
Screenshot 2025-11-09 at 19 14 57

Hierarchical:
Screenshot 2025-11-09 at 19 13 13

@comet-ml comet-ml deleted a comment from github-actions bot Nov 8, 2025
@comet-ml comet-ml deleted a comment from github-actions bot Nov 8, 2025
vincentkoc and others added 7 commits November 7, 2025 22:51
 into feat/optimizer-hybrid

* 'feat/optimizer-hybrid' of https://github.com/comet-ml/opik:
  [OPIK-2986] [FE] Refactor comparison pages to use NavigationTag component (#4006)
  [OPIK-2992] [FE] Add tooltips to DateTag component (#4005)
  [OPIK-2993] [FE] Add tooltips to feedback scores and tags icons (#4007)
  [OPIK-3008] [FE] Refactor: NavigationTag infrastructure (#3972)
@vincentkoc vincentkoc marked this pull request as ready for review November 10, 2025 01:03
@vincentkoc vincentkoc requested review from a team and dsblank as code owners November 10, 2025 01:03
Copilot AI review requested due to automatic review settings November 10, 2025 01:03
@comet-ml comet-ml deleted a comment from github-actions bot Nov 10, 2025
@comet-ml comet-ml deleted a comment from github-actions bot Nov 10, 2025
@comet-ml comet-ml deleted a comment from github-actions bot Nov 10, 2025
@comet-ml comet-ml deleted a comment from github-actions bot Nov 10, 2025
@vincentkoc vincentkoc requested a review from Copilot November 10, 2025 04:04
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

Copilot reviewed 29 out of 29 changed files in this pull request and generated 5 comments.

@comet-ml comet-ml deleted a comment from github-actions bot Nov 10, 2025
 into feat/optimizer-hybrid

* 'feat/optimizer-hybrid' of https://github.com/comet-ml/opik:
  Update sdks/opik_optimizer/src/opik_optimizer/utils/multimodal.py
  Update sdks/opik_optimizer/src/opik_optimizer/datasets/driving_hazard.py
@comet-ml comet-ml deleted a comment from github-actions bot Nov 10, 2025
@comet-ml comet-ml deleted a comment from github-actions bot Nov 10, 2025
@comet-ml comet-ml deleted a comment from github-actions bot Nov 10, 2025
@github-actions
Copy link
Contributor

🌿 Preview your docs: https://opik-preview-8bf96d6f-103f-4423-ac0c-d40667f9776a.docs.buildwithfern.com/docs/opik

No broken links found

@comet-ml comet-ml deleted a comment from github-actions bot Nov 10, 2025
@github-actions
Copy link
Contributor

🌿 Preview your docs: https://opik-preview-9253398f-674f-4b82-a03f-38e3ca792f79.docs.buildwithfern.com/docs/opik

No broken links found

@jverre jverre marked this pull request as draft November 13, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants