quickstart.mdx


Overview

The quickstart.mdx file serves as the official Quick Start Guide for RAGFlow, an open-source Retrieval-Augmented Generation (RAG) engine designed for deep document understanding and truthful question-answering backed by citations. This document provides step-by-step instructions for new users to:

It also includes important prerequisites, environment configurations, and notes on interacting with LLMs (Large Language Models), making it a comprehensive onboarding resource for users deploying RAGFlow for the first time.


File Structure and Content Explanation

This file is an .mdx file, a Markdown format extended with JSX components, commonly used in documentation sites such as Docusaurus. It combines static content with interactive UI components and code blocks. The key elements in this file include:

Major Sections

  1. Introduction

    • Brief description of RAGFlow and its capabilities.

    • Outline of what the quick start covers.

    • Important notes about platform support.

  2. Prerequisites

    • Hardware and software requirements.

    • Links and tips for installing Docker.

    • Optional: gVisor for sandboxed code execution.

  3. Start up the server

    • Detailed instructions to configure the system setting vm.max_map_count across Linux, macOS, and Windows.

    • Steps to clone the repository and check out the specific release tag.

    • Commands to start RAGFlow server using Docker Compose (CPU and GPU modes).

    • Table describing different Docker image tags and their properties.

    • Instructions to verify server startup by examining logs.

    • How to access the running server via browser.

  4. Configure LLMs

    • Explanation that RAGFlow requires LLM integration.

    • Guide to configure LLM providers and models within RAGFlow UI.

    • Notes on subsidiary models.

  5. Create your first knowledge base

    • How to create and configure a knowledge base.

    • Supported file types.

    • Chunking templates and embedding model selection.

    • File upload and parsing initiation.

    • Links to troubleshooting FAQs for parsing issues.

  6. Intervene with file parsing

    • Methods to visualize and manually edit document chunks.

    • Adding keywords or questions to chunks to improve retrieval ranking.

    • How to run retrieval tests to verify chunking.

  7. Set up an AI chat

    • Instructions to create a chat assistant linked to knowledge bases.

    • Configuration options for assistant behavior, prompt engine, and model settings.

    • Notes on response handling to avoid hallucinations.

    • Screenshot showing the chat interface.

  8. Additional Notes

    • Links to further API documentation for advanced integrations (HTTP and Python APIs).


Components and Their Usage

Tabs & TabItem

<Tabs defaultValue="linux" values={[{label: 'Linux', value: 'linux'}, ...]}>
  <TabItem value="linux">
    {/* Linux instructions */}
  </TabItem>
  ...
</Tabs>

APITable

<APITable>
| Column | Description |
|--------|-------------|
| v0.20.5 | Stable release |
</APITable>

Important Implementation Details


Interactions with Other System Components


Usage Examples

Starting the RAGFlow Server on Linux (CPU)

sudo sysctl -w vm.max_map_count=262144

git clone https://github.com/infiniflow/ragflow.git
cd ragflow/docker
git checkout -f v0.20.5

docker compose -f docker-compose.yml up -d

docker logs -f ragflow-server

Creating a Knowledge Base and Uploading Files

Adding Keywords to a Chunk

Setting up AI Chat Assistant


Visual Diagram

flowchart TD
    A[Start RAGFlow Server]
    A --> B[Configure vm.max_map_count]
    B --> C[Clone GitHub Repo]
    C --> D[Run Docker Compose]
    D --> E[Access RAGFlow UI]

    E --> F[Configure LLM Providers]
    E --> G[Create Knowledge Base]
    G --> H[Upload Files]
    H --> I[Parse Files into Chunks]
    I --> J[Intervene & Edit Chunks]
    J --> K[Run Retrieval Tests]

    E --> L[Create AI Chat Assistant]
    L --> M[Select Knowledge Bases]
    L --> N[Configure Prompt & Model]
    L --> O[Start Chatting]

    subgraph Server Setup
        A --> B --> C --> D --> E
    end

    subgraph Knowledge Base Workflow
        G --> H --> I --> J --> K
    end

    subgraph Chat Setup
        L --> M
        L --> N
        L --> O
    end

Summary

The quickstart.mdx file is a detailed onboarding guide that walks users through deploying RAGFlow, configuring system prerequisites, creating knowledge bases, parsing documents, and launching AI chat assistants. It blends static documentation with interactive UI components and commands to provide a smooth user experience. This file is critical for new users looking to quickly get RAGFlow up and running and become productive with its core features.