Phoenix Integration
Phoenix is Arize AI's open-source ML observability platform for LLM applications.
Overview
The Phoenix integration enables LangGuard to:
- Import traces from Phoenix
- Sync spans and operation data
- Track embeddings and retrievals
- Apply governance policies
Prerequisites
- Phoenix instance (self-hosted or cloud)
- API access to Phoenix
- Traces logged to Phoenix
Phoenix Deployment Options
Arize Cloud
Use Arize's hosted Phoenix:
PHOENIX_API_KEY=your-arize-api-key
PHOENIX_HOST=https://app.phoenix.arize.com
Self-Hosted
Run Phoenix locally or on your infrastructure:
# Start Phoenix
pip install arize-phoenix
python -m phoenix.server.main serve
# Configure LangGuard
PHOENIX_HOST=http://localhost:6006
Setup
Add Integration
- Navigate to Settings > Integrations in LangGuard
- Click Add Integration
- Select Phoenix
- Enter:
- Name: Friendly name
- Host URL: Phoenix server URL
- API Key: (if required)
- Click Test Connection
- Configure sync settings
- Click Save
What Gets Synced
| Phoenix Entity | LangGuard Mapping |
|---|---|
| Traces | Traces |
| Spans | Span details |
| Documents | Retrieved contexts |
| Embeddings | Vector metadata |
Features
Embedding Analysis
Phoenix excels at embedding visualization:
- Document retrieval quality
- Embedding drift detection
- Cluster analysis
RAG Evaluation
Track retrieval-augmented generation:
- Retrieval relevance
- Context utilization
- Response grounding
Troubleshooting
Connection Failed
- Verify Phoenix is running
- Check host URL is correct
- Ensure network connectivity
No Traces
- Verify instrumentation is active
- Check Phoenix UI for traces
- Adjust time range settings
Next Steps
- Trace Explorer - Analyze Phoenix traces
- Agent Activity - Visualize RAG behavior