Connect to Phoenix
Point your code at the Phoenix instance you started. The endpoint below is the default for a localphoenix serve; for a deployment running elsewhere, use its hostname instead.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Phoenix supports loading data that contains OpenInference traces. This allows you to load an existing dataframe of traces into your Phoenix instance.
phoenix serve; for a deployment running elsewhere, use its hostname instead.
import os
os.environ["PHOENIX_COLLECTOR_ENDPOINT"] = "http://localhost:6006"
# Only if the deployment has authentication enabled
# os.environ["PHOENIX_API_KEY"] = "your-api-key"
import phoenix as px
# Re-launch the app using trace data
px.launch_app(trace=px.TraceDataset(df))
# Load traces into an existing Phoenix instance from a local file
px.launch_app(trace=px.TraceDataset.load('f7733fda-6ad6-4427-a803-55ad2182b662', directory="/my_saved_traces/"))
# Load traces from a dataframe
px.launch_app(trace=px.TraceDataset.load(my_traces))
# Load traces from a local file
px.launch_app(trace=px.TraceDataset.load('f7733fda-6ad6-4427-a803-55ad2182b662', directory="/my_saved_traces/"))
Was this page helpful?
