← 返回 Skills 市场
Hallucination Check
作者
li8476295-bot
· GitHub ↗
· v1.0.0
· MIT-0
50
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install hallucination-check
功能描述
LLM hallucination detector with dual strategy (UQLM + rule-based fallback). Scores any AI output's confidence and flags potential hallucination risks.
使用说明 (SKILL.md)
Hallucination Check
Detect AI hallucination risks in LLM outputs. Uses UQLM (uncertainty quantification) as primary scorer, with a rule-based fallback when UQLM dependencies aren't available.
Quick Start
# Install
pip install uqlm
# Check a text
hallucination-check --input "根据我的分析,这可能是新算法,我不太确定具体参数"
# → 置信度: 65.3% | 建议: 低置信度,建议重新生成
# JSON output
hallucination-check --input "..." --json
# Check from file
hallucination-check --file response.json --field text
How It Works
LLM output → UQLM scorer → confidence 0-1 → threshold check
↓
rule-based keyword flags
↓
output: safe/warn/danger
Dual Strategy
| Mode | When | Accuracy |
|---|---|---|
| UQLM | pip install uqlm done |
High (semantic entropy + min token prob) |
| Rule fallback | UQLM unavailable | Medium (keyword + pattern matching) |
Thresholds
--threshold 0.3(default): below = high risk- Flags: vague language, unsourced numbers, contradiction patterns
For Developers
The core function is check_text(text, context=""):
from hallucination_check import check_text
result = check_text("AI生成的内容", context="指令")
print(result["confidence"], result["suggestion"])
Notes
- UQLM needs
transformers\x3C5.0.0(see pypi for version compat) - Rule fallback is zero-dependency, works everywhere
- Best used before critical operations (code execution, SQL, external sends)
安全使用建议
This appears safe to use as a user-invoked hallucination-checking helper. Before installing, check that the `uqlm` package is the expected package and consider using a pinned version; also be aware that the included artifacts do not contain the advertised CLI/module implementation.
功能分析
Type: OpenClaw Skill
Name: hallucination-check
Version: 1.0.0
The skill bundle describes a utility for detecting LLM hallucinations using the 'uqlm' library and rule-based fallbacks. The provided files (_meta.json, SKILL.md, clawhub.json) contain only metadata and documentation, with no evidence of malicious code, data exfiltration, or harmful prompt injection. The tool's stated purpose is aligned with security best practices, recommending checks before critical operations like code execution.
能力评估
Purpose & Capability
The stated purpose is consistent throughout: checking AI output for hallucination risk. However, the artifacts are instruction-only while the SKILL.md references a CLI and Python module that are not included in the package.
Instruction Scope
The instructions are user-invoked and scoped to scoring supplied text or a specified file field; there are no prompt-override, goal-hijack, or automatic execution instructions.
Install Mechanism
There is no install spec, but SKILL.md tells users to run `pip install uqlm`. This is purpose-aligned but unpinned and externally sourced.
Credentials
No credentials, environment variables, broad filesystem access, network endpoints, or privileged OS requirements are declared. Reading a user-specified file is proportionate to the stated purpose.
Persistence & Privilege
The skill declares no heartbeat or message triggers and shows no persistence, background workers, account access, or privilege escalation.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install hallucination-check - 安装完成后,直接呼叫该 Skill 的名称或使用
/hallucination-check触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of Hallucination Check: an LLM hallucination detector with dual strategy (UQLM + rule-based fallback).
- Scores AI outputs for confidence and flags potential hallucination risks.
- Uses UQLM uncertainty quantification as the primary method; falls back to rule-based detection if dependencies are missing.
- Provides CLI and Python API for easy integration.
- Outputs risk level and suggestions based on configurable thresholds.
元数据
常见问题
Hallucination Check 是什么?
LLM hallucination detector with dual strategy (UQLM + rule-based fallback). Scores any AI output's confidence and flags potential hallucination risks. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 50 次。
如何安装 Hallucination Check?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install hallucination-check」即可一键安装,无需额外配置。
Hallucination Check 是免费的吗?
是的,Hallucination Check 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Hallucination Check 支持哪些平台?
Hallucination Check 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Hallucination Check?
由 li8476295-bot(@li8476295-bot)开发并维护,当前版本 v1.0.0。
推荐 Skills