能力标签
RAG智能代理
⚙️
Agent工作流

RAG智能代理

基于 Python · 无代码搭建完整 AI 自动化流程
英文名:rag-agent
⭐ 8 Stars 🍴 2 Forks 💻 Python 📄 未公布协议 🏷 AI 8.0分
8.0AI 综合评分
langchainlanggraphpythonasgi-serverhttp3-serverhypercorn
✦ AI Skill Hub 推荐

RAG智能代理 是 AI Skill Hub 本期精选Agent工作流之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。

📚 深度解析

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

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

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

📋 工具概览

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

GitHub Stars
⭐ 8
开发语言
Python
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
未公布
AI 综合评分
8.0 分
工具类型
Agent工作流
Forks
2

📖 中文文档

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

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

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

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

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

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

# 基本用法
rag-agent input_file -o output_file

# Python 代码中调用
import rag_agent

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

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

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

LLM-RAG Deep Agent using LangChain, LangGraph, LangSmith

Python LLM-RAG deep agent using LangChain, LangGraph and LangSmith built on Quart web microframework and served using Hypercorn ASGI and WSGI web server.

MLflow Overview

MLflow is an open‑source platform that standardizes and automates the machine‑learning lifecycle—from experiment tracking to reproducible packaging, model versioning, and deployment. It is vendor‑neutral and integrates with most ML libraries, enabling teams to reliably develop, evaluate, and ship models at scale【1】.

Hospital Efficiency – Patient Review Highlights

Patients have commented on the efficiency of care at several hospitals. The following excerpts illustrate specific observations:

  • Brown Inc.Jennifer McCall, Stephen Hernandez: “The medical team was efficient.” This direct praise indicates that patients perceived the care process as swift and well‑coordinated.
  • Little‑SpencerShawn Ellis, Tracy Dalton: “The well‑organized approach to my treatment contributed to a positive overall experience.” The phrase “well‑organized” implies streamlined processes and timely care, suggesting efficient workflow.
  • Smith, Edwards and ObrienNancy Nichols, Martin Gilbert: “The hospital staff went above and beyond to make me comfortable during my stay. They even organized daily activities to keep patients engaged.” While this review focuses on comfort and engagement, it does not explicitly mention efficiency.
  • Smith, Edwards and ObrienTara Harris, Garrett Gomez: “My experience at the hospital was positive overall. The medical team was competent, and the facilities were modern and well‑equipped.” This review highlights competence and modern facilities but lacks mention of efficiency.

These insights are drawn from patient reviews retrieved via the HealthcareReview tool.

Required Corrective Actions

[1] Replace or properly secure exposed wiring to meet electrical safety standards. [2] Install additional fire extinguishers in compliance with fire code requirements. [3] Reinforce or replace temporary support beams to ensure structural stability.

Example Usage (Python, scikit‑learn)

import mlflow import mlflow.sklearn from sklearn.ensemble import RandomForestRegressor from sklearn.metrics import mean_squared_error from sklearn.datasets import load_diabetes from sklearn.model_selection import train_test_split

mlflow.set_experiment("Diabetes-Regression") with mlflow.start_run(): X, y = load_diabetes(return_X_y=True) X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42) model = RandomForestRegressor(n_estimators=100, random_state=42) model.fit(X_train, y_train) mlflow.log_param("n_estimators", 100) preds = model.predict(X_test) mse = mean_squared_error(y_test, preds) mlflow.log_metric("mse", mse) mlflow.sklearn.log_model(model, artifact_path="model") model_uri = f"runs:/{mlflow.active_run().info.run_id}/model" mlflow.register_model(model_uri, "DiabetesRF")

  • The run appears in the MLflow UI where you can compare metrics across experiments.
  • The model is stored under artifact_path="model" and can be registered for lifecycle management【2】.

Coverage-Guided Fuzz Testing

  • To run fuzz-testing using Google's atheris and coverage:

$ uv run coverage run -m src.EmailRAG.fuzzer -atheris_runs=100

$ uv run coverage run -m src.rag_agent.fuzzer -atheris_runs=100
  • Generate HTML report and view it:

$ uv run python -m coverage html
$ (cd htmlcov && uv run python -m http.server 8000)

Sample Cypher Queries:

  • Visit with id:56:

MATCH (v:Visit) WHERE v.id = 56 RETURN v;
  • Which patient was involved in Visit id:56

MATCH (p:Patient)-[h:HAS]->(v:Visit) where v.id=56 return v,h,p
  • Which physician treated the patient i Visit id:56

MATCH (p:Patient)-[h:HAS]->(v:Visit)<-[t:TREATS]-(ph:Physician) where v.id=56 return v,h,p,t,ph
  • All relationships going in and out of Visit id:56

MATCH (v:Visit)-[r]-(n) where v.id=56 return v,r,n

Sample Cypher Accumulation:

  • Total visits and bill paid by payer Aetna in Texas:

MATCH (p:Payer)<-[c:COVERED_BY]-(v:Visit)-[:AT]->(h:Hospital)
WHERE p.name = "Aetna"
AND h.state_name = "TX"
RETURN COUNT(*) as num_visits,
SUM(c.billing_amount) as total_billing_amount;

Environment

Add a .env with the following environment variables:

ENVIRONMENT=development
DB_USERNAME=
DB_PASSWORD=
NEO4J_AUTH=username/password
LANGSMITH_TRACING="true"
LANGSMITH_API_KEY=
LANGSMITH_ENDPOINT="https://api.smith.langchain.com"
LANGSMITH_PROJECT=
GOOGLE_CLOUD_PROJECT=
GOOGLE_CLOUD_LOCATION="asia-southeast1"
GOOGLE_API_KEY=
GEMINI_API_KEY=
OLLAMA_API_KEY=
USER_AGENT="USER_AGENT"
  • Install tkinter:
$ sudo apt install -y python3.13-tk

Home controller endpoints:

$ c3 -v https://localhost:4433/invoke -m 300 -X POST -d '{"message": "What is task decomposition?"}'

Hospital controller endpoints:

$ c3 -v https://localhost:4433/healthcare/invoke -m 300 -X POST -d '{"message": "Which hospital has the shortest wait time?"}'

Infrastructure components:

  • All of the following components run on k8s cluster:
  1. PostgreSQL for checkpoints and vector DB
  2. Neo4J for graph query
  3. Ollama as LLM model server

Core Components

ComponentWhat It DoesKey Features
**MLflow Tracking**API + UI for logging runs (parameters, metrics, artifacts) and visualizing results.Supports Python, R, Java, REST; autologging for many libraries【5】.
**MLflow Projects**Standard way to package ML code with a descriptor (MLproject) and environment specifications.Enables reproducible execution locally, on a cluster, or in the cloud.
**MLflow Models**A generic “model packaging” format that bundles a model with a flavor‑specific loader (e.g., sklearn, tensorflow).Simplifies downstream serving, batch scoring, or conversion to other formats.
**MLflow Model Registry**Centralized model store that tracks versions, stages (Staging, Production, Archived), and lineage.UI & API for registering, transitioning, annotating, and accessing models【2】.

Typical Workflow

  1. Define an MLflow Project → write an MLproject file that lists entry points and required environments.
  2. Run Experiments → execute the project; each run is recorded by Tracking (params, metrics, artifacts).
  3. Log a Model → after training, call mlflow.<flavor>.log_model() to store the model artifact.
  4. Register the Model → use the Model Registry to create a new version and assign a stage (e.g., “Staging”).
  5. Deploy / Serve → retrieve the model from the registry for batch inference, REST serving, or integration into production pipelines.

Question & Answer RAG Deep Agent

RAG Deep Agent answers question from Vector and Graph Database

ReAct Agent UI

Answering questions from mocked-up API call:

  • output/user_questions.md:
Which hospital has the shortest wait time?
  • output/final_answer.md:

```

Answering questions from Postgres Vector Store:

  • output/user_request_{timestamp}.md:

``` What is task decomposition?

---

Answering question from Neo4J graph DB

  • output/user_questions.md:

Which physician has treated the most patients covered by Cigna?
  • output/final_answer.md:

```

The physician who has treated the most patients covered by Cigna is Kayla Lawson, who has seen 10 patients.

Answering question from Neo4J graph AND vector DB

  • output/user_questions.md:

Query the graph database to show me the reviews written by patient 7674
  • output/final_answer.md:

```

🇨🇳 中文文档镜像 AI 翻译 2026-06-01
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

本项目是一个基于 Python 开发的 LLM-RAG Deep Agent,深度集成了 LangChain、LangGraph 和 LangSmith 框架。系统采用 Quart Web 微框架构建,并使用 Hypercorn 作为 ASGI/WSGI Web 服务器进行部署,旨在通过先进的 RAG 技术实现复杂的智能体任务处理。

⚡ 功能介绍

本项目具备强大的医疗数据分析与洞察能力。通过对医院效率及患者评论的深度解析,能够提取关键信息(如患者对医疗团队效率的评价),并实现对特定医疗场景下信息的精准检索与总结,为医疗管理提供数据支持。

📋 环境依赖

在使用本项目前,请确保系统已满足必要的合规性与安全要求。主要包括:确保电气安全标准下的布线安全、根据消防法规安装足够的灭火器,以及通过加固或更换临时支撑梁来确保建筑结构的稳定性,以保障运行环境的安全。

🚀 使用教程

本项目支持使用 Python 和 scikit-learn 进行实验管理。开发者可以通过 mlflow 库集成机器学习工作流,例如使用 mlflow.sklearn 进行模型训练与评估,并通过 mlflow.start_run() 记录实验过程中的参数与指标,实现模型生命周期的标准化管理。

⚙️ 配置说明(含 MCP / env)

项目运行需要配置环境变量。请在项目根目录下创建 `.env` 文件,并根据需要设置 ENVIRONMENT、DB_USERNAME、NEO4J_AUTH 等参数。特别注意,若需启用 LangSmith 追踪功能,请务必配置 LANGSMITH_TRACING="true" 以及相关的 API_KEY 和 ENDPOINT。

🔌 API 说明

本项目提供了多个控制器接口。用户可以通过 c3 工具向 Home controller 发送 POST 请求进行任务分解等通用问答;同时,针对医疗场景提供了专门的 Hospital controller 接口,支持查询如“哪家医院等待时间最短”等特定领域的复杂问题。

🔄 工作流/模块

系统的基础设施运行在 k8s 集群上,包含 PostgreSQL(用于 Checkpoints 和 Vector DB)、Neo4J(用于 Graph Query)以及 Ollama(作为 LLM 模型服务器)。核心组件利用 MLflow Tracking 进行实验日志记录与可视化,并通过 MLflow Projects 实现标准化的机器学习工作流管理。

❓ FAQ 摘要

本项目是一个基于 Question & Answer RAG Deep Agent 的智能系统。它能够结合 Vector Database(向量数据库)与 Graph Database(图数据库)的能力,通过 ReAct Agent 模式,从模拟的 API 调用中提取信息并生成最终答案。

🎯 aiskill88 AI 点评 A 级 2026-06-01

高质量的开源AI工作流项目

📚 实用指南(长尾问题)
适合谁
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
  • 跨境业务、多语言内容运营团队
最佳实践
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • embedding 模型与查询模型不一致导致检索失效
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型
  • Python 依赖冲突:建议用 venv / uv 隔离环境
部署方案
  • Docker:rag-agent 提供官方镜像,docker compose up 一键启动
  • CLI:直接 npm install -g / pip install,命令行调用
  • 本地部署:CPU 8GB 起,GPU 推荐 16GB+ 显存
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
rag-agent 中文教程rag-agent 安装报错怎么办rag-agent Docker 部署rag-agent Agent 工作流rag-agent 与同类工具对比rag-agent 最佳实践rag-agent 适合谁用

⚡ 核心功能

👥 适合谁
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
  • 跨境业务、多语言内容运营团队
⭐ 最佳实践
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • embedding 模型与查询模型不一致导致检索失效
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型

👥 适合人群

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

🎯 使用场景

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

⚖️ 优点与不足

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

该工具未明确声明开源协议,商业使用前请联系原作者确认授权范围,避免侵权风险。

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

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

🔗 相关工具推荐

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

❓ 常见问题 FAQ

rag-agent 是一款Python开发的AI辅助工具。开源AI工作流:Python LLM-RAG deep agent using LangChain, LangGraph and LangSmith built on Quar。⭐8 · Python 主要应用场景包括:自动化工作流和智能代理。
💡 AI Skill Hub 点评

经综合评估,RAG智能代理 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。

⬇️ 获取与下载
⚠️ 该工具未声明开源协议,不提供直接下载。请访问原项目了解使用条款。
📚 深入学习 RAG智能代理
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 rag-agent
原始描述 开源AI工作流:Python LLM-RAG deep agent using LangChain, LangGraph and LangSmith built on Quar。⭐8 · Python
Topics langchainlanggraphpythonasgi-serverhttp3-serverhypercorn
GitHub https://github.com/khteh/rag-agent
语言 Python
🔗 原始来源
🐙 GitHub 仓库  https://github.com/khteh/rag-agent

收录时间:2026-06-01 · 更新时间:2026-06-01 · License:未公布 · AI Skill Hub 不对第三方内容的准确性作法律背书。

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