# Self-host RAGFlow with local models

To self-host RAGFlow with local models, run its Docker Compose stack with vLLM serving chat and embeddings on one GPU; in our test on 2026-11-15 the Nemotron variant on an NVIDIA L40S 48GB was fully ready in about 28 minutes, using 31,772 of 46,068 MiB of GPU memory.

Updated: 2026-12-03

Published: 2026-11-16

## What is RAGFlow?

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding. Source: the [RAGFlow documentation](https://ragflow.io/docs/), read 2026-11-16. RAGFlow is built by InfiniFlow and licensed under Apache-2.0.

## How do I run RAGFlow for the first time, step by step?

1. Pick a Launchable: [RAGFlow on your own GPU](https://www.9owls.com/launchables/ragflow/) for Qwen models, or [RAGFlow RAG with NVIDIA Nemotron](https://www.9owls.com/launchables/ragflow-nemotron/) for NVIDIA Nemotron models.
2. Launch it on NVIDIA Brev, as in [how to deploy a Launchable on NVIDIA Brev](https://www.9owls.com/guides/deploy-a-launchable-on-nvidia-brev/). It starts on an NVIDIA L40S 48GB, instance type AWS `g6e.xlarge`.
3. Docker Compose starts the pinned services listed below.
4. Open the web UI through the NVIDIA Brev Secure Link named `open-ragflow`, on port `8080`.
5. Chat with your documents. vLLM answers on port `8000` for chat and port `8001` for embeddings, on the instance.
6. Stop the instance when idle. Data under the `ragflow` folder survives Stop; Delete destroys it.

## Which Docker containers does self-hosted RAGFlow run?

Both 9owls RAGFlow Launchables start the same pinned services with Docker Compose. On our 2026-11-15 test, that made 8 containers, because vLLM runs twice: once for chat and once for embeddings. Versions are as of 2026-11-15.

| Service | Image | Role in the stack | Licence |
|---|---|---|---|
| RAGFlow | `infiniflow/ragflow:v1.0.0` | Web UI and RAG engine | Apache-2.0 |
| Infinity | `infiniflow/infinity:v0.7.5-x64-v3` | Infinity engine by InfiniFlow | Apache-2.0 |
| vLLM | `vllm/vllm-openai:v0.33.0` | Serves the chat and embedding models | Apache-2.0 |
| MySQL Community Server | `mysql:8.0.40` | Supporting service | GPL-2.0 |
| Silo object store by PGSTY | `pgsty/silo` | Supporting service | AGPL-3.0-or-later |
| Apache Kvrocks | `apache/kvrocks:2.16.0` | Supporting service | Apache-2.0 |
| NATS | `nats:2.14.2` | Supporting service | Apache-2.0 |

## Which chat and embedding models serve it?

| Launchable | Chat model | Embedding model | Model licence | Disk |
|---|---|---|---|---|
| [RAGFlow on your own GPU](https://www.9owls.com/launchables/ragflow/) | `Qwen/Qwen3-8B` | A Qwen embedding model | Apache-2.0 | 256 GiB |
| [RAGFlow RAG with NVIDIA Nemotron](https://www.9owls.com/launchables/ragflow-nemotron/) | `nvidia/NVIDIA-Nemotron-3.5-Bolt-E4B-BF16` | `nvidia/Nemotron-3.5-Embed-1B-BF16` | OpenMDW License Agreement, version 1.1 | 200 GiB |

In RAGFlow RAG with NVIDIA Nemotron, Qwen chat and embedding models are available as launch options. To serve a Nemotron model on its own, without RAGFlow, see [how to serve NVIDIA Nemotron with vLLM](https://www.9owls.com/guides/serve-nvidia-nemotron-with-vllm/).

## How long does a fresh RAGFlow deploy take, and how much GPU memory does it use?

We tested RAGFlow RAG with NVIDIA Nemotron on a fresh instance on 2026-11-15. It was fully ready about 28 minutes after the instance was created, with both Nemotron models using 31,772 of 46,068 MiB of GPU memory.

| What we tested | Result on 2026-11-15 |
|---|---|
| Launchable and GPU | RAGFlow RAG with NVIDIA Nemotron, default models, 1x NVIDIA L40S 48GB |
| RAGFlow health check answering | about 25 minutes after create |
| Chat model listed, fully ready | about 28 minutes after create |
| GPU memory with chat and embedding models loaded | 31,772 of 46,068 MiB |
| Embedding size from the Nemotron embedding model | 2048 values per vector |
| RAGFlow data under the `ragflow` folder | 20G |
| After a stop and start | chat model back about 7 minutes after start, all 8 containers healthy, nothing re-entered |

These numbers are for the Nemotron Launchable only. We did not take the same measurements for RAGFlow on your own GPU with Qwen models.

## How does vLLM serve the models locally?

vLLM provides an HTTP server that implements OpenAI's Completions API, Chat API and more ([vLLM OpenAI-compatible server](https://docs.vllm.ai/en/stable/serving/online_serving/openai_compatible_server/), read 2026-11-16). In both Launchables, chat runs on port `8000` and embeddings on port `8001` on the instance. In RAGFlow on your own GPU, these two endpoints are not exposed to the internet. To run vLLM as a standalone endpoint instead, read [serve an OpenAI-compatible API with vLLM](https://www.9owls.com/guides/serve-an-openai-compatible-api-with-vllm/); to choose between model servers, read [Ollama vs vLLM](https://www.9owls.com/compare/ollama-vs-vllm/).

## What does a Launchable give you?

A Launchable is a reproducible, shareable environment configuration on NVIDIA Brev. It captures the default hardware, the software configuration and the network settings ([Launchables](https://docs.nvidia.com/brev/latest/concepts/launchables), read 2026-11-16). For the basics, see [what is a Brev Launchable](https://www.9owls.com/guides/what-is-a-brev-launchable/) and the [Brev Launchables FAQ](https://www.9owls.com/faq/brev-launchable-basics/). For RAGFlow a Launchable means:

- Hardware: an NVIDIA L40S 48GB on AWS `g6e.xlarge`. For how the L40S compares with the smaller NVIDIA L4, read [NVIDIA L4 vs L40S for LLM inference](https://www.9owls.com/compare/nvidia-l4-vs-l40s-for-llm-inference/).
- Software: seven pinned services started with Docker Compose.
- Network: one web UI behind the Secure Link `open-ragflow`, on port `8080`.
- Models: chat on port `8000` and embeddings on port `8001`, on the instance.

## Where is my data stored?

Data lives under the `ragflow` folder in the instance workspace. It survives Stop and is destroyed by Delete.

> **Note:** Stop pauses GPU billing; storage charges may still apply while the instance is stopped.

> **Warning:** Delete cannot be undone.

The [stop, start and delete guide](https://www.9owls.com/guides/stop-start-and-delete-an-nvidia-brev-instance/) compares billing in each state.

## How do I launch RAGFlow?

Launch [RAGFlow on your own GPU](https://www.9owls.com/launchables/ragflow/) for Qwen models, or [RAGFlow RAG with NVIDIA Nemotron](https://www.9owls.com/launchables/ragflow-nemotron/) for NVIDIA Nemotron models.

## Can my own RAG stack become a Launchable?

NightKeeper packages your repository as an NVIDIA Brev Launchable, proves it on a fresh GPU and keeps it running. Point it at the repository that holds your RAG stack, review the pull request it opens, then create the Launchable in the Brev console. Your Brev API key stays in your repository's GitHub secrets; NightKeeper never sees it.

[Create your Launchable](https://www.9owls.com/nightkeeper/start/) in a 4-step form, or read how [NightKeeper](https://www.9owls.com/nightkeeper/) works.

## Sources: where do these facts come from?

- [RAGFlow documentation](https://ragflow.io/docs/), read 2026-11-16.
- [vLLM OpenAI-compatible server](https://docs.vllm.ai/en/stable/serving/online_serving/openai_compatible_server/), read 2026-11-16.
- [NVIDIA Brev Launchables](https://docs.nvidia.com/brev/latest/concepts/launchables), read 2026-11-16.
- Our fresh-deploy test record of the RAGFlow RAG with NVIDIA Nemotron Launchable, 2026-11-15, read 2026-11-28.

## How was this page made?

9owls publishes this page. The tested facts come from our own fresh deploy of the RAGFlow RAG with NVIDIA Nemotron Launchable on 2026-11-15; the RAGFlow and vLLM facts come from their own documentation, listed above with read dates.

- What changed on 2026-11-28: added the start-up time, GPU memory, container count and restart result measured on the 2026-11-15 fresh deploy.
- What changed on 2026-12-03: the opening answer now states the measured start-up time and GPU memory from the 2026-11-15 fresh deploy.
- Found an error? Tell us through the [contact page](https://www.9owls.com/company/#contact).

## Related pages

- [RAGFlow on your own GPU](https://www.9owls.com/launchables/ragflow/)
- [RAGFlow RAG with NVIDIA Nemotron](https://www.9owls.com/launchables/ragflow-nemotron/)
- [RAG and notebooks](https://www.9owls.com/topics/rag-and-notebooks/)
- [Serve an OpenAI-compatible API with vLLM](https://www.9owls.com/guides/serve-an-openai-compatible-api-with-vllm/)
- [Stop, start and delete an NVIDIA Brev instance](https://www.9owls.com/guides/stop-start-and-delete-an-nvidia-brev-instance/)

[All guides](https://www.9owls.com/guides/)
