ELYRAON Dataset Doctor — JSONL/CSV Fine-Tune Checker avatar

ELYRAON Dataset Doctor — JSONL/CSV Fine-Tune Checker

Pricing

from $0.50 / 1,000 record inspecteds

Go to Apify Store
ELYRAON Dataset Doctor — JSONL/CSV Fine-Tune Checker

ELYRAON Dataset Doctor — JSONL/CSV Fine-Tune Checker

Inspect JSONL and CSV instruction data before a fine-tune. Flags broken JSON, bad chat-role order, exact duplicates, PII counts, and CSV formula prefixes. Deterministic rules. No model calls.

Pricing

from $0.50 / 1,000 record inspecteds

Rating

0.0

(0)

Developer

Colton Mcclain

Colton Mcclain

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

ELYRAON Dataset Doctor — AI Training Data Cleaner & Validator

Deterministic local validation, syntax repair, PII detection, and quality scoring for LLM fine-tuning datasets.
Supports JSONL (Alpaca, ChatML, ShareGPT, Prompt/Response, Raw Text) and CSV files up to 5,000 records per job.


What Problem Does Dataset Doctor Solve?

Machine learning teams, autonomous coding agents, and automation developers lose compute credits and GPU hours when fine-tuning jobs fail due to:

  1. Syntax & Formatting Failures: Trailing commas, single-quoted JSON, truncated lines (missing closing brackets), or malformed lines in JSONL files.
  2. Conversational Integrity Hazards: ShareGPT or ChatML sequences with consecutive user turns, out-of-order system prompts, or empty assistant responses.
  3. Sensitive PII & Secret Leakage: Accidental inclusion of personal emails, phone numbers, Social Security Numbers, internal IP addresses, and OpenAI/GitHub API keys in training data.
  4. Spreadsheet Formula Injections: CSV datasets containing malicious formula prefixes (=, +, -, @) that execute arbitrary commands when opened in spreadsheet software.
  5. Low-Quality / Boilerplate Noise: Repetitive non-informative responses that degrade model alignment.

ELYRAON Dataset Doctor runs an auditable, deterministic engine that inspects every record, repairs minor syntax defects, neutralizes CSV injection risks, flags sensitive PII, and outputs clean, ready-to-train datasets.


Pricing

Pay per event — no subscription, no free tier:

EventPrice
Actor start$0.005 per run (1 GB default memory)
Record inspected (dataset item)$0.0005 per record ($0.50 per 1,000)

A run that fails on invalid input (empty text, unreachable or non-public URL, file over 5 MB) writes no records, so no per-record charges apply, but the $0.005 start event is still charged because Apify charges it automatically when a run starts. A request with no input_mode at all is refused by Apify before a run starts and is not charged. Maximum job size is 5,000 records / 5 MB, so a full job costs about $2.51. The estimated_compute_cost_usd_informational field in the report is an internal estimate, not your bill.


Example Output (one dataset row per record)

{
"record_index": 1,
"status": "repaired",
"detected_format": "alpaca",
"cleaned_record": {"instruction": "Say hi", "output": "Mail me at [REDACTED_EMAIL]"},
"pii_detected": {"email": 1},
"issues": ["repaired: removed_trailing_comma"],
"token_count": 11
}

status is valid, repaired or rejected (rejected rows have cleaned_record: null and an explanation in issues). The run also stores a JSON summary (OUTPUT) and a Markdown report (REPORT.md) in the key-value store.

Privacy and Safety Behavior

  • No values in detection results. pii_detected lists only the PII type and how many matches were found in that record, e.g. {"email": 1, "ssn": 1}. Matched values, or fragments of them, are never returned in results, the summary, the report or the run log.
  • Redaction is opt-in. With Redact Detected PII on, emails, phone numbers, SSNs, credit cards and API keys are replaced with [REDACTED_EMAIL], [REDACTED_SSN] and so on in cleaned_record; the rest of the record stays intact. IP addresses are counted but not redacted. With it off, cleaned_record is your data, unmodified.
  • No demo data on your behalf. Sample mode runs only when you select it. An empty, whitespace-only or conflicting input fails the run with a clear error and produces no results.
  • Safe URL fetching. Only public http/https URLs; redirects are re-checked; localhost, private, link-local and metadata addresses are refused; files over 5 MB are refused.
  • In-memory processing. No third-party model or API calls; nothing is stored beyond the run's own dataset and key-value store.

Errors You May See

MessageMeaning
input_mode is required...Pick Synthetic sample, Inline text or Remote file URL.
... dataset_text is empty / ... file_url is emptyThe selected mode has no data. Nothing was processed.
... also provided; choose one sourceBoth text and URL (or sample plus data) were supplied.
URL points to a non-public address...The URL resolves to a private, loopback or link-local address.
file_url must be an absolute http(s) URL / must not contain credentialsUnsupported scheme or user:password in the URL.
Remote file exceeds the ... limit / Input payload exceeds ...The file or text is larger than 5 MB.
max_records must be an integer of at least 1Invalid record limit (maximum 5,000 per job).

A run that fails on input writes no records, so no per-record charges apply (the start event is still charged).

Key Features

  • No Third-Party Model Calls: 100% deterministic local rules, regular expressions, and AST parsing. No token burn or random drift.
  • Privacy-Safe Execution: Your datasets are processed in-memory in your Apify container. Data is never uploaded to third-party APIs or used to train models.
  • Dual Output Channels:
    • Structured Dataset: Cleaned and annotated records pushed directly to the Apify Dataset, downloadable as JSON, CSV, or Excel.
    • Audit Report: Complete executive summary, issue histogram, PII audit, token distribution statistics, and cost accounting stored in the Key-Value Store (OUTPUT and REPORT.md).
  • Built-in Synthetic Benchmarks: Test the Actor immediately using synthetic sample datasets without uploading private files.

Supported Formats

FormatStructure InspectedAutomatic Repairs
Alpacainstruction, input, outputTrailing commas, single-quoted JSON, missing closing brackets
ChatMLmessages: [{role, content}]Role ordering (system first), non-empty content validation
ShareGPTconversations: [{from, value}]Turn alternations (human → gpt), structural consistency
Prompt / Responseprompt, response / completionWhitespace normalization, unicode normalization (NFC)
CSVDelimited columnsFormula injection neutralization (=, @, +, -)

Example Input

{
"input_mode": "sample",
"sample_name": "alpaca_synthetic_dirty",
"detect_pii": true,
"redact_pii": false,
"deduplicate_exact": true,
"filter_low_info": true,
"max_records": 1000
}

Direct Text Input Example (JSONL)

{
"input_mode": "text",
"dataset_text": "{\"instruction\": \"Calculate CAGR\", \"input\": \"10k to 25k in 5 yrs\", \"output\": \"CAGR is 20.11%\"}\n{\"instruction\": \"Fix syntax\", \"input\": \"\", \"output\": \"Repaired\",}\n{\"instruction\": \"Trailing comma\", \"input\": \"\", \"output\": \"Repaired\",}\n",
"detect_pii": true
}

Example Output (Key-Value Store: OUTPUT)

{
"service": "ELYRAON Dataset Doctor",
"version": "1.0.0",
"timestamp": "2026-11-07T02:14:08Z",
"source": "sample: alpaca_synthetic_dirty",
"format_family": "jsonl",
"summary": {
"records_inspected": 7,
"valid_records": 4,
"repaired_records": 1,
"rejected_records": 3,
"pii_records_flagged": 0,
"formula_injections_neutralized": 0,
"clean_rate_pct": 57.14
},
"issue_breakdown": {
"syntax_error": 2,
"structural_validation_failed": 1
},
"pii_breakdown": {},
"token_statistics": {
"total_tokens": 189,
"mean_tokens": 27.0,
"median_tokens": 26,
"p95_tokens": 48
},
"performance_and_costs": {
"duration_seconds": 0.0129,
"throughput_records_per_sec": 542.64,
"peak_memory_mb": 68.94,
"actual_compute_cost_usd": 0.000000
}
}

Limitations

  • Up to 5,000 records per run (max_records); inputs up to ~5 MB for pasted text.
  • Rule-based checks only (regex and parsing). It does not judge factual accuracy or semantic quality, and PII detection can miss unusual formats or flag false positives. Review before relying on it for compliance.
  • Repairs are limited to simple syntax defects (trailing commas, lines that use single quotes throughout, missing closing brackets; lines mixing quote styles, unquoted keys or raw control characters are rejected, not repaired) and CSV formula neutralization.
  • url mode fetches one public HTTPS file; private or authenticated URLs are not supported.
  • Pricing is pay-per-event (see Pricing above): $0.005 per run start plus $0.0005 per record. There is no free tier; the price is shown on the Actor's Store page before you run it.

Developer & Agent Integration

Running via Apify Python Client

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("colt2822/dataset-doctor").call(run_input={
"input_mode": "url",
"file_url": "https://your-host.example/training_data.jsonl", # replace with your own public file URL
"detect_pii": True,
"max_records": 2500
})
# Fetch cleaned dataset items
dataset_items = client.dataset(run["defaultDatasetId"]).list_items().items
print(f"Processed {len(dataset_items)} records.")
# Fetch executive audit summary
audit_report = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("OUTPUT")["value"]
print(f"Clean rate: {audit_report['summary']['clean_rate_pct']}%")

Running via curl / HTTP API

curl -X POST "https://api.apify.com/v2/acts/colt2822~dataset-doctor/runs?token=<YOUR_APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"input_mode": "sample",
"sample_name": "chatml_pii_leakage",
"detect_pii": true
}'

Privacy, Security, & Support