360 Secure SkillHub
360 安全技能中心

query-intel

提供 Python 命令行工具:对问题做 Step-Back 与 Least-to-Most 分解,按给定置信度给出检索或跳过建议,并按大纲优先思路生成含矛盾、空白、方法迁移、反证槽位的报告大纲,供后续综合使用。

分类:搜索
gautham-ai-dev
gautham-ai-dev
热度 8.84
最近更新 2026-10-14 14:53:01

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add gautham-ai-dev/query-intel
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
query-intel
description
Query rewriting + retrieval gating + outline-first synthesis. Use when a question needs decomposition (Step-Back/Least-to-Most), retrieve-or-skip decisions (CRAG/Self-RAG gates), or multi-source reports (STORM outline-first). Feeds breakthrough-finder stages plan/expand/synthesize.
version
1.0.0
metadata
{"openclaw":{"requires":{"anyBins":["python3"]}}}

Query Intel

Question → better questions → gated retrieval → outline → cited report.

Commands (intel.py, stdlib)

python intel.py stepback "<question>"     # principle + sub-questions
python intel.py decompose "<question>"    # least-to-most ordered steps
python intel.py gate "<query>" --conf X   # retrieve|skip + reason
python intel.py outline "<topic>" --slots # outline w/ breakthrough slots

Rules

  • Rewriters are retriever-specific: lexical expansion → BM25, hypothetical-doc → dense. One universal rewriter fails (RL-QR).
  • Skip retrieval when confident AND answer is stable knowledge (Self-RAG/FLARE gate) — cuts poisoned/noisy exposure.
  • Outline-first always for reports: contradiction / vacancy / method-transfer / hostile-evidence slots before any prose.