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.3.tar.gz
(22.8 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.3-py3-none-any.whl
(25.7 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bbb05d792c5983aa03598539b842045d0a6424c3a55b26a19a2e06e6c3435fd
|
|
| MD5 |
cbcc1ad4e2353ba98da04df48050bdae
|
|
| BLAKE2b-256 |
f2ac758688111f14993d0122cc9a431941f034c65a09f50202a53619a8de96ae
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc2e22f0795f7341b31e592db35a00b801726fbadf6300e8349606c87c734c5b
|
|
| MD5 |
23e95e4d98771ae1219c5fe5e67c79d7
|
|
| BLAKE2b-256 |
d31bd737a66fab0fc6c506780c71258a2be98d3eaf9bd1d19b449216d79836b3
|