Technical requirements
For this chapter, in addition to the specific requirements for each service that is mentioned, you will need an active Google Cloud project and a Python environment with the following libraries installed:
pip install -qU langchain langchain-google-vertexai langchain_community langchain_google_community[speech] langchain-text-splitters
This will install the LangChain base functionality, LangChain on Google Cloud Vertex AI, and the LangChain splitters for working with long texts. It will also install the LangChain Community package, which includes community-maintained packages, such as document loaders, and the LangChain Google Community package, which includes some Google Cloud features, such as the Speech-to-Text API.