Datasets:
Add dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- information-extraction
|
| 7 |
+
- json
|
| 8 |
+
- rag
|
| 9 |
+
- structured-data
|
| 10 |
+
- synthetic
|
| 11 |
+
- legacy-database-modernization
|
| 12 |
+
task_categories:
|
| 13 |
+
- text-generation
|
| 14 |
+
- feature-extraction
|
| 15 |
+
size_categories:
|
| 16 |
+
- 1B<n<10B
|
| 17 |
+
configs:
|
| 18 |
+
- config_name: default
|
| 19 |
+
data_files:
|
| 20 |
+
- split: train
|
| 21 |
+
path: "data/train-*.parquet"
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# Helios Nano JSON Data
|
| 25 |
+
|
| 26 |
+
Large-scale synthetic dataset for training small language models (SLMs) on
|
| 27 |
+
**structured information extraction** — converting unstructured text into JSON.
|
| 28 |
+
|
| 29 |
+
## Purpose
|
| 30 |
+
|
| 31 |
+
Designed for fine-tuning a 400M-parameter extraction engine that:
|
| 32 |
+
- Reads unstructured business documents (invoices, medical records, contracts, etc.)
|
| 33 |
+
- Follows a provided JSON schema
|
| 34 |
+
- Outputs clean, structured JSON
|
| 35 |
+
|
| 36 |
+
Ideal for **legacy database modernization** and **RAG pipelines**.
|
| 37 |
+
|
| 38 |
+
## Dataset Structure
|
| 39 |
+
|
| 40 |
+
Each row contains:
|
| 41 |
+
|
| 42 |
+
| Column | Type | Description |
|
| 43 |
+
|---|---|---|
|
| 44 |
+
| `industry` | string | Source industry (finance, healthcare, hr, legal, …) |
|
| 45 |
+
| `doc_type` | string | Document type (invoice, prescription, contract, …) |
|
| 46 |
+
| `schema_json` | string | JSON schema the model should extract |
|
| 47 |
+
| `raw_text` | string | Unstructured source document |
|
| 48 |
+
| `extracted_json` | string | Gold-standard structured extraction |
|
| 49 |
+
|
| 50 |
+
## Coverage
|
| 51 |
+
|
| 52 |
+
**16 industries**, **41 document types**, including:
|
| 53 |
+
- Finance: invoices, receipts, payroll, wire transfers, tax summaries, bank transactions
|
| 54 |
+
- Healthcare: patient records, prescriptions, lab results, referrals
|
| 55 |
+
- HR: employee records, job postings, performance reviews
|
| 56 |
+
- Legal: contract summaries
|
| 57 |
+
- Real Estate: property listings, lease agreements
|
| 58 |
+
- Logistics: shipping notices, purchase orders, inventory, customs declarations
|
| 59 |
+
- Retail: orders, returns
|
| 60 |
+
- Insurance: claims
|
| 61 |
+
- Education: enrollment, scholarships
|
| 62 |
+
- Manufacturing: quality inspections, maintenance logs
|
| 63 |
+
- Government: business licenses, building permits
|
| 64 |
+
- And more…
|
| 65 |
+
|
| 66 |
+
## Format Diversity
|
| 67 |
+
|
| 68 |
+
Text fields use randomized formatting for dates (`Sept 29` / `09-29-2024` /
|
| 69 |
+
`2024-09-29`), currency (`$1,234.56` / `USD 1234.56`), phone numbers, IDs,
|
| 70 |
+
and document layout (formal headers vs. narrative prose vs. email style).
|
| 71 |
+
|
| 72 |
+
## Stats
|
| 73 |
+
|
| 74 |
+
- **Shards**: 26
|
| 75 |
+
- **Disk size**: 12.2 GB (Snappy-compressed Parquet)
|
| 76 |
+
- **Target**: 10B tokens (BPE, vocab 32768)
|
| 77 |
+
|
| 78 |
+
## Usage
|
| 79 |
+
|
| 80 |
+
```python
|
| 81 |
+
from datasets import load_dataset
|
| 82 |
+
|
| 83 |
+
ds = load_dataset("respinosamena/Helios-Nano-JSON-Data", split="train")
|
| 84 |
+
print(ds[0])
|
| 85 |
+
```
|
| 86 |
+
|
| 87 |
+
## Training Prompt Format
|
| 88 |
+
|
| 89 |
+
```
|
| 90 |
+
<|schema|>{schema_json}<|end_turn|>
|
| 91 |
+
<|document|>{raw_text}<|end_turn|>
|
| 92 |
+
<|extract|>{extracted_json}<|end_turn|>
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
## License
|
| 96 |
+
|
| 97 |
+
Apache 2.0
|