Arize phoenix

From diegosouzapw/awesome-omni-skill · View interactive version

Arize phoenix is an AI agent skill from the GitHub repository diegosouzapw/awesome-omni-skill. Open-source AI observability platform for tracing, evaluating, and improving LLM applications with OpenTelemetry integration

How to use this skill

Skill file

Arize Phoenix

Phoenix is an open-source AI observability platform built on OpenTelemetry that helps developers understand, debug, and improve AI applications. It provides comprehensive tracing, evaluation, prompt engineering, and experimentation capabilities for LLM-based systems. Phoenix captures detailed execution information from AI applications, measures output quality with evaluators, enables systematic prompt iteration, and supports data-driven experimentation to optimize AI performance.

When to Use This Skill

Capabilities

Agents can leverage Phoenix to:

Skills

Tracing

Evaluation

Datasets & Experiments

Prompt Engineering

Projects & Organization

API & Programmatic Access

Authentication & Security

Workflows

Workflow 1: Instrument and Trace an AI Application

  1. Choose integration - Select appropriate Phoenix integration for your framework (LangChain, LlamaIndex, OpenAI, etc.)
  2. Install package - Install Phoenix client and OpenTelemetry packages for your language (Python or TypeScript)
  3. Configure endpoint - Set Phoenix endpoint URL and optionally configure project name and session tracking
  4. Instrument application - Add auto-instrumentation or manual instrumentation to capture LLM calls, tool executions, and retrievals
  5. View traces - Open Phoenix UI to see execution flow, latency, token usage, and detailed span information
  6. Add annotations - Add scores, labels, or human feedback to traces for quality measurement

Workflow 2: Evaluate AI Output Quality

  1. Choose evaluator type - Select LLM-as-a-judge for subjective quality or code-based for objective checks
  2. Configure LLM provider - Set up evaluator LLM (OpenAI, Anthropic, Gemini, or custom endpoint)
  3. Define evaluation logic - Use pre-built evaluator or create custom evaluator with prompts/scoring logic
  4. Run evaluation - Execute evaluator on traces, datasets, or custom data with automatic batching and concurrency
  5. Review results - View evaluator traces, scores, explanations, and labels in Phoenix UI
  6. Iterate - Adjust evaluator prompts or logic based on results and human feedback

Workflow 3: Run Experiments to Compare Versions

  1. Create dataset - Build dataset with inputs and optional reference outputs from traces, code, or CSV
  2. Define task function - Create Python function that wraps your AI application logic and returns outputs
  3. Select evaluators - Choose code-based evaluators for ground truth comparison or LLM-as-a-judge for subjective quality
  4. Run experiment - Execute task function against dataset with evaluators to generate scores
  5. Compare results - View experiment results in UI with aggregate metrics, score distributions, and per-example analysis
  6. Iterate - Make changes to prompts, models, or architecture and run new experiment to compare performance

Workflow 4: Optimize Prompts with Playground

  1. Identify prompt - Find prompt in traces or load existing prompt from prompt management
  2. Open playground - Load prompt into Prompt Playground with current parameters and tools
  3. Test variations - Modify prompt text, model parameters, tools, or response format and test with real inputs
  4. View traces - All playground runs are automatically recorded as traces for analysis
  5. Test at scale - Run prompt variations against dataset examples to evaluate performance systematically
  6. Save and deploy - Save best-performing prompt version, tag for environment, and deploy via SDK

Workflow 5: Debug Production Issues

  1. Identify problematic trace - Search or filter traces to find failed or low-quality executions
  2. Inspect execution flow - View detailed span information including LLM calls, tool executions, and retrievals
  3. Replay span - Load problematic LLM span into Prompt Playground to test fixes
  4. Test improvements - Modify prompts, parameters, or tools in playground and compare outputs
  5. Add to dataset - Add problematic examples to dataset for future testing
  6. Run experiment - Test improved version against dataset to verify fix before deployment

Integrations

LLM Providers

OpenAI, Anthropic, Amazon Bedrock, Google (Gemini), Groq, MistralAI, VertexAI, LiteLLM, OpenRouter, Together, Vercel AI

Python Frameworks

Agno, AutoGen, BeeAI, CrewAI, DSPy, Google ADK, Graphite, Guardrails AI, Haystack, Hugging Face smolagents, Instructor, LlamaIndex, LangChain, LangGraph, MCP, NVIDIA, Portkey, Pydantic AI

TypeScript Frameworks

BeeAI, LangChain.js, Mastra, MCP, Vercel AI SDK

Java Frameworks

LangChain4j, Spring AI, Arconia

Platforms

Dify, Flowise, LangFlow, Prompt Flow

Vector Databases

MongoDB, OpenSearch, Pinecone, Qdrant, Weaviate, Zilliz/Milvus, Couchbase

Evaluation Integrations

Cleanlab, Ragas, UQLM

Observability Protocols

OpenTelemetry (OTLP), OpenInference

Developer Tools

Claude Code, Cursor, Phoenix MCP Server

Cloud Platforms

AWS (CloudFormation), Kubernetes (Helm), Docker, Railway

Context

OpenTelemetry: Phoenix tracing is built on OpenTelemetry (OTLP), an industry-standard observability protocol. This means instrumentation code written for Phoenix can be reused with other observability platforms, avoiding vendor lock-in.

OpenInference: Phoenix uses OpenInference instrumentation, an extension of OpenTelemetry specifically designed for AI/LLM applications. OpenInference adds semantic conventions for LLM spans, retrieval operations, and embeddings.

Traces and Spans: A trace represents the complete execution path of a request through an AI application. Spans are individual units of work within a trace (e.g., a single LLM call, tool execution, or retrieval operation). Spans can be nested to show hierarchical execution flow.

Projects: Projects provide organizational structure for traces, allowing separation by environment, application, or team. Each project has its own metrics dashboard and data isolation.

Sessions: Sessions group related traces into conversational threads, enabling tracking of multi-turn conversations with context maintained across interactions.

Evaluators: Evaluators measure the quality of AI outputs. LLM-based evaluators use LLMs as judges to assess subjective quality. Code-based evaluators use deterministic logic for objective checks. All evaluators return scores with optional labels, explanations, and metadata.

Datasets: Datasets are collections of examples with inputs and optional reference outputs. Golden datasets contain reference outputs (ground truth) for objective evaluation. Datasets are versioned automatically.

Experiments: Experiments run task functions (wrapped AI application logic) against datasets with evaluators to systematically compare different versions. Experiments track scores per example and aggregate metrics.

Prompts: In Phoenix, a prompt includes the prompt template, invocation parameters (temperature, etc.), tools, and response format. Prompts are versioned and can be tagged for deployment across environments.

Executors: Executors handle evaluation execution with automatic concurrency, rate limit management, error handling, and batching. They can achieve up to 20x speedup compared to direct API calls.

Self-Hosting: Phoenix can be self-hosted on Docker, Kubernetes, AWS, Railway, or locally. Self-hosted instances support authentication, email configuration, and data retention policies.

Phoenix Cloud: Managed Phoenix hosting service with automatic updates, scaling, and maintenance handled by Arize team.

For additional documentation: https://arize.com/docs/phoenix/llms.txt

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.