360 Secure SkillHub
360 安全技能中心

QMD Knowledge Search

该 Skill 通过 QMD 命令行工具在本地知识库中执行混合检索(关键词+语义+重排)或快速关键词检索,并可按路径或 docid 读取文档全文,支持 JSON 结构化输出与最低分过滤,面向技能、文档类技术问题查阅。

pratiknarola
pratiknarola
热度 16.02
最近更新 2026-06-03 19:22:57
分类:知识依赖:代码执行 / 读写文件应用场景:研究 / 概念解释

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add qmd-knowledge-search
Metadata
name
qmd-search
description
Query the local knowledge base (OpenClaw docs, skills, internal wikis) using the QMD hybrid search engine (BM25 + Vector + LLM Re-ranking). Use this for technical questions about the agent's own capabilities, available skills, or documentation.

QMD Search

Access the local knowledge base at /root/clawd/knowledge.

Usage

Search (Hybrid)

Best for general queries. Combines keyword and semantic search with re-ranking.

qmd query "your query here"

Search (Fast)

Keyword-only search. Use for exact phrases.

qmd search "exact phrase"

Get Document

Read a specific document by path or docid (from search results).

qmd get "path/to/doc.md" --full

Tips

  • Use --json if you need structured output for processing.
  • Use --min-score 0.5 to filter noise.
  • The knowledge base includes:
    • OpenClaw Documentation (openclaw-docs/)
    • Skill Definitions (skills/)
    • QMD Documentation (qmd.md)