Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

guardrails_ai_provenance_nli-0.2.1a1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file guardrails_ai_provenance_nli-0.2.1a1.tar.gz.

File metadata

File hashes

Hashes for guardrails_ai_provenance_nli-0.2.1a1.tar.gz
Algorithm Hash digest
SHA256 80d6c20d520b246910c98d69de54cfaf7e570ff84018fb361266461aa06c1d5c
MD5 22c7a2e915231cb69a5480ed6246974f
BLAKE2b-256 44cf2ab8efd2b685f1e6896cfdd0b579276e7cd0853633e9f52891c77447bd5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for guardrails_ai_provenance_nli-0.2.1a1.tar.gz:

Publisher: validators_publish.yml on guardrails-ai/guardrails-hub-monorepo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file guardrails_ai_provenance_nli-0.2.1a1-py3-none-any.whl.

File metadata

File hashes

Hashes for guardrails_ai_provenance_nli-0.2.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 40117b05e8b4d6f2e46ec8fc465bade27c953afa4ac9011736ade4721ac99aa0
MD5 bcc4bbe0b033f3407cf6a35d2479cac7
BLAKE2b-256 647ccc13f468f3dfeb61f58b5ad45d4a6c3dc8fb0dcb33a0753e6e12e254f61b

See more details on using hashes here.

Provenance

The following attestation bundles were made for guardrails_ai_provenance_nli-0.2.1a1-py3-none-any.whl:

Publisher: validators_publish.yml on guardrails-ai/guardrails-hub-monorepo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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