AkashPriyadarshii/jev-curate
Sobre
High-throughput synthetic and pretraining dataset sifter for TypeSafe Jev. Rust streaming core, Parquet and JSONL I/O, typed Choice/Score/Noul judgments, speculative fan-out, 24.0 rows/sec measured.
IA e aprendizado de máquinaO que você pode fazer
- reasoning-math: has_circular_reasoning (Noul), reasoning_depth (Score 0–4, keep >= 2.0). Drops ungrounded math derivations and circular proofs.
- anti-sycophancy: is_sycophantic (Noul), has_ai_disclaimer (Noul). Eliminates "As an AI...", ungrounded flattery, and conversational filler.
- code-correctness: has_stub_placeholders (Noul), code_quality (Score 0–4, keep >= 2.0). Drops incomplete code blocks and pseudo-code mocks.
- Custom rubrics: pass --preset rubric.yaml.
Crescimento medido de estrelas
- em 24 h
- +1
- em 7 dias
- +1
- em 15 dias
- +2
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
Originaljev-curate
High-throughput synthetic & pretraining dataset sifter in Rust and Python, powered by TypeSafe AI's Jev model (jev-latest).
Stream, filter, and score millions of Parquet and JSONL rows without rewriting a single character. Single-round-trip speculative fan-out per row (evaluating all rubric questions concurrently in one HTTP request), calibrated Noul (calibrated [0.0, 1.0] probability verdict) / Score / Choice judgments, bounded streaming with --resume, and opt-in --format parquet output.
Beta:
v0.3.0-beta.1is experimental. Expect rough edges. Please contribute by opening an issue or PR.
Quickstart
# Rust (any OS)
cargo install jev-curate --version 0.3.0-beta.1
# Python (no Rust toolchain needed; wheels on PyPI)
pip install --pre jev-curate
# Set your TypeSafe AI key
export TYPESAFE_API_KEY="your-api-key"
# Filter a Parquet dataset using the math reasoning preset:
jev-curate filter train.parquet \
--preset reasoning-math \
--model jev-latest \
--out ./curated/ \
--concurrency 32
Use --dry-run for host-side pre-filtering (secret_scan and sanity pruning) with zero API calls and no TYPESAFE_API_KEY required.
Install options
| OS | Rust | Python |
|---|---|---|
| Linux | cargo install jev-curate --version 0.3.0-beta.1 or gh release download tar.gz |
pip install --pre jev-curate (manylinux wheel) |
| macOS | cargo install jev-curate --version 0.3.0-beta.1 or tar.gz (x86_64 + arm64) |
pip install --pre jev-curate (universal2 wheel) |
| Windows | cargo install jev-curate --version 0.3.0-beta.1 or zip |
pip install --pre jev-curate (win wheel) |
From source (Python bindings via maturin):
git clone https://github.com/AkashPriyadarshii/jev-curate
cd jev-curate
maturin develop # python feature auto-enabled via pyproject.toml
from jev_curate import PyJevCurator
curator = PyJevCurator(api_key="your-api-key", preset="reasoning-math")
# Single row -> CurateVerdict dict (raises RuntimeError only on fatal runtime errors; row errors set passed=False)
verdict = curator.filter_text("Let x=5... therefore...") # -> {passed, rejection_reasons, scores, nouls}
# Whole file -> ./curated/clean.jsonl + rejected.jsonl + errors.jsonl (supports dry_run=True)
# Note: --format parquet and --resume are CLI-only flags; Python filter_file supports dry_run=True.
stats = curator.filter_file("train.parquet", out="./curated", dry_run=False) # -> {passed, rejected, errors, total}
Output in practice
jev-curate filter streams input rows and writes five separated outputs in --out (default ./curated/):
clean.jsonl(orclean.part-*.parquet/clean.parquetwith--format parquet, preserving the input Arrow schema)rejected.jsonl: rows that failed host sanity checks (pre_filter_sanity),secret_scan, or Jev rubric thresholds, with rejection reasonserrors.jsonl: rows that hit transport/API errors after retries, kept separate so clean/rejected counts stay exactaudit.jsonl: per-row evaluation audit log recordingrow_id,row_number,decision,rejection_reasons,scores,nouls,choices,probabilities,input_tokens,output_tokens,truncated, andmodelmanifest.json: run summary metadata (tool_version,model,preset,format,input, row counts,input_tokens, andestimated_cost_usd)
Capabilities
- Single-round-trip rubrics per row (speculative fan-out): Evaluates all rubric questions for a row concurrently in one HTTP request instead of N sequential LLM calls. Receives calibrated
Noulprobabilities (a[0.0, 1.0]probability encoding certainty directly, soNoulskipsmin_confidence), ordinalScorerubrics (0–4scale sent as an ordered list), and categoricalChoiceanswers. - Pre-built & custom YAML presets:
reasoning-math:has_circular_reasoning(Noul),reasoning_depth(Score0–4, keep>= 2.0). Drops ungrounded math derivations and circular proofs.anti-sycophancy:is_sycophantic(Noul),has_ai_disclaimer(Noul). Eliminates "As an AI...", ungrounded flattery, and conversational filler.code-correctness:has_stub_placeholders(Noul),code_quality(Score0–4, keep>= 2.0). Drops incomplete code blocks and pseudo-code mocks.- Custom rubrics: pass
--preset rubric.yaml.
- Bounded streaming &
--resume: Uses a bounded channel with backpressure (no full-datasetVecmaterialization) and supports--resumeto continue interrupted runs. - Opt-in Parquet output (
--format parquet): Preserves the input Arrow schema when writing clean records. - Host-side
secret_scan& sanity pruning: Catches sensitive tokens and malformed/empty rows before any API request is sent. - Zero rewriting: Emits clean records verbatim without paraphrasing or altering mathematical formulas.
Custom YAML Rubric (rubric.yaml)
name: custom-rigor
description: Filter for grounded, non-circular answers
questions:
is_circular:
type: noul
instructions: Does this contain circular reasoning?
min_scores: {}
reject_nouls:
is_circular: 0.7
min_confidence: 0.5
Architecture ("Why 444x cheaper?")
- Flow:
Input → Host pre-filter (--dry-run) → Single-round-trip Jev fan-out → clean/rejected/errors/audit/manifest - Zero-cost host pruning: Empty/malformed rows and
secret_scanhits are dropped locally before any API call. - Single-round-trip fan-out: All rubric questions per row are evaluated concurrently in one Jev request instead of N sequential LLM calls.
- Verbatim output: Clean rows are streamed directly without rewriting, keeping token usage and latency minimal.
Evidence and trust
| Check | Result | Rerun |
|---|---|---|
| Test suite | Passing unit & integration tests (in-process wiremock server, 0 live credits) |
cargo test |
| Linter | Clean under clippy | cargo clippy --all-targets |
| Local mock benchmark | 23.97 rows/sec (~24.0 rows/sec) single-node mock (bench/results/mock.json, rate-limiter-clamped at 20 req/s default) |
bash bench/run_mock.sh |
| Dry-run gate | Host pre-filtering only (secret_scan + pre_filter_sanity), zero API calls |
jev-curate filter <INPUT> --dry-run |
jev-curate's built-in limiter defaults to 20 requests per second; TypeSafe's org quota default is 80 req/s and 100,000 tok/s, which caps un-sharded multi-node scaling. Evaluation is fail-closed: missing answers or Score/Choice confidence below min_confidence reject the record rather than passing it (Noul skips min_confidence because its [0.0, 1.0] probability encodes certainty directly).
What's new
v0.3.0-beta.1 (2026-11-26):
- Added
--format parquetoutput support (opt-in, preserves input Arrow schema) - Added
--resumesupport for resuming interrupted curation runs - Added
secret_scanhost-side pre-filtering - Bounded streaming pipeline improvements for controlled memory usage
v0.2.0 (2026-10-02): Bounded streaming pipeline with backpressure, errors.jsonl separation, 10s/90s timeouts with exponential backoff and 429/5xx handling, fail-closed confidence, --model/JEV_MODEL support, and PyJevCurator Python bindings. Full history in CHANGELOG.md.
Workflows
1. Filter Parquet or JSONL with a preset or custom YAML
jev-curate filter train.parquet --preset reasoning-math --out ./curated/
jev-curate filter train.jsonl --preset rubric.yaml --out ./curated/
2. Preserve Parquet schema and resume interrupted runs
jev-curate filter train.parquet --format parquet --resume --out ./curated/
3. Host-only dry run (secret_scan + sanity pruning)
jev-curate filter train.parquet --dry-run --out ./curated/
4. Offline mock testing
jev-curate filter train.parquet --endpoint http://127.0.0.1:8080 --out ./curated/
Command Reference
jev-curate filter [OPTIONS] <INPUT_PATH>
| Flag | Default | Description |
|---|---|---|
<INPUT_PATH> |
Required | Path to input .parquet or .jsonl file. |
-p, --preset |
reasoning-math |
Pre-built rubric (reasoning-math, anti-sycophancy, code-correctness) or path to custom .yaml. |
-o, --out |
./curated/ |
Destination folder for clean.jsonl (or clean.part-*.parquet/clean.parquet), rejected.jsonl, errors.jsonl, audit.jsonl, and manifest.json. |
-c, --concurrency |
32 |
Worker concurrency (adaptive token bucket prevents 429 rate limits). |
--dry-run |
false |
Host pre-filtering only (secret_scan + pre_filter_sanity), no API calls (no TYPESAFE_API_KEY needed). |
--model |
jev-latest |
Jev model (or JEV_MODEL env; pin jev-1.13.0 for repro). |
--format |
jsonl |
Output format: jsonl or parquet (opt-in, preserves schema). |
--resume |
false |
Resume an interrupted curation run from existing output state. |
--endpoint |
None | Custom API endpoint URL for offline mock testing (or set TYPESAFE_ENDPOINT). |
Exit codes
0: Success (all records processed with zero row-level errors).1: Fatal CLI, auth, validation, or I/O error.2: Completed with one or more row-level failures recorded inerrors.jsonl.130: Interrupted by Ctrl+C (partial progress flushed).
What runs where, and what it costs
| Component | Where it runs | Cost |
|---|---|---|
Parquet/JSONL streaming, secret_scan, sanity pruning, --dry-run |
Local machine | Free |
Jev Choice / Score / Noul judgments |
TypeSafe System One (api.typesafe.ai) |
~$4.20 per 100M tokens ($0.042/Mtok input, zero output) |
TypeSafe benchmarks System One workflows 444.6x cheaper and 193.6x faster than generative LLMs (source).
Project Structure
jev-curate/
├── Cargo.toml # Rust core manifest (arrow, parquet, tokio, pyo3, clap, reqwest, serde)
├── pyproject.toml # Maturin Python package manifest
├── src/
│ ├── lib.rs # PyO3 module bindings & crate entry
│ ├── main.rs # Standalone CLI binary entrypoint
│ ├── client.rs # TypeSafe AI HTTP client (speculative fan-out)
│ ├── filter.rs # Host-side sanity pruning, secret_scan & Jev pipeline
│ ├── parquet_io.rs # Batch-decoded Parquet reader + buffered JSONL/Parquet writer
│ ├── rate_limiter.rs # Request rate limiter with auto 429 backoff
│ └── presets.rs # Pre-built post-training evaluation rubrics
└── tests/
├── cli_test.rs # CLI integration tests
├── mock_test.rs # In-process mock tests via wiremock (100% offline)
└── test_python.py # Offline Python SDK smoke tests
Development
git clone https://github.com/AkashPriyadarshii/jev-curate
cd jev-curate
cargo test
cargo clippy --all-targets
# Python bindings (via maturin)
maturin develop
python -m unittest tests/test_python.py
All tests run against an in-process mock server with zero live API credits in CI.
Limits and non-goals
- No rewriting:
jev-curateemits passing rows verbatim without paraphrasing or editing. - Not a local vector DB: No embeddings, no vector indices, zero PyTorch/CUDA runtime requirements.
- Not a generic web scraper: Built for structured datasets (Parquet, Arrow, JSONL).
Ecosystem & Author
jev-seo: Free Rust SEO & GEO CLI with 19-tool MCP serverjev-superpowers: Jev-gated agent engineering workflowsjev-git: Jev reflex gates for gittdlib-android: Precompiled TDLib binaries for four Android ABIskharcha: Offline-first UPI expense tracker for Android
Author: Akash Priyadarshi (Patna, Bihar, India) · GitHub · Portfolio · Project page · LinkedIn · Resume · X · Threads · Instagram · Reddit
Explore projetos relacionados
Carregando…