Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Small typo fixes for 'gudardrails' and for variable replacement. #801

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs-graveyard/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pip install guardrails-ai
2. Install a guardrail from Guardrails Hub.

```bash
gudardrails hub install hub://guardrails/regex_match
guardrails hub install hub://guardrails/regex_match
```
3. Create a Guard from the installed guardrail.

Expand All @@ -27,7 +27,7 @@ pip install guardrails-ai
from guardrails import Guard

# Initialize the Guard with
val = Guard().use(
guard = Guard().use(
RegexMatch(regex="^[A-Z][a-z]*$")
)

Expand Down
2 changes: 1 addition & 1 deletion docs/guardrails_ai/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pip install guardrails-ai
from guardrails import Guard

# Initialize the Guard with
val = Guard().use(
guard = Guard().use(
RegexMatch(regex="^[A-Z][a-z]*$")
)

Expand Down
2 changes: 1 addition & 1 deletion docs/hub/how_to_guides/input_validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Validators that are tagged as input validators can be used to validate the input
In order to use an input validator, first make sure that the validator is installed. You can install the validator using the `guardrails hub install` command. For example, to install the `two-words` validator, you can run:

```bash
gudardrails hub install hub://guardrails/detect_pii
guardrails hub install hub://guardrails/detect_pii
```

Then, add the input validator to the `Guard` object using the `with_prompt_validation` method. For example, to use the `detect_pii` validator with OpenAI's GPT-3, you can run:
Expand Down
Loading