-
Notifications
You must be signed in to change notification settings - Fork 448
Expand file tree
/
Copy pathpyproject.toml
More file actions
131 lines (117 loc) · 2.61 KB
/
Copy pathpyproject.toml
File metadata and controls
131 lines (117 loc) · 2.61 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[build-system]
requires = ["setuptools>=84.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "ultrarag"
version = "0.3.0.2"
description = "UltraRAG"
readme = "README.md"
requires-python = ">=3.11, <3.13"
dependencies = [
# 3.4.5 requires Starlette >=1 through its client extra; MinerU/Gradio need <1.
"fastmcp>=3.3.1,<3.4.5",
"mcp",
"rich",
"pandas",
"Jinja2",
"openai",
"httpx[socks]",
"python-dotenv",
"PyYAML",
"tqdm",
"requests",
"orjson",
"tabulate",
"aiohttp",
"pillow",
"flask",
# faiss-gpu-cu12 1.14 requires NumPy 2; <2.4 also satisfies vLLM/Numba.
"numpy>=2,<2.4",
"fakeredis",
"pymilvus",
"pypinyin",
"jieba",
"charset-normalizer",
"python-docx",
"pymupdf",
"chonkie",
"tiktoken",
]
[project.optional-dependencies]
retriever = [
"infinity-emb",
"sentence-transformers",
"openai",
"bm25s",
"faiss-gpu-cu12; sys_platform != 'darwin'",
"faiss-cpu; sys_platform == 'darwin'",
"exa_py",
"tavily-python",
"pymilvus",
"qdrant-client",
"numba",
"torch",
"fastapi",
"uvicorn",
"pydantic",
]
generation = [
# Newer cu129 wheels currently pull CUDA 13 tooling or conflict with MinerU.
"vllm==0.22.1",
"openai",
"transformers",
"torch",
# 0.2.4 has no CPython 3.12 Linux x86_64 wheel.
"xgrammar<0.2.4",
]
evaluation = [
"rouge-score",
"pytrec-eval-terrier",
]
corpus = [
"mineru[core]>=3,<4",
]
# LiteLLM generation backend: a pure API client, so it is kept separate from the
# heavy `generation` extra (vllm/torch) — CPU/proxy users can install just this.
litellm = [
"litellm>=1.60,<2.0",
]
all = [
"ultrarag[retriever]",
"ultrarag[generation]",
"ultrarag[litellm]",
"ultrarag[corpus]",
"ultrarag[evaluation]",
]
[tool.setuptools.packages.find]
where = ["src"]
[project.scripts]
ultrarag = "ultrarag.client:main"
[dependency-groups]
dev = [
"ruff",
"ipython",
"jupyter",
"pytest",
]
[tool.uv]
package = true
[tool.uv.sources]
vllm = { index = "vllm-cu129" }
torch = [
{ index = "pytorch-cu129", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
]
torchvision = [
{ index = "pytorch-cu129", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
]
torchaudio = [
{ index = "pytorch-cu129", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
]
[[tool.uv.index]]
name = "pytorch-cu129"
url = "https://download.pytorch.org/whl/cu129"
explicit = true
[[tool.uv.index]]
name = "vllm-cu129"
url = "https://wheels.vllm.ai/0.22.1/cu129"
explicit = true