News for hackers. Stuff that matters.

Show HN: Hallx – Hallucination risk scoring for LLM outputs

https://github.com/dhanushk-offl/hallx

I got tired of LLM outputs silently failing in pipelines, so I built a small scoring layer around it.

It checks three things before your output moves forward: does it match the schema you expected is it consistent across runs does it actually align with the context you provided

Returns a confidence score and a risk level. That's mostly it.

Works with OpenAI, Anthropic, Gemini, Ollama and a few others. Sync and async both supported. It's heuristic, not a guarantee. If your context is bad, the scores will be too. Hit a star, if you found this useful.

Try now: pip install hallx

( 2 comments | on HN )
Re:Show HN: Hallx – Hallucination risk scoring for LLM outputs by emillykkeg on Thursday April 02, 2026 @11:57AM (#47616202)
Hey this is cool. Maybe your gh page could be improved with a few examples of your product in use?
Re:Show HN: Hallx – Hallucination risk scoring for LLM outputs by akadhanu on Friday April 03, 2026 @03:03AM (#47623985)
yeah.. right now working on that.. thank you for your insights :)