File size: 1,541 Bytes
404da58
 
bc3ba9e
404da58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3ba9e
404da58
bc3ba9e
 
404da58
 
 
bc3ba9e
404da58
bc3ba9e
 
404da58
bc3ba9e
 
404da58
 
 
bc3ba9e
404da58
 
 
 
 
bc3ba9e
404da58
 
bc3ba9e
404da58
bc3ba9e
9ad0a4c
 
 
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# EmpathRAG - Python Dependencies
# Install order matters - read INSTALL NOTES below before running pip install

# ── INSTALL NOTES ──────────────────────────────────────────────────────────────
# 1. PyTorch (CUDA) - install FIRST before anything else:
#    pip install torch==2.5.1+cu121 --index-url https://download.pytorch.org/whl/cu121
#
# 2. llama-cpp-python (CUDA wheel) - install SECOND:
#    pip install llama_cpp_python==0.3.4 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu121
#
# 3. Everything else:
#    pip install -r requirements.txt
#
# 4. Force correct numpy (faiss requires <2.0):
#    pip install "numpy==1.26.4" --force-reinstall
# ──────────────────────────────────────────────────────────────────────────────

# HuggingFace stack
transformers==4.57.6
peft==0.18.1
datasets==2.18.0
accelerate==1.13.0
evaluate==0.4.1

# Retrieval
faiss-cpu==1.9.0
sentence-transformers==3.4.1

# Explainability
captum==0.7.0

# Evaluation
ragas==0.1.21
bert-score==0.3.13
rank-bm25==0.2.2
scipy==1.17.1
scikit-learn==1.8.0

# Demo
gradio==4.44.1
fastapi==0.115.5
starlette==0.41.3
pydantic==2.10.6

# Data / Utilities
pandas==2.3.3
numpy==1.26.4
tqdm==4.67.3
kaggle==1.6.3

# Support Plan export (counselor-friendly PDF)
fpdf2==2.8.4