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
139 lines (128 loc) · 3.88 KB
/
Copy pathpyproject.toml
File metadata and controls
139 lines (128 loc) · 3.88 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
[project]
name = "nvidia_rag"
version = "2.3.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.12"
dependencies = [
"bleach==6.2.0",
"dataclass-wizard==0.27.0",
"fastapi==0.115.5",
"langchain>=0.3.27",
"langchain-community>=0.3.27",
"langchain-milvus>=0.2.1",
"langchain-nvidia-ai-endpoints>=0.3.17",
"minio==7.2.15",
"pdfplumber>=0.6",
"pydantic>=2.11.7",
"pymilvus==2.5.8",
"pymilvus-model==0.3.2",
"python-multipart==0.0.18",
"pyyaml==6.0.2",
"uvicorn[standard]==0.32.0",
"langchain-core>=0.3.72",
"redis==5.2.1",
"protobuf>=5.29.5",
"langchain-elasticsearch==0.3.2",
"lark>=1.2.2",
"python-dateutil>=2.9.0.post0",
"nv-ingest-api==25.9.0",
"nv-ingest-client==25.9.0",
"tritonclient==2.57.0",
]
[project.optional-dependencies]
rag = [
"langchain-openai==0.2.8",
"opentelemetry-api==1.29.0",
"opentelemetry-exporter-otlp==1.29.0",
"opentelemetry-exporter-prometheus==0.50b0",
"opentelemetry-instrumentation==0.50b0",
"opentelemetry-instrumentation-fastapi==0.50b0",
"opentelemetry-instrumentation-milvus==0.36.0",
"opentelemetry-processor-baggage==0.50b0",
"opentelemetry-sdk==1.29.0",
"opentelemetry-sdk-extension-prometheus-multiprocess==1.0.0",
"prometheus-client==0.20.0",
"azure-core>=1.35.0",
"azure-storage-blob>=12.26.0",
"pyarrow>=21.0.0",
]
ingest = [
"overrides==7.7.0",
"tqdm==4.67.1",
"opentelemetry-api==1.29.0",
"opentelemetry-exporter-otlp==1.29.0",
"opentelemetry-exporter-prometheus==0.50b0",
"opentelemetry-instrumentation==0.50b0",
"opentelemetry-instrumentation-fastapi==0.50b0",
"opentelemetry-instrumentation-milvus==0.36.0",
"opentelemetry-processor-baggage==0.50b0",
"opentelemetry-sdk==1.29.0",
"azure-core>=1.35.0",
"azure-storage-blob>=12.26.0",
"pyarrow>=21.0.0",
]
all = [
"langchain-openai==0.2.8",
"overrides==7.7.0",
"tqdm==4.67.1",
"opentelemetry-api==1.29.0",
"opentelemetry-exporter-otlp==1.29.0",
"opentelemetry-exporter-prometheus==0.50b0",
"opentelemetry-instrumentation==0.50b0",
"opentelemetry-instrumentation-fastapi==0.50b0",
"opentelemetry-instrumentation-milvus==0.36.0",
"opentelemetry-processor-baggage==0.50b0",
"opentelemetry-sdk==1.29.0",
"azure-core>=1.35.0",
"azure-storage-blob>=12.26.0",
"pyarrow>=21.0.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 = "py312"
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"