Skip to main content

Install

That’s the entire setup. No YAML config, no framework to configure, no separate server. This also installs aevyra-verdict for evaluation.

Set your API keys

Set keys for whichever model provider you’re using:
For local models (Ollama), no key is needed — everything runs on your machine:

Run the example

The examples/ directory includes a ready-to-run dataset: 100 security incident reports where the task is to produce a strict 3-sentence executive brief. The starting prompt is four words. The model starts at 0.38 and finishes at 0.89 — a 134% improvement, statistically significant on held-out data.
You’ll see a baseline eval, 4 strategy phases, and a final test set verification:
See the full walkthrough for a phase-by-phase breakdown of every decision reflex made.

Bring your own dataset

Use the same JSONL format as verdict — each line has messages and an ideal answer:
CSV is also supported:
No ideal answers? Use an LLM judge instead of automated metrics — see Label-free evaluation.

Write a starting prompt

Create a plain text file with your system prompt. It doesn’t need to be good — reflex will improve it:

Use the Python API

Explore the run in the dashboard

Once you have a run, open the dashboard to see score trajectory, prompt diffs between iterations, and the reasoning model’s analysis:
Opens http://localhost:8128. No separate server, no build step. Click into any run to see what changed each iteration and why.

Set a real target (verdict → reflex)

Instead of an arbitrary threshold, set the target from a real benchmark. If you already ran aevyra-verdict, pass the results file:
Or let reflex benchmark for you in one command:

Next steps

Tutorial

Full walkthrough of the security incidents example

Dashboard

Score charts, prompt diffs, branch runs

Strategies

Auto, iterative, structural, PDO, fewshot

Configuration

Iterations, thresholds, parallelism, strategy params