zoeylan/agentcore-superagent-liveview/confidence-scoring

Claude Code and agent skill by zoeylan/agentcore-superagent-liveview

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install zoeylan/agentcore-superagent-liveview/confidence-scoring

SKILL.md

The same SKILL.md was published earlier as zoeylan/agentcore-superagent-liveview/confidence-scoring.

置信度评估 (Confidence Scoring)

概述

对知识检索结果进行多维度置信度评估,判定答案可靠性等级,决定是直接回复、要求澄清还是标记为知识缺口。这是避免"AI幻觉"传播给客户的关键防线。

适用场景

  • 每次知识检索后的答案质量评估
  • 模糊查询场景下的答案可信度判断
  • 多候选答案的可靠性对比排序
  • 知识缺口发现与记录

执行步骤

1. 多维评分

对每个检索结果从多个维度计算分数:

维度权重评分标准
语义匹配度0.35查询与答案的语义相似度
实体覆盖率0.25查询中的关键实体在答案中的出现率
知识时效性0.20知识条目的更新时间和有效期
来源权威度0.10知识来源的可靠性等级
上下文一致性0.10答案与对话上下文的逻辑一致性
2. 综合置信度计算
confidence = Σ(维度分数 × 权重)

归一化到0-1范围。

3. 决策分级
置信度范围决策行为
>= 0.85高可信直接回复,标记"精确匹配"
0.6 - 0.85中等可信回复但附加确认语("您是想问...对吗?")
0.4 - 0.6低可信不直接回复,推荐相似问题列表
< 0.4无可信答案标记知识缺口,建议转人工或换种方式描述
4. 知识缺口处理

当置信度<0.4时:

  • 记录原始查询到"待补充知识"队列
  • 生成推荐相似问题列表(最多3个,从中等置信度结果中选取)
  • 向对话编排引擎返回降级信号
5. 反馈循环
  • 记录用户对答案的反馈(接受/拒绝/追问)
  • 追问或拒绝的case自动降低对应知识条目的权威度分
  • 长期低分知识条目标记为"需更新"

输入规格

字段类型说明
search_resultsarray检索结果列表(含答案+各维度原始分数)
query_textstring原始查询文本
dialogue_contextobject对话上下文
knowledge_metadataobject知识条目的元数据(时效性、来源等)

输出规格

字段类型说明
confidence_scorefloat综合置信度0-1
decisionenumHIGH_CONFIDENCE/MEDIUM/LOW/NO_ANSWER
dimension_scoresobject各维度评分详情
similar_questionsarray推荐的相似问题(低置信度时)
knowledge_gap_flagbool是否为知识缺口

最佳实践

  • 宁可返回"不确定"也不给出错误答案——语音客服场景中错误回答的纠正成本极高
  • 对政策条款类查询提高置信度阈值(>=0.9才给出确定答案)
  • 综合多个候选结果:如Top1和Top2答案一致,置信度可适当提升
  • 知识缺口积累到一定量级应触发知识库更新工单

约束

  • 评分计算时间<50ms
  • 知识缺口误标率<5%(真实有答案的情况被误标为缺口)
  • 无答案场景正确降级率>=95%

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/zoeylan/agentcore-superagent-liveview/confidence-scoring/badge)](https://verified-skill.com/skills/zoeylan/agentcore-superagent-liveview/confidence-scoring)

Something wrong with this skill or its page? Tell us.