alibi

Verifies AI-generated claims against source documents using lexical overlap scoring and optional grounding models.

6|1|Updated Jun 23, 2026
One-click install
npx skills add https://github.com/JGalego/Bag-of-Tricks --skill alibi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: alibi
Source: https://github.com/JGalego/Bag-of-Tricks/tree/main/alibi
Command: npx skills add https://github.com/JGalego/Bag-of-Tricks --skill alibi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires alibi.py, and includes scripts (resource) and references (resource) components.

What problem does it solve?

The alibi Skill addresses the problem of answer inaccuracy by verifying that the claims in an AI-generated answer are grounded in the provided sources.

Core Features & Use Cases

  • Claim Verification: Checks if an AI-generated answer's claims are supported by the given sources.
  • Sentence-Level Analysis: Breaks down the answer into sentence-level claims and verifies each one.
  • Lexical Overlap Scoring: Scores claims based on lexical overlap with the source documents.
  • Optional Model-Based Grounding: Offers an optional model-based grounding check for more precise verification.
  • Use Case: Use alibi to ensure that an AI-generated summary of a research paper accurately reflects the information in the paper's sources.

Quick Start

Use the alibi skill to verify the claims in the generated answer with the provided source document 'research-paper.txt'.

Frequently Asked Questions about alibi

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

FAQPage Schema
How do I verify AI-generated claims against source documents?

To verify AI-generated claims against source documents, the alibi Skill breaks down answers into sentence-level claims and scores them using lexical overlap with the provided sources. It ensures factually grounded RAG and summarization outputs.

How does fact-checking work for RAG outputs?

Fact-checking for RAG outputs works by comparing AI-generated claims against provided source documents. It utilizes lexical overlap scoring and optional model-based grounding to ensure the responses are factually accurate.

What is the best way to ensure faithfulness in AI summarization?

The best way to ensure faithfulness in AI summarization is to perform sentence-level analysis on the output, verifying that each claim is supported by the original source documents through lexical overlap scoring.

Can I use model-based grounding for source-verification?

Yes, you can use optional model-based grounding for source-verification. This provides a more precise verification of AI-generated claims compared to standard lexical overlap scoring alone.

What are the limitations of lexical overlap scoring for AI-response-verification?

Lexical overlap scoring for AI-response-verification may not capture semantic equivalence if the wording differs significantly. For more precise fact-checking, you should enable the optional model-based grounding check.

Do I need source documents to check answer accuracy?

Yes, you need to provide source documents to check answer accuracy. The Skill verifies AI-generated claims by comparing them directly against the text in the supplied sources to ensure factual grounding.