Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Added PEP 723 metadata to download_deps.py (#4988)

Zhichang Yu6daae7f22635
diff --git a/docs/guides/develop/build_docker_image.mdx b/docs/guides/develop/build_docker_image.mdx
index bea9f46880..baf1d25434 100644
--- a/docs/guides/develop/build_docker_image.mdx
+++ b/docs/guides/develop/build_docker_image.mdx
@@ -57,8 +57,7 @@ While we also test RAGFlow on ARM64 platforms, we do not maintain RAGFlow Docker
```bash
git clone https://github.com/infiniflow/ragflow.git
cd ragflow/
-pip3 install huggingface_hub nltk
-python3 download_deps.py
+uv run download_deps.py
docker build -f Dockerfile.deps -t infiniflow/ragflow_deps .
docker build -f Dockerfile -t infiniflow/ragflow:nightly .
docker build --build-arg LIGHTEN=1 -f Dockerfile -t infiniflow/ragflow:nightly-slim .
diff --git a/download_deps.py b/download_deps.py
index aa09c0ae52..7526af48a7 100644
--- a/download_deps.py
+++ b/download_deps.py
@@ -1,8 +1,13 @@
#!/usr/bin/env python3
-#
-# Install this script's dependencies with pip3:
-# pip3 install huggingface-hub nltk
+# PEP 723 metadata
+# /// script
+# requires-python = ">=3.10"
+# dependencies = [
+# "huggingface-hub",
+# "nltk",
+# ]
+# ///
from huggingface_hub import snapshot_download
import nltk