AI News HubLIVE
站内改写

Show HN: Halgorithem – Catching AI Hallucinations Using Trees, No AI in Pipeline

Halgorithem is a custom algorithm that detects AI hallucinations without using AI itself, by parsing inputs into trees and comparing with file chunk trees to flag inconsistencies. It integrates with Python AI workflows like LangGraph and CrewAI, showing high accuracy in benchmarks.

Article intelligence

EngineersAdvanced

Key points

  • Halgorithem detects AI hallucinations using tree structure comparison, without its own AI.
  • Easily integrates into popular Python AI pipelines such as LangGraph, CrewAI, etc.
  • Benchmarks show strong support rates across multiple topics, with only one unverifiable flag.

Why it matters

This matters because halgorithem detects AI hallucinations using tree structure comparison, without its own AI.

Technical impact

May affect model selection, inference cost, product capability, and evaluation benchmarks.

Notifications You must be signed in to change notification settings

Fork 0

Star 2

BranchesTags

Open more actions menu

Folders and files

NameName

Last commit message

Last commit date

Latest commit

History

8 Commits

8 Commits

Halgorithem

Halgorithem

__pycache__

__pycache__

assets

assets

sources

sources

templates

templates

.DS_Store

.DS_Store

CLA.md

CLA.md

LICENCE

LICENCE

README.md

README.md

ai.py

ai.py

bench.py

bench.py

engine.py

engine.py

file0.txt

file0.txt

requirements.txt

requirements.txt

test.py

test.py

tui.py

tui.py

Repository files navigation

Detecting AI Hallucinations Before Them Happening

Whats Halgortihem

Halgorithem is a Custom Designed Algorithem For Detecting AI Hallucinations without Little to Any AI Present in the Algo Itself. Halgorithem was designed with speed in mind to quickly detect AI Hallucinating

How does Halgorithem Work

Halgorithem works by Parsing your files and input into a Tree which is compared with file chunks which were made into trees. If something doesn't make sense, Halgorithem Flags it.

Key Features

🔗 Fits Into Any AI workflow where responses are gened

Halgorithem can be integrated into AI Pipelines designed in python like LangGraph, CrewAI, PydanticAI and Microsoft AutoGen

First Robust Solution to AI Hallucination

Halgorithem is the first robust and true solution to hallucination detection over the alternitives.

Benchmark Results

Topic Sources Supported Weak Contradictions Hallucinations

Microsoft / Satya Nadella 5 Wikipedia pages 3/4 1/4 0 0

James Webb Space Telescope 3 Wikipedia pages 5/6 1/6 0 1*

Apple / Tim Cook 3 Wikipedia pages 3/3 0/3 0 0

Elon Musk / Twitter 4 Wikipedia pages 2/2 0/2 0 0

*JWST $10B cost not present in scraped source text — UNVERIFIABLE, not hallucination

Screenshots

Installation

To run Halgorithem, follow these steps:

Create a virtual environment:

python -m venv venv

Activate the virtual environment:

source venv/bin/activate

Install the required modules:

pip install -r requirements.txt

Download the spaCy English model (if it is not installed automatically):

python -m spacy download en_core_web_sm

Run the benchmark:

python bench.py

About

A Algo designed to detect AI Hallucitions

Resources

Readme

License

View license

Uh oh!

There was an error while loading. Please reload this page.

Activity

Custom properties

Stars

2 stars

Watchers

0 watching

Forks

0 forks

Report repository

Releases 1

Halgorithem Alpha

Latest

May 5, 2026

Packages 0

Uh oh!

There was an error while loading. Please reload this page.

Contributors

Uh oh!

There was an error while loading. Please reload this page.

Languages

Python 96.7%

HTML 3.3%