ollama/examples/langchain-python-rag-document
2024-12-29 14:36:25 -05: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

  1. Ensure you have the llama3.2 model installed:
ollama pull llama3.2
  1. Install the Python Requirements.
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?