Optional
fields: GoogleVertexAIMultimodalEmbeddingsParamsGenerates embeddings for multiple text documents.
An array of text documents.
A promise that resolves to an array of text document embeddings.
Generates embeddings for multiple images.
An array of images.
A promise that resolves to an array of image embeddings.
Generates embeddings for a single image.
A single image.
A promise that resolves to an image embedding.
Generates embeddings for multiple media instances.
An array of media instances.
A promise that resolves to an array of media embeddings.
Generates embeddings for a single media instance.
A single media instance.
A promise that resolves to a media embedding.
Generates embeddings for a single text document.
A single text document.
A promise that resolves to a text document embedding.
Converts media (text or image) to an instance that can be used for generating embeddings.
The media (text or image) to be converted.
An instance of media that can be used for generating embeddings.
Converts the response from Google Vertex AI to embeddings.
The response from Google Vertex AI.
An array of media embeddings.
Class for generating embeddings for text and images using Google's Vertex AI. It extends the Embeddings base class and implements the GoogleVertexAIMultimodalEmbeddingsParams interface.