Research · Prompt optimization

Prompt optimization and output formats: what the research shows.

Prompt engineering is writing a prompt by hand. Prompt optimization searches for a better one automatically. The shape of a reply can also change what a model gets right, and so can asking more than once or asking more than one model. We keep 31 published methods and studies on these, and test what applies on your questions.

31 published methods and studies, by what they change

Tools that search for a better prompt
10
Reply formats
10
More right from the same model
6
Several models together
4
Reusing the start of a prompt
1
Tuning the prompt

Tools that search for a better prompt.

Each takes a task and a way to score it, tries prompts, and keeps what scores well.

Shaping the output

The format of a reply can move the score, or not.

Some studies find a large effect and some find none. It depends on the model and the task.

After the first reply

Ways to get more right from the same model.

Each one spends more tokens, or answers fewer questions, to get more of its answers right.

Several models together

Combining models, not choosing one.

Models get different questions wrong. These look for a gain from using more than one.

Prompt caching

Reusing the start of a prompt.

Vendors charge less for input they have seen recently, and serve it faster. What counts is what stays the same at the start of each request.

In a run

So we test it on your questions.

Published results come from other models and other tasks, and they disagree. So prompts and formats are part of every run. We try plain and expert system prompts and prompts tuned with DSPy, GEPA and MIPROv2, against replies as JSON, as plain text and with the reasoning first. The report says which to use for which sub-task. See how it works for frontier models and open models.