Skip to main content

Subcommands

jev-curate exposes one primary subcommand:
Run jev-curate --help or jev-curate filter --help to print options, and jev-curate --version to print the installed version.

Flags

Output artifacts

Every jev-curate filter run writes five artifacts to --out (default ./curated/):

audit.jsonl schema

Each line in audit.jsonl is a JSON object with:
  • row_id: SHA-256 hex digest of the raw input row.
  • row_number: 1-based output sequence number.
  • decision: "keep", "reject", or "error".
  • rejection_reasons: Array of strings explaining rejections or row-level errors (empty when kept).
  • scores: Map of Score question name to numeric score.
  • nouls: Map of Noul question name to [0.0, 1.0] probability.
  • choices: Map of Choice question name to selected option label.
  • probabilities: Map of Choice question name to per-option probability distributions (when returned by Jev).
  • input_tokens: Input tokens billed for the row (0 on host pre-filter drops or --dry-run).
  • output_tokens: Output tokens reported for the row (0 on host pre-filter drops or --dry-run).
  • truncated: Boolean indicating whether the row text was truncated at the 32k-char ceiling.
  • model: Effective Jev model identifier used for the run.

Rate limits and input ceiling

  • Rate limit: The built-in rate limiter defaults to 20 req/sec with automatic 429 backoff (TypeSafe’s org quota default is 80 req/sec and 100,000 tok/sec). Change the request rate with --rps and add a token rate cap with --tps.
  • Input ceiling: Text payloads are subject to a 32k-char ceiling per row.

Exit codes

Troubleshooting

  • TYPESAFE_API_KEY not set: Export TYPESAFE_API_KEY before running, or pass --dry-run for host-only filtering.
  • --format parquet is only supported for .parquet inputs: Convert JSONL input to Parquet first, or omit --format parquet to write clean.jsonl.
  • --stdout is only supported with --format jsonl: Remove --format parquet when piping clean rows to stdout.
  • Interrupted runs: Re-run the exact command with --resume to continue without truncating existing clean, rejected, and errors files.