Study Pal to help with studying, because misery loves company. :')
Have Python already installed with this. Python 3.11.4 was used for this project.
SOURCE: https://github.com/GoogleCloudPlatform/generative-ai/blob/main/language/orchestration/langchain/intro_langchain_palm_api.ipynb https://github.com/themlguy-tf/generative-ai/blob/main/#3b_[NJ]_UseCases-PDF, Sequential & Summarization_LangChain_&_GCP_PaLM_.ipynb
VENV: First, create an empty folder that will be your working folder. Open it with Visual Studio. We want to create a virtual environment. Please check this link: https://code.visualstudio.com/docs/python/environments
AUTHENTICATION: Please follow these instructions. You want to have an Application Default Credentials (ADC) in the end. https://cloud.google.com/vertex-ai/docs/workbench/reference/authentication#client-libs:~:text=the command line-,Client libraries or third-party tools,-Set up Application
PACKAGES: Make sure you install the required packages from requirements.txt. After creating and activating venv, run this command: pip install -r requirements.txt
BEFORE RUNNING: Change the vector_save_directory to where you want to save your PDF data. Change the project ID to your own account on which you got authenticated.