Skip to main content

Run your first experiment

Start with a small comparison you can explain. The document-search example runs two rankers over six articles and five labeled questions. It needs no model account, API key or Docker.

Core: run the offline starter​

These commands use the development checkout. The published Core 0.2.0 package does not yet include init or demo.

Install uv, Git and Python 3.10+, then run:

git clone https://github.com/MINDS-THU/OptPilot.git
cd OptPilot
uv sync
uv run optpilot demo ./my-first-experiment

Dependency installation needs internet access; the experiment itself runs locally. The command creates an editable project, reviews its inputs and executes 10 trials.

CandidateScored trialsMean reciprocal rank
Word count5 / 50.7667
BM255 / 51.0000

The summary prints the run ID and a command for inspecting its evidence. In the question how can I change files without changing the original?, word count ranks the expected article third; BM25 ranks it first. That difference is recorded per trial.

Change a ranker in my-first-experiment and rerun the same command. Earlier comparisons remain in .optpilot/experiments inside that directory. These five questions illustrate the workflow; they are not a general benchmark of search quality.

For the released 0.2.0 CLI, use the manual first experiment. See the technical guide for the review and execution steps separately.

Desktop: inspect the bundled factory example​

  1. Download and install Desktop for your platform.
  2. On first launch, the bundled Asteria factory project opens automatically. To reopen it later, choose the example-project option in the project picker.
  3. Inspect the saved comparisons and open a trial to trace its metrics and evidence. The example compares dispatch policies in a simulated factory; the project files and recorded results provide a starting point for exploration.
  4. Run a new comparison when you want to test a change. Connect an assistant only when you want help editing or analyzing the project.

Desktop 0.2.0 includes managed Python and the Asteria dependencies. Reading the example and running its simulator do not require a model account. A configured assistant may need its own provider credentials and may incur provider charges.

Desktop 0.2.0 uses a Chinese interface. English/Chinese language selection is in development and will be available in a future installer. The website's language selector changes these guides independently.

If something goes wrong​

  • Unknown demo command: use uv run from the development checkout, or follow the 0.2.0 manual workflow.
  • Existing directory rejected by init: choose a new or empty directory. Use demo to rerun an existing starter.
  • Installer blocked: verify the download and read the platform signing notes; do not disable system protection globally.
  • Failed trial or missing score: inspect the trial's error and valid-trial count before comparing averages.

More: troubleshooting · support · report a problem

Core source is public under Apache-2.0. Desktop source is maintained privately and is not covered by Core's source license.