mix nous.eval.promote (nous v0.21.1)

Copy Markdown View Source

Promotes samples captured by Nous.Eval.Online into a JSONL dataset (Nous.Eval.promote/3), re-applying a redactor first.

mix nous.eval.promote --store file:/var/lib/myapp/nous-online \
  --ids 4bf92f3577b34da6a3ce929d0e0e4736,0af7651916cd43dd8448eb211c80319c \
  --to test/eval/datasets/support.jsonl --redactor MyApp.TraceRedactor \
  --reviewer alice

mix nous.eval.promote --store file:/var/lib/myapp/nous-online --ids-file ids.txt \
  --to guards/online.jsonl --as guard_case:user_input --redactor MyApp.TraceRedactor

Promoted guard cases enter with "label": null. Label one after review (Nous.Eval.Online.Review.label/5):

mix nous.eval.promote --to guards/online.jsonl --label online-4bf9...-user_input=block \
  --reviewer alice

Options

  • --store SPEC - file:DIR (default file:.nous/eval), sqlite:PATH or duckdb:PATH: the online instance's store
  • --ids ID,ID / --ids-file PATH - trace ids to promote (one per line in the file)
  • --to PATH - the dataset file (required)
  • --as case | guard_case:SURFACE - what to write (default case); SURFACE is user_input, tool_call, tool_result or model_output

  • --redactor MODULE - a loaded module implementing Nous.Eval.Online.Redactor (required to promote). The name must refer to an existing module; it is never turned into a new atom
  • --reviewer NAME - recorded in the provenance (required with --label)
  • --instance NAME - the online instance (default default)
  • --label ID=block|allow - label a promoted guard case instead of promoting

Exit status

0 on success (skipped samples are listed, not errors), 2 on an operational error.