ragflow
Work with RAGFlow, a full-stack Retrieval-Augmented Generation engine with deployment, backend APIs, SDK/HTTP integration, ingestion/retrieval, document parsing, agent workflows, and frontend integration.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- ragflow
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Work with RAGFlow, a full-stack Retrieval-Augmented Generation engine with deployment, backend APIs, SDK/HTTP integration, ingestion/retrieval, document parsing, agent workflows, and frontend integration.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/repo-provenance.md2.0 KB
- 参考文档references/repo-routing-metadata.json484 B
- 参考文档references/troubleshooting.md3.2 KB
03 SKILL.md 正文
RAGFlow
Use this repo skill when a task is about RAGFlow's source code, deployment, public API, Python SDK, document ingestion, retrieval, DeepDoc parsing, agent canvas/tooling, MCP/memory, or web frontend integration.
Route by Task
| User task | Read |
|---|---|
Start RAGFlow with Docker/source/Helm, change .env or service_conf.yaml, switch document engines, debug MySQL/Redis/MinIO/document-engine startup |
deployment-configuration |
| Add/debug Quart routes, RESTful versus legacy prefixes, auth/session/API-token behavior, Peewee service logic, system endpoints, chat channels | backend-api-services |
| Call RAGFlow from HTTP, Python SDK, OpenAI-compatible clients, streaming chat, retrieval endpoint, API keys, or client examples | sdk-http-integration |
| Work on datasets, documents, chunks, parser_config, task executors, retrieval search, metadata filters, RAPTOR, GraphRAG | dataset-ingestion-retrieval |
| Change DeepDoc parsers, PDF OCR/layout/table behavior, parser backend choices, parser_config parsing options, file-type routing | document-parsing |
| Work on agent canvas DSL, components, templates, tools, memory, MCP retrieval, sandbox/code execution, webhooks, debug traces | agent-workflows |
| Wire or debug React/Vite routes, API constants, services, hooks, React Query cache, dataset/chat/agent UI integration, frontend tests | frontend-integration |
First Checks
- Identify whether the user is deploying/using RAGFlow or modifying a checkout; deployment and SDK tasks often need no source-code changes.
- For code changes, route to the focused sub-skill first, then use sibling cross-links when a workflow spans backend, ingestion, SDK, and frontend.
- Keep the process model in mind: the API server and task executors are separate Python process types; a healthy UI does not prove document parsing workers are healthy.
- Prefer
/api/v1for newer public REST APIs and reserve/v1for legacy route families that still exist. - Treat document parsing, parser_config, and retrieval as a chain: file type and parser options affect chunks, embeddings, metadata, retrieval weights, and citation/reference outputs.
Common Entry Points
- Deployment health:
GET /api/v1/system/healthzand the deployment validator in deployment-configuration/scripts/validate_env.py. - Backend route inventory: backend-api-services/scripts/list_routes.py.
- SDK/API dry run: sdk-http-integration/scripts/ragflow_api_smoke.py.
- Parser config review: dataset-ingestion-retrieval/scripts/inspect_parser_config.py.
- Parser routing smoke check: document-parsing/scripts/parse_smoke.py.
- Agent template review: agent-workflows/scripts/inspect_agent_template.py.
- Frontend endpoint scan: frontend-integration/scripts/check_web_api_keys.py.
Cross-Cutting Notes
- RAGFlow 0.26.1 requires Python
>=3.13,<3.14for the main Python project; the standalone Python SDK is published separately asragflow-sdk. - The backend uses Quart and Peewee; do not assume Flask synchronous handlers or SQLAlchemy models.
- The frontend uses React/Vite, React Query, service wrappers, and two API prefix families: newer
/api/v1and legacy/v1. - DeepDoc parser imports and OCR/layout backends have optional dependencies; missing parser packages should be handled as parser-backend issues, not generic API failures.
- Source-level inspection found a packaging caveat: a plain editable install can fail if package metadata expects a top-level
graphragpackage while GraphRAG code is underrag/graphrag. Use repo-supporteduvsetup or source inspection until packaging is fixed.
References
- Repo provenance records the source state and evidence paths used to create this skill.
- Routing metadata is consumed by
repo-skills-routerduring import. - Troubleshooting summarizes cross-cutting failure routes and points to the nearest sub-skill.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).