Wire & Export Specifications

Supported Input Schemas & Export Formats

Ingest tabular, columnar, or conversational files once — DatasetAPI automatically maps semantic column roles and compiles clean, deduplicated streams for every major LLM training and retrieval stack.

Input: JSONL, NDJSON & Conversational Arrays

DatasetAPI inspects the first 200 records to infer semantic roles automatically:

  • Question / Prompt role: question, prompt, instruction, query, input_text, user
  • Answer / Completion role: answer, response, output, completion, assistant, target
  • Context & Provenance: context, passage, text, source, url, reference
  • Multi-turn arrays: OpenAI messages: [{role, content}] and ShareGPT conversations: [{from, value}] are automatically paired for SFT exports while preserving every original column in rows.jsonl.

Input: Apache Parquet, CSV, TSV & Markdown

Columnar .parquet files are streamed in Arrow record batches via PyArrow without materializing the full table in memory. Delimited .csv and .tsv files auto-detect UTF-8/BOM encodings and header rows.

Export: OpenAI / Unsloth ChatML (`chatml.jsonl`)

Ready for OpenAI fine-tuning, Axolotl, Unsloth, TRL `SFTTrainer`, and Llama-Factory:

{"messages":[{"role":"user","content":"How do I prevent OOM during Qwen3.8 27B QLoRA training?"},{"role":"assistant","content":"Enable gradient checkpointing (`use_gradient_checkpointing='unsloth'`), batch_size=2, grad_accum=8, and max_seq_length=4096."}]}

Export: Alpaca (`alpaca.jsonl`) & ShareGPT (`sharegpt.jsonl`)

// alpaca.jsonl
{"instruction":"How do I prevent OOM during Qwen3.8 27B QLoRA training?","input":"","output":"Enable gradient checkpointing...","source":"https://..."}

// sharegpt.jsonl
{"conversations":[{"from":"human","value":"How do I prevent OOM during Qwen3.8 27B QLoRA training?"},{"from":"gpt","value":"Enable gradient checkpointing..."}]}

Export: Grounded Q&A (`qa.jsonl`, `qa.csv`, `qa.md`)

{"question":"What rate limit applies to free API keys?","answer":"Free workspace keys allow 180 requests per minute with X-RateLimit headers on every response.","context":"Free keys allow 180 req/min","source":"https://datasetapi.ai/developers","confidence":0.95,"lang":"en"}

Export: Token-Bounded RAG Chunks (`chunks.jsonl`)

Produced for website crawl projects: clean Markdown passages stripped of cookie banners and nav menus, preserving heading hierarchy (`heading_path`) and token estimates.

{"id":"14-88","url":"https://docs.example.com/indexing","title":"Vector Indexing","heading_path":["Vector Indexing","HNSW Parameters"],"text":"Set ef_construction=200 and m=16 for balanced recall...","tokens_est":184,"lang":"en"}

Export: `llms.txt`, `llms-full.txt` & `faq.jsonld`

For website crawl projects, DatasetAPI also generates machine-readable site indexes and schema-valid FAQPage JSON-LD blocks ready to embed on source pages.

Export: Deterministic Quality Audit (`report.json`)

Every dataset produces a machine-readable audit report containing exact duplicate counts, near-duplicate shingle matches, empty/short/long row counts, PII incidence by type, language distribution, inferred column schemas, and an overall 0–100 Quality Score.