explaingit

albertofettucini/faithgate

Analysis updated 2026-05-18

1PythonAudience · developerLicense

TLDR

A local testing tool that scores whether an AI app's answers still match their source material and fails CI when a new version starts hallucinating more than before.

Mindmap

mindmap
  root((FaithGate))
    What it does
      Scores answer faithfulness
      Fails CI on regression
    Tech stack
      Python
      Claude judge
    Use cases
      CI regression gate
      Compare test runs
    Audience
      Developers
      AI app builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Add a regression test to CI that fails the build if a prompt change makes an AI app hallucinate more.

USE CASE 2

Compare two versions of an AI app's answers to see which test cases got better or worse.

USE CASE 3

Score AI generated answers against their retrieved source passages to catch unsupported claims.

What is it built with?

Python

How does it compare?

albertofettucini/faithgate0xustaz/streamgatea-bissell/unleash-lite
Stars111
LanguagePythonPythonPython
Setup difficultyhardhard
Complexity4/54/5
Audiencedeveloperdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

In plain English

FaithGate is a testing tool for apps built around large language models, like chatbots that answer questions using retrieved documents. It checks whether each answer is actually supported by the information it was given, then compares that score against an earlier version of the same test suite. If a change to a prompt or a model causes answers to become less accurate, the tool fails the build in continuous integration, similar to how a regular test suite fails when code breaks. The tool runs entirely on your own machine and does not send data anywhere except to the judge you choose to score answers. By default that judge is Claude, using an API key you provide yourself, but a fully local scoring mode is also available using an on device model, and the project is upfront that this local mode is weaker than the Claude based one. There is also a basic offline scorer meant only as a placeholder, since the authors do not trust it to give meaningful results on its own. A test suite is a simple text file where each line describes one question, the answer given, and the passages that were retrieved to support that answer. FaithGate scores each line, then compares scores between two labeled runs, showing which questions regressed, improved, or stayed the same. It refuses to pass a build if too few cases could be scored or if every case abstained from scoring, so a broken suite cannot accidentally show green. The project describes itself as a narrow companion to broader evaluation tools rather than a replacement for them, focused specifically on catching the moment an AI application's answers quietly stop matching their sources after a change. Installing the base tool requires no extra infrastructure beyond Python, since capturing test runs, the basic judge, the comparison logic, and a small web viewer for browsing results are all built with the standard library. Support for Claude as a judge, and an on device local judge, are added only if you choose to install those extra pieces.

Copy-paste prompts

Prompt 1
Help me set up FaithGate to test my RAG app for hallucination regressions in CI.
Prompt 2
Explain how FaithGate's regression gate decides whether a build should pass or fail.
Prompt 3
Walk me through writing a JSONL test suite for FaithGate with questions, answers, and contexts.
Prompt 4
Show me the difference between FaithGate's Claude judge and its local judge mode.

Frequently asked questions

What is faithgate?

A local testing tool that scores whether an AI app's answers still match their source material and fails CI when a new version starts hallucinating more than before.

What language is faithgate written in?

Mainly Python. The stack also includes Python.

Who is faithgate for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.