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
Feat: auto release (#10557)
Lynn83ec915d5129
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 05ea87fa6a..06b6b386d8 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -120,3 +120,17 @@ jobs:packages-dir: sdk/python/dist/password: ${{ secrets.PYPI_API_TOKEN }}verbose: true++ - name: Build ragflow-cli+ if: startsWith(github.ref, 'refs/tags/v')+ run: |+ cd admin/client && \+ uv build++ - name: Publish client package distributions to PyPI+ if: startsWith(github.ref, 'refs/tags/v')+ uses: pypa/gh-action-pypi-publish@release/v1+ with:+ packages-dir: admin/client/dist/+ password: ${{ secrets.PYPI_API_TOKEN }}+ verbose: truediff --git a/.gitignore b/.gitignoreindex 16bd4e7ffd..fbf80b3aab 100644--- a/.gitignore+++ b/.gitignore@@ -149,8 +149,7 @@ out# Nuxt.js build / generate output.nuxtdist-admin/release-+ragflow_cli.egg-info# Gatsby files.cache/# Comment in the public line in if your project uses Gatsby and not Next.jsdiff --git a/admin/README.md b/admin/client/README.mdsimilarity index 99%rename from admin/README.mdrename to admin/client/README.mdindex 1200e81232..c8ff2e68d6 100644--- a/admin/README.md+++ b/admin/client/README.md@@ -26,7 +26,7 @@ It consists of a server-side Service and a command-line client (CLI), both imple2. Launch from source code:```bash- python admin/admin_server.py+ python admin/server/admin_server.py```The service will start and listen for incoming connections from the CLI on the configured port.diff --git a/admin/admin_client.py b/admin/client/admin_client.pysimilarity index 100%rename from admin/admin_client.pyrename to admin/client/admin_client.pydiff --git a/admin/client/pyproject.toml b/admin/client/pyproject.tomlnew file mode 100644index 0000000000..120327afa4--- /dev/null+++ b/admin/client/pyproject.toml@@ -0,0 +1,24 @@+[project]+name = "ragflow-cli"+version = "0.21.0.dev5"+description = "Admin Service's client of [RAGFlow](https://github.com/infiniflow/ragflow). The Admin Service provides user management and system monitoring. "+authors = [{ name = "Lynn", email = "[email protected]" }]+license = { text = "Apache License, Version 2.0" }+readme = "README.md"+requires-python = ">=3.10,<3.13"+dependencies = [+ "requests>=2.30.0,<3.0.0",+ "beartype>=0.18.5,<0.19.0",+ "pycryptodomex>=3.10.0",+ "lark>=1.1.0",+]++[dependency-groups]+test = [+ "pytest>=8.3.5",+ "requests>=2.32.3",+ "requests-toolbelt>=1.0.0",+]++[project.scripts]+ragflow-cli = "admin_client:main"diff --git a/admin/admin_server.py b/admin/server/admin_server.pysimilarity index 100%rename from admin/admin_server.pyrename to admin/server/admin_server.pydiff --git a/admin/auth.py b/admin/server/auth.pysimilarity index 100%rename from admin/auth.pyrename to admin/server/auth.pydiff --git a/admin/config.py b/admin/server/config.pysimilarity index 100%rename from admin/config.pyrename to admin/server/config.pydiff --git a/admin/exceptions.py b/admin/server/exceptions.pysimilarity index 100%rename from admin/exceptions.pyrename to admin/server/exceptions.pydiff --git a/admin/models.py b/admin/server/models.pysimilarity index 100%rename from admin/models.pyrename to admin/server/models.pydiff --git a/admin/responses.py b/admin/server/responses.pysimilarity index 100%rename from admin/responses.pyrename to admin/server/responses.pydiff --git a/admin/routes.py b/admin/server/routes.pysimilarity index 99%rename from admin/routes.pyrename to admin/server/routes.pyindex afc82bc9d2..3bcb01244b 100644--- a/admin/routes.py+++ b/admin/server/routes.py@@ -17,7 +17,7 @@from flask import Blueprint, request-from auth import login_verify+from admin.server.auth import login_verifyfrom responses import success_response, error_responsefrom services import UserMgr, ServiceMgr, UserServiceMgrfrom api.common.exceptions import AdminExceptiondiff --git a/admin/services.py b/admin/server/services.pysimilarity index 99%rename from admin/services.pyrename to admin/server/services.pyindex dd1a3c12bd..c7dd30ab72 100644--- a/admin/services.py+++ b/admin/server/services.py@@ -27,7 +27,7 @@ from api.utils.crypt import decryptfrom api.utils import health_utilsfrom api.common.exceptions import AdminException, UserAlreadyExistsError, UserNotFoundError-from config import SERVICE_CONFIGS+from admin.server.config import SERVICE_CONFIGSclass UserMgr:diff --git a/docker/entrypoint.sh b/docker/entrypoint.shindex 5965acfefd..7f660d06d6 100755--- a/docker/entrypoint.sh+++ b/docker/entrypoint.sh@@ -195,7 +195,7 @@ fiif [[ "${ENABLE_ADMIN_SERVER}" -eq 1 ]]; thenecho "Starting admin_server..."while true; do- "$PY" admin/admin_server.py+ "$PY" admin/server/admin_server.pydone &fidiff --git a/docs/guides/manage_users_and_services.md b/docs/guides/manage_users_and_services.mdindex faafbf1980..2fb090fa41 100644--- a/docs/guides/manage_users_and_services.md+++ b/docs/guides/manage_users_and_services.md@@ -12,21 +12,21 @@ The Admin CLI and Admin Service form a client-server architectural suite for RAG-### Starting the Admin Service+## Starting the Admin Service-#### Launching from source code+### Launching from source code1. Before start Admin Service, please make sure RAGFlow system is already started.2. Launch from source code:```bash- python admin/admin_server.py+ python admin/server/admin_server.py```The service will start and listen for incoming connections from the CLI on the configured port.-#### Using docker image+### Using docker image1. Before startup, please configure the `docker_compose.yml` file to enable admin server:@@ -39,7 +39,7 @@ The Admin CLI and Admin Service form a client-server architectural suite for RAG-### Using the Admin CLI+## Using the Admin CLI1. Ensure the Admin Service is running.@@ -55,7 +55,7 @@ The Admin CLI and Admin Service form a client-server architectural suite for RAGragflow-cli -h 0.0.0.0 -p 9381```- Enter superuser's password to login. Default password is `admin`.+ Enter superuser's password to login. Default password is `admin`.