LangChain Google Generative AI integration (VertexAI).
This module contains the LangChain integrations for Vertex AI service - Google foundational models and third-party models available on Vertex Model Garden.
Supported integrations
VertexAIImageCaptioning,
VertexAIImageCaptioningChat, VertexAIImageEditorChat,
VertexAIImageGeneratorChat, VertexAIVisualQnAChat.model_garden.ChatAnthropicVertex,
model_garden_maas.VertexModelGardenLlama,
model_garden_maas.VertexModelGardenMistral.VertexAIModelGarden.VectorSearchVectorStore,
VectorSearchVectorStoreDatastore, VectorSearchVectorStoreGCS.VertexPairWiseStringEvaluator,
VertexStringEvaluator.You need to enable required Google Cloud APIs (depending on the integration you're using) and set up credentials by either:
GOOGLE_APPLICATION_CREDENTIALS environment variableThis codebase uses the google.auth library which first looks for the application
credentials variable mentioned above, and then looks for system-level auth.