Skip to main content

Checks if some generated text is similar to a provided document.

Project description

guardrails-ai-similar-to-document

Checks if some generated text is similar to a provided document.

Installation

pip install guardrails-ai-similar-to-document

This validator ships local models. After installing, run the post-install step to download them:

python -m guardrails_ai.similar_to_document.post_install

Usage

from guardrails import Guard
from guardrails_ai.similar_to_document import SimilarToDocument

guard = Guard().use(SimilarToDocument)

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_similar_to_document-0.1.0.tar.gz (4.9 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_similar_to_document-0.1.0.tar.gz.

File metadata

File hashes

Hashes for guardrails_ai_similar_to_document-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2f87f3786bf6de959a0781a07bd0b6b64f311a47648d184cae4ffe728ef572c1
MD5 dc8b317d3f0f13126c04856963b20976
BLAKE2b-256 7126cd2401a6547443cad6bd7b96b0d86aef19cf6ec0265c805f657e1ce686de

See more details on using hashes here.

File details

Details for the file guardrails_ai_similar_to_document-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for guardrails_ai_similar_to_document-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f29da828b0fc83485308012e0dc36089029870381dfe2fb9f3880691b8cc56b4
MD5 95bb4109ebb3bb1c10882a0f9b7d48ca
BLAKE2b-256 e0d5ae3e1b8f22c7a228993156456f8d5eb7e957431527c20b8707efce2243bf

See more details on using hashes here.

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