RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Docs: update python version to 3.13 (#15103)
Jin Hai775ea5567948
diff --git a/AGENTS.md b/AGENTS.mdindex b558df135a..775394d43d 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -34,7 +34,7 @@ The project uses **uv** for dependency management.1. **Setup Environment**:```bash- uv sync --python 3.12 --all-extras+ uv sync --python 3.13 --all-extrasuv run python3 download_deps.py```diff --git a/README.md b/README.mdindex 2a86b2490f..80d85f4201 100644--- a/README.md+++ b/README.md@@ -328,7 +328,7 @@ docker build --platform linux/amd64 \```bashgit clone https://github.com/infiniflow/ragflow.gitcd ragflow/- uv sync --python 3.12 # install RAGFlow dependent python modules+ uv sync --python 3.13 # install RAGFlow dependent python modulesuv run python3 download_deps.pypre-commit install```diff --git a/README_ar.md b/README_ar.mdindex 1f7393945e..9fe02bdb48 100644--- a/README_ar.md+++ b/README_ar.md@@ -328,7 +328,7 @@ docker build --platform linux/amd64 \```bashgit clone https://github.com/infiniflow/ragflow.gitcd ragflow/- uv sync --python 3.12 # install RAGFlow dependent python modules+ uv sync --python 3.13 # install RAGFlow dependent python modulesuv run python3 download_deps.pypre-commit install```diff --git a/README_fr.md b/README_fr.mdindex b21d380ec3..135cc3865a 100644--- a/README_fr.md+++ b/README_fr.md@@ -319,7 +319,7 @@ docker build --platform linux/amd64 \```bashgit clone https://github.com/infiniflow/ragflow.gitcd ragflow/- uv sync --python 3.12 # install RAGFlow dependent python modules+ uv sync --python 3.13 # install RAGFlow dependent python modulesuv run python3 download_deps.pypre-commit install```diff --git a/README_id.md b/README_id.mdindex a9d45317fe..e9582d3715 100644--- a/README_id.md+++ b/README_id.md@@ -302,7 +302,7 @@ docker build --platform linux/amd64 \```bashgit clone https://github.com/infiniflow/ragflow.gitcd ragflow/- uv sync --python 3.12 # install RAGFlow dependent python modules+ uv sync --python 3.13 # install RAGFlow dependent python modulesuv run python3 download_deps.pypre-commit install```diff --git a/README_ja.md b/README_ja.mdindex 185d6e9c36..e5b4529461 100644--- a/README_ja.md+++ b/README_ja.md@@ -302,7 +302,7 @@ docker build --platform linux/amd64 \```bashgit clone https://github.com/infiniflow/ragflow.gitcd ragflow/- uv sync --python 3.12 # install RAGFlow dependent python modules+ uv sync --python 3.13 # install RAGFlow dependent python modulesuv run python3 download_deps.pypre-commit install```diff --git a/README_ko.md b/README_ko.mdindex ee243344ea..281d772385 100644--- a/README_ko.md+++ b/README_ko.md@@ -297,7 +297,7 @@ docker build --platform linux/amd64 \```bashgit clone https://github.com/infiniflow/ragflow.gitcd ragflow/- uv sync --python 3.12 # install RAGFlow dependent python modules+ uv sync --python 3.13 # install RAGFlow dependent python modulesuv run python3 download_deps.pypre-commit install```diff --git a/README_pt_br.md b/README_pt_br.mdindex 2bebd2c261..66a6e35e86 100644--- a/README_pt_br.md+++ b/README_pt_br.md@@ -319,7 +319,7 @@ docker build --platform linux/amd64 \```bashgit clone https://github.com/infiniflow/ragflow.gitcd ragflow/- uv sync --python 3.12 # instala os módulos Python dependentes do RAGFlow+ uv sync --python 3.13 # instala os módulos Python dependentes do RAGFlowuv run python3 download_deps.pypre-commit install```diff --git a/README_tr.md b/README_tr.mdindex 778d4122fb..64de012e6a 100644--- a/README_tr.md+++ b/README_tr.md@@ -323,7 +323,7 @@ docker build --platform linux/amd64 \```bashgit clone https://github.com/infiniflow/ragflow.gitcd ragflow/- uv sync --python 3.12 # RAGFlow'un bağımlı Python modüllerini yükler+ uv sync --python 3.13 # RAGFlow'un bağımlı Python modüllerini yükleruv run python3 download_deps.pypre-commit install```diff --git a/README_tzh.md b/README_tzh.mdindex 0d6c95af03..4a9e5fc4de 100644--- a/README_tzh.md+++ b/README_tzh.md@@ -329,7 +329,7 @@ docker build --platform linux/amd64 \```bashgit clone https://github.com/infiniflow/ragflow.gitcd ragflow/- uv sync --python 3.12 # install RAGFlow dependent python modules+ uv sync --python 3.13 # install RAGFlow dependent python modulesuv run python3 download_deps.pypre-commit install```diff --git a/README_zh.md b/README_zh.mdindex c2222a95ab..18de3b8223 100644--- a/README_zh.md+++ b/README_zh.md@@ -329,7 +329,7 @@ docker build --platform linux/amd64 \```bashgit clone https://github.com/infiniflow/ragflow.gitcd ragflow/- uv sync --python 3.12 # install RAGFlow dependent python modules+ uv sync --python 3.13 # install RAGFlow dependent python modulesuv run python3 download_deps.pypre-commit install```diff --git a/admin/client/user.py b/admin/client/user.pyindex 6e6a36eeea..b00e64e711 100644--- a/admin/client/user.py+++ b/admin/client/user.py@@ -41,7 +41,7 @@ def encrypt_password(password_plain: str) -> str:return base64.b64encode(encrypted_password).decode('utf-8')except Exception as exc:raise AuthException(- "Password encryption unavailable; install pycryptodomex (uv sync --python 3.12 --group test)."+ "Password encryption unavailable; install pycryptodomex (uv sync --python 3.13 --group test).") from excreturn crypt(password_plain)diff --git a/docs/develop/launch_ragflow_from_source.md b/docs/develop/launch_ragflow_from_source.mdindex 22f127f34c..5e16b6600b 100644--- a/docs/develop/launch_ragflow_from_source.md+++ b/docs/develop/launch_ragflow_from_source.md@@ -46,14 +46,14 @@ cd ragflow/2. Install RAGFlow service's Python dependencies:```bash- uv sync --python 3.12 --frozen+ uv sync --python 3.13 --frozen```*A virtual environment named `.venv` is created, and all Python dependencies are installed into the new environment.*If you need to run tests against the RAGFlow service, install the test dependencies:```bash- uv sync --python 3.12 --group test --frozen && uv pip install sdk/python --group test+ uv sync --python 3.13 --group test --frozen && uv pip install sdk/python --group test```### Launch third-party servicesdiff --git a/docs/develop/mcp/launch_mcp_server.md b/docs/develop/mcp/launch_mcp_server.mdindex 99633fd323..306b3425cf 100644--- a/docs/develop/mcp/launch_mcp_server.md+++ b/docs/develop/mcp/launch_mcp_server.md@@ -178,7 +178,7 @@ This section is contributed by our community contributor [yiminghub2024](https:/iii. Copy [docker/entrypoint.sh](https://github.com/infiniflow/ragflow/blob/main/docker/entrypoint.sh) locally.iv. Install the required dependencies using `uv`:- Run `uv add mcp` or- - Copy [pyproject.toml](https://github.com/infiniflow/ragflow/blob/main/pyproject.toml) locally and run `uv sync --python 3.12`.+ - Copy [pyproject.toml](https://github.com/infiniflow/ragflow/blob/main/pyproject.toml) locally and run `uv sync --python 3.13`.2. Edit **docker-compose.yml** to enable MCP (disabled by default).3. Launch the MCP server:diff --git a/pyproject.toml b/pyproject.tomlindex 994766d5c6..651f1cc260 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -80,7 +80,7 @@ dependencies = ["opencv-python-headless==4.10.0.84","opendal>=0.45.0,<0.46.0","opensearch-py==2.7.1",- "ormsgpack>=1.5.0",+ "ormsgpack>=1.6.0","pdfplumber==0.10.4","pluginlib>=0.10.0","psycopg2-binary>=2.9.11,<3.0.0",diff --git a/test/README.md b/test/README.mdindex 81d33c4f48..fa622041d2 100644--- a/test/README.md+++ b/test/README.md@@ -10,7 +10,7 @@**Install Python dependencies (including test dependencies):**```bash-uv sync --python 3.12 --only-group test --no-default-groups --frozen+uv sync --python 3.13 --only-group test --no-default-groups --frozen```diff --git a/test/benchmark/README.md b/test/benchmark/README.mdindex 085f782621..6f1ca539de 100644--- a/test/benchmark/README.md+++ b/test/benchmark/README.md@@ -251,7 +251,7 @@ These scripts create a dataset,upload/parse docs from test/benchmark/test_docs, run the benchmark, and clean up.The both script runs retrieval then chat on the same dataset, then deletes it.-- Make sure to run ```uv sync --python 3.12 --group test ``` before running the commands.+- Make sure to run ```uv sync --python 3.13 --group test ``` before running the commands.- It is also necessary to run these commands prior to initializing your containers if you plan on using the built-in embedded model: ```echo -e "TEI_MODEL=BAAI/bge-small-en-v1.5" >> docker/.env```and ```echo -e "COMPOSE_PROFILES=\${COMPOSE_PROFILES},tei-cpu" >> docker/.env```diff --git a/test/benchmark/auth.py b/test/benchmark/auth.pyindex 135907dafa..49c6efdcfb 100644--- a/test/benchmark/auth.py+++ b/test/benchmark/auth.py@@ -12,7 +12,7 @@ def encrypt_password(password_plain: str) -> str:from api.utils.crypt import cryptexcept Exception as exc:raise AuthError(- "Password encryption unavailable; install pycryptodomex (uv sync --python 3.12 --group test)."+ "Password encryption unavailable; install pycryptodomex (uv sync --python 3.13 --group test).") from excreturn crypt(password_plain)