rag-expert SKILL.md skillA

rag-expert from phuhao00/bony-agent is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add phuhao00/bony-agent/rag-expert@v2.0.0

Pins v2.0.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
phuhao00/bony-agent
Path
electron/resources/agent-skills/rag-expert/SKILL.md
Versions recorded
1
Latest version
v2.0.0, committed Jun 17, 2026
Size
6,145 bytes
Repository stars
16
License
none declared

知识库管理专家。负责文档上传、向量化索引、语义检索、知识库维护等 RAG 全链路操作。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 知识库管理专家 (RAG Expert)

你是私有知识库的全链路管理专家,基于 **LlamaIndex + ZhiPu AI** 实现 RAG(检索增强生成)。

## 技术架构

```
用户 → Next.js 前端 → FastAPI 后端 → RAGManager → ZhiPu AI
                                         ↓
                               LlamaIndex VectorStoreIndex
                                         ↓
                              storage/rag/ (持久化索引)
                              storage/knowledge/ (源文件)
```

| 组件 | 技术 | 说明 |
|------|------|------|
| 向量索引 | LlamaIndex `VectorStoreIndex` | 文档分块(512 tokens)、向量存储、余弦相似度检索 |
| LLM | ZhiPu `glm-4-plus` | 基于检索结果生成答案 (temperature=0.1) |
| Embedding | ZhiPu `embedding-2` | 文本转向量 |
| Core | `RAGManager` 单例 | 管理索引、文档CRUD、查询 |

## 核心文件

| 文件 | 路径 | 职责 |
|------|------|------|
| RAG 引擎 | `backend/utils/rag_manager.py` | RAGManager 类:索引管理、文档CRUD、查询 |
| Agent 工具 | `backend/tools/rag_tools.py` | `search_knowledge_base` LangChain Tool |
| 后端 API | `backend/main.py` (L787-942) | 6 个 `/knowledge/*` FastAPI 端点 |
| 前端页面 | `web/app/knowledge/page.tsx` | 上传/查询/管理 UI |
| 前端代理 | `web/app/api/knowledge/*/route.ts` | 6 个 Next.js Route Handler 代理 |

## API 端点

| 方法 | 路径 | 功能 |  
|------|------|------|
| `POST` | `/knowledge/upload` | 上传文档到知识库 |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add phuhao00/bony-agent/rag-expert@sha256:9d19a5ca92e406e0

The line at the top of this page pins the label v2.0.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_4auam4m4gr6oi3js.svg)](https://markdownregistry.com/a/art_4auam4m4gr6oi3js)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Jun 17, 2026.

versioncommittedcommitsizeaudit
v2.0.0 latest2026-06-17 47f66a5 6,145 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6145 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

phuhao00/bony-agent · 16 stars · license none declared · pushed 2026-10-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_4auam4m4gr6oi3js
GET https://markdownregistry.com/api/v1/resolve?ref=phuhao00/bony-agent/rag-expert
GET https://markdownregistry.com/api/v1/blob/9d19a5ca92e406e09f4acc387c2cebbb2f6e1b9814e42d6cd75cf018219e7660

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from phuhao00/bony-agent

ad-campaign-agent SKILL.md skill
phuhao00/bony-agent · .agent/skills/ad-campaign-agent/SKILL.md · 完成数字广告投放全链路规划与优化:投放策略、创意文案、受众定向、预算分配、效果复盘。
v1.0.0 · audit A · 16 stars
algorithmic-art SKILL.md skill
phuhao00/bony-agent · .agent/skills/algorithmic-art/SKILL.md · Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users…
git:20260617.47f66a5 · audit B · 16 stars
bilibili-operator SKILL.md skill
phuhao00/bony-agent · .agent/skills/bilibili-operator/SKILL.md · Bilibili 平台深度运营专家,擅长 B 站风格文案、视频投稿与动态发布管理。
git:20260617.47f66a5 · audit A · 16 stars
brand-guidelines SKILL.md skill
phuhao00/bony-agent · .agent/skills/brand-guidelines/SKILL.md · Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having…
git:20260617.47f66a5 · audit A · 16 stars
brandkit SKILL.md skill
phuhao00/bony-agent · .agent/skills/brandkit/SKILL.md · Premium brand-kit image generation skill for creating high-end brand-guidelines boards, logo systems, identity decks…
git:20260617.47f66a5 · audit A · 16 stars
business-partnership-agent SKILL.md skill
phuhao00/bony-agent · .agent/skills/business-partnership-agent/SKILL.md · 完成商务拓展与战略合作关键工作:Outreach 文案、合作方案、条款要点、伙伴评估、BD Pipeline 规划。
v1.0.0 · audit A · 16 stars
canvas-design SKILL.md skill
phuhao00/bony-agent · .agent/skills/canvas-design/SKILL.md · Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user…
git:20260617.47f66a5 · audit A · 16 stars
claude-api SKILL.md skill
phuhao00/bony-agent · .agent/skills/claude-api/SKILL.md · Build, debug, and optimize Claude API / Anthropic SDK apps. Apps built with this skill should include prompt caching…
git:20260617.47f66a5 · audit A · 16 stars
code-analyst-agent SKILL.md skill
phuhao00/bony-agent · .agent/skills/code-analyst-agent/SKILL.md · 帮助开发者理解代码库、定位符号与调用关系、审查代码质量、给出架构/目录规范建议。
v1.0.0 · audit A · 16 stars
code-reviewer SKILL.md skill
phuhao00/bony-agent · .agent/skills/code-reviewer/SKILL.md · Reviews Python code for bugs, style, and project conventions. Invoke when user asks for a review or advice on code.
git:20260617.47f66a5 · audit A · 16 stars
content-moderator SKILL.md skill
phuhao00/bony-agent · .agent/skills/content-moderator/SKILL.md · moderation Skill 的兼容别名。新任务请优先使用 .agent/skills/moderation/SKILL.md。
v1.1.0 · audit A · 16 stars
copywriter SKILL.md skill
phuhao00/bony-agent · .agent/skills/copywriter/SKILL.md · copywriting Skill 的兼容别名。新任务请优先使用 .agent/skills/copywriting/SKILL.md。
v1.1.0 · audit A · 16 stars

Every file in phuhao00/bony-agent

Other files named rag-expert

rag-expert SKILL.md skill
phuhao00/bony-agent · .agent/skills/rag-expert/SKILL.md · 知识库管理专家。负责文档上传、向量化索引、语义检索、知识库维护等 RAG 全链路操作。
v2.0.0 · audit A · 16 stars

Browse by kind, by grade A, or by owner.