Deploying RAGFlow Based on the openGauss Vector Database
This section describes how to deploy RAGFlow and use the openGauss DataVec vector database as the corpus for the RAG engine.
Deploying RAGFlow
Hardware Requirements
- CPU >= 4 cores
- RAM >= 16 GB
- Disk >= 50 GB
Operating System and Software Requirements
- OS: openEuler 22.03 LTS SP3 for Arm / BClinux for Euler 21.10U4 / CTyunOS3 / CULinux3.0
- Docker: >= 28.0.1 for Arm
- Docker Compose: >= 2.33.1 for Arm
Quick Start
(1) Deploying openGauss and RAGFlow on the Same Node
Clone the KunpengRAG repository and go to the RAGFlow Docker Compose deployment directory.
bashgit clone https://gitee.com/kunpeng_compute/KunpengRAG.git cd KunpengRAG/deployment/docker-compose/ragflowUse the docker-compose.yml file to start the RAGFlow server.
bashdocker compose up -d
(2) Deploying openGauss and RAGFlow on Different Nodes
First, deploy the openGauss service on one node.
Clone the KunpengRAG repository and go to the RAGFlow Docker Compose deployment directory.
bashgit clone https://gitee.com/kunpeng_compute/KunpengRAG.git cd KunpengRAG/deployment/docker-compose/ragflowConfigure the openGauss environment variables in the
.envfile, including the openGauss username, port, and password. If these variables are not configured, the default values are used.Start only the openGauss service using Docker Compose.
bashdocker compose up -d opengauss
After openGauss is deployed successfully, deploy RAGFlow on another node.
- Go to the corresponding directory and modify the
.envenvironment variable configuration file. SetCOMPOSE_PROFILE=nonein the.envfile to prevent Docker Compose from automatically starting the openGauss service. - Modify the openGauss environment variables in the
.envfile and enter the connection information for the separately deployed openGauss service:
OPENGAUSS_HOST: IP address of the server where the openGauss service is running.OPENGAUSS_PORT: port on which the openGauss service listens. In the deployment described above, the default is5432.OPENGAUSS_USER: regular user of the openGauss service. In the deployment described above, the default isopengauss_user.OPENGAUSS_PASS: password of the regular openGauss service user. In the deployment described above, the password isxxxxxx.OPENGAUSS_DATABASE: name of the openGauss service database. In the deployment described above, the default isragflow.
Run the following command to start the RAGFlow service.
bashdocker compose up -d
After the command completes, access http://<your_server_ip>/install in a browser to open the RAGFlow console and start the initial setup.
For details, see openGauss + RAGFlow: From Deployment to Integration.