qwen_agent/skills/support/rag-retrieve-only/README.md
2026-04-18 23:19:46 +08:00

35 lines
783 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# rag-retrieve
只保留 `rag_retrieve` 的精简版插件示例。
## 功能说明
- 通过 `PrePrompt` Hook 注入检索策略
- 暴露 `rag_retrieve` MCP Server
- 插件仅支持 `rag_retrieve`
- 已禁用 `table_rag_retrieve`
- 已禁用本地文件检索
## 目录结构
```text
rag-retrieve-only/
├── README.md
├── .claude-plugin/
│ └── plugin.json
├── hooks/
│ ├── pre_prompt.py
│ └── retrieval-policy.md
├── rag_retrieve_server.py
└── rag_retrieve_tools.json
```
## 当前检索策略
默认顺序skill-enabled knowledge retrieval tools > `rag_retrieve`
- 优先使用可用的技能内知识检索工具
- 不足时使用 `rag_retrieve`
- 不并行执行多个检索源
- 插件仅支持 `rag_retrieve`