Skip to main content

Lightweight hallucination risk scoring for LLM outputs

Project description

hallx

hallx logo

Lightweight hallucination-risk scoring for production LLM pipelines

What Is Hallx

Hallx is a practical guardrail layer that evaluates LLM responses before they are trusted in downstream systems.

It scores responses using:

  • schema validity
  • consistency across repeated generations
  • grounding against provided context

It returns:

  • confidence
  • risk_level
  • issues
  • recommendation

Quick Start

pip install hallx
from hallx import Hallx

checker = Hallx(profile="balanced")
result = checker.check(prompt="p", response="r", context=["c"])
print(result.confidence, result.risk_level, result.recommendation)

Workflow

Hallx workflow

Essential Links

Languages

Community

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hallx-1.0.2.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hallx-1.0.2-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file hallx-1.0.2.tar.gz.

File metadata

  • Download URL: hallx-1.0.2.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for hallx-1.0.2.tar.gz
Algorithm Hash digest
SHA256 92009ac9beeeff940e73f6770dbb92a9aa83fcd33862f1446c9f43a0599888d7
MD5 4d301a17f7df154f9dc199afc8a6a3ab
BLAKE2b-256 9a703f20a4f8b1450970db75f88674fc56b8299d2ff64566c0c7791fd4708841

See more details on using hashes here.

File details

Details for the file hallx-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: hallx-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for hallx-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4385b023f3ddf6e441f89aed26d64b5008704cf875cdb96420109af300f4ae1e
MD5 b54554085013796a40a6825815adaa5f
BLAKE2b-256 58497c5d8ddf25381b7393b4354c90fa5af3307d30335250db68b66ee6a5414b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page