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.1.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.1-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hallx-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 63ecf2b944397d31c7f6c5b54c0a803f8ab1dc61446c864940264ed60c602c20
MD5 7a6854c3455945cc7c8e74e91463afac
BLAKE2b-256 3977b984320111b86e384944b0d152b91ef42528acb909fa62c7363ffa493e5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hallx-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 25.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec2d81faededbbed3003de80877ca9a2b2e018952b37300ebbf93f5bd21bc9c4
MD5 907ee560bbe3b5b4c10a78c7b6b18045
BLAKE2b-256 7738b3ae476d08c738234d2baa883e3fa8951dcaca5026a54e3b8ff1e94ae514

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