ollama/examples/langchain-python-rag-document
Simon Schampijer c0d9e59963 Update imports for deprecation
From the error message: Importing from langchain will no
longer be supported as of langchain 0.2.0. Please import
from langchain-community instead.
2024-04-11 21:18:21 +02:00
..
2024-04-11 21:18:21 +02:00
2023-10-11 21:26:11 -07:00
2023-10-11 21:26:11 -07:00

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?