Comments (5)
can you please paste the contents of the file located at /usr/local/lib/python3.10/dist-packages/guardrails/hub/init.py?
from guardrails.
I am unable to reproduce this issue when following the standard installation procedure.
@musharaf-intellixcore could you please provide some additional information such as:
- The logs from the
guardrails hub install
command - The stack trace of the error you're encountering
- The location of the guardrails installation: (
which guardrails
on mac and linux,where guardrails
on windows)
from guardrails.
Here is the contents of the required file.
""" Should contain imports for all validators """
""" Will be auto-populated by the installation script """
from guardrails.hub.tryolabs.restricttotopic.validator import RestrictToTopic
from guardrails.hub.guardrails.sensitive_topics.validator import SensitiveTopic
from guardrails.hub.guardrails.secrets_present.validator import SecretsPresent
from guardrails.
I'm working on the Linux operating system, installing three validators: Detect_PII, sensitive_topics, and secrets. After installing all three validators, when I tried to import Detect PII, it worked fine. However, when I attempted to import SensitiveTopic from the Guardrails Hub, an error was thrown, as mentioned above.
from guardrails.
I think there's some error in the documentation.
It's supposed to be guardrails hub install hub://guardrails/regex_match not gudardrails hub install hub://guardrails/regex_match.
Once this is fixed, you should be able to import any guardrail from the hub
from guardrails.
Related Issues (20)
- OpenTelemetry - Add statuses on Validators. They are currently unset
- Remove support for OpenAi < 1
- Remove Validators from Guardrails package
- Remove support for pydantic < 2
- [feat] Move async workflows to AsyncGuard class
- Sequential Execution and Duplicate Validation in guardrails Library HOT 3
- [bug] DetectPromptInjection validator asking for pinecone_environment HOT 4
- Make auth tokens expire in 30 days instead of 7
- Auth token fails config on some versions of windows
- [bug]
- [Feature Request] Offline Support for Hub Validators that use HuggingFace Models HOT 5
- [bug] OpenTelemetry Version Pinning Dependency Conflict HOT 2
- v0.4.4 Release Tracker
- Edit guardrails from the hub HOT 3
- Separate task, but we should do an existence check on the validator directories and add the --upgrade flag in the cli when necessary to avoid this.
- v0.4.5 release tracker
- Rebuff Error while downloading prompt injection validator from hub HOT 1
- Latency while using GEMINI 1.5 PRO as the model and using sensitive topics guard from hub HOT 3
- Support langchain 0.2.* HOT 1
- Guards do not support LiteLLM Router API HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guardrails.