This guide walks you through cloning the repository, setting up a Python environment, and running a verification check against a local truth file. By the end you will have a working script that extracts claims from AI-generated text and prints a per-claim report.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TangibleResearch/Halgorithem/llms.txt
Use this file to discover all available pages before exploring further.
The
Engine class in engine.py calls the OpenAI API to generate responses. If you only want to verify existing AI output — not generate it — you can use the Halgorithm class directly and no API key is required.Clone the repository and create a virtual environment
Clone the project and isolate its dependencies in a virtual environment:
Download the spaCy language model
Halgorithem uses spaCy for tokenization and entity recognition. Download the large English model:
Write a verification script
Create a file called You can also pass pre-loaded document dicts using
verify.py in the project root. This example loads a local truth document, passes AI output to compare_to_files(), and prints a report:compare_to_docs() if you have already read the text into memory:Next steps
How it works
Understand the full claim-extraction and scoring pipeline.
AI pipeline integration
Add verification to LangGraph, CrewAI, PydanticAI, or AutoGen workflows.