Integration with an Google embeddings model.
class GoogleEmbeddingsBaseGoogleEmbeddings<GoogleAuthOptions>Used to specify output embedding size. If set, output embeddings will be truncated to the size specified.
Model to use
Takes an array of documents as input and returns a promise that resolves to a 2D array of embeddings for each document. It splits the documents into chunks and makes requests to the Google Vertex AI API to generate embeddings.
Takes a document as input and returns a promise that resolves to an embedding for the document. It calls the embedDocuments method with the document as the input.
The name of the serializable. Override to provide an alias or to preserve the serialized module name in minified environments.
Implemented as a static method to support loading logic.