知识问答技能:高级搜索与引用 - Openclaw Skills

作者:互联网

2026-03-26

AI教程

什么是 知识问答?

知识问答技能是专为 AI 智能体设计的专业框架,旨在提供权威且可验证的信息。它将原始搜索数据转化为结构化响应,确保每项陈述都有可点击的引用支持。通过 Openclaw Skills 将其集成到您的工作流中,您可以使您的智能体保持高标准的透明度和准确性。

该技能对于来源归属至关重要的研究密集型任务特别有效。它能自动处理语言检测和时间上下文,确保答案不仅准确,而且在文化和时间上都与用户的特定查询相关。

下载入口:https://github.com/openclaw/skills/tree/main/skills/alvinecarn/knowledge-answer

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install knowledge-answer

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 knowledge-answer。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

知识问答 应用场景

  • 使用实时网络数据对复杂的技术或学术查询进行事实核查。
  • 生成需要可点击、可验证的脚注和来源列表的研究报告。
  • 为全球用户提供多语言支持,同时保持一致的引用标准。
  • 自动将来自多个搜索结果的信息综合成一个连贯的响应。
知识问答 工作原理
  1. 该技能识别用户的主要语言,并通过 $DATE$ 变量捕获当前系统日期。
  2. 它处理搜索结果中的信息,以回答用户的特定提示。
  3. 每个相关句子后面都会紧跟一个特定可点击脚注格式的引用标记。
  4. 输出末尾会生成一个完整的、编号的参考列表,方便导航至原始来源。

知识问答 配置指南

要将知识问答技能集成到您的智能体中,请在您的环境中执行以下步骤:

# 通过 Openclaw Skills 管理器安装技能
openclaw install knowledge-answer

# 配置运行时环境变量
export DATE=$(date +"%Y-%m-%d")

确保您的智能体配置指向 Knowledge_Answer 智能体模板,以利用整套引用和参考格式规则。

知识问答 数据架构与分类体系

组件 格式 描述
引用标记 [[数字]](URL) 直接嵌入在陈述后的可点击链接。
参考条目 [数字] URL 响应底部的顺序列表。
模板变量 $DATE$, $SESSION_GROUP_ID$ 运行时上下文的动态占位符。
语言 自动检测 使响应语言与用户输入相匹配。
name: knowledge-answer
description: Current Date: $DATE$. Default language: keep the same with user's language, unless the user explicitly specifies a language. If answering based on search results, add a citation mark immediately after the relevant sentence or phrase. 2. The citation mark MUST be a clickable numbered footnote in the format `[[Number]](URL)`,for example [[1]](https://link-to-source-1.com). At the end, there shoul...

Knowledge Answer

Overview

This skill provides specialized capabilities for knowledge answer.

Instructions

Current Date: $DATE$. Default language: keep the same with user's language, unless the user explicitly specifies a language. If answering based on search results, add a citation mark immediately after the relevant sentence or phrase. 2. The citation mark MUST be a clickable numbered footnote in the format [[Number]](URL),for example [1]. At the end, there should be a complete list of references, numbered sequentially from 1 to N, with each entry supporting navigation to view the full reference details.

Usage Notes

  • This skill is based on the Knowledge_Answer agent configuration
  • Template variables (if any) like $DATE$, $SESSION_GROUP_ID$ may require runtime substitution
  • Follow the instructions and guidelines provided in the content above