What is a dataset?
A dataset is a structured collection of rows with a defined schema. Datasets in Data Lab can come from several sources:- Uploaded datasets: data uploaded directly to Data Lab.
- S3-connected datasets: data connected from S3-compatible object storage.
- Imported inference logs: historical Chat Completions imported from your Token Factory usage.
- Derived datasets: datasets created by filtering or transforming another dataset.
Creating a dataset
Upload a dataset
You can upload structured data directly from your computer. To upload a dataset:- Open Data Lab → Datasets.
- Click Add dataset.
- Select the file you want to upload.
- Specify the dataset name.
- Start the upload.
Connect a dataset from S3
You can also work with data stored in S3-compatible object storage. This is useful when your datasets are already stored externally or are too large to move between systems as part of every workflow. Data Lab works with the dataset and its metadata without creating an additional raw-data copy of the source S3 object. This allows you to:- keep your existing storage architecture;
- avoid unnecessary data duplication;
- inspect and process datasets through Data Lab;
- use the same data for fine-tuning.
Create a dataset from inference logs
Data Lab can convert historical Chat Completions into a dataset. You can select a time range and model and create a structured dataset containing available request and response information. Imported data may include:- id: string
- choice_id: integer
- prompt: json
- completion: json
- dialogue: json
- started: string
- completed: string
- raw_prompt: json
- raw_completion: json
- completion_tokens: integer
- prompt_tokens: integer
- ai_project_id: string
- model_flavor_id: string
- tenant_user_account_id: string
- error_string: string
Supported formats
Data Lab currently supports the following dataset formats:JSON Lines
JSON Lines (JSONL) is supported both for direct uploads and for datasets connected from S3-compatible storage.
Each line in a JSONL file must contain a valid JSON object.
Example: