Prompt Optimizer
Improve your prompts with any LLM using Automatic Prompt Optimization (APO).
Overview

Automatic prompt optimization (APO) is a reinforcement learning technique used to improve task performance for AI language models. At each iteration, new instruction prompts are generated and scored against your AI system using your validation set. Promising prompts are kept and used to seed the next generation of prompts. The goal is to find the prompt that maximizes the AI system's performance on the evaluation metric you define.
Installation
uv (recommended)
Ready to Get Started?
Visit our quickstart page to get started.
Citations
@inproceedings{Ramnath_2025,
title={A Systematic Survey of Automatic Prompt Optimization Techniques},
url={http://dx.doi.org/10.18653/v1/2025.emnlp-main.1681},
DOI={10.18653/v1/2025.emnlp-main.1681},
booktitle={Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing},
publisher={Association for Computational Linguistics},
author={Ramnath, Kiran and Zhou, Kang and Guan, Sheng and Mishra, Soumya Smruti and Qi, Xuan and Shen, Zhengyuan and Wang, Shuai and Woo, Sangmin and Jeoung, Sullam and Wang, Yawei and Wang, Haozhu and Ding, Han and Lu, Yuzhe and Xu, Zhichao and Zhou, Yun and Srinivasan, Balasubramaniam and Yan, Qiaojing and Chen, Yueyan and Ding, Haibo and Xu, Panpan and Cheong, Lin Lee},
year={2025},
pages={33066–33098} }