Skip to main content

Lightweight hallucination risk scoring for LLM outputs

Project description

hallx

hallx logo

Lightweight hallucination-risk scoring for production LLM pipelines

Tests Release OpenSSF Scorecard PyPI Downloads / month Python License

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.4.tar.gz (23.0 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.4-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hallx-1.0.4.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hallx-1.0.4.tar.gz
Algorithm Hash digest
SHA256 2fc8197bf2111dd82a79f2b9bd1fa0f539e622ab228162a78c322d867e20f9d2
MD5 8c8e7fdd98f77c1a5ae0fe57a2fb99bd
BLAKE2b-256 3701b10f1539f83134e1996ce7ddf141180974ea742d637e3bd866d07dc82452

See more details on using hashes here.

Provenance

The following attestation bundles were made for hallx-1.0.4.tar.gz:

Publisher: release.yml on dhanushk-offl/hallx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: hallx-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hallx-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bd1d674683e798325794eb2597ea7cd686fac1ca95bb28a720c7a08249739367
MD5 228c8ec252f6aaa820044d34c3c10a66
BLAKE2b-256 2869d966cdb5b40008d8acc97c454af293c1f81cab1c7c56f4d5c652ce75468c

See more details on using hashes here.

Provenance

The following attestation bundles were made for hallx-1.0.4-py3-none-any.whl:

Publisher: release.yml on dhanushk-offl/hallx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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