ai-stopping-hallucinations

Ground AI outputs in retrieved sources with enforced citations and verification.

11|1|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/lebsral/DSPy-Programming-not-prompting-LMs-skills --skill ai-stopping-hallucinations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-stopping-hallucinations
Source: https://github.com/lebsral/DSPy-Programming-not-prompting-LMs-skills/tree/main/skills/ai-stopping-hallucinations
Command: npx skills add https://github.com/lebsral/DSPy-Programming-not-prompting-LMs-skills --skill ai-stopping-hallucinations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ground AI outputs by enforcing source citations, verifying claims against documents, and applying retrieval-grounded checks to reduce hallucinations.

Core Features & Use Cases

  • Citation enforcement: require inline citations for claims and validate that cited sources exist.
  • Faithfulness verification: check that every claim is supported by the provided sources.
  • Grounding via retrieval: retrieve relevant documents and constrain answers to the retrieved material.
  • Self-check pattern: generate an answer and evaluate its faithfulness against the sources.
  • Cross-check pattern: generate multiple independent answers and compare for consistency.
  • Confidence gating: surface low-confidence results for human review when needed.

Quick Start

Provide source documents to the AI and require citation, grounding, and verification before presenting answers.

Frequently Asked Questions about ai-stopping-hallucinations

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

FAQPage Schema
How do I prevent AI hallucinations in document QA?

Ground AI outputs to prevent hallucinations by enforcing inline citations and verifying claims against retrieved source documents. The skill applies faithfulness checks to ensure every claim is supported by provided sources.

What is the best way to enforce citations for knowledge-grounded writing?

Enforce citations for knowledge-grounded writing by requiring inline source references and validating that cited sources exist. The skill applies retrieval-grounded checks to constrain generated text to provided documents and verify claim faithfulness.

How does faithfulness verification work for retrieval-augmented generation?

Faithfulness verification for retrieval-augmented generation works by checking that every claim is supported by provided sources. The skill uses a self-check pattern to generate an answer and evaluate its faithfulness, applying confidence gating to surface low-confidence results for human review.

Can I use cross-check patterns to verify policy-compliant decisions?

Verify policy-compliant decisions using cross-check patterns by generating multiple independent answers and comparing them for consistency. The skill applies retrieval-grounded checks and guardrails with strong error handling and backtracking to ensure outputs satisfy source constraints.

When should I use confidence gating for hallucination prevention?

Use confidence gating for hallucination prevention when generating answers that require strict source faithfulness. The skill evaluates answer confidence against retrieved sources and surfaces low-confidence results for human review to maintain policy compliance and reduce unsupported claims.