Skip to main content
In this example we will instrument a small program that uses the Guardrails AI framework to protect their LLM calls.

Install

Setup

Connect to your Phoenix instance using the register function.

Run Guardrails

From here, you can run Guardrails as normal:

Observe

Now that you have tracing setup, all invocations of underlying models used by Guardrails (completions, chat completions, embeddings) will be streamed to your running Phoenix for observability and evaluation. Additionally, Guards will be present as a new span kind in Phoenix.

Resources