Build LLM-ready datasets from completed jobs and export them in JSONL, Parquet, CSV, and other formats using the FlexOrch TypeScript SDK.
After processing your documents, FlexOrch lets you group completed jobs into a named dataset and export the structured output in the format your downstream pipeline expects. This page covers building, profiling, exporting, and deleting datasets using the TypeScript SDK.
Pass an array of completed job IDs and a human-readable name to client.datasets.build(). The method returns a Promise<Dataset> that resolves once the dataset is assembled.
All job IDs passed to build() must be in the completed state. Jobs with
status queued, running, or failed are silently skipped unless you pass
strict: true, which causes the Promise to reject with an IncompleteJobError.
client.datasets.profile() returns statistical metadata about your dataset — token counts, field coverage, PII distribution, and grade breakdown — useful for quality checks before fine-tuning.