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
Copy file name to clipboardExpand all lines: README.md
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,6 +165,43 @@ This prints:
165
165
}
166
166
```
167
167
168
+
### Guardrails Server
169
+
170
+
Guardrails can be set up as a standalone service served by Flask with `guardrails start`, allowing you to interact with it via a REST API. This approach simplifies development and deployment of Guardrails-powered applications.
171
+
172
+
1. Install: `pip install "guardrails-ai"`
173
+
2. Configure: `guardrails configure`
174
+
3. Create a config: `guardrails create --validators=hub://guardrails/two_words --name=two-word-guard`
175
+
4. Start the dev server: `guardrails start --config=./config.py`
176
+
5. Interact with the dev server via the snippets below
0 commit comments