Build a baseline
- Pick queries that reflect your workload. Include exact names, meaning-based questions and searches that commonly miss.
- Collect relevance judgments, which say which results answer each query. Keep the query IDs, dataset version and split fixed across runs.
- Record the Quivr revision, plugin builds and settings, search profile, test machine and dataset version. Keep a separate held-out set for the final check.
- Measure relevance at the result depth users see. The evaluation tools report metrics such as
nDCG@10, which gives more weight to relevant results near the top. Also record p95 latency, the rate of errors or fallbacks, and any reported provider spend.
make eval runner searches public datasets. See the evaluation guide for its setup and report fields. On a running deployment, GET /v0/admin/stats/searches reports operational counts and latency by search mode and profile. Use a key with observability:read and grants for all Corpora in its Organization. If admin_listen is set, send the request there with a key from admin_keys.
Log and compare
Use the checkout’sscripts/eval/results CLI to store results in an MLflow tracking server. Your tracking operator provides MLFLOW_TRACKING_URI, MLFLOW_TRACKING_USERNAME and MLFLOW_TRACKING_PASSWORD. Keep credentials and the contents of private queries and documents out of the results. The results guide covers required fields, Python dependencies, and separate storage and credentials for private per-query scores.
Use your measurement files and tracking credentials. Install jq for this example and scipy for paired comparisons. Log the baseline and save its result key:
pending, keep its local outbox and run scripts/eval/results sync once the server and credentials are available.
Run local load tests
Usemake load from a checkout with the local stack prerequisites. Install PyYAML from contracts/http/v0/checks/requirements.txt first, including for offline scenario validation. The load test starts an isolated stack with synthetic documents and deterministic fake models. The output measures engine behavior under load.
Validate the smoke scenario without starting a stack:
report.md and report.json for search latency, processing and drain progress, and missing work. Compare runs on the same hardware with the same scenario and fake delays. Use a relevance run with the production search path to measure real ranking and provider latency.