Data Forge User Guide
Overview
Data Forge v2 is a core feature of the Foundry platform — a standalone workspace that transforms raw, unrefined data into high-quality training data for LLM fine-tuning.
The unit of work is a Session (workflow), which combines reusable Connections (LLM connections) and Configs (generation settings).
Key Features
- Multiple source types: PDF, DOCX, PPTX, HTML, TXT, Markdown files and images (Multimodal), URLs, YouTube videos
- Automated data generation: QA pairs, Chain-of-Thought, Summaries, Multimodal QA
- Quality control: AI-powered automatic curation and manual review
- Multiple output formats: Alpaca, ChatML, OpenAI Fine-tuning (FT), JSONL
- Foundry Repo integration: Publish generated data directly to a Dataset Repo
Pipeline (6 Stages)
| Stage | Description |
|---|---|
| Upload | Add file / URL / YouTube sources |
| Ingest | Parse text |
| Create | Generate QA / CoT / Summary with an LLM |
| Curate | Filter by quality score (default 7.0) |
| Export | Convert to Alpaca / ChatML / JSONL / FT format |
| Publish | Publish to a Foundry dataset |
Getting Started
1. Access Data Forge
From the dashboard, click "Data Forge" in the left sidebar.
2. Set Up an LLM Connection
Before generating data you must configure an LLM connection.
- Navigate to the Connections page
- Click "Add Connection"
- Choose a provider:
- vLLM: Local vLLM server (no API key required)
- API Endpoint: OpenAI-compatible API
- Choose from OpenAI (GPT-4, etc.), Claude (Anthropic), OpenRouter, or Custom
- Enter and save your API key (required for api-endpoint)
- Click "Test Connection" to verify
Security: API keys are encrypted with AES-256-GCM before storage.
Creating a Session
1. Start a New Session
- Click "New Session" on the dashboard
- Enter a session name
- Add sources, select a Connection and Config, then start processing
Up to 5 sessions can be active at the same time.
2. Choose a Content Type (Config)
| Type | Description |
|---|---|
QA Pairs (qa) | Generate question-answer pairs |
Chain of Thought (cot) | Generate step-by-step reasoning |
Summary (summary) | Generate summaries |
Multimodal QA (multimodal-qa) | Image-based QA (vision LLM) |
Source Management
Supported File Formats
Maximum file size: 50 MB per file; maximum sources per session: 20.
| Format | Description |
|---|---|
| Text and image extraction | |
| DOCX / DOC | Document text extraction |
| PPTX / PPT | Slide text / image extraction |
| HTML / HTM | Web page text extraction |
| TXT / MD (Markdown) | Plain text / Markdown |
| Images (JPG, PNG, GIF, WEBP) | For Multimodal QA |
Adding Sources
File Upload
- Drag and drop or select files on the project page
- Monitor upload progress
- Text extraction starts automatically
Add a URL
- Select the "Add URL" tab
- Enter a web page URL
- Content is crawled automatically
YouTube Video
- Select the "YouTube" tab
- Enter a YouTube URL
- Subtitles / transcript are extracted automatically
Source Status
| Status | Description |
|---|---|
| pending | Awaiting upload |
| uploaded | Upload complete |
| ingested | Text parsing complete (ready to generate) |
| failed | Processing failed |
Data Generation
Generation Settings
Basic Settings
| Option | Default | Range | Description |
|---|---|---|---|
| Number of pairs (num pairs) | 25 | 1–2000 | Pairs to generate per source |
| Temperature | 0.7 | 0.0–2.0 | Generation diversity |
| Top P | 0.95 | 0.0–1.0 | Nucleus sampling probability |
| Max Tokens | 4096 | — | Maximum output tokens |
Chunking Settings
| Option | Default | Range | Description |
|---|---|---|---|
| Chunk Size | 4000 | 500–10000 | Chunk size (characters) |
| Chunk Overlap | 200 | — | Overlap between chunks (characters) |
Prompt Templates
Using Default Templates
Use the optimised templates provided by the system.
Custom Templates
- Create a new Config on the Config page
- Write your prompt content (variables are supported)
- Select the custom Config in your session
Running Generation
- Navigate to the "Generate" page
- Review settings
- Click "Start Generation"
- Monitor progress on the Jobs page
Curation
Automatic Curation
The AI evaluates the quality of generated data on a scale of 1–10.
Quality Criteria
- Accuracy: Alignment with the source content
- Completeness: Sufficiency of the answer
- Clarity: Clarity of the question and answer
- Usefulness: Practical value
Threshold Settings
| Threshold | Recommended Use |
|---|---|
| 7.0 | General quality (default) |
| 8.0 | High-quality requirement |
| 9.0 | Top quality only |
Manual Review
- Review generated items on the "Curate" page
- For each item:
- Approve: Pass curation
- Reject: Exclude from curation
- Edit: Modify content then approve
- Batch operations allow processing multiple items at once
Export
Supported Formats
| Format | Description | Use Case |
|---|---|---|
| Alpaca | Stanford Alpaca format | General fine-tuning |
| ChatML | OpenAI ChatML format | Chat models |
| Fine-tuning | OpenAI fine-tuning format | OpenAI API |
| JSONL | Generic JSONL | General purpose |
Export Options
Download
- Select a format on the "Export" page
- Click "Download"
- The file downloads to your device
Publish to Foundry Repo
- Select "Publish to Repo"
- Choose an option:
- Existing Repo: Append data to an existing repo
- New Repo: Create a new Dataset Repo
- Enter a filename and commit message
- Click "Publish"
Job Management
Job Types
| Type | Description |
|---|---|
| Ingest | Parse sources and extract text |
| Create | Generate data |
| Curate | Automatic curation |
| Export | Export data |
Job Status
| Status | Description |
|---|---|
| Queued | Waiting in the queue |
| Running | Currently executing |
| Completed | Successfully finished |
| Failed | Execution failed |
| Cancelled | Cancelled by user |
Job Monitoring
- View all jobs on the "Jobs" page
- Real-time progress is displayed
- Logs are available for each job
- Running jobs can be cancelled
Limits
LLM call costs are billed directly through the Connection you register.
| Item | Limit |
|---|---|
| Maximum sources per session | 20 |
| Maximum file size | 50 MB |
| Maximum concurrent (active) sessions | 5 |
Reusing Configs (Generation Settings)
Generation parameters and prompts are saved as Configs and can be reused across multiple sessions.
Creating a Config
- Create a new Config on the Configs page
- Fill in the details:
- Name / Description
- Content type: QA, CoT, Summary, Multimodal QA
- Prompt / Parameters: temperature, top_p, chunk size, num pairs, curate threshold, etc.
- Save, then select it in a session (you can set a default Config)
Default Prompts
If left blank, the default prompt is used. Variables such as {text} are supported in prompts.
Troubleshooting
Common Issues
Source Processing Fails
- Check the file format
- Check the file size limit
- Make sure the file is not corrupted
Low Generation Quality
- Adjust Temperature (lower values produce more consistent output)
- Adjust chunk size
- Use a custom prompt
Job Timeout
- Reduce source size
- Reduce the number of pairs to generate
Support
If problems persist, please report them on GitHub Issues.