You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JyotsanaS
changed the title
[bug] Unable to install guardrail package from hub after latest release
[documentation] Unable to install guardrail package from hub after latest release
Nov 15, 2024
Hi @JyotsanaS,
The steps to install validators from the Guardrails Hub have not changed in the latest release. The only change regarding this behaviour is the requirement to have a free token configured with the cli.
If you are on guardrails-ai v0.6.0, or any version after 0.4.2, the steps are as follows:
pip install guardrails-ai - We recommend using a fresh virtual environment if you are encountering issues.
guardrails configure - This if where you will configure the token mentioned above which you can generate for free at https://hub.guardrailsai.com/keys
guardrails hub install hub://guardrails/regex_match - This is just an example of an install command, you should be able to install any validators that are published to the hub at this point.
If you are still encountering an auth error after the above steps, could you please share some additional information about your local environment such as:
Operating system: MacOS, Linux, Windows, etc.
Python version
Pip version
Guardrails version: You can see the version number by running pip show guardrails-ai
It's also worth checking that the guardrails command is being sourced from the correct pip environment. Unix-like systems tend to resolve bin executables top down so if you have another version installed in a higher directory, it's possible the command line is trying to use this installation instead. You can verify the location of the guardrails executable by running which guardrails on Mac or Linux or where guardrails on Windows. If you are using a virtual environment, it should have the same parent directory as the pip executable (i.e. from which pip).
Getting 401 unauthorized as error message.
Tried with github cli after setting the token. I wasn't successful. Can anyone share steps/document to follow to download guardrails from hub?
The text was updated successfully, but these errors were encountered: