README.md 408 Bytes
Newer Older
mashun1's avatar
v1  
mashun1 committed
1
2
3
4
5
6
# LangChain Document QA

This example provides an interface for asking questions to a PDF document.

## Setup

xuxzh1's avatar
update  
xuxzh1 committed
7
1. Ensure you have the `llama3.2` model installed:
xuxzh1's avatar
init  
xuxzh1 committed
8
9

```
xuxzh1's avatar
update  
xuxzh1 committed
10
ollama pull llama3.2
xuxzh1's avatar
init  
xuxzh1 committed
11
12
13
14
```

2. Install the Python Requirements.

mashun1's avatar
v1  
mashun1 committed
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
```
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?
```