能力标签
AutoRAG Agent工作流
⚙️
Agent工作流

AutoRAG Agent工作流

基于 Python · 无代码搭建完整 AI 自动化流程
英文名:AutoRAG
⭐ 4.8k Stars 🍴 395 Forks 💻 Python 📄 Apache-2.0 🏷 AI 8.2分
8.2AI 综合评分
RAG评估检索增强生成工作流自动化基准测试文档解析
✦ AI Skill Hub 推荐

AI Skill Hub 强烈推荐:AutoRAG Agent工作流 是一款优质的Agent工作流。已获得 4.8k 颗 GitHub Star,AI 综合评分 8.2 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。

📚 深度解析

AutoRAG Agent工作流 是一套完整的 AI Agent 自动化工作流方案。随着 AI 能力的不断提升,基于 Agent 的自动化工作流正在成为提升个人和团队效率的核心方式。区别于传统的 RPA 自动化(模拟鼠标键盘操作),AI Agent 工作流通过理解任务意图、动态规划执行路径,能够处理更复杂的非结构化任务。

AutoRAG Agent工作流 工作流的设计遵循"最小配置,最大复用"原则:核心逻辑已经封装好,用户只需配置自己的 API Key 和业务参数即可快速上手。工作流内置错误处理和重试机制,在网络波动或 API 限速等情况下仍能稳定运行,适合作为生产环境的自动化基础设施。

在实际部署时,建议先在测试环境中运行 3-5 次,验证各个环节的输出结果符合预期,再部署到生产环境。AI Skill Hub 评分 8.2 分,是同类 Agent 工作流中的精选推荐。

📋 工具概览

AutoRAG是专业的RAG评估开源框架,提供自动化的检索增强生成工作流与基准测试工具。支持文档解析、向量嵌入、工作流分析等功能,适合AI研究者、RAG应用开发者和模型评估团队使用。

AutoRAG Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

GitHub Stars
⭐ 4.8k
开发语言
Python
支持平台
Windows / macOS / Linux
维护状态
持续维护,定期更新
开源协议
Apache-2.0
AI 综合评分
8.2 分
工具类型
Agent工作流
Forks
395

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

AutoRAG是专业的RAG评估开源框架,提供自动化的检索增强生成工作流与基准测试工具。支持文档解析、向量嵌入、工作流分析等功能,适合AI研究者、RAG应用开发者和模型评估团队使用。

AutoRAG Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

📌 核心特色
  • 可视化 Agent 工作流编排,无需编写复杂代码
  • 支持多步骤自动化任务链,实现全流程无人值守
  • 与外部 API、数据库和第三方服务无缝集成
  • 内置错误处理与自动重试机制,保障稳定运行
  • 提供可复用的自动化模板,快速在同类场景部署
🎯 主要使用场景
  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:pip 安装(推荐)
pip install autorag

# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install autorag

# 方式三:从源码安装(获取最新功能)
git clone https://github.com/Marker-Inc-Korea/AutoRAG
cd AutoRAG
pip install -e .

# 验证安装
python -c "import autorag; print('安装成功')"
📋 安装步骤说明
  1. 访问 GitHub 仓库获取工作流文件
  2. 在对应平台(Dify / Flowise / Make 等)中找到「导入工作流」功能
  3. 上传工作流文件
  4. 按照提示配置必要的环境变量和 API Key
  5. 运行测试确认流程正常后投入使用
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 命令行使用
autorag --help

# 基本用法
autorag input_file -o output_file

# Python 代码中调用
import autorag

# 示例
result = autorag.process("input")
print(result)
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# autorag 配置文件示例(config.yml)
app:
  name: "autorag"
  debug: false
  log_level: "INFO"

# 运行时指定配置文件
autorag --config config.yml

# 或通过环境变量配置
export AUTORAG_API_KEY="your-key"
export AUTORAG_OUTPUT_DIR="./output"
📑 README 深度解析 真实文档 完整度 78/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

AutoRAG Agent

Now your agent can find anything in your computer.

<p align="left"> <a href="https://www.npmjs.com/package/@autorag/librarian"><img src="https://img.shields.io/npm/v/@autorag/librarian.svg?style=flat-square&color=38bdf8" alt="npm version" /></a> <a href="https://www.npmjs.com/package/@autorag/librarian"><img src="https://img.shields.io/npm/dm/@autorag/librarian.svg?style=flat-square&color=818cf8" alt="npm downloads" /></a> <a href="https://github.com/Marker-Inc-Korea/AutoRAG/stargazers"><img src="https://img.shields.io/github/stars/Marker-Inc-Korea/AutoRAG?style=flat-square&logo=github&color=f59e0b" alt="GitHub stars" /></a> <a href="https://github.com/Marker-Inc-Korea/AutoRAG/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/Marker-Inc-Korea/AutoRAG/ci.yml?branch=main&label=CI&style=flat-square" alt="CI Status" /></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-green.svg?style=flat-square" alt="License: Apache-2.0" /></a> <img src="https://img.shields.io/badge/node-%3E%3D24.0.0-informational.svg?style=flat-square" alt="Node >= 24" /> <img src="https://img.shields.io/badge/bun-%3E%3D1.2-black.svg?style=flat-square&logo=bun" alt="Bun >= 1.2" /> </p>

<p align="center"> <img src="assets/autorag-agent-social-preview.png" alt="AutoRAG Agent" width="100%" /> </p>

[!IMPORTANT] Looking for the original AutoRAG (RAG AutoML / pipeline optimization tool)? This repository now hosts AutoRAG 2.0, a complete reimagining of AutoRAG as a personal librarian agent for your office work. The original Python-based AutoRAG — the RAG AutoML tool for automatically finding an optimal RAG pipeline for your data — now lives in the legacy/ directory of this repository. The legacy AutoRAG is NOT abandoned. It continues to be maintained (bug fixes, dependency updates, and PyPI releases via pip install AutoRAG) in maintenance mode. Existing users can keep using it exactly as before — see the legacy README for its documentation, and file issues in this repository as usual. New feature development is focused on AutoRAG Agent (2.0).

---

System Prerequisites

  • No Java required: Document parsing (HWP/HWPX/HWPML, PDF, DOCX, XLSX/XLS) runs in-process through kordoc.
  • Rust Toolchain (Optional): Automatically compiles Jikji (jikji-cli) if installed.
  • MinSync: Automatically downloaded and installed into <workspace>/.autorag/bin on first run.
  • Everything (Windows only, bundled): The package ships the portable Everything 1.4.1.1032 and its ES 1.1.0.38 CLI (x64 and ARM64, SHA-256 pinned). On Windows, AutoRAG extracts them into <workspace>/.autorag/everything/ and runs a private, user-level instance that indexes only your configured search roots: no administrator rights, no Everything service, no whole-drive scan, no HTTP/ETP server, and no change to any Everything you already run. Set "everything": false in the config to turn it off. macOS and Linux are not affected.
  • filee-cli (file conversion, automatic): autorag setup and the TUI download the pinned filee-cli release (~85 MB, SHA-256 verified) into <AUTORAG_HOME>/tools/filee-cli/<version>/, so the agent can convert between 255 formats offline with convert_files. A filee/filee-cli already on PATH is used instead. Set "filee": { "autoInstall": false } to forbid the download or "filee": { "enabled": false } to remove the tools. Filee fetches its own engines (FFmpeg, Pandoc, LibreOffice, calibre, Ghostscript; hundreds of MB, only when a conversion needs one) on first use.
  • FSearch (macOS/Linux only, separate install): Install fsearch-cli yourself (e.g. brew install NomaDamas/fsearch-mac/fsearch-mac (installs the fsearch-cli binary); GPL-2.0, spawned as a separate process, never bundled or linked). On macOS and Linux, AutoRAG builds a per-workspace database at <workspace>/.autorag/fsearch/ indexing only your configured search roots, and keeps a fsearch-cli watch daemon live (FSEvents/inotify) for sub-second name search. It never touches the FSearch app's own database. Without fsearch-cli, name search falls back to a slow bounded filesystem walk. Set "fsearch": false in the config to turn it off. Windows is not affected (Everything covers it).

---

Installation & Setup

AutoRAG Agent is published as @autorag/librarian (requires Node.js ≥ 24 or Bun):

```bash

Install CLI globally

bun install -g @autorag/librarian

Index documents (parses PDFs/Markdown, builds BM25 and MinSync vectors)

autorag refresh

🤖 For AI Agents & LLMs: Setup & Skills

If you are an AI coding agent or LLM (Claude Code, Cursor, Windsurf, Codex, Senpi, Pi, etc.) tasked with installing, configuring, or querying AutoRAG Agent, use our built-in skills located in the skills/ directory:

SkillDirectoryWhen to Use
**autorag**[skills/autorag/](skills/autorag/SKILL.md)Model-backed querying, searching, comparing, and summarizing with an already configured AutoRAG librarian.
**autorag-setup**[skills/autorag-setup/](skills/autorag-setup/SKILL.md)Installing AutoRAG, configuring the model-backed librarian, adding roots/datasources, running health checks, and registering Lite MCP when needed.
**autorag-lite-setup**[skills/autorag-lite-setup/](skills/autorag-lite-setup/SKILL.md)Installing/registering autorag-mcp, initializing model-free config, maintaining indexes, and verifying MCP search.

Install the skills into your coding agent

Skills are not auto-discovered — copy only the setup skill when an agent needs to bootstrap AutoRAG. Routine AutoRAG Lite retrieval is provided by MCP tools, not by a autorag-lite-search skill or shell command.

```bash

From a global install — the npm package ships the same skills/ folder

AUTORAG_SKILLS="$(npm root -g)/@autorag/librarian/skills"

Bun global installs live at ~/.bun/install/global/node_modules/@autorag/librarian/skills

mkdir -p .claude/skills cp -R "$AUTORAG_SKILLS/autorag-lite-setup" .claude/skills/ ```

Run the setup skill once to register the stdio server with the host. Reload the agent, then discover the actual tool names and schemas with MCP tools/list. The normal Lite path is autorag.status → autorag.refresh when needed → autorag.search; use autorag.report and autorag.evidence for the optional curation lifecycle. Copy skills/autorag and skills/autorag-setup only when the agent should also drive the model-backed librarian, and skills/autorag-doctor for diagnostics. Other agents read their own skill directories; copy the same setup folder there and reload the agent session so it picks up the MCP registration instructions. Do not copy or retain the removed autorag-lite-search skill. The package also ships internal-skills/, which holds the librarian's own turn rules (for example internal-skills/organize/) — those are never parent-agent skills, so do not copy them into another agent.

Quick Start

3. Programmatic Usage (TypeScript API)

import { AutoRAGAgent } from "@autorag/librarian";

// Initialize librarian agent
const agent = new AutoRAGAgent({
  searchPaths: ["/path/to/documents"],
});

// Run curated search loop
const response = await agent.searchDocuments("Summarize recent compliance updates");

console.log("Answer:", response.answer);
for (const result of response.results) {
  console.log(`[${result.number}] ${result.title} (${result.source})`);
  console.log(`    ${result.summary}`);
}

A caller can steer a search while it runs, the way Enter steers a TUI search, and stop it:

const run = (async () => {
  for await (const event of agent.searchDocumentsStream("When is the launch?")) {
    if (event.type === "preliminary") console.log("Quick:", event.response.answer);
    if (event.type === "complete") console.log("Final:", event.response.answer);
  }
})();

// A correction of the running search, not a new question. false = no search to steer.
agent.steer("Use the June plan, not the April one.");
// agent.abort() stops the whole search, including every later phase.
await run;

steer() reaches the search's next model request (also between phases), cuts in-flight retrieval and the baseline prefetch short, and always runs verification, whose prompt restates the correction. It returns false when no search is running, the search was stopped, or it is past its last model request; ask the text as a new question then.

A refresh can be cancelled and observed from code:

const controller = new AbortController();
try {
  await agent.refresh(false, {
    signal: controller.signal, // controller.abort() stops it
    onProgress: ({ phase, processed, total, currentVirtualPath }) => {
      console.log(`${phase} ${processed}/${total}`, currentVirtualPath ?? "");
    },
  });
} catch (error) {
  if (controller.signal.aborted) console.log("refresh cancelled");
  else throw error;
}

signal is checked between files and between phases, kills an in-flight parse worker, and terminates the MinSync, Jikji and datasource child processes (and their descendants). The refresh then rejects with the signal's reason and is recorded as failed; files already mirrored are kept and not re-parsed on the next run. onProgress reports parsed (processed/total are files, currentVirtualPath is the file about to be processed) and datasources (processed/total are datasource skills). During the parse phase .autorag/refresh-progress.json also carries the running sourceFiles.total and parsedCounts, refreshed every 25 files rather than per file. The marker is replaced with a retried rename (an in-place overwrite if a reader keeps the destination held, as on Windows). Without these options a refresh behaves as before.

---

Initialize configuration for your documents folder

autorag init --search-paths ~/Documents/research

Perform a curated search (uses your configured reasoning model)

autorag search "What are our primary Q3 deliverables?"

CLI Command Reference

CommandDescription
autorag initInitialize ~/.autorag/config.json with search roots, document languages, and model settings
autorag refreshRefresh parsed mirrors, MinSync CDC chunks, datasources, Jikji, and the platform file-name index (Everything on Windows, FSearch on macOS/Linux)
autorag search "<query>"Run the librarian agent to curate structured answers
autorag statusInspect corpus freshness, indexing status, and vector readiness
autorag healthCheck model provider authentication, token validity, and API reachability
autorag models listList chat models the pi runtime can resolve (built-ins, models.json, custom/extension providers) with provider auth status; never prints credential values
autorag update-checkCompare the running autorag against the published npm version (also runs on autorag tui launch)
autorag tuiOpen Pi's interactive librarian TUI (/login, /model, /resume, …); the agent can stop and ask you a multiple-choice or open question through the [ask_user tool](docs/ask-user.md); --telegram / --whatsapp / --discord add the Telegram / WhatsApp / Discord remote-control bridges; --permission-mode ask\|auto\|full (Shift+Tab, /permissions) sets the [approval gate for file changes](docs/permissions.md)
autorag duplicates [DIR]Read-only scan for exact and near-duplicate document families with dupey
autorag lite ...CLI bootstrap, indexing repair, terminal maintenance, and fallback interface; agents use MCP for normal Lite operation
autorag memory inspectRender a read-only, path-opaque snapshot of retrieval memory (judged evidence, curated results, evidence chunks, insights); model-free
autorag evidence <session>Inspect persisted evidence behind numbered results; MCP clients normally use autorag.evidence, and the CLI stays available for terminal maintenance

---

Quick Agent Workflow

1. Install CLI:

   command -v autorag >/dev/null || bun install -g @autorag/librarian
   
2. Inspect & Preflight:
   autorag status --json        # check corpus freshness and index readiness
   autorag duplicates --json    # scan for exact or near-duplicate document families
   
3. Perform Curated Search:
   autorag search "your question" --json
   
4. Safety Guidelines for Agents: - Setup, diagnostics, indexing, and refresh never modify your documents. An agent that installs, configures, or repairs AutoRAG (Claude Code, Codex, and similar) must not move, rename, edit, or delete user documents as part of that work. That rule is about those procedures; it is not a limit on the librarian itself, which may organize, create, or modify files in local sessions when the user asks (see Local File Organization in the system prompt). - Never permanently delete. Deletion goes to the OS trash, and every change is listed as old path → new path so it can be undone. - AutoRAG writes index artifacts into <workspace>/.autorag/ and Jikji's central store (<OS data dir>/jikji/, override with JIKJI_DATA_DIR). Jikji also drops a .jikji_agent_map.md guide into each indexed root. - Never print or leak API keys, tokens, or credential values into stdout or logs.

---

Troubleshooting

When search returns nothing, a datasource disappears from results, refresh hangs, or the embedder is unavailable, run the autorag-doctor agent skill (skills/autorag-doctor/SKILL.md). Point your coding agent at it and say "check AutoRAG" — it walks the full diagnose-and-repair procedure and ends with a per-datasource status table showing what is indexed and what actually returns hits.

The first three commands cover most of it:

autorag status --json          # freshness, per-component state, diagnostics
autorag health --json          # model resolution + one live completion probe
autorag setup                   # resolves the embedding backend and reports it

Indexing is not the same thing as searchability, so always confirm retrieval itself through the connected Lite MCP server:

autorag.status {}
autorag.refresh {}
autorag.search {"query":"a word that certainly appears","topK":3}
autorag.search {"query":"recent topic","scope":"/discord/local/**","topK":3}

The CLI equivalents remain available for terminal repair, but do not use them as the agent's normal Lite search path.

Common failures and their fix:

SymptomDiagnostic codeFix
Results are missing recent filesstale-indexautorag refresh --method parsed,minsync --json
Semantic search returns nothing after changing the embedder, or after moving off the old embedding gatewayembedding-identity-mismatchautorag index rebuild --method minsync
No remote endpoint answers, no minsync serve daemon could start, and the in-process addon is missing or failedembedder-unavailablerun minsync serve by hand to see its own error, install MinSync, install the optional @nomadamas/minsync-native addon, or configure a remote minSync.embedder
A datasource is healthy in its own CLI but absent from results—confirm it is configured under datasources and connected through its native CLI
A datasource errors during refreshdatasource-index-failedrun that CLI's own doctor
MinSync binary missing (search and refresh fail with MinSync is required ...)—cargo install minsync, or leave minSync.autoInstall on and re-run refresh
Jikji missingjikji-unavailablecheck the Rust toolchain, re-run refresh
Jikji prepare of a large root times out (the Jikji prepare run timed out)jikji-prepare-failedthe refresh still finishes and the other roots are indexed. There is no fixed total wall: the per-root hang guard is jikji.timeoutMs (60 s base) plus jikji.prepareTimeoutMsPerFile ms per file under the root (default: jikji.parseTimeout, 5 s), uncapped, so a huge root is not cut by its size and only a run stuck beyond every file hitting its parse limit is killed. Set prepareTimeoutMsPerFile: 0 for a flat timeoutMs wall. jikji.parseTimeout (seconds) is the per-file limit, forwarded to jikji prepare --parse-timeout; jikji skips a file that exceeds it. A timeout kills jikji's whole process group
Windows file-name search fails during refresheverything-index-failedread the ES exit code and stderr in the message, then autorag refresh --method everything --json
Every search does a full local search and verification, even for small talkquery-route-fallbacksign in to Dazzi Models with /login, or set OPENROUTER_API_KEY (Jev routing and decomposition are on by default)

Native datasource stores stay owned by their CLIs — AutoRAG never rebuilds them. Fix a broken archive with lazykatok doctor, discrawl --json metadata, slacrawl --json doctor, wacrawl --json doctor, telecrawl --json doctor, notcrawl doctor, or mailcrawl doctor, then re-run autorag refresh --method datasources --json.

---

🎯 aiskill88 AI 点评 A 级 2026-05-21

aiskill88点评:AutoRAG是RAG领域专业工具,4.8k星证明受认可度高,完善的工作流和评估框架对RAG应用开发者很有价值,持续维护。

📚 实用指南(长尾问题)
适合谁
  • 构建企业知识库 / RAG 检索应用的团队
最佳实践
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • embedding 模型与查询模型不一致导致检索失效
  • Python 依赖冲突:建议用 venv / uv 隔离环境
部署方案
  • CLI:直接 npm install -g / pip install,命令行调用
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
AutoRAG 中文教程AutoRAG 安装报错怎么办AutoRAG 与同类工具对比AutoRAG 最佳实践AutoRAG 适合谁用

⚡ 核心功能

👥 适合谁
  • 构建企业知识库 / RAG 检索应用的团队
⭐ 最佳实践
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • embedding 模型与查询模型不一致导致检索失效
  • Python 依赖冲突:建议用 venv / uv 隔离环境

👥 适合人群

自动化工程师和运维人员项目经理和业务分析师希望减少重复性工作的专业人士数字化转型团队

🎯 使用场景

  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同

⚖️ 优点与不足

✅ 优点
  • +Apache-2.0 协议,可免费商用
  • +大幅减少重复性人工操作
  • +可视化流程,清晰直观
  • +可扩展性强,支持复杂场景
⚠️ 不足
  • −初始配置和调试需投入一定时间
  • −强依赖外部服务的稳定性
  • −复杂场景需具备一定技术基础
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。

🔗 相关工具推荐

📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

用于评估和优化RAG系统性能,提供完整的工作流自动化和基准测试工具
💡 AI Skill Hub 点评

总体来看,AutoRAG Agent工作流 是一款质量优秀的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ Apache-2.0 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 AutoRAG Agent工作流
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 AutoRAG
原始描述 开源AI工作流:AutoRAG: An Open-Source Framework for Retrieval-Augmented Generation (RAG) Evalu。⭐4.8k · Python
Topics RAG评估检索增强生成工作流自动化基准测试文档解析
GitHub https://github.com/Marker-Inc-Korea/AutoRAG
License Apache-2.0
语言 Python
🔗 原始来源
🐙 GitHub 仓库  https://github.com/Marker-Inc-Korea/AutoRAG 🌐 官方网站  https://marker-inc-korea.github.io/AutoRAG/

收录时间:2026-05-16 · 更新时间:2026-05-19 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →