Build a Document Question Answering app using LangChain and Streamlit.
Modified to use Google Cloud Platform Vertex AI LLMs and embeddings.
Requires Python 3.10+ and the Google Cloud CLI (follow the instructions here).
Recommended to create an activate a venv for the project, i.e.
python -m venv venv
source venv/bin/activate
Install the requirements and authorize to GCP.
pip install -r requirements.txt
gcloud auth application-default login
streamlit run .\streamlit_app.py
Once the app is loaded, upload a file, type a question in the text box, Submit, and wait for a generated response.