Skip to main content

Use the playground to engineer the optimal prompt for your task

Prompt engineering in Phoenix helps you create, store, and change the prompts that your application sends to LLMs. When you manage prompts systematically, you can reuse them, keep them consistent, and test variations across different models and inputs. AI applications are different from traditional software. They are non-deterministic, and they use natural language to give context and guide model output. A prompt is the natural language and the model parameters that your program contains. A better prompt is often the change with the highest leverage on the behavior of your application. But prompt changes have a risk: you must be confident that each change has the intended effect and does not cause regressions. Phoenix features help you test prompt changes before you deploy them. To get started, see Get Started: Prompts.

Prompt Engineering Features

  • Prompt Management: Create, store, change, and deploy the prompts that your application sends to LLMs.
  • Prompt Playground: Try different prompts, models, and invocation parameters, and track your progress with traces and experiments.
  • Span Replay: Replay an LLM invocation from your application, such as an LLM step in a workflow or a router query. See if a change to the invocation gives a better outcome.
  • Prompts in Code: Use the Phoenix client SDKs to keep your prompts in sync across different applications and environments.

Learn More

Prompt Concepts

Understand prompt engineering fundamentals and best practices

Using the Playground

Deep dive into playground features and workflows

Test Prompts at Scale

Run prompts over datasets to evaluate performance

Prompts in Code

Use prompts programmatically in your applications