Guardrails AI Tracing
Instrument LLM applications that use the Guardrails AI framework
Was this helpful?
Instrument LLM applications that use the Guardrails AI framework
Was this helpful?
In this example we will instrument a small program that uses the Guardrails AI framework to protect their LLM calls.
Sign up for Phoenix:
Sign up for an Arize Phoenix account at https://app.phoenix.arize.com/login
Install packages:
Set your Phoenix endpoint and API Key:
Your Phoenix API key can be found on the Keys section of your dashboard.
Connect to your Phoenix instance using the register function.
From here, you can run Guardrails as normal:
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.