juleskuehn / langchain-ask-the-doc-gcp

Ask the Doc app built using Langchain and Streamlit (modified for GCP services)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿฆœ๐Ÿ”— LangChain - Ask the Doc

Build a Document Question Answering app using LangChain and Streamlit.

Modified to use Google Cloud Platform Vertex AI LLMs and embeddings.

Setup

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

Run the app

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.

About

Ask the Doc app built using Langchain and Streamlit (modified for GCP services)


Languages

Language:Python 85.1%Language:Dockerfile 14.9%