For the complete API reference and detailed guides, see the full documentation.
Features
- REST API Interface - Interact with Phoenix’s OpenAPI REST interface
- Prompts - Create, version, and invoke prompt templates
- Datasets - Create and append to datasets from DataFrames, CSV files, or dictionaries
- Experiments - Run evaluations and track experiment results
- Spans - Query and analyze traces with powerful filtering
- Annotations - Add human feedback and automated evaluations
Installation
Install the Phoenix Client using pip:Getting Started
Environment Variables
Configure the Phoenix Client using environment variables for seamless use across different environments:Client Initialization
The client automatically reads environment variables, or you can override them:Resources
The Phoenix Client organizes functionality into resources that correspond to key Phoenix platform features. Each resource provides specialized methods for managing different types of data:Prompts
Manage prompt templates and versions:Datasets
Manage evaluation datasets and examples for experiments and evaluation:Spans
Query for spans and annotations from your projects for custom evaluation and annotation workflows:Annotations
Add annotations to spans for evaluation, user feedback, and custom annotation workflows:Projects
Manage Phoenix projects that organize your AI application data:Reference Documentation
Full API Reference
Complete API documentation for datasets, experiments, prompts, spans, and annotations

