- Prompt Playground lets you experiment with prompts in real time, explore variations across models, and fine-tune responses with a versatile, interactive workflow.
- Prompt Hub lets you organize, version, and share prompts across projects.
- Phoenix Cloud
- Local (Self-hosted)
Before sending traces, make sure Phoenix is running. For more step by step instructions, check out this Get Started guide.
- Phoenix Cloud
Log in, create a space, navigate to the settings page in your space, and create your API keys.In your code, set your environment variables.You can find your collector endpoint here:
Your Collector Endpoint is: https://app.phoenix.arize.com/s/ + your space name.


Prompts (UI)
Use the visual interface to experiment with prompts

Prompts (Python SDK)
Create and manage prompts programmatically with Python

Prompts (TS SDK)
Create and manage prompts programmatically with TypeScript
Prompts (UI)
There’s multiple ways you can get started with using Prompts. Below is just one flow you can follow along.Getting Started
Prompt playground can be accessed from the left navbar of Phoenix. From here, you can directly prompt your model by modifying either the system or user prompt, and pressing the Run button on the top right.Basic Example Use Case


Creating a Prompt
It looks like System Prompt #2 is producing the most concise summary. Go ahead and save that prompt to your Prompt Hub.

Running over a dataset
Often times, users want to run multiple inputs through an LLM with their prompts. This allows you to scale your prompt experiments over many inputs at once, building stronger insight into how your prompt is performing. Phoenix has many options to upload a dataset. To keep things simple here, we’ll directly upload a CSV. Download the articles summaries file linked below.Download Sample Dataset
Click to download the news article summaries CSV file


{{input_article}} column in our dataset. After adding this in, be sure to save your prompt once more!
Now if we run our prompt(s), each row of the dataset will be run through each variation of our prompt.


Updating a Prompt
You can now easily modify you prompt or compare different versions side-by-side. Let’s say you’ve found a stronger version of the prompt. Save your updated prompt once again, and you’ll see it added as a new version under your existing prompt:

Next Steps
Now you’re ready to create, test, save, and iterate on your Prompts in Phoenix!Prompts (Python SDK)
Installation
Start out by installing the Phoenix library:Creating a Prompt
Now you can create a prompt. In this example, you’ll create a summarization Prompt. Prompts in Phoenix have names, as well as multiple versions. When you create your prompt, you’ll define its name. Then, each time you update your prompt, that will create a new version of the prompt under the same name.
Retrieving a Prompt
You can retrieve a prompt by name, tag, or version:Using a Prompt
To use a prompt, call theprompt.format()function. Any {{ variables }} in the prompt can be set by passing in a dictionary of values.
Updating a Prompt
To update a prompt with a new version, simply call the create function using the existing prompt name:

