FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(genai/embeddings): migrate multimodal embeddings to genai by XrossFox · Pull Request #14515 · GoogleCloudPlatform/python-docs-samples · GitHub

feat(genai/embeddings): migrate multimodal embeddings to genai - #14515

Merged
XrossFox merged 6 commits into
GoogleCloudPlatform:mainfrom
XrossFox:vertex-to-genai-vision-models-embeddings-multimodal-example
Aug 19, 2026
Merged

feat(genai/embeddings): migrate multimodal embeddings to genai#14515
XrossFox merged 6 commits into
GoogleCloudPlatform:mainfrom
XrossFox:vertex-to-genai-vision-models-embeddings-multimodal-example

Conversation

XrossFox commented Aug 17, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Description

Migrates the sample for generating multimodal (image, video, text) embeddings to the new google-genai SDK and adds the corresponding test.

Tested locally.

Fixes b/546128628

Checklist

Testing

  • I have tested this change on a live environment and verified it works as intended.

Compliance & Style


Post-Approval Actions

  • Please merge this PR for me once it is approved

 Migrates the sample for generating multimodal (image, video, text) embeddings to the new `google-genai` SDK and adds the corresponding test.
product-auto-label Bot added the samples Issues that are directly related to samples. label Aug 17, 2026

gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Code Review

This pull request introduces a new example (multimodal_example.py) for generating multimodal embeddings (combining image, video, and text) using the google-genai SDK, and adds a corresponding test in test_embeddings_examples.py. A critical issue was identified in the test where the get_image_video_text_embeddings function is referenced but not actually called due to missing parentheses, which prevents the test from executing the actual embedding logic.

XrossFox marked this pull request as ready for review August 18, 2026 00:22
XrossFox requested review from a team as code owners August 18, 2026 00:22

snippet-bot Bot commented Aug 18, 2026
edited
Loading

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

Comment thread genai/embeddings/multimodal_example.py Outdated

# [END aiplatform_genai_multimodal_embedding_image_video_text]

if __name__ == "__main__":

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Do we need to remove the main function?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

done

amcolin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

XrossFox merged commit 9e0b283 into GoogleCloudPlatform:main Aug 19, 2026
10 of 18 checks passed
XrossFox deleted the vertex-to-genai-vision-models-embeddings-multimodal-example branch August 24, 2026 17:18
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

Labels

samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL