guardrails
guardrails copied to clipboard
Adding guardrails to large language models.
Implements new validate_stream method on Validator, and changes stream_runner to pass individual chunks to validators. Validators now internally accumulate chunks until they reach a specified chunk size, then emit a...
This PR fixes this [issue](https://github.com/guardrails-ai/guardrails/issues/736) and adds an uninstall command so that users can uninstall validators. To-do: - add test_uninstall test
Removes duplicate validator.validate call that carried over from a previous merge conflict
**Describe the bug** I successfully installed Guardrails version 0.4.1 using the following command: pip install "git+https://github.com/guardrails-ai/guardrails.git@main" After configuring Guardrails, I attempted to install Guard PII with the following command: guardrails...
**Describe the bug** The DetectPromptInjection library is currently unusable because the underlying library ([Rebuff](https://github.com/protectai/rebuff)) has not released the change for their API initialization. It seems [you have reached out to...
This PR swaps out the internal `ModuleManifest` class and it's children for the shared `Manifest` class from [hub-types](https://github.com/guardrails-ai/hub-types). Before this PR can be opened completely, the new packages will need...
**Describe the bug** When utilizing the `Guard` class from the `guardrails` library and employing multiple validators, the validators are executed sequentially instead of concurrently. Additionally, it appears that each validator...