forked from NVIDIA-AI-Blueprints/rag
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
162 lines (150 loc) · 4.73 KB
/
pyproject.toml
File metadata and controls
162 lines (150 loc) · 4.73 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
[project]
name = "nvidia_rag"
version = "2.4.0.dev"
description = "This blueprint serves as a reference solution for a foundational Retrieval Augmented Generation (RAG) pipeline."
readme = "README.md"
license = "Apache-2.0"
license-files = [
"LICENSE"
]
authors = [
{ name = "NVIDIA RAG", email = "foundational-rag-dev@exchange.nvidia.com" }
]
requires-python = ">=3.11,<3.14"
dependencies = [
"bleach>=6.2,<7.0",
"dataclass-wizard>=0.27,<1.0",
"fastapi>=0.115.5,<1.0",
"mcp>=1.23.1",
"anyio>=4.12.0",
"httpx>=0.28.1",
"httpx-sse>=0.4.3",
"langchain>=0.3.27",
"langchain-community>=0.3.27",
"langchain-milvus>=0.2.1",
"langchain-nvidia-ai-endpoints>=0.3.18",
"minio>=7.2,<8.0",
"pdfplumber>=0.6",
"pydantic>=2.11,<3.0",
"pymilvus[milvus_lite]>=2.4,<3.0",
"pymilvus-model>=0.3,<1.0",
"python-multipart>=0.0.18,<1.0",
"pyyaml>=6.0,<7.0",
"uvicorn[standard]>=0.32,<1.0",
"langchain-core>=0.3.72",
"redis>=4.3.4,<5.0",
"protobuf>=5.29.5",
"langchain-elasticsearch>=0.3,<1.0",
"lark>=1.2.2",
"python-dateutil>=2.9.0.post0",
]
[project.optional-dependencies]
rag = [
"langchain-openai>=0.2,<1.0",
"opentelemetry-api>=1.29,<2.0",
"opentelemetry-exporter-otlp>=1.29,<2.0",
"opentelemetry-exporter-prometheus>=0.50b0,<1.0",
"opentelemetry-instrumentation>=0.50b0,<1.0",
"opentelemetry-instrumentation-fastapi>=0.50b0,<1.0",
"opentelemetry-instrumentation-milvus>=0.36,<1.0",
"opentelemetry-processor-baggage>=0.50b0,<1.0",
"opentelemetry-sdk>=1.29,<2.0",
"opentelemetry-sdk-extension-prometheus-multiprocess>=1.0,<2.0",
"prometheus-client>=0.20,<1.0",
"azure-core>=1.35,<2.0",
"azure-storage-blob>=12.26,<13.0",
"pyarrow>=21.0,<22.0",
]
ingest = [
# nv-ingest dependencies (required for ingestion operations)
"nv-ingest-api==26.1.0rc3",
"nv-ingest-client==26.1.0rc3",
"tritonclient==2.57.0",
# Other ingest dependencies
"langchain-openai>=0.2,<1.0",
"overrides>=7.7,<8.0",
"tqdm>=4.67,<5.0",
"opentelemetry-api>=1.29,<2.0",
"opentelemetry-exporter-otlp>=1.29,<2.0",
"opentelemetry-exporter-prometheus>=0.50b0,<1.0",
"opentelemetry-instrumentation>=0.50b0,<1.0",
"opentelemetry-instrumentation-fastapi>=0.50b0,<1.0",
"opentelemetry-instrumentation-milvus>=0.36,<1.0",
"opentelemetry-processor-baggage>=0.50b0,<1.0",
"opentelemetry-sdk>=1.29,<2.0",
"azure-core>=1.35,<2.0",
"azure-storage-blob>=12.26,<13.0",
"pyarrow>=21.0,<22.0",
]
all = [
# nv-ingest dependencies (required for ingestion operations)
"nv-ingest-api==26.1.0rc3",
"nv-ingest-client==26.1.0rc3",
"tritonclient==2.57.0",
# RAG + Ingest dependencies
"langchain-openai>=0.2,<1.0",
"overrides>=7.7,<8.0",
"tqdm>=4.67,<5.0",
"opentelemetry-api>=1.29,<2.0",
"opentelemetry-exporter-otlp>=1.29,<2.0",
"opentelemetry-exporter-prometheus>=0.50b0,<1.0",
"opentelemetry-instrumentation>=0.50b0,<1.0",
"opentelemetry-instrumentation-fastapi>=0.50b0,<1.0",
"opentelemetry-instrumentation-milvus>=0.36,<1.0",
"opentelemetry-processor-baggage>=0.50b0,<1.0",
"opentelemetry-sdk>=1.29,<2.0",
"azure-core>=1.35,<2.0",
"azure-storage-blob>=12.26,<13.0",
"pyarrow>=21.0,<22.0",
]
[tool.uv.sources]
nvidia-rag = { workspace = true }
[tool.setuptools]
package-dir = {"" = "src"}
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
# Include all YAML files inside rag_server
"nvidia_rag.rag_server" = ["*.yaml"]
# Include the filter grammar file in utils
"nvidia_rag.utils" = ["*.lark"]
[project.urls]
Homepage = "https://github.com/NVIDIA-AI-Blueprints/rag"
Documentation = "https://github.com/NVIDIA-AI-Blueprints/rag/blob/main/README.md"
# Linting and formatting configuration
[tool.ruff]
target-version = "py311"
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, handled by ruff format
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"F401", # unused imports (intentionally imported for availability checks)
"B007", # loop control variable not used (intentional in health check)
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[dependency-groups]
docs = [
"myst-parser>=4.0.1",
"nvidia-sphinx-theme>=0.0.8",
"sphinx>=8.2.3",
"sphinx-autobuild>=2025.8.25",
"sphinx-autodoc2>=0.5.0",
"sphinx-copybutton>=0.5.2",
"swagger-plugin-for-sphinx>=5.2.0",
]