RAGFlow v0.12.0 – is an open source Retrieval Augmented Generation (RAG) engine based on deep document understanding with docker images for Ollama Kibana Elastic Search MySQL and MinIO

RAGFlow – it offers a streamlined RAG workflow for businesses of any scale, combining LLM (Large Language Models) to provide truthful question-answering capabilities backed by well-founded citations from various complex formatted data

root@pve-ai-rag-12:~# curl -fsSL https://get.docker.com -o get-docker.sh
root@pve-ai-rag-12:~#
root@pve-ai-rag-12:~# chmod +x get-docker.sh
root@pve-ai-rag-12:~# ./get-docker.sh

Prerequisites
CPU ≥ 4 cores
RAM ≥ 16 GB
Disk ≥ 50 GB
Docker ≥ 24.0.0 & Docker Compose ≥ v2.26.1

root@pve-ai-rag-12:~# vi /etc/sysctl.conf
vm.max_map_count=262144 
root@pve-ai-rag-12:~#
root@pve-ai-rag-12:~# sysctl vm.max_map_count
vm.max_map_count = 262144
root@pve-ai-rag-12:~# git clone https://github.com/infiniflow/ragflow.git
Cloning into ‚ragflow’…
remote: Enumerating objects: 16837, done.
remote: Counting objects: 100% (2199/2199), done.
remote: Compressing objects: 100% (926/926), done.
remote: Total 16837 (delta 1444), reused 1827 (delta 1232), pack-reused 14638 (from 1)
Receiving objects: 100% (16837/16837), 48.20 MiB | 10.68 MiB/s, done.
Resolving deltas: 100% (11705/11705), done.
root@pve-ai-rag-12:~#
root@pve-ai-rag-12:~/ragflow/docker#
root@pve-ai-rag-12:~/ragflow/docker# docker compose up -d
WARN[0000] The „HF_ENDPOINT“ variable is not set. Defaulting to a blank string.
WARN[0000] The „MACOS“ variable is not set. Defaulting to a blank string.
[+] Running 0/5
[+] Running 0/5 1.9s
[+] Running 0/5 2.0s
[+] Running 0/5 2.1s
[+] Running 0/5 2.2s [+] Running 0/5 2.3s [+] Running 0/5 2.4s [+] Running 0/5 2.5s [+] Running 0/5 2.6s [+] Running 0/5 2.7s [+] Running 1/5 2.8s [+] Running 1/5⠀⠀⠀⠀] Pulling 2.9s [+] Running 1/5⠀⠀⠀⠀] Pulling 3.0s [+] Running 1/5⠀⠀⠀⠀] Pulling 3.1s [+] Running 1/5⠀⠀⠀⠀] Pulling 3.2s [+] Running 1/5⠀⠀⠀⠀] Pulling 3.3s [+] Running 1/5⠀⠀⠀⠀] Pulling 3.4s [+] Running 1/5⠀⠀⠀⠀] Pulling 3.5s [+] Running 1/5⠀⠀⠀⠀] Pulling 3.6s [+] Running 1/5⠀⠀⠀⠀] Pulling 3.7s [+] Running 1/5⠀⠀⠀⠀] Pulling 3.8s [+] Running 1/5⠀⠀⠀⠀] Pulling 3.9s [+] Running 1/5⠀⠀⠀⠀] Pulling 4.0s [+] Running 1/5⠀⠀⠀⠀] Pulling 4.1s [+] Running 1/5⠀⠀⠀⠀] Pulling 4.2s [+] Running 1/5⠀⠀⠀⠀] Pulling 4.3s [+] Running 1/5⠀⠀⠀⠀] Pulling 4.4s [+] Running 1/5⠀⠀⠀⠀] Pulling 4.5s [+] Running 1/5⠀⠀⠀⠀] Pulling 4.6s [+] Running 1/5⠀⠀⠀⠀] Pulling 4.7s [+] Running 1/5⠀⠀⠀⠀] Pulling 4.8s [+] Running 1/5⠀⠀⠀⠀] Pulling 4.9s [+] Running 1/5⠀⠀⠀⠀] Pulling 5.0s [+] Running 1/5⠀⠀⠀⠀] Pulling 5.1s [+] Running 1/5⠀⠀⠀⠀] Pulling 5.2s [+] Running 1/5⠀⠀⠀⠀] Pulling 5.3s [+] Running 1/5⠀⠀⠀⠀] Pulling 5.4s [+] Running 1/5⠀⠀⠀⠀] Pulling 5.5s [+] Running 1/5⠀⠀⠀⠀] Pulling 5.6s [+] Running 1/5⠀⠀⠀⠀] Pulling 5.7s [+] Running 1/5⠀⠀⠀⠀] Pulling 5.8s [+] Running 1/5⠀⠀⠀⠀] Pulling 5.9s [+] Running 103/5⠀⠀] Pulling 6.0s ✔ es01 Pulled 752.2s ✔ mysql Pulled 640.6s ✔ minio Pulled 658.2s ✔ ragflow Pulled 1634.5s
✔ redis Pulled 647.9s
[+] Running 10/10
✔ Network docker_ragflow Created 0.2s
✔ Volume „docker_minio_data“ Created 0.0s
✔ Volume „docker_redis_data“ Created 0.0s
✔ Volume „docker_esdata01“ Created 0.0s
✔ Volume „docker_mysql_data“ Created 0.0s
✔ Container ragflow-mysql Healthy 24.0s
✔ Container ragflow-es-01 Healthy 54.5s
✔ Container ragflow-redis Started 3.5s
✔ Container ragflow-minio Started 3.5s
✔ Container ragflow-server Started 52.5s
root@pve-ai-rag-12:~/ragflow/docker#
root@pve-ai-rag-12:~/ragflow/docker# docker logs -f ragflow-server
[WARNING] [2024-10-02 19:44:40,108] [synonym.__init__] [line:40]: Realtime synonym is disabled, since no redis connection.
[WARNING] [2024-10-02 19:44:40,122] [synonym.__init__] [line:40]: Realtime synonym is disabled, since no redis connection.
[WARNING] [2024-10-02 19:44:40,556] [synonym.__init__] [line:40]: Realtime synonym is disabled, since no redis connection.
[WARNING] [2024-10-02 19:44:40,571] [synonym.__init__] [line:40]: Realtime synonym is disabled, since no redis connection.
[WARNING] Load term.freq FAIL!
[WARNING] Load term.freq FAIL!
____ ___ ______ ______ __
/ __ \ / | / ____// ____// /____ _ __
/ /_/ // /| | / / __ / /_ / // __ \| | /| / /
/ _, _// ___ |/ /_/ // __/ / // /_/ /| |/ |/ /
/_/ |_|/_/ |_|\____//_/ /_/ \____/ |__/|__/
[INFO] [2024-10-02 19:45:10,672] [_internal._log] [line:96]: WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on all addresses (0.0.0.0)
* Running on http://127.0.0.1:9380
* Running on http://172.18.0.6:9380
[INFO] [2024-10-02 19:45:10,673] [_internal._log] [line:96]: Press CTRL+C to quit
root@pve-ai-rag-12:~/ragflow/docker#
root@pve-ai-rag-12:~/ragflow/docker# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
efd3ad8a8418 infiniflow/ragflow:dev „./entrypoint.sh“ 6 minutes ago Up 5 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 0.0.0.0:5678->5678/tcp, :::5678->5678/tcp, 0.0.0.0:9380->9380/tcp, :::9380->9380/tcp ragflow-server
d3216b488dcb quay.io/minio/minio:RELEASE.2023-12-20T01-00-02Z „/usr/bin/docker-ent…“ 6 minutes ago Up 6 minutes 0.0.0.0:9000-9001->9000-9001/tcp, :::9000-9001->9000-9001/tcp ragflow-minio
84aca211e561 mysql:8.0.39 „docker-entrypoint.s…“ 6 minutes ago Up 6 minutes (healthy) 33060/tcp, 0.0.0.0:5455->3306/tcp, [::]:5455->3306/tcp ragflow-mysql
8fd627fcaa6a docker.elastic.co/elasticsearch/elasticsearch:8.11.3 „/bin/tini — /usr/l…“ 6 minutes ago Up 6 minutes (healthy) 9300/tcp, 0.0.0.0:1200->9200/tcp, [::]:1200->9200/tcp ragflow-es-01
3860d08c363e redis:7.2.4 „docker-entrypoint.s…“ 6 minutes ago Up 6 minutes 0.0.0.0:6379->6379/tcp, :::6379->6379/tcp ragflow-redis
root@pve-ai-rag-12:~/ragflow/docker#
root@pve-ai-rag-12:~#

Leave a Reply

You must be logged in to post a comment.