-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (67 loc) · 1.91 KB
/
pyproject.toml
File metadata and controls
74 lines (67 loc) · 1.91 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[project]
name = "paperrag"
version = "0.6.1"
description = "Local RAG for academic PDFs"
authors = [{name = "PaperRAG Team"}]
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"docling",
"sentence-transformers",
"faiss-cpu",
"torch==2.10.0",
"torchvision==0.25.0",
"numpy",
"pydantic>=2.5,<3.0",
"typer>=0.9",
"rich>=13.0",
"tqdm>=4.66",
"python-dotenv>=1.0,<2.0",
"psutil>=5.9",
"pymupdf>=1.23", # For PDF text detection
"prompt-toolkit>=3.0", # For REPL command history
"openai>=1.0,<2.0",
"pytest>=9.0.2",
]
[project.optional-dependencies]
llm = [
"transformers>=4.38",
"accelerate>=0.27",
]
llama = [
"huggingface-hub>=0.20", # For downloading GGUF models from HuggingFace
]
test = [
"pytest>=8.0",
]
docs = [
"sphinx>=7.0",
"myst-parser>=2.0",
"furo",
]
[project.scripts]
paperrag = "paperrag.cli:app"
[build-system]
requires = ["setuptools>=68.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["paperrag"]
[tool.pytest.ini_options]
# Filter out known third-party warnings from SWIG/Faiss
filterwarnings = [
"ignore:builtin type SwigPyPacked has no __module__ attribute:DeprecationWarning",
"ignore:builtin type SwigPyObject has no __module__ attribute:DeprecationWarning",
"ignore:builtin type swigvarlink has no __module__ attribute:DeprecationWarning",
]
# CPU-only torch is the default (avoids CUDA downloads during `uv sync`).
# A `gpu` extra would require torch to move out of the default dependencies
# into mutually-exclusive CPU/GPU extras, which would break plain `uv sync`.
# GPU users can reinstall torch from their preferred CUDA index explicitly.
[tool.uv.sources]
torch = { index = "pytorch-cpu" }
torchvision = { index = "pytorch-cpu" }
torchaudio = { index = "pytorch-cpu" }
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true