Automation

Hallucination Guard

Verify AI outputs against source data. Flag unsupported claims. Score factual confidence.

Buy Now — $4.99

One-time purchase · Instant download · Yours forever

Hallucination Guard

Verify AI outputs against source data. Flag unsupported claims. Score factual confidence.

Quick Start


# Verify a text against source documents
python3 scripts/hallucination-guard.py verify --text "claim to check" --sources file1.md file2.md

# Verify from a file
python3 scripts/hallucination-guard.py verify --file output.md --sources research.md data.csv

# Verify with web cross-reference
python3 scripts/hallucination-guard.py verify --text "Tesla has 500 Supercharger stations" --web

# Score factual confidence of a document
python3 scripts/hallucination-guard.py score --file report.md

# Extract and verify all claims in a document
python3 scripts/hallucination-guard.py extract --file article.md

# Generate citation report
python3 scripts/hallucination-guard.py cite --file output.md --sources research.md

# Batch verify multiple outputs
python3 scripts/hallucination-guard.py batch --dir outputs/ --sources data/

How It Works

Claim Extraction

The guard extracts individual claims from text:

Verification Levels

| Level | Method | Confidence |

|-------|--------|------------|

| L1 | Source document match | High (direct citation) |

| L2 | Semantic similarity to source | Medium (paraphrased) |

| L3 | Web cross-reference | Medium (external corroboration) |

| L4 | Internal consistency check | Low (no external support) |

Trust Score

Each claim gets a 0-100 trust score:

Document-level score = weighted average of all claim scores.

Output Format


📊 Hallucination Guard Report
═══════════════════════════════════════
Document: output.md
Claims found: 12
Trust score: 78/100 🟡

✅ VERIFIED (8/12):
  • "Revenue grew 45% YoY" → source: earnings.md L42
  • "Founded in San Francisco in 2019" → source: about.md L3

⚠️ UNVERIFIED (3/12):
  • "Market share exceeds 60%" → no source match (score: 25)
  • "Patent filed in 2024" → no source match (score: 15)

❌ CONTRADICTED (1/12):
  • "Team size is 500+" → source says "200 employees" (earnings.md L88)

Integration

Add to agent workflow for automatic verification:


### Output Verification
Before delivering any research, analysis, or factual content:
1. Run hallucination-guard verify against source documents
2. If trust score < 70, flag for human review
3. Remove or caveat any claim scoring < 30

Ready to get started?

One-time purchase. No subscription. Download instantly and use forever.

Buy Now — $4.99
Category: Automation Price: $4.99 USD Released: 2026-05-13 Skill ID: hallucination-guard