From the error message: Importing from langchain will no longer be supported as of langchain 0.2.0. Please import from langchain-community instead.
LangChain Document QA
This example provides an interface for asking questions to a PDF document.
Setup
pip install -r requirements.txt
Run
python main.py
A prompt will appear, where questions may be asked:
Query: How many locations does WeWork have?