langchain-google-vertexaiLangChain integration for Google's Vertex AI Platform.
As of langchain-google-vertexai 3.2.0, certain classes are deprecated in favor of equivalents in langchain-google-genai 4.0.0, which uses the consolidated google-genai SDK.
Refer to the provider docs and release notes for more information.
Refer to the docs for a high-level guide on how to use each module. These reference pages contain auto-generated API documentation for each module, focusing on the "what" rather than the "how" or "why" (i.e. no end-to-end tutorials or conceptual overviews).
ChatVertexAI
Deprecated: Use ChatGoogleGenerativeAI from langchain-google-genai instead.
VertexAI
Deprecated: Use GoogleGenerativeAI from langchain-google-genai instead.
VertexAIEmbeddings
Deprecated: Use GoogleGenerativeAIEmbeddings from langchain-google-genai instead.
Other
Image Loading Route.
Loads image bytes from multiple sources given a string.
Implementation of the Image Captioning model as an LLM.
Implementation of the Image Captioning model as a chat.
Chat implementation of a visual QnA model.
Generates an image from a prompt.
Given an image and a prompt, edits the image.
Large language models served from Vertex AI Model Garden.
Parse an output as a pydantic object.
Callback Handler that tracks VertexAI info.
Integration for Llama 3.1 on Google Cloud Vertex AI Model-as-a-Service.
Grade, tag, or otherwise evaluate predictions relative to their inputs
Compare the output of two models (or two outputs of the same model).
Evaluate the perplexity of a predicted string.
Evaluate the perplexity of a predicted string.
VertexAI VectorStore that handles the search and indexing using Vector Search
Alias of VectorSearchVectorStore for consistency with the rest of vector
VectorSearch with DataStore document storage.
Class in charge of building all Google Cloud SDK Objects needed to build
Abstract implementation of a similarity searcher.
Class to interface with Vector Search indexes (v1) and collections (v2).
Abstract interface of a key, text storage for retrieving documents.
Stores documents in Google Cloud Storage.
Stores documents in Google Cloud DataStore.
Google Vertex AI text completion large language models (legacy LLM).
Google Cloud VertexAI embedding models.
Google Cloud Vertex AI chat model integration.
Creates a retry decorator for Vertex / Palm LLMs.
Raise ImportError related to Vertex SDK being not available.
Returns a custom user agent header.
Returns a ClientInfo object with a custom user agent header.
Loads an Image from GCS.
Cut off the text as soon as any stop words occur.
Given an OpenAPI schema with a property $defs replaces all occurrences of
Encodes image bytes into a b64 encoded string.
Create a dictionary that can be part of a message content list.
Create a dictionary that can be part of a message content list.
Parses an image string from a dictionary with the correct format.
Parses an string from a dictionary or string with the correct format.
Creates a cache for content in some model.
Create a retry decorator for a given LLM and provided a list of error types.
Return a corresponding Vertex MaaS instance.
Use tenacity to retry the async completion call.
Upserts data points into a Vertex AI Vector Search 2.0 Collection.
Searches for neighbors in a Vertex AI Vector Search 2.0 Collection.
Deletes data points from a Vertex AI Vector Search 2.0 Collection.
Gets datapoint IDs that match a filter in a Vertex AI Vector Search 2.0.
Performs semantic search in a Vertex AI Vector Search 2.0 Collection.
Performs text search in a Vertex AI Vector Search 2.0 Collection.
Performs hybrid search combining semantic and text search with RRF.
Updates an index using stream updating.
Updates an index using batch updating.
Converts triplets id, embedding, metadata into IndexDataPoints instances.
Given a list of datapoints, generates a list of records in the input format
Get the appropriate function output parser given the user functions.
Create a runnable sequence that uses OpenAI functions.
LangChain Google Generative AI integration (VertexAI).
Wrapper around Google VertexAI chat-based models.
DEPRECATED
DEPRECATED
Model profile data. All edits should be made in profile_augmentations.toml.