> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scitix.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# RAGFlow

[RAGFlow](https://github.com/infiniflow/ragflow) is an open-source RAG engine built on deep document understanding. You can build knowledge bases from your documents and chat over them. Its **OpenAI-API-Compatible** provider points both chat and embedding models to the ScitiX Model Inference API.

Deploy RAGFlow with Docker Compose by following the [official guide](https://ragflow.io/docs/dev/), then open the web UI. The default URL is `http://localhost`.

Supported chat models include `glm-5.2` and `DeepSeek-V4-Flash`. The embedding model in this guide is `Qwen/Qwen3-Embedding-8B`. See the [model catalog](https://console.scitix.ai/model-inference/models).

## Configure

Create an API Key on the [API Keys](https://console.scitix.ai/model-inference/api_keys) page, then open **Model providers** from the top-right avatar menu. Find **OpenAI-API-Compatible** and add it.

| Field         | Value                                                                                            |
| ------------- | ------------------------------------------------------------------------------------------------ |
| Instance name | `ScitiX`                                                                                         |
| Base url      | `https://api.scitix.ai/model-api/v1`                                                             |
| API-Key       | Your API Key created on the [API Keys](https://console.scitix.ai/model-inference/api_keys) page. |

<Warning>
  **Base url** must include `/v1`. RAGFlow's OpenAI-API-Compatible provider appends `/chat/completions` and `/embeddings`.
</Warning>

Click **List models** to fetch the available models and confirm connectivity, then click **Ok**.

Add the models you need and choose the correct **model type** for each.

| Model type | Model                     |
| ---------- | ------------------------- |
| chat       | `glm-5.2`                 |
| embedding  | `Qwen/Qwen3-Embedding-8B` |

RAGFlow keeps chat and embedding models in separate lists. Add `glm-5.2` as **chat** and `Qwen/Qwen3-Embedding-8B` as **embedding**. Choose a chat model with native tool calling if you use agent features.

<img src="https://mintcdn.com/scitix-adfc65c2/43gGw0_j4ULBL8e8/model-inference/media/ragflow-provider-config.png?fit=max&auto=format&n=43gGw0_j4ULBL8e8&q=85&s=129cbc0b416ab620a0eef9fc2fd49f01" alt="RAGFlow — OpenAI-API-Compatible provider pointed at ScitiX" width="3024" height="1451" data-path="model-inference/media/ragflow-provider-config.png" />

Back on the **Model providers** page, under **Set default models**, set **LLM** to `glm-5.2` and **Embedding** to `Qwen/Qwen3-Embedding-8B`.

<Warning>
  RAG needs an embedding model. Set a ScitiX embedding model, such as `Qwen/Qwen3-Embedding-8B`, as the default embedding model. Otherwise, dataset parsing or retrieval will not work.
</Warning>

## Verify

Create a chat assistant from **Chat → Create an Assistant**, or use the default one. Confirm that its model is `glm-5.2`, then send a message. A normal reply confirms that the connection works.

For document RAG, create a **Dataset** with `Qwen/Qwen3-Embedding-8B` as the embedding model, upload and parse a document, then bind the dataset to a chat assistant.

<img src="https://mintcdn.com/scitix-adfc65c2/_I6H7WpAVXPiLIwE/model-inference/media/ragflow-chat-reply.png?fit=max&auto=format&n=_I6H7WpAVXPiLIwE&q=85&s=f307df3bdb35261b3a3b70c6af809b6e" alt="RAGFlow — chatting with a ScitiX model" width="3024" height="1446" data-path="model-inference/media/ragflow-chat-reply.png" />
