OptPilot¶
OptPilot Core is an open-source Python library and CLI for comparing and improving solutions to a decision problem. You define what a candidate can change, which cases it will face, and how to measure the outcome. You can bring two existing solutions or let a generator propose the next one using feedback from earlier trials.
This manual follows the development checkout and marks commands that are not yet in the published 0.2.0 package. The Desktop client is distributed separately and its source is private. English and Chinese first-run guides are available on the website; this technical reference is in English.
Suppose you change how a search engine ranks documents. A higher average score is encouraging, but which queries improved? Did both versions search the same collection? OptPilot saves the selected versions of the candidates, evaluation cases and grader before the comparison starts. Each trial links its score to the inputs it used and the evidence the grader returned. You can revisit that comparison after the project changes.
Start with an experiment¶
Run two search algorithms on five questions about OptPilot. On the bundled cases, BM25 puts the labeled article first five times and word count does so three times. Open the trial about editing files independently to see where each algorithm placed the intended article. The example runs locally with Python.
Run the comparison and inspect a result · Install Core
How it works¶
- Define the test. A Task specifies the candidate interface and the grader. Each Instance supplies a particular case. A Suite names the cases to run together.
- Choose what to compare. A Study selects cases, candidates, metrics and execution settings. Reviewing it saves the exact versions. For a search, also choose a generator and its proposal budget. The task specifies which scores the generator may receive as feedback.
- Use the results. A Run evaluates the reviewed design. Inspect individual trials, failed attempts and coverage alongside averages. When a resource is scarce, the run record also shows which work obtained it. The choice of representative cases and a meaningful grader belongs to the experiment author.
Use the CLI to script repeated evaluations and inspect saved versions, trial results and grader evidence.
Choose your next step¶
| If you want to… | Start here |
|---|---|
| Write a grader and compare parameter settings | Build a factory staffing experiment |
| Share one instrument between trials | Register and allocate a simulated colorimeter |
| Try candidates proposed by a generator | Run a search with feedback |
| Evaluate an agent or bring in an existing job | Harbor and external results |
| Understand exactly what a score represents | Experiment model · Reading results and evidence |
| Look up a field or command | Manifest · CLI |
| Diagnose local setup or share a comparison | Diagnostics and reports |
| Understand the code or make a contribution | Architecture · Development |
| Resolve a setup or execution failure | Troubleshooting |