Skip to content

Commit

Permalink
Merge pull request #801 from guardrails-ai/jc/fix-minor-doc-change
Browse files Browse the repository at this point in the history
Fix: Small typo fixes for 'gudardrails' and for variable replacement.
  • Loading branch information
zsimjee authored Jun 3, 2024
2 parents e845a79 + 23bd320 commit 2c7fd18
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit 2c7fd18

Please sign in to comment.