# Add to your Claude Code skills
git clone https://github.com/HunterLzap/rag-tenderLast scanned: 8/1/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-08-01T06:28:56.907Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}rag-tender is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by HunterLzap. 面向招投标场景的本地化 RAG 标书解析、资质匹配与红线提醒助手. It has 100 GitHub stars.
Yes. rag-tender passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/HunterLzap/rag-tender" and add it to your Claude Code skills directory (see the Installation section above).
rag-tender is primarily written in Python. It is open-source under HunterLzap on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh rag-tender against similar tools.
No comments yet. Be the first to share your thoughts!
面向招投标场景的本地化 RAG 标书解析与资质匹配助手
我开源了一个面向招投标场景的本地化 RAG 工作流样例:可以解析标书要求、匹配企业资质证据、标记待确认项,并提醒投标红线风险。
快速开始 · 核心功能 · 架构概览 · 使用流程 · 路线图 · 许可证
本仓库为脱敏开源版本,不包含真实标书、真实资质文件、上传文件、数据库、日志、API Key 或运行期 RAG 工作目录。
招投标文件通常篇幅长、格式复杂、要求分散,人工核对容易遇到几个问题:
资质通的目标不是替代人工决策,而是把重复阅读、初步归类、证据召回、风险提醒和报告整理自动化,让人工把精力放在最终判断和风险确认上。
| 模块 | 说明 |
|---|---|
| 📥 标书上传与解析 | 支持 PDF / DOCX 等文件,解析后生成结构化要求 |
| ✅ 要求核对 | 按资质、业绩、财务、人员、提交件等类别核对和修正 |
| 🗂️ 资质库管理 | 维护企业资质、人员资质、财务资料、业绩项目等证据 |
| 🔎 资质匹配 | 对标书要求和资质库证据进行候选召回与字段级证据判断 |
| 🛡️ 保守判定 | 缺少关键证据时默认进入"待确认",避免仅凭相似度误判 |
| 📚 错例库 | 沉淀人工确认结果,用于复盘误判和补充规则 |
| 📏 规则库 | 查看内置规则、自定义规则、规则草案、变更记录和候选建议 |
| 🚩 红线待办 | 识别授权书、投标有效期、报价上限、暗标敏感信息、电子投标提交等重点事项 |
| 📊 检查报告 | 导出资质匹配总览、不通过项、待确认项、缺失证据、红线待办和检查器结果 |
| 💻 本地部署 | 前端 React,后端 FastAPI,数据存储使用本地 SQLite |
这个项目更偏"业务型 RAG 系统样例",适合参考:
如果你正在做政企文档、招投标、合同审查、资质审核、知识库问答或行业资料核对,本项目中的架构和取舍可能会有参考价值,不是一个聊天机器人,而是一个把 RAG 接进真实业务流程的招投标资质核查样例。
flowchart TD
A["React + MUI 前端"] -->|REST API| B["FastAPI 后端"]
B --> C[("SQLite")]
B --> D["本地文件系统"]
B --> E["RAG 工作目录"]
C --> F["标书要求 / 资质证据 / 匹配结果 / 错例 / 规则 / 检查报告"]
D --> F
E --> F
主要模块:
frontend/:React + Vite + TypeScript + MUI 前端。backend/:FastAPI 后端、SQLite 初始化、业务服务和 API 路由。docs/assets/:README 展示资源。samples/:脱敏样例,禁止放真实业务资料。| 层级 | 技术 |
|---|---|
| 🎨 前端 | React 18, Vite, TypeScript, MUI, React Router |
| ⚙️ 后端 | Python, FastAPI, Uvicorn, Pydantic |
| 🗄️ 数据 | SQLite, aiosqlite |
| 📄 文档处理 | RAG-Anything, MinerU, OCR, LibreOffice |
| 📎 文件处理 | python-docx, openpyxl, pdfplumber |
| 🚢 部署方式 | Windows 本地部署 |
git clone https://github.com/HunterLzap/rag-tender.git
cd rag-tender
建议环境:
PATHcd backend
python -m venv .venv
.\.venv\Scripts\activate
pip install -r requirements.txt
cd frontend
npm install
本项目不会把 API Key 写入配置文件。API Key 通过前端设置页保存,并使用 RAG_TENDER_SECRET_KEY 加密后写入本地 SQLite。
生成密钥:
backend\.venv\Scripts\python.exe -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
将输出结果配置为 Windows 用户或系统环境变量:
RAG_TENDER_SECRET_KEY=你的生成结果
.env.example 仅提供占位示例,不包含真实密钥。
方式一:双击或执行:
start.bat
方式二:手动启动:
# 终端 1:后端
cd backend
.\.venv\Scripts\activate
python run.py
# 终端 2:前端
cd frontend
npm run dev
访问:
停止服务:
.\_stop_services.bat
⚠️ 提交前请务必确认:以下内容不会被上传到公开仓库。
本开源仓库应保留:
本开源仓库不应包含:
.env 或任何真实 API Keydata/、output/、backend/output/*.db、*.sqlite__pycache__frontend/node_modules/frontend/dist/rag_workspace/Get-ChildItem -Recurse -Force -ErrorAction SilentlyContinue |
Where-Object {
$_.Name -ne ".env.example" -and
$_.Name -match '^\.env($|\.)|\.db$|\.sqlite$|\.sqlite3$|\.log$|node_modules|dist|__pycache__|rag_workspace'
} |
Select-Object FullName
没有输出时再提交。
后端关键测试:
cd backend
.\.venv\Scripts\python.exe -m unittest discover -s . -p "test_*.py"
前端构建:
cd frontend
npm run build
说明:前端构建后会生成
frontend/dist/和*.tsbuildinfo,这些属于构建产物,不应提交到仓库。
RAG-Tender-Assistant-open-source/
├── backend/ # FastAPI 后端
│ ├── app/
│ │ ├── api/ # API 路由
│ │ ├── models/ # 数据模型
│ │ ├── schemas/ # 响应结构
│ │ ├── services/ # 核心业务逻辑
│ │ └── utils/ # 工具函数
│ ├── requirements.txt
│ └── test_*.py
├── frontend/ # React 前端
│ ├── src/
│ │ ├── api/
│ │ ├── components/
│ │ ├── pages/
│ │ └── types/
│ └── package.json
├── docs/assets/ # README 展示资源
├── samples/ # 脱敏样例
├── start.bat # Windows 启动脚本
├── _stop_services.bat # 停止服务脚本
├── .env.example # 环境变量示例
└── README.md
路线图不是承诺,而是帮助读者理解项目状态和可能的后续方向。
✅ 已完成
🧭 后续可探索
⭐ 如果这个项目对你的学习、研究、课程、文章或业务原型有帮助,欢迎点个 Star 并引用本仓库链接。
也欢迎通过 Issue 讨论:
欢迎提交 Issue 或 PR 参与共建。
本项目使用 MIT License。详见 LICENSE。
本项目参考并基于 HKUDS/RAG-Anything 相关能力进行业务化集成,感谢开源社区的基础工作。