-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[NA] [SDK] Multimodal Opik Optimizer #4003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
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)
into feat/optimizer-hybrid * 'feat/optimizer-hybrid' of https://github.com/comet-ml/opik: [issue-2520] [SDK] Added Sycophancy Evaluation Metric (#2624)
There was a problem hiding this 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.
sdks/opik_optimizer/src/opik_optimizer/evolutionary_optimizer/prompts.py
Outdated
Show resolved
Hide resolved
sdks/opik_optimizer/src/opik_optimizer/evolutionary_optimizer/crossover_ops.py
Outdated
Show resolved
Hide resolved
sdks/opik_optimizer/src/opik_optimizer/evolutionary_optimizer/mutation_ops.py
Outdated
Show resolved
Hide resolved
sdks/opik_optimizer/src/opik_optimizer/datasets/driving_hazard.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
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
into feat/optimizer-hybrid * 'feat/optimizer-hybrid' of https://github.com/comet-ml/opik: Update mcp.py
|
🌿 Preview your docs: https://opik-preview-8bf96d6f-103f-4423-ac0c-d40667f9776a.docs.buildwithfern.com/docs/opik No broken links found |
|
🌿 Preview your docs: https://opik-preview-9253398f-674f-4b82-a03f-38e3ca792f79.docs.buildwithfern.com/docs/opik No broken links found |
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
FewShotwhich 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
MessageDicttype aliases, adds helper utilities for processing multimodal content, and includes a new driving hazard detection dataset with base64-encoded images.Key changes:
Change checklist
Issues
Testing
See examples below
Documentation
Updates
Examples
GEPA:

MetaPrompter:

Evolutionary:

Hierarchical:
