Skip to content

TangibleResearch/Halgorithem

Repository files navigation

Halgorightem

Python

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.

How It Works

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

Halgo Plugins

Installation

To run Halgorithem, follow these steps:

  1. Create a virtual environment:

    python -m venv venv
    
  2. Activate the virtual environment:

    source venv/bin/activate
    
  3. Install the required modules:

    pip install -r requirements.txt
    
  4. Download the spaCy English model (if it is not installed automatically):

    python -m spacy download en_core_web_sm
    
  5. Run the benchmark:

    python bench.py
    

About

A Algo designed to detect AI Hallucitions

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors