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.2.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.2-py3-none-any.whl
(25.5 kB
view details)
File details
Details for the file hallx-1.0.2.tar.gz.
File metadata
- Download URL: hallx-1.0.2.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 |
92009ac9beeeff940e73f6770dbb92a9aa83fcd33862f1446c9f43a0599888d7
|
|
| MD5 |
4d301a17f7df154f9dc199afc8a6a3ab
|
|
| BLAKE2b-256 |
9a703f20a4f8b1450970db75f88674fc56b8299d2ff64566c0c7791fd4708841
|
File details
Details for the file hallx-1.0.2-py3-none-any.whl.
File metadata
- Download URL: hallx-1.0.2-py3-none-any.whl
- Upload date:
- Size: 25.5 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 |
4385b023f3ddf6e441f89aed26d64b5008704cf875cdb96420109af300f4ae1e
|
|
| MD5 |
b54554085013796a40a6825815adaa5f
|
|
| BLAKE2b-256 |
58497c5d8ddf25381b7393b4354c90fa5af3307d30335250db68b66ee6a5414b
|