Quickstart
This guide will help you get started with Opik Optimizer for improving your LLM prompts through systematic optimization.
Prerequisites
- Python 3.9 or higher
- An Opik API key (sign up here if you don’t have one)
Installation
Install Opik and the optimizer package:
Configure your Opik environment:
Basic Usage
Here’s a complete example of optimizing a prompt using the Few-Shot Bayesian Optimizer:
The optimization results will be displayed in your console and are also available in the Opik Agent Optimization dashboard:

Next Steps
- Learn about different optimization algorithms to choose the best one for your use case
- Explore prompt engineering best practices
- Set up your own evaluation datasets
- Review the API reference for detailed configuration options