← 返回 Skills 市场
openlark

RAGFlow open-source Retrieval-Augmented Generation (RAG) engine — deployment, configuration, management, and troubleshooting.

作者 OpenLark · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
67
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install open-ragflow
功能描述
RAGFlow open-source Retrieval-Augmented Generation (RAG) engine — deployment, configuration, management, and troubleshooting.
使用说明 (SKILL.md)

\r \r

Open RAGFlow\r

\r Open-source RAG engine fusing RAG with Agent capabilities. Full-stack: Python backend (Flask), React/TypeScript frontend, Docker-deployed microservices.\r \r

Use Cases\r

\r

  • Deploying or self-hosting RAGFlow via Docker Compose or from source\r
  • Configuring RAGFlow (LLM providers, API keys, document engines, ports)\r
  • Managing knowledge bases, datasets, documents, agents, and chats via RAGFlow CLI\r
  • Understanding RAGFlow architecture (DeepDoc, Agent system, RAG pipeline)\r
  • Integrating with RAGFlow REST API\r
  • Troubleshooting RAGFlow deployment or runtime issues.\r \r \r

Quick Reference\r

\r

When to Use Which Reference\r

\r

Prerequisites\r

\r

  • CPU >= 4 cores, RAM >= 16 GB, Disk >= 50 GB\r
  • Docker >= 24.0.0 & Docker Compose >= v2.26.1\r
  • vm.max_map_count >= 262144 (Linux, for Elasticsearch)\r
  • gVisor: optional, only needed for the code executor (sandbox) feature\r \r

Docker Deployment (Quick Start)\r

\r

git clone https://github.com/infiniflow/ragflow.git\r
cd ragflow/docker\r
docker compose -f docker-compose.yml up -d\r
docker logs -f docker-ragflow-cpu-1  # wait for the banner, then login\r
# Open http://YOUR_SERVER_IP in browser\r
```\r
\r
Configure LLM API keys in `docker/service_conf.yaml.template` under `user_default_llm`, then restart:\r
\r
```bash\r
docker compose -f docker-compose.yml up -d\r
```\r
\r
### Chinese Mirror Images\r
\r
If Docker Hub is slow:\r
- Huawei Cloud: `swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow`\r
- Alibaba Cloud: `registry.cn-hangzhou.aliyuncs.com/infiniflow/ragflow`\r
\r
Set HuggingFace mirror if needed: `HF_ENDPOINT=https://hf-mirror.com` in `docker/.env`.\r
\r
## Key Configuration Files\r
\r
| File | Scope |\r
|------|-------|\r
| `docker/.env` | Environment variables: `SVR_HTTP_PORT`, `MYSQL_PASSWORD`, `MINIO_PASSWORD`, `DOC_ENGINE`, `RAGFLOW_IMAGE`, `HF_ENDPOINT` |\r
| `docker/service_conf.yaml.template` | Backend services: LLM factory, API keys, embedding/rerank/ASR/TTS models |\r
| `docker/docker-compose.yml` | Full stack orchestration |\r
| `docker/docker-compose-base.yml` | Infrastructure services only (dev mode) |\r
\r
## Post-Deployment LLM Setup\r
\r
1. Log in via browser\r
2. Edit `docker/service_conf.yaml.template`:\r
   ```yaml\r
   user_default_llm:\r
     factory: "OpenAI"   # or "DeepSeek", "Gemini", etc.\r
     api_key: "sk-..."\r
     base_url: "https://api.openai.com/v1/"\r
   ```\r
3. Run `docker compose -f docker-compose.yml up -d` to apply.\r
\r
## CLI Quick Reference\r
\r
All CLI commands end with `;`. Full reference: [references/cli-reference.md](references/cli-reference.md).\r
\r
```bash\r
# Datasets\r
LIST DATASETS;\r
CREATE DATASET 'my_kb' WITH EMBEDDING 'text-embedding-ada-002' PARSER 'pdf';\r
DROP DATASET 'my_kb';\r
LIST FILES OF DATASET 'my_kb';\r
\r
# Documents\r
IMPORT '/path/to/doc.pdf' INTO DATASET 'my_kb';\r
PARSE DATASET 'my_kb' SYNC;\r
PARSE DATASET 'my_kb' ASYNC;\r
\r
# Search\r
SEARCH 'What is RAG?' ON DATASETS 'my_kb';\r
\r
# Models\r
CREATE MODEL PROVIDER 'openai' 'sk-...';\r
SET DEFAULT LLM 'gpt-4';\r
LIST MODEL PROVIDERS;\r
LIST DEFAULT MODELS;\r
\r
# Agents & Chats\r
LIST AGENTS;\r
LIST CHATS;\r
CREATE CHAT 'my_session';\r
DROP CHAT 'my_session';\r
\r
# Connection\r
PING;\r
SHOW CURRENT USER;\r
```\r
\r
## Switching Doc Engine (Elasticsearch → Infinity)\r
\r
```bash\r
docker compose -f docker/docker-compose.yml down -v  # WARNING: clears data\r
# Edit docker/.env: set DOC_ENGINE=infinity\r
docker compose -f docker-compose.yml up -d\r
```\r
\r
Infinity is lighter weight but Linux/arm64 is not officially supported.\r
\r
## Architecture at a Glance\r
\r
```\r
Web UI (React+TS+vitejs+shadcn) → Flask API (/api/) → RAG Core (/rag/) + Agent (/agent/)\r
                                                          ↓\r
Infrastructure: MySQL + Elasticsearch/Infinity + Redis + MinIO\r
```\r
\r
- **Backend** (`/api/`): Flask blueprints — kb, dialog, document, canvas, file, user\r
- **RAG Core** (`/rag/`): DeepDoc parsing, LLM/embedding/rerank abstractions, chunking, GraphRAG\r
- **Agent** (`/agent/`): Canvas-based workflow builder with components (LLM, Retrieval, Code Executor, MCP, Search, SQL)\r
- **Frontend** (`/web/`): React 18 + TypeScript + Vite\r
\r
See [references/architecture.md](references/architecture.md) for detailed component breakdown.\r
\r
## Development from Source\r
\r
```bash\r
git clone https://github.com/infiniflow/ragflow.git && cd ragflow\r
uv sync --python 3.12 && uv run python3 download_deps.py\r
docker compose -f docker/docker-compose-base.yml up -d\r
# Add to /etc/hosts: 127.0.0.1 es01 infinity mysql minio redis sandbox-executor-manager\r
source .venv/bin/activate && export PYTHONPATH=$(pwd)\r
bash docker/launch_backend_service.sh\r
# Separate terminal:\r
cd web && npm install && npm run dev\r
```\r
\r
## Troubleshooting Quick Reference\r
\r
| Problem | Fix |\r
|---------|-----|\r
| `network abnormal` browser error | Wait for Docker logs to show the RAGFlow banner — server is initializing |\r
| Docker pull timeout in China | Use `RAGFLOW_IMAGE` mirrors (Huawei Cloud / Alibaba Cloud) |\r
| HuggingFace unreachable | `export HF_ENDPOINT=https://hf-mirror.com` |\r
| ARM64 platform | Build Docker image from source (no official ARM64 image) |\r
| Port conflict | Change `80:80` to `\x3CPORT>:80` in `docker-compose.yml` |\r
| Elasticsearch exits with 137 | Increase Docker memory allocation |\r
| `vm.max_map_count` too low | `sudo sysctl -w vm.max_map_count=262144` |\r
\r
## API & SDK\r
\r
- REST API: `http://SERVER_IP/api/` — Swagger docs at `/api/docs`\r
- Python SDK: available in `sdk/python/`\r
- CLI client: `python admin/client/ragflow_cli.py \x3Ccommand>`\r
- Guide: [https://ragflow.io/docs/dev/](https://ragflow.io/docs/dev/)
安全使用建议
Install or use this skill only if you intend to deploy or administer RAGFlow. Verify the upstream repo/images, review every Docker or CLI command before running it, back up data before destructive operations, protect API keys and default service passwords, restrict public network exposure, and import only documents you are comfortable storing and indexing.
功能分析
Type: OpenClaw Skill Name: open-ragflow Version: 1.0.0 The skill bundle provides legitimate documentation and instructions for deploying and managing the RAGFlow open-source RAG engine. It includes standard Docker deployment procedures, CLI references for managing datasets and model providers, and architectural overviews. While the instructions involve high-privilege actions such as Docker orchestration and system configuration (e.g., modifying vm.max_map_count for Elasticsearch), these are strictly aligned with the stated purpose of the tool. No indicators of malicious intent, data exfiltration, or unauthorized persistence were found across the SKILL.md or reference files.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The purpose and capabilities align: the artifacts describe deploying, configuring, managing, and troubleshooting RAGFlow. The included Docker, CLI, document-ingestion, and agent-system capabilities are expected for that purpose but can affect local services and data.
Instruction Scope
The commands are presented as user-run setup/reference examples, not automatic execution. Some commands can delete RAGFlow data or change deployment state, so they should be run only after explicit user confirmation.
Install Mechanism
There is no install spec and no bundled executable code; setup relies on cloning the upstream RAGFlow repository, Docker images, and package managers. Users should verify the upstream source and versions before running them.
Credentials
Docker services, exposed ports, high resource requirements, LLM API keys, and stored/indexed documents are proportionate for self-hosting a RAG system, but users should secure networking, credentials, and imported data.
Persistence & Privilege
The guide starts daemonized Docker services and includes host-level setup such as sysctl and /etc/hosts edits. This persistence and privilege are disclosed and purpose-aligned for deployment.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install open-ragflow
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /open-ragflow 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of open-ragflow: open-source RAG engine with agent capabilities. - Full-stack deployment: Python (Flask) backend, React/TypeScript frontend, Docker-based microservices. - Supports deployment via Docker Compose and self-hosting from source. - CLI and REST API for managing knowledge bases, datasets, agents, and chats. - Comprehensive documentation and troubleshooting included for deployment and configuration. - Compatible with multiple LLM providers, embedding models, and document engines (Elasticsearch/Infinity).
元数据
Slug open-ragflow
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

RAGFlow open-source Retrieval-Augmented Generation (RAG) engine — deployment, configuration, management, and troubleshooting. 是什么?

RAGFlow open-source Retrieval-Augmented Generation (RAG) engine — deployment, configuration, management, and troubleshooting. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 67 次。

如何安装 RAGFlow open-source Retrieval-Augmented Generation (RAG) engine — deployment, configuration, management, and troubleshooting.?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install open-ragflow」即可一键安装,无需额外配置。

RAGFlow open-source Retrieval-Augmented Generation (RAG) engine — deployment, configuration, management, and troubleshooting. 是免费的吗?

是的,RAGFlow open-source Retrieval-Augmented Generation (RAG) engine — deployment, configuration, management, and troubleshooting. 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

RAGFlow open-source Retrieval-Augmented Generation (RAG) engine — deployment, configuration, management, and troubleshooting. 支持哪些平台?

RAGFlow open-source Retrieval-Augmented Generation (RAG) engine — deployment, configuration, management, and troubleshooting. 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 RAGFlow open-source Retrieval-Augmented Generation (RAG) engine — deployment, configuration, management, and troubleshooting.?

由 OpenLark(@openlark)开发并维护,当前版本 v1.0.0。

💬 留言讨论