-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathpyproject.toml
More file actions
180 lines (165 loc) · 4.33 KB
/
Copy pathpyproject.toml
File metadata and controls
180 lines (165 loc) · 4.33 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
[project]
name = "vector-graph-rag"
version = "0.2.2"
description = "A Graph RAG implementation using pure vector search with Milvus"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.10"
authors = [
{ name = "zc277584121" }
]
keywords = ["rag", "graph-rag", "milvus", "vector-search", "knowledge-graph", "llm"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"pymilvus>=2.4.0,<2.6.10",
"milvus-lite>=2.4.0",
"numpy>=1.24.0",
"scipy>=1.10.0",
"openai>=1.0.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"tqdm>=4.65.0",
"tiktoken>=0.5.0",
"tenacity>=8.2.0",
"langchain-core>=0.3.0",
"python-multipart>=0.0.22",
"setuptools<71", # Required for pkg_resources used by milvus-lite
]
[project.optional-dependencies]
dev = [
"opentelemetry-sdk>=1.0",
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"ruff>=0.1.0",
]
api = [
"fastapi>=0.109.0",
"uvicorn[standard]>=0.27.0",
]
hf = [
"transformers>=4.30.0",
"torch>=2.0.0",
]
google = [
"google-genai>=1.0",
]
voyage = [
"voyageai>=0.3",
]
jina = [
"httpx>=0.27",
]
mistral = [
"mistralai>=1.0",
]
ollama = [
"ollama>=0.4",
]
local = [
"einops>=0.8.2",
"sentence-transformers>=3.0",
"torch>=2.0.0",
]
onnx = [
"onnxruntime>=1.17,<1.24; python_version == '3.10'",
"onnxruntime>=1.17; python_version >= '3.11'",
"tokenizers>=0.15",
"huggingface-hub>=0.20",
]
observability = [
"opentelemetry-api>=1.0",
]
all = [
"vector-graph-rag[dev,api,hf,google,voyage,jina,mistral,ollama,local,onnx,observability]",
]
loaders = [
"markitdown[docx,pdf]>=0.1.4",
"trafilatura>=2.0.0",
"lxml_html_clean", # Required by trafilatura/justext
]
docling = [
"trafilatura>=2.0.0",
"lxml_html_clean", # Required by trafilatura/justext
"docling>=2.0.0",
]
mineru = [
"markitdown[docx,pdf]>=0.1.4",
"trafilatura>=2.0.0",
"lxml_html_clean", # Required by trafilatura/justext
"mineru[pipeline]>=3.0.0",
]
docs = [
"mkdocs-material>=9.0.0",
]
# ==================== PyTorch Index Configuration ====================
# Define PyTorch indexes for different backends
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu124"
url = "https://download.pytorch.org/whl/cu124"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
# Default: use CPU for macOS, CUDA 12.4 for Linux
# Can be overridden by environment or Docker build args
[tool.uv.sources]
torch = [
{ index = "pytorch-cpu", marker = "sys_platform == 'darwin'" },
{ index = "pytorch-cpu", marker = "sys_platform == 'linux' and platform_machine == 'aarch64'" },
{ index = "pytorch-cu124", marker = "sys_platform == 'linux' and platform_machine == 'x86_64'" },
]
torchvision = [
{ index = "pytorch-cpu", marker = "sys_platform == 'darwin'" },
{ index = "pytorch-cpu", marker = "sys_platform == 'linux' and platform_machine == 'aarch64'" },
{ index = "pytorch-cu124", marker = "sys_platform == 'linux' and platform_machine == 'x86_64'" },
]
[project.urls]
Homepage = "https://github.com/zilliztech/vector-graph-rag"
Documentation = "https://zilliztech.github.io/vector-graph-rag/"
Repository = "https://github.com/zilliztech/vector-graph-rag"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"trafilatura>=2.0.0",
]
[tool.hatch.build.targets.wheel]
packages = ["src/vector_graph_rag"]
[tool.hatch.build.targets.sdist]
exclude = [
"/.cc-use",
"/.memsearch",
"/blog",
"/dist",
"/evaluation/temp_logs",
"/frontend/docs",
"/logo_candidates",
"/output",
"/screenshots",
"/site",
]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "W"]
ignore = ["E501"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"