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 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.3.tar.gz (22.8 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.3-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hallx-1.0.3.tar.gz
  • Upload date:
  • Size: 22.8 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.3.tar.gz
Algorithm Hash digest
SHA256 8bbb05d792c5983aa03598539b842045d0a6424c3a55b26a19a2e06e6c3435fd
MD5 cbcc1ad4e2353ba98da04df48050bdae
BLAKE2b-256 f2ac758688111f14993d0122cc9a431941f034c65a09f50202a53619a8de96ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hallx-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 25.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fc2e22f0795f7341b31e592db35a00b801726fbadf6300e8349606c87c734c5b
MD5 23e95e4d98771ae1219c5fe5e67c79d7
BLAKE2b-256 d31bd737a66fab0fc6c506780c71258a2be98d3eaf9bd1d19b449216d79836b3

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