Detects and removes hallucinations from LLM-generated text using an NLI model to validate it against a provided context.
Project description
guardrails-ai-provenance-nli
Detects and removes hallucinations from LLM-generated text using an NLI model to validate it against a provided context.
Installation
pip install guardrails-ai-provenance-nli
This validator ships local models. After installing, run the post-install step to download them:
python -m guardrails_ai.provenance_nli.post_install
Usage
from guardrails import Guard
from guardrails_ai.provenance_nli import ProvenanceNLI
guard = Guard().use(ProvenanceNLI)
License
MIT — © Guardrails AI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file guardrails_ai_provenance_nli-0.1.0.tar.gz.
File metadata
- Download URL: guardrails_ai_provenance_nli-0.1.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
234a56b5e10c20fb9a69211dabd31c679c70ce90ba52c5e0a70ac38bc74e620c
|
|
| MD5 |
205d694fd5face7cd79a31880c62384d
|
|
| BLAKE2b-256 |
15b68befa0f280070524fb2f34a1d4b597bba97743470743b2500aee3fff2a2d
|
File details
Details for the file guardrails_ai_provenance_nli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: guardrails_ai_provenance_nli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5596ea87bc0f3f784d50b2f4be0afba805d93bf27bd5ecfe5a01fc4238e1187f
|
|
| MD5 |
49beed815828205f3e8356df362d8690
|
|
| BLAKE2b-256 |
391cc64c9d7c95899409c418f2828d6c6d0086fd1fb44f7027b0bac2f951ea88
|