返回顶部
l

local-rag-search本地RAG搜索

Efficiently perform web searches using the mcp-local-rag server with semantic similarity ranking. Use this skill when you need to search the web for current information, research topics across multiple sources, or gather context from the internet without using external APIs. This skill teaches effective use of RAG-based web search with DuckDuckGo, Google, and multi-engine deep research capabilities.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
3,681
下载量
免费
免费
3
收藏
概述
安装方式
版本历史

local-rag-search

本地RAG搜索技能

该技能使您能够有效使用mcp-local-rag MCP服务器进行智能网络搜索,并具备语义排序功能。服务器执行类似RAG的相似度评分,优先返回最相关的结果,无需任何外部API。

可用工具

1. ragsearchddgs - DuckDuckGo搜索

用于注重隐私的通用网络搜索。

使用场景:

  • - 用户偏好隐私保护搜索
  • 一般信息查询
  • 大多数查询的默认选择

参数:

  • - query:自然语言搜索查询
  • numresults:初始获取的结果数(默认:10)
  • topk:返回的最相关结果数(默认:5)
  • include_urls:包含来源URL(默认:true)

2. ragsearchgoogle - Google搜索

用于全面、技术性或详细的搜索。

使用场景:

  • - 技术或科学查询
  • 需要全面覆盖
  • 搜索特定文档

3. deep_research - 多引擎深度研究

用于跨多个搜索引擎的全面研究。

使用场景:

  • - 研究需要广泛覆盖的复杂主题
  • 需要来自多个来源的不同视角
  • 收集关于某个主题的全面信息

可用后端:

  • - duckduckgo:注重隐私的通用搜索
  • google:全面的技术结果
  • bing:微软搜索引擎
  • brave:隐私优先搜索
  • wikipedia:百科全书/事实内容
  • yahoo、yandex、mojeek、grokipedia:替代引擎

默认: [duckduckgo, google]

4. deepresearchgoogle - 仅Google深度研究

仅使用Google进行深度研究的快捷方式。

5. deepresearchddgs - 仅DuckDuckGo深度研究

仅使用DuckDuckGo进行深度研究的快捷方式。

最佳实践

查询构建

  1. 1. 使用自然语言:将查询写成问题或描述性短语
- 好:量子计算最新进展 - 好:如何在Python中实现二分查找 - 避免:单个关键词如量子或Python
  1. 2. 具体明确:包含上下文和细节
- 好:2024年React Hooks最佳实践 - 更好:React useEffect清理函数最佳实践

工具选择策略

  1. 1. 单一主题,快速回答 → 使用 ragsearchddgs 或 ragsearchgoogle

ragsearchddgs(
query=法国的首都是什么?,
top_k=3
)

  1. 2. 技术/科学查询 → 使用 ragsearchgoogle

ragsearchgoogle(
query=Docker多阶段构建优化技术,
num_results=15,
top_k=7
)

  1. 3. 全面研究 → 使用 deep_research 配合多个搜索词

deep_research(
search_terms=[
机器学习基础,
神经网络架构,
2024年深度学习最佳实践
],
backends=[google, duckduckgo],
topkper_term=5
)

  1. 4. 事实/百科全书内容 → 使用 deep_research 配合维基百科

deep_research(
search_terms=[第二次世界大战时间线, 二战关键战役],
backends=[wikipedia],
numresultsper_term=5
)

参数调优

快速回答:

  • - numresults=5-10,topk=3-5

全面研究:

  • - numresults=15-20,topk=7-10

深度研究:

  • - numresultsperterm=10-15,topkperterm=3-5
  • 使用2-5个相关搜索词
  • 使用1-3个后端(越多越全面但越慢)

工作流示例

示例1:时事新闻

任务:上周联合国气候峰会发生了什么?

  1. 1. 使用ragsearchgoogle获取最新新闻报道
  2. 设置top_k=7获取全面视角
  3. 附带来源URL呈现结果

示例2:技术深度探究

任务:如何优化PostgreSQL查询?

  1. 1. 使用deep_research配合多个具体搜索词:
- PostgreSQL查询优化技术 - PostgreSQL索引最佳实践 - PostgreSQL EXPLAIN ANALYZE教程
  1. 2. 使用backends=[google, stackoverflow](如可用)
  2. 综合发现形成可操作指南

示例3:多角度研究

任务:研究远程工作对生产力的影响

  1. 1. 使用deep_research配合多样化搜索词:
- 2024年远程工作生产力统计数据 - 混合工作模式有效性研究 - 居家办公挑战研究
  1. 2. 使用backends=[google, duckduckgo]获取广泛覆盖
  2. 综合不同视角和研究结果

指南

  1. 1. 始终引用来源:当include_urls=True时,在回复中引用来源URL
  2. 验证时效性:检查内容是否看起来最新和相关
  3. 交叉验证:对于重要事实,使用多个搜索词或引擎
  4. 尊重隐私:除非特定需求需要使用Google,否则通用查询使用DuckDuckGo
  5. 批量相关查询:研究主题时,为深度研究创建多个相关搜索词
  6. 语义相关性:信任RAG评分——顶部结果在语义上最接近查询
  7. 解释选择:简要说明正在使用哪个工具及其原因

错误处理

如果搜索返回的结果不足:

  1. 1. 尝试用不同关键词重新表述查询
  2. 切换到不同的后端
  3. 增加numresults参数
  4. 使用deepresearch配合多个相关搜索词

隐私考虑

  • - DuckDuckGo:注重隐私,不追踪用户
  • Google:最全面但会追踪搜索
  • 建议默认使用DuckDuckGo,除非用户特别需要Google的覆盖范围

性能说明

  • - 首次搜索可能较慢(模型加载)
  • 后续搜索更快(缓存模型)
  • 更多后端 = 更全面但更慢
  • 根据使用场景调整numresults和topk

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 local-rag-search-1776376803 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 local-rag-search-1776376803 技能

通过命令行安装

skillhub install local-rag-search-1776376803

下载

⬇ 下载 local-rag-search v0.1.0(免费)

文件大小: 4.99 KB | 发布时间: 2026-4-17 14:57

v0.1.0 最新 2026-4-17 14:57
Initial release of local-rag-search skill.

- Enables efficient, privacy-conscious web searches using the mcp-local-rag server with semantic similarity ranking.
- Supports DuckDuckGo and Google for targeted search, plus multi-engine deep research across various providers including Wikipedia and Bing.
- Provides clear guidelines on tool selection, query formulation, and parameter tuning for effective results.
- Emphasizes citing sources and privacy best practices.
- Includes troubleshooting and performance tips for comprehensive and responsive searching.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部