ollama/examples/langchain-python-rag-document
Kim Hallberg 0be8baad2b
Update and Fix example models (#6065)
* Update example models

* Remove unused README.md
2024-07-29 23:56:37 -07:00
..
main.py Update and Fix example models (#6065) 2024-07-29 23:56:37 -07:00
README.md Update and Fix example models (#6065) 2024-07-29 23:56:37 -07:00
requirements.txt remove with 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.1 model installed:
ollama pull llama3.1
  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?