aboutsummaryrefslogtreecommitdiff
path: root/src/server/chunker/requirements.txt
blob: 586bbe505f823330d818e2ef34feb3a21d15814f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Prefer official CPU wheels from the PyTorch index
--extra-index-url https://download.pytorch.org/whl/cpu

###############################################################################
#  Stable env for pdf_chunker.py                                              #
###############################################################################

# ─── LLM clients ─────────────────────────────────────────────────────────────
openai==1.40.6
httpx==0.27.2          # <0.28 → avoids "proxies=" crash
anthropic==0.34.0
cohere==5.8.0

# ─── Torch stack (CPU) ───────────────────────────────────────────────────────
torch<=2.7.1
torchvision<=0.22.1       # matches torch 2.5.x
torchaudio<=2.7.1

# ─── Vision / OCR / PDF processing ───────────────────────────────────────────
ultralyticsplus==0.0.28
easyocr==1.7.0
pymupdf==1.22.2
PyPDF2==3.0.1
pytesseract==0.3.10
Pillow==10.4.0
layoutparser==0.3.4
lxml==5.3.0

# ─── ML / maths ──────────────────────────────────────────────────────────────
numpy==1.26.4
scikit-learn==1.5.1

# ─── Utilities ──────────────────────────────────────────────────────────────
tqdm==4.66.5
python-dotenv==1.0.1
packaging==24.0