Skip to content

Conversation

cabljac
Copy link
Contributor

@cabljac cabljac commented Sep 1, 2025

This is a draft of how to migrate embedders across to v2 in the vertexai plugin

@github-actions github-actions bot added docs Improvements or additions to documentation js tooling config labels Sep 1, 2025
@cabljac cabljac force-pushed the @invertase/vertexai-migrate-v2-fixed branch from cd7fedf to 480b59d Compare September 1, 2025 15:36
@cabljac cabljac force-pushed the @invertase/vertexai-migration-embedders branch from 69cac47 to e6ae721 Compare September 1, 2025 15:42
@cabljac cabljac requested a review from CorieW September 1, 2025 15:43
for (const name of Object.keys(SUPPORTED_IMAGEN_MODELS)) {
actions.push(defineImagenModel(name, authClient, { projectId, location }));
}
for (const name of Object.keys(SUPPORTED_GEMINI_MODELS)) {
=======
Copy link
Contributor Author

Choose a reason for hiding this comment

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

left over from a bad rebase, TODO: fix

// Call the embedder action directly with a single document
const response = await embedderAction({
input: [
content instanceof Document ? content : new Document(content),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not 100% if this is passed in correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config docs Improvements or additions to documentation js tooling
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant