Skip to content

Commit 3cecf51

Browse files
authored
Merge pull request #638 from guardrails-ai/shreya/docs-polish
Polish docs sidebars and page names
2 parents f2824e2 + 316d4bb commit 3cecf51

File tree

8 files changed

+44
-40
lines changed

8 files changed

+44
-40
lines changed

docs/how_to_guides/envvars.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Set API Keys and other Environment Variables
1+
# Set API Keys and other EnvVars
22

3-
Guardrails recognize a handful of environment variables that can be used at runtime. Most of these correlate to envinronment variables used or expected by the various LLM clients. Below you can find a list of these and their uses.
3+
Guardrails recognizes a handful of environment variables that can be used at runtime. Most of these correlate to environment variables used or expected by the various LLM clients. Below you can find a list of these and their uses.
44

55
### `OPENAI_API_KEY`
66
This environment variable can be used to set your api key credentials for Open AI models. It will be used wherever Open AI is called if an api_key kwarg is not passed to `__call__` or `parse`.

docs/how_to_guides/llm_api_wrappers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Tabs from '@theme/Tabs';
22
import TabItem from '@theme/TabItem';
33

4-
# Use Guardrails with any LLMs
4+
# Use Guardrails with any LLM
55

66
Guardrails' `Guard` wrappers provide a simple way to add Guardrails to your LLM API calls. The wrappers are designed to be used with any LLM API.
77

docs/how_to_guides/logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Inspect Guard Run History and Logs
1+
# Inspect logs from a Guard
22

33
All `Guard` calls are logged internally, and can be accessed via the guard history.
44

docs/how_to_guides/rail.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Use Guardrails with Markup
1+
# Use Guardrails via RAIL
22

33
## What is `RAIL`?
44

docs/how_to_guides/streaming.ipynb

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
{
22
"cells": [
3-
{
4-
"cell_type": "code",
5-
"execution_count": null,
6-
"metadata": {},
7-
"outputs": [],
8-
"source": [
9-
"!guardrails hub install hub://guardrails/valid_range\n",
10-
"!guardrails hub install hub://guardrails/uppercase\n",
11-
"!guardrails hub install hub://guardrails/lowercase\n",
12-
"!guardrails hub install hub://guardrails/one_line"
13-
]
14-
},
153
{
164
"cell_type": "markdown",
175
"metadata": {},
186
"source": [
19-
"# Validate Streamed LLM Responses\n"
7+
"# Stream-validate LLM responses\n"
208
]
219
},
2210
{
@@ -33,6 +21,22 @@
3321
"import time"
3422
]
3523
},
24+
{
25+
"cell_type": "markdown",
26+
"metadata": {},
27+
"source": [
28+
"### Setup\n",
29+
"\n",
30+
"Install the necessary validators from Guardrails hub in your CLI.\n",
31+
"\n",
32+
"```bash\n",
33+
"!guardrails hub install hub://guardrails/valid_range\n",
34+
"!guardrails hub install hub://guardrails/uppercase\n",
35+
"!guardrails hub install hub://guardrails/lowercase\n",
36+
"!guardrails hub install hub://guardrails/one_line\n",
37+
"```"
38+
]
39+
},
3640
{
3741
"cell_type": "markdown",
3842
"metadata": {},

docs/how_to_guides/structured_data_with_guardrails.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Tabs from '@theme/Tabs';
22
import TabItem from '@theme/TabItem';
33

4-
# Generate structured data with Guardrails AI
4+
# Generate structured data
55

66
Guardrails AI is effective for generating structured data across from a variety of LLMs. This guide contains
77
the following:

docs/the_guard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# The Guard
1+
# What is a Guard?
22

33
The guard object is the main interface for GuardRails. It is seeded with a RailSpec, and then used to run the GuardRails AI engine. It is the object that accepts changing prompts, wraps LLM prompts, and keeps track of call history.
44

docusaurus/sidebars.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,29 @@ const sidebars = {
3232
},
3333
{
3434
type: "doc",
35-
label: "Installation",
36-
id: "guardrails_ai/installation",
35+
label: "Getting Started",
36+
id: "guardrails_ai/getting_started",
3737
},
3838
{
3939
type: "doc",
40-
label: "Getting Started",
41-
id: "guardrails_ai/getting_started",
40+
label: "Installation",
41+
id: "guardrails_ai/installation",
4242
},
43+
"the_guard",
4344
{
4445
type: "category",
4546
label: "How-to Guides",
4647
collapsed: true,
4748
items: [
48-
"how_to_guides/logs",
49-
"how_to_guides/streaming",
5049
"how_to_guides/llm_api_wrappers",
50+
"how_to_guides/streaming",
51+
"how_to_guides/structured_data_with_guardrails",
52+
"how_to_guides/logs",
5153
"how_to_guides/rail",
5254
"how_to_guides/envvars",
53-
"how_to_guides/structured_data_with_guardrails",
5455
"how_to_guides/telemetry",
5556
],
5657
},
57-
"the_guard",
5858
{
5959
type: "category",
6060
label: "API Reference",
@@ -67,21 +67,21 @@ const sidebars = {
6767
],
6868
},
6969
examples,
70-
{
71-
type: "category",
72-
label: "Integrations",
73-
collapsed: true,
74-
items: [
75-
{
76-
type: "autogenerated",
77-
dirName: "integrations",
78-
},
79-
],
80-
},
70+
// {
71+
// type: "category",
72+
// label: "Integrations",
73+
// collapsed: true,
74+
// items: [
75+
// {
76+
// type: "autogenerated",
77+
// dirName: "integrations",
78+
// },
79+
// ],
80+
// },
8181
{
8282
type: "category",
8383
label: "Migration Guides",
84-
collapsed: false,
84+
collapsed: true,
8585
items: [
8686
"migration_guides/0-4-migration",
8787
"migration_guides/0-3-migration",

0 commit comments

Comments
 (0)