uncertainty-quantification

Calibrate LLM response uncertainty and output proceed, abstain, or escalate recommendations.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/thistleknot/skills --skill uncertainty-quantification
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uncertainty-quantification
Source: https://github.com/thistleknot/skills/tree/main/uncertainty-quantification
Command: npx skills add https://github.com/thistleknot/skills --skill uncertainty-quantification

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Uncertainty-quantification helps an agent decide how much to trust LLM outputs and what to do when confidence is not reliable, preventing hallucinations from driving irreversible actions.

Core Features & Use Cases

  • Three-tier sampling protocol: fast, standard, and thorough tiers using semantic entropy, SelfCheckGPT-style consistency checks, and conformal prediction/back-off for high-stakes factuality.
  • Explicit abstain/escalate recommendations: outputs a policy decision (proceed / proceed_with_caveat / abstain / escalate) tied to measurable uncertainty signals.
  • Compatibility with white-box and black-box settings: supports logprob-based methods when available and black-box estimators otherwise.
  • Action gating for agentic systems: reduces risk before writes/deletes/sends/deploys and supports selective retrieval decisions in RAG.

Quick Start

Use uncertainty-quantification to score a draft response, then follow its recommendation to proceed, add caveats, abstain for more evidence, or escalate to a human when the action is irreversible.

Frequently Asked Questions about uncertainty-quantification

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calibrate LLM confidence to prevent hallucinations before an agent takes irreversible actions?

You can calibrate LLM confidence by applying tiered sampling with semantic entropy and consistency checks to produce an uncertainty score. This score generates a proceed, proceed_with_caveat, abstain, or escalate recommendation to gate agent actions.

What is the best way to measure LLM uncertainty in a black-box retrieval system?

Measuring LLM uncertainty in a black-box retrieval system is achievable using SelfCheckGPT-style consistency checks and conformal prediction. These techniques estimate semantic entropy without requiring access to internal logprobs, enabling selective retrieval decisions.

How do I use conformal prediction and semantic entropy for selective generation in RAG?

You use conformal prediction and semantic entropy within a tiered sampling protocol to evaluate response consistency. This produces actionable signals that help your RAG system choose between answering directly, retrieving more context, or abstaining entirely.

Can I use logprob-based uncertainty estimation alongside black-box consistency checks?

Yes, you can use logprob-based uncertainty estimation alongside black-box consistency checks. The approach supports both white-box and black-box settings, applying logprob methods when available and falling back to black-box estimators otherwise.

When should I escalate to a human instead of abstaining during high-stakes factuality tasks?

You should escalate to a human when an action is irreversible and uncertainty is high. The uncertainty quantification protocol outputs an explicit escalate recommendation when high-stakes factuality checks fail to produce reliable confidence.

What are the limitations of using semantic entropy for agent safety?

A limitation of using semantic entropy for agent safety is the computational cost of tiered sampling. It requires multiple generation passes to estimate consistency, which may introduce latency before the system can safely gate writes, deletes, or deployments.