Technical requirements
For this chapter, you will need an active Google Cloud project and a Python environment with the following libraries installed:
!pip install --upgrade langchain_google_vertexai langchain-community langchain_google_community google-cloud-vision
In order to make unstructured library work, you need to follow the OS-specific instructions (or use a Docker image) described here:
https://docs.unstructured.io/open-source/introduction/quick-start
If you’re using Unix, you need to run the following:
apt-get update && apt-get install libmagic-dev pip install unstructured==0.15.9 unstructured[pdf]==0.15.9 opencv-python==4.9.0.80