ragflow
БесплатноБез исполняемых скриптовНе проверенSelf-hosted RAG engine that parses complex documents (PDFs, Office files, scans, tables) into searchable chunks and serves them through a web UI, an HTTP API…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
RAGFlow — document-aware RAG engine you host yourself
Overview
RAGFlow turns a pile of documents into a knowledge base an LLM can answer from. Its strength is the ingestion side: layout analysis, OCR and table recognition split PDFs, Word, slides, spreadsheets and images into chunks that keep their structure, and each chunk keeps a pointer back to its source document. You then query the chunks directly (retrieval) or through a chat assistant that cites them.
Everything is managed through three surfaces that share one data model: the web UI, the HTTP API under /api/v1, and the ragflow-sdk Python package (a thin wrapper over that API). An agent can realistically do the following: bring the stack up with Docker Compose, check readiness, then create datasets, upload and parse documents, run retrieval and create chat assistants through the SDK. Account creation, adding the model provider keys and generating the API key are done once in the web UI.
Instructions
Deploy with Docker Compose
RAGFlow ships as a Compose project in the repository. The README pins deployment to a release tag; at the time of writing it is v1.0.0-rc2, a release candidate (the same tag is the default RAGFLOW_IMAGE in docker/.env). Read the README of the repository for the current tag before cloning.
git clone https://github.com/infiniflow/ragflow.git
cd ragflow/docker
git checkout v1.0.0-rc2
docker compose -f docker-compose.yml up -d
The image is large and the stack starts several dependencies (document engine, MySQL, object storage, Redis-compatible store), so the first start takes minutes. With the default MySQL configuration, the entrypoint runs the database migrations itself.
If the default document engine (Elasticsearch, DOC_ENGINE in docker/.env) is used, the Docker host needs a raised memory-map limit, otherwise the engine container exits:
sysctl vm.max_map_count
sudo sysctl -w vm.max_map_count=262144
echo "vm.max_map_count=262144" | sudo tee -a /etc/sysctl.conf
The README says this step is usually unnecessary when DOC_ENGINE=infinity. Other engines listed in docker/.env include opensearch, oceanbase, seekdb, gaussdb and vastbase.
Check that it is ready
The RAGFlow container has no Compose healthcheck, so wait for the dependencies to show healthy and then poll the HTTP endpoint:
docker ps
curl -f http://localhost/api/v1/system/healthz
docker logs --tail 50 ragflow-cpu
A 200 response means the web UI is ready. If you changed SVR_WEB_HTTP_PORT in docker/.env, use that port in the URL. The default published ports are 80 and 443 (web), 9380 (API) and 9381 (admin).
One-time setup in the web UI
- Open
http://localhostand register the first account. - On the model provider page add a chat model, an embedding model and (optionally) a reranker, each with its service address and API key. Without a chat and an embedding model, parsing and chat do not work.
- Click your avatar, open the API page and create an API key. Store it in an environment variable such as
RAGFLOW_API_KEY; never commit it.
Python SDK
python3.13 -m venv .venv
.venv/bin/pip install "ragflow-sdk==1.0.0rc2"
The SDK version should match the server release. A plain pip install ragflow-sdk skips pre-releases and installs the older 0.27.x line, so pin the 1.0.0rc2 build that corresponds to the v1.0.0-rc2 server tag (this is a release candidate; the README names it as the current deployment tag). PyPI lists the package as requiring Python >=3.13,<3.14; the calls below are identical in 0.27.3 and 1.0.0rc2. The client takes the API key and the server address without the /api/v1 suffix (the SDK appends it):
import os
from ragflow_sdk import RAGFlow
rag = RAGFlow(api_key=os.environ["RAGFLOW_API_KEY"], base_url="http://127.0.0.1:9380")
Port 9380 is the API service; http://localhost through the web port also fronts the same /api/v1 routes.
Datasets, documents and parsing
dataset = rag.create_dataset(name="vendor-contracts-2026", description="Signed supplier contracts")
with open("contracts/northwind-msa.pdf", "rb") as f:
blob = f.read()
dataset.upload_documents([{"display_name": "northwind-msa.pdf", "blob": blob}])
docs = dataset.list_documents(keywords="northwind")
ids = [d.id for d in docs]
dataset.parse_documents(ids) # blocks until parsing finishes
# dataset.async_parse_documents(ids) # returns immediately; poll list_documents()
create_dataset also accepts embedding_model, chunk_method (default "naive"), permission (default "me") and parser_config. Other lifecycle calls: rag.list_datasets(name=...), rag.get_dataset(name), dataset.update({...}), dataset.delete_documents(ids=[...]), rag.delete_datasets(ids=[...]). Individual chunks are reachable through document.list_chunks(), document.add_chunk(content=...) and document.delete_chunks(ids=[...]).
Установить ragflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ragflow?
Self-hosted RAG engine that parses complex documents (PDFs, Office files, scans, tables) into searchable chunks and serves them through a web UI, an HTTP API and a Python SDK. Use when someone asks to "deploy RAGFlow", "build a knowledge base over our PDFs", "create a chat assistant over my documents", "upload and parse files through the RAGFlow API", or "retrieve chunks with ragflow-sdk".
Как установить скилл ragflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ragflow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic