fact-checker logo

fact-checker

jagilley/fact-checker

Fact-checking LLM outputs with self-ask

GraphCanon updated 1w · GitHub synced 1w

313 stars39 forksLast push 2y Jupyter Notebook

Decision brief

`fact-checker` utilizes prompt chaining in Jupyter Notebook to fact-check Language Model outputs, enhancing the accuracy and reliability of responses.

Good fit when

  • - When you need to verify the accuracy of assumptions made by a Language Model’s initial response through self-ask methodologies.
  • - For scenarios where you want to improve trustworthiness and credibility of LLM-generated content using predefined assumptions validation.

Avoid when

  • - If an immediate answer is required without the step-by-step reassessment process, as `fact-checker` involves sequential validation that could be time-consuming.
  • - In situations where real-time interaction is critical and a delay from additional self-interrogation steps would not be beneficial for user experience.
Pricing:
unknown - The licensing information for `fact-checker` is unclear, indicating that further investigation into its legal usage might be required before implementation.
Requirements:
Requires Python and possibly Jupyter Notebook environment for running the provided IPython notebook script or command-line script.

Observed Jul 12, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Dormant (1026d since push)
As of 1w
Provenance
Not a fork · Personal account
As of 1w
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

git clone https://github.com/jagilley/fact-checker

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

A simple demonstration for fact-checking Language Model outputs through prompt chaining to verify the assumptions made in the initial response.

Capability facts

Languages
jupyter notebook

Source: github.language · Aug 15, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Aug 15, 2026)

`python3 fact_checker.py 'insert question here'`
Source link

Tags

README

fact checking with prompt chaining

This repo is a simple demonstration of doing fact-checking with prompt chaining. How it works:

  • you ask your desired LLM a question
  • the LLM generates an initial answer to the question
  • the LLM self-interrogates what the assumptions were that went into that answer
  • the LLM sequentially determines if each of these assumptions are true
  • the LLM generates a new answer to the question, incorporating the new information

to run

Run

python3 fact_checker.py 'insert question here'

Be sure to wrap your question in quotes if you're passing it as a command line argument.

Alternatively, you can use the provided fact_checker.ipynb notebook.

example

Question: "What type of mammal lays the biggest eggs?"

Initial answer: The biggest eggs laid by any mammal belong to the elephant.

Assumptions made:

  • The elephant is a mammal
  • Mammals lay eggs
  • Eggs come in different sizes
  • Elephants lay bigger eggs than other mammals

Verification of assumptions:

  • The elephant is a mammal: TRUE
  • Mammals lay eggs: FALSE - Most mammals give birth to live young.
  • Eggs come in different sizes: TRUE
  • Elephants lay bigger eggs than other mammals: FALSE - Elephants do not lay eggs.

New answer: This question cannot be answered because elephants do not lay eggs and most mammals give birth to live young.

credits

Proof of concept by Jasper

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.