Lightweight hallucination risk scoring for LLM outputs
Project description
hallx
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:
schemavalidityconsistencyacross repeated generationsgroundingagainst provided context
It returns:
confidencerisk_levelissuesrecommendation
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
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
hallx-1.0.1-py3-none-any.whl
(25.4 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63ecf2b944397d31c7f6c5b54c0a803f8ab1dc61446c864940264ed60c602c20
|
|
| MD5 |
7a6854c3455945cc7c8e74e91463afac
|
|
| BLAKE2b-256 |
3977b984320111b86e384944b0d152b91ef42528acb909fa62c7363ffa493e5a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec2d81faededbbed3003de80877ca9a2b2e018952b37300ebbf93f5bd21bc9c4
|
|
| MD5 |
907ee560bbe3b5b4c10a78c7b6b18045
|
|
| BLAKE2b-256 |
7738b3ae476d08c738234d2baa883e3fa8951dcaca5026a54e3b8ff1e94ae514
|