fact-checker  by jagilley

LLM fact-checker using self-ask prompt chains

Created 2 years ago
303 stars

Top 88.2% on SourcePulse

GitHubView on GitHub
Project Summary

This repository demonstrates a method for fact-checking Large Language Model (LLM) outputs using a self-ask and prompt-chaining approach. It is intended for developers and researchers exploring LLM reliability and accuracy, offering a way to verify LLM-generated answers by breaking them down into verifiable assumptions.

How It Works

The process involves an LLM first generating an answer to a user's question. It then self-interrogates to identify the underlying assumptions made in its initial response. Subsequently, the LLM sequentially verifies each of these assumptions. Finally, it generates a revised answer that incorporates the verified information, improving accuracy and addressing any factual inaccuracies found during the verification step.

Quick Start & Requirements

  • Run python3 fact_checker.py 'insert question here' or use the provided fact_checker.ipynb notebook.
  • Requires Python 3.
  • No specific LLM API keys or hardware requirements are mentioned, implying flexibility in the underlying LLM used.

Highlighted Details

  • Leverages prompt chaining for a structured fact-checking workflow.
  • Demonstrates an LLM's ability to self-interrogate and verify its own assumptions.
  • Provides a clear example of the process with a question about mammal eggs.

Maintenance & Community

This appears to be a proof-of-concept project by a single contributor, Jasper. No community channels or ongoing maintenance information are provided.

Licensing & Compatibility

The repository does not explicitly state a license.

Limitations & Caveats

The project is described as a "simple demonstration" and a "proof of concept," suggesting it may not be production-ready. The effectiveness is dependent on the LLM's ability to accurately identify and verify its own assumptions.

Health Check
Last Commit

1 year ago

Responsiveness

1+ week

Pull Requests (30d)
0
Issues (30d)
0
Star History
1 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Kevin Hou Kevin Hou(Head of Product Engineering at Windsurf), and
6 more.

TypeChat by microsoft

0.1%
9k
Library for building natural language interfaces using types
Created 2 years ago
Updated 2 months ago
Feedback? Help us improve.