Seeding with an External Dataset
🎨 Data Designer Tutorial: Seeding Synthetic Data Generation with an External Dataset
📚 What you'll learn
In this notebook, we will demonstrate how to seed synthetic data generation in Data Designer with an external dataset.
If this is your first time using Data Designer, we recommend starting with the first notebook in this tutorial series.
📦 Import Data Designer
-
data_designer.configprovides access to the configuration API. -
DataDesigneris the main interface for data generation.
⚙️ Initialize the Data Designer interface
-
DataDesigneris the main object responsible for managing the data generation process. -
When initialized without arguments, the default model providers are used.
🎛️ Define model configurations
-
Each
ModelConfigdefines a model that can be used during the generation process. -
The "model alias" is used to reference the model in the Data Designer config (as we will see below).
-
The "model provider" is the external service that hosts the model (see the model config docs for more details).
-
By default, we use build.nvidia.com as the model provider.
🏗️ Initialize the Data Designer Config Builder
-
The Data Designer config defines the dataset schema and generation process.
-
The config builder provides an intuitive interface for building this configuration.
-
The list of model configs is provided to the builder at initialization.
🏥 Prepare a seed dataset
-
For this notebook, we'll create a synthetic dataset of patient notes.
-
We will seed the generation process with a symptom-to-diagnosis dataset.
-
The notebook downloads the source CSV before generation.
🌱 Why use a seed dataset?
Seed datasets let you steer the generation process by providing context that is specific to your use case.
Seed datasets are also an excellent way to inject real-world diversity into your synthetic data.
During generation, prompt templates can reference any of the seed dataset fields.
DataDesignerConfigBuilder( seed_dataset: local seed )
🎨 Designing our synthetic patient notes dataset
- The prompt template can reference fields from our seed dataset:
{{ diagnosis }}- the medical diagnosis from the seed data{{ patient_summary }}- the symptom description from the seed data
[17:20:18] [INFO] ✅ Validation passed
🔁 Iteration is key – preview the dataset!
-
Use the
previewmethod to generate a sample of records quickly. -
Inspect the results for quality and format issues.
-
Adjust column configurations, prompts, or parameters as needed.
-
Re-run the preview until satisfied.
[17:20:18] [INFO] 📸 Preview generation in progress
[17:20:18] [INFO] |-- 🔒 Jinja rendering engine: secure
[17:20:18] [INFO] ✅ Validation passed
[17:20:18] [INFO] ⛓️ Sorting column configs into a Directed Acyclic Graph
[17:20:18] [INFO] Skipping model health checks because DATA_DESIGNER_SKIP_MODEL_HEALTH_CHECKS=1
[17:20:18] [INFO] ⚡ Using async task-queue preview
[17:20:18] [INFO] 📝 llm-text model config for column 'physician_notes'
[17:20:18] [INFO] |-- model: 'nvidia/nemotron-3-nano-30b-a3b'
[17:20:18] [INFO] |-- model alias: 'nemotron-nano-v3'
[17:20:18] [INFO] |-- model provider: 'nvidia'
[17:20:18] [INFO] |-- inference parameters:
[17:20:18] [INFO] | |-- generation_type=chat-completion
[17:20:18] [INFO] | |-- max_parallel_requests=4
[17:20:18] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[17:20:18] [INFO] | |-- temperature=1.00
[17:20:18] [INFO] | |-- top_p=1.00
[17:20:18] [INFO] | |-- max_tokens=2048
[17:20:18] [INFO] ⚡️ Async generation: 1 column(s) (column 'physician_notes'), 2 tasks across 1 row group(s)
[17:20:18] [INFO] 🚀 (1/1) Dispatching with 2 records
[17:20:18] [INFO] 🎲 (1/1) Preparing samplers to generate 2 records across 5 columns
[17:20:18] [INFO] 🌱 (1/1) Sampling 2 records from seed dataset
[17:20:18] [INFO] |-- seed dataset size: 820 records
[17:20:18] [INFO] |-- sampling strategy: ordered
[17:20:18] [INFO] 🧩 (1/1) Generating column `dob` from expression
[17:20:18] [INFO] 🧩 (1/1) Generating column `first_name` from expression
[17:20:18] [INFO] 🧩 (1/1) Generating column `last_name` from expression
[17:20:18] [INFO] 🧩 (1/1) Generating column `physician` from expression
[17:20:38] [INFO] 📊 Progress [20.7s]:
[17:20:38] [INFO] |-- 🐔 column 'physician_notes': 2/2 (100%) 0.1 rec/s
[17:20:38] [INFO] ✅ Async generation complete [20.7s]: 2 ok, 0 failed across 1 column(s)
[17:20:38] [INFO] 📊 Model usage summary:
[17:20:38] [INFO] |-- model: nvidia/nemotron-3-nano-30b-a3b
[17:20:38] [INFO] |-- tokens: input=327, output=1631, total=1958, tps=94
[17:20:38] [INFO] |-- requests: success=2, failed=0, total=2, rpm=5
[17:20:38] [INFO] 📐 Measuring dataset column statistics:
[17:20:38] [INFO] |-- 🎲 column: 'patient_sampler'
[17:20:38] [INFO] |-- 🎲 column: 'doctor_sampler'
[17:20:38] [INFO] |-- 🎲 column: 'patient_id'
[17:20:38] [INFO] |-- 🧩 column: 'first_name'
[17:20:38] [INFO] |-- 🧩 column: 'last_name'
[17:20:38] [INFO] |-- 🧩 column: 'dob'
[17:20:38] [INFO] |-- 🎲 column: 'symptom_onset_date'
[17:20:38] [INFO] |-- 🎲 column: 'date_of_visit'
[17:20:38] [INFO] |-- 🧩 column: 'physician'
[17:20:38] [INFO] |-- 📝 column: 'physician_notes'
[17:20:38] [INFO] ☀️ Preview complete!
Seed Columns ┏━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Name ┃ Value ┃ ┡━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ diagnosis │ cervical spondylosis │ ├─────────────────┼──────────────────────────────────────────────────────────────────────────────────────────┤ │ patient_summary │ I've been having a lot of pain in my neck and back. I've also been having trouble with │ │ │ my balance and coordination. I've been coughing a lot and my limbs feel weak. │ └─────────────────┴──────────────────────────────────────────────────────────────────────────────────────────┘ Generated Columns ┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Name ┃ Value ┃ ┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ patient_sampler │ { │ │ │ 'uuid': '139f577b-d591-4bb6-b5a3-1935a1dcc8a3', │ │ │ 'locale': 'en_US', │ │ │ 'first_name': 'Gerald', │ │ │ 'last_name': 'Gardner', │ │ │ 'middle_name': None, │ │ │ 'sex': 'Male', │ │ │ 'street_number': '3191', │ │ │ 'street_name': 'Steven Loop', │ │ │ 'city': 'Aguilarchester', │ │ │ 'state': 'Rhode Island', │ │ │ 'postcode': '45584', │ │ │ 'age': 82, │ │ │ 'birth_date': '1943-10-28', │ │ │ 'country': 'Marshall Islands', │ │ │ 'marital_status': 'married_present', │ │ │ 'education_level': 'secondary_education', │ │ │ 'unit': '', │ │ │ 'occupation': 'Paediatric nurse', │ │ │ 'phone_number': '+1-733-690-4280x9218', │ │ │ 'bachelors_field': 'no_degree' │ │ │ } │ ├────────────────────┼───────────────────────────────────────────────────────────────────────────────────────┤ │ doctor_sampler │ { │ │ │ 'uuid': '08ee982d-bc02-44fa-a5b3-4889230bfe5b', │ │ │ 'locale': 'en_US', │ │ │ 'first_name': 'Joseph', │ │ │ 'last_name': 'Ray', │ │ │ 'middle_name': None, │ │ │ 'sex': 'Male', │ │ │ 'street_number': '19342', │ │ │ 'street_name': 'Matthew Knoll', │ │ │ 'city': 'Lake Joseph', │ │ │ 'state': 'Washington', │ │ │ 'postcode': '91942', │ │ │ 'age': 74, │ │ │ 'birth_date': '1951-12-27', │ │ │ 'country': 'Hungary', │ │ │ 'marital_status': 'married_present', │ │ │ 'education_level': 'some_college', │ │ │ 'unit': '', │ │ │ 'occupation': 'Financial manager', │ │ │ 'phone_number': '8869152939', │ │ │ 'bachelors_field': 'no_degree' │ │ │ } │ ├────────────────────┼───────────────────────────────────────────────────────────────────────────────────────┤ │ patient_id │ PT-2850508A │ ├────────────────────┼───────────────────────────────────────────────────────────────────────────────────────┤ │ symptom_onset_date │ 2024-12-19T00:00:00 │ ├────────────────────┼───────────────────────────────────────────────────────────────────────────────────────┤ │ date_of_visit │ 2025-01-12T00:00:00 │ ├────────────────────┼───────────────────────────────────────────────────────────────────────────────────────┤ │ physician_notes │ - 2025-01-12: 68M with hx cervical spondylosis (dx 2024-12-19) presenting with │ │ │ progressive neck/back pain, worsening gait instability, episodic dizziness, new-onset │ │ │ frequent dry cough, and distal limb weakness (MRC 3‑4/5). Concern for evolving │ │ │ myelopathy vs compressive myelopathy vs cervical spondylotic myelopathy; consider MRI │ │ │ C-spine urgent. Labs: CBC, ESR, CRP, vitamin D, B12, TSH. Referral to PT/OT, discuss │ │ │ analgesic strategy (NSAIDs PRN), ergonomic modifications, and smoking cessation │ │ │ (cough). Provide follow-up in 1 week. │ ├────────────────────┼───────────────────────────────────────────────────────────────────────────────────────┤ │ first_name │ Gerald │ ├────────────────────┼───────────────────────────────────────────────────────────────────────────────────────┤ │ last_name │ Gardner │ ├────────────────────┼───────────────────────────────────────────────────────────────────────────────────────┤ │ dob │ 1943-10-28 │ ├────────────────────┼───────────────────────────────────────────────────────────────────────────────────────┤ │ physician │ Dr. Ray │ └────────────────────┴───────────────────────────────────────────────────────────────────────────────────────┘
| diagnosis | patient_summary | patient_sampler | doctor_sampler | patient_id | symptom_onset_date | date_of_visit | dob | first_name | last_name | physician | physician_notes | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | cervical spondylosis | I've been having a lot of pain in my neck and ... | {'uuid': '139f577b-d591-4bb6-b5a3-1935a1dcc8a3... | {'uuid': '08ee982d-bc02-44fa-a5b3-4889230bfe5b... | PT-2850508A | 2024-12-19T00:00:00 | 2025-01-12T00:00:00 | 1943-10-28 | Gerald | Gardner | Dr. Ray | - 2025-01-12: 68M with hx cervical spondylosis... |
| 1 | impetigo | I have a rash on my face that is getting worse... | {'uuid': '9b169a14-0dbc-433a-8707-a620830d25af... | {'uuid': '52e7de25-d282-4492-83bb-1588aa8b8aaa... | PT-F514B96A | 2024-03-09T00:00:00 | 2024-03-22T00:00:00 | 1955-06-10 | Miguel | Green | Dr. May | **Patient:** Miguel Green \n**DOB:** 05/14/19... |
📊 Analyze the generated data
-
Data Designer automatically generates a basic statistical analysis of the generated data.
-
This analysis is available via the
analysisproperty of generation result objects.
──────────────────────────────────────── 🎨 Data Designer Dataset Profile ───────────────────────────────────────── Dataset Overview ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ number of records ┃ number of columns ┃ percent complete records ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ 2 │ 10 │ 100.0% │ └─────────────────────────────────┴─────────────────────────────────┴─────────────────────────────────────────────┘ 🎲 Sampler Columns ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ column name ┃ data type ┃ number unique values ┃ sampler type ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ patient_sampler │ dict │ 2 (100.0%) │ person_from_faker │ ├───────────────────────────────┼─────────────────┼──────────────────────────────────┼────────────────────────────┤ │ doctor_sampler │ dict │ 2 (100.0%) │ person_from_faker │ ├───────────────────────────────┼─────────────────┼──────────────────────────────────┼────────────────────────────┤ │ patient_id │ string │ 2 (100.0%) │ uuid │ ├───────────────────────────────┼─────────────────┼──────────────────────────────────┼────────────────────────────┤ │ symptom_onset_date │ string │ 2 (100.0%) │ datetime │ ├───────────────────────────────┼─────────────────┼──────────────────────────────────┼────────────────────────────┤ │ date_of_visit │ string │ 2 (100.0%) │ timedelta │ └───────────────────────────────┴─────────────────┴──────────────────────────────────┴────────────────────────────┘ 📝 LLM-Text Columns ┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ ┃ ┃ ┃ prompt tokens ┃ completion tokens ┃ ┃ column name ┃ data type ┃ number unique values ┃ per record ┃ per record ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩ │ physician_notes │ string │ 2 (100.0%) │ 134.0 +/- 4.0 │ 757.5 +/- 853.5 │ └───────────────────────┴───────────────┴────────────────────────────┴───────────────────┴────────────────────────┘ 🧩 Expression Columns ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ column name ┃ data type ┃ number unique values ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ first_name │ string │ 2 (100.0%) │ ├────────────────────────────────┼───────────────────────────┼────────────────────────────────────────────────────┤ │ last_name │ string │ 2 (100.0%) │ ├────────────────────────────────┼───────────────────────────┼────────────────────────────────────────────────────┤ │ dob │ string │ 2 (100.0%) │ ├────────────────────────────────┼───────────────────────────┼────────────────────────────────────────────────────┤ │ physician │ string │ 2 (100.0%) │ └────────────────────────────────┴───────────────────────────┴────────────────────────────────────────────────────┘ ╭────────────────────────────────────────────────── Table Notes ──────────────────────────────────────────────────╮ │ │ │ 1. All token statistics are based on a sample of max(1000, len(dataset)) records. │ │ 2. Tokens are calculated using tiktoken's cl100k_base tokenizer. │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────
🆙 Scale up!
-
Happy with your preview data?
-
Use the
createmethod to submit larger Data Designer generation jobs.
[17:20:39] [INFO] OpenTelemetry metrics available at http://127.0.0.1:9464/metrics
[17:20:39] [INFO] 🎨 Creating Data Designer dataset
[17:20:39] [INFO] |-- 🔒 Jinja rendering engine: secure
[17:20:39] [INFO] ✅ Validation passed
[17:20:39] [INFO] ⛓️ Sorting column configs into a Directed Acyclic Graph
[17:20:39] [INFO] Skipping model health checks because DATA_DESIGNER_SKIP_MODEL_HEALTH_CHECKS=1
[17:20:39] [INFO] ⚡ Using async task-queue builder
[17:20:39] [INFO] 📝 llm-text model config for column 'physician_notes'
[17:20:39] [INFO] |-- model: 'nvidia/nemotron-3-nano-30b-a3b'
[17:20:39] [INFO] |-- model alias: 'nemotron-nano-v3'
[17:20:39] [INFO] |-- model provider: 'nvidia'
[17:20:39] [INFO] |-- inference parameters:
[17:20:39] [INFO] | |-- generation_type=chat-completion
[17:20:39] [INFO] | |-- max_parallel_requests=4
[17:20:39] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[17:20:39] [INFO] | |-- temperature=1.00
[17:20:39] [INFO] | |-- top_p=1.00
[17:20:39] [INFO] | |-- max_tokens=2048
[17:20:39] [INFO] ⚡️ Async generation: 1 column(s) (column 'physician_notes'), 10 tasks across 1 row group(s)
[17:20:39] [INFO] 🚀 (1/1) Dispatching with 10 records
[17:20:39] [INFO] 🎲 (1/1) Preparing samplers to generate 10 records across 5 columns
[17:20:39] [INFO] 🧩 (1/1) Generating column `dob` from expression
[17:20:39] [INFO] 🧩 (1/1) Generating column `first_name` from expression
[17:20:39] [INFO] 🌱 (1/1) Sampling 10 records from seed dataset
[17:20:39] [INFO] 🧩 (1/1) Generating column `last_name` from expression
[17:20:39] [INFO] 🧩 (1/1) Generating column `physician` from expression
[17:20:39] [INFO] |-- seed dataset size: 820 records
[17:20:39] [INFO] |-- sampling strategy: ordered
[17:20:44] [INFO] 📊 Progress [5.3s]:
[17:20:44] [INFO] |-- 🚶 column 'physician_notes': 1/10 (10%) 0.2 rec/s
[17:20:52] [INFO] 📊 Progress [13.6s]:
[17:20:52] [INFO] |-- 🚶 column 'physician_notes': 2/10 (20%) 0.1 rec/s
[17:20:57] [INFO] 📊 Progress [18.8s]:
[17:20:57] [INFO] |-- 🐴 column 'physician_notes': 4/10 (40%) 0.2 rec/s
[17:21:06] [INFO] 📊 Progress [27.5s]:
[17:21:06] [INFO] |-- 🚗 column 'physician_notes': 7/10 (70%) 0.3 rec/s
[17:21:12] [INFO] 📊 Progress [33.2s]:
[17:21:12] [INFO] |-- ✈️ column 'physician_notes': 9/10 (90%) 0.3 rec/s
[17:21:21] [INFO] 📊 Progress [42.3s]:
[17:21:21] [INFO] |-- 🚀 column 'physician_notes': 10/10 (100%) 0.2 rec/s
[17:21:21] [INFO] ✅ Async generation complete [42.3s]: 10 ok, 0 failed across 1 column(s)
[17:21:21] [INFO] 📊 Model usage summary:
[17:21:21] [INFO] |-- model: nvidia/nemotron-3-nano-30b-a3b
[17:21:21] [INFO] |-- tokens: input=1612, output=8930, total=10542, tps=247
[17:21:21] [INFO] |-- requests: success=10, failed=0, total=10, rpm=14
[17:21:21] [INFO] 📐 Measuring dataset column statistics:
[17:21:21] [INFO] |-- 🎲 column: 'patient_sampler'
[17:21:21] [INFO] |-- 🎲 column: 'doctor_sampler'
[17:21:21] [INFO] |-- 🎲 column: 'patient_id'
[17:21:21] [INFO] |-- 🧩 column: 'first_name'
[17:21:21] [INFO] |-- 🧩 column: 'last_name'
[17:21:21] [INFO] |-- 🧩 column: 'dob'
[17:21:21] [INFO] |-- 🎲 column: 'symptom_onset_date'
[17:21:21] [INFO] |-- 🎲 column: 'date_of_visit'
[17:21:21] [INFO] |-- 🧩 column: 'physician'
[17:21:21] [INFO] |-- 📝 column: 'physician_notes'
| patient_sampler | doctor_sampler | patient_id | symptom_onset_date | date_of_visit | dob | first_name | last_name | physician | diagnosis | patient_summary | physician_notes | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | {'uuid': '9dbd3852-6eeb-468c-bb59-2ace84ec762a... | {'uuid': '12e2f35d-0a34-4d95-84c4-f7d12de78f5a... | PT-1F748CFF | 2024-11-28T00:00:00 | 2024-11-30T00:00:00 | 1984-03-24 | James | Moreno | Dr. Villanueva | cervical spondylosis | I've been having a lot of pain in my neck and ... | PROGRESS NOTE DATE: 2024-11-30 | TIME: 08:45... |
| 1 | {'uuid': 'de168cfe-b962-4045-9b6b-85138cbe266f... | {'uuid': '95e1b7cf-379f-4250-90fc-1737559cf2ac... | PT-9DE35EA7 | 2024-02-12T00:00:00 | 2024-03-03T00:00:00 | 1937-10-25 | Jonathan | King | Dr. Estrada | impetigo | I have a rash on my face that is getting worse... | [DATE] 2024-03-03 | [TIME] 09:15 AM [TYPE] O... |
| 2 | {'uuid': 'c3949282-ee30-47f6-92cd-7a9ba87fb1a1... | {'uuid': 'c0623f3b-0595-4eb0-8a49-7278bb33acdb... | PT-4E3950B4 | 2024-02-26T00:00:00 | 2024-03-19T00:00:00 | 1976-03-25 | Eric | Lin | Dr. Rose | urinary tract infection | I have been urinating blood. I sometimes feel ... | Patient: Eric Lin | DOB: N/A | APO: 50M | Chie... |
| 3 | {'uuid': '66c1818c-e133-4280-8860-3f30fc2a6f40... | {'uuid': '373dae0a-a699-46d1-972f-331e417aa14e... | PT-68E250AF | 2024-02-23T00:00:00 | 2024-03-06T00:00:00 | 1914-08-14 | Alexis | Jackson | Dr. Gonzalez | arthritis | I have been having trouble with my muscles and... | **Patient:** Alexis Jackson **DOB:** 06/12/1... |
| 4 | {'uuid': '09a6b61d-1137-4cda-be85-5817a8f8efe1... | {'uuid': 'eb66e0fd-ffc4-4048-bd19-43bb9ea7fd64... | PT-26E4F1C2 | 2024-08-19T00:00:00 | 2024-09-03T00:00:00 | 1921-06-30 | Stephanie | Stewart | Dr. Randolph | dengue | I have been feeling really sick. My body hurts... | Patient: Stephanie Stewart | DOB: 1994-05-12 |... |
──────────────────────────────────────── 🎨 Data Designer Dataset Profile ───────────────────────────────────────── Dataset Overview ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ number of records ┃ number of columns ┃ percent complete records ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ 10 │ 10 │ 100.0% │ └─────────────────────────────────┴─────────────────────────────────┴─────────────────────────────────────────────┘ 🎲 Sampler Columns ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ column name ┃ data type ┃ number unique values ┃ sampler type ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ patient_sampler │ dict │ 10 (100.0%) │ person_from_faker │ ├───────────────────────────────┼─────────────────┼──────────────────────────────────┼────────────────────────────┤ │ doctor_sampler │ dict │ 10 (100.0%) │ person_from_faker │ ├───────────────────────────────┼─────────────────┼──────────────────────────────────┼────────────────────────────┤ │ patient_id │ string │ 10 (100.0%) │ uuid │ ├───────────────────────────────┼─────────────────┼──────────────────────────────────┼────────────────────────────┤ │ symptom_onset_date │ string │ 10 (100.0%) │ datetime │ ├───────────────────────────────┼─────────────────┼──────────────────────────────────┼────────────────────────────┤ │ date_of_visit │ string │ 10 (100.0%) │ timedelta │ └───────────────────────────────┴─────────────────┴──────────────────────────────────┴────────────────────────────┘ 📝 LLM-Text Columns ┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ ┃ ┃ ┃ prompt tokens ┃ completion tokens ┃ ┃ column name ┃ data type ┃ number unique values ┃ per record ┃ per record ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩ │ physician_notes │ string │ 10 (100.0%) │ 130.0 +/- 5.2 │ 830.0 +/- 486.3 │ └───────────────────────┴───────────────┴────────────────────────────┴───────────────────┴────────────────────────┘ 🧩 Expression Columns ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ column name ┃ data type ┃ number unique values ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ first_name │ string │ 9 (90.0%) │ ├────────────────────────────────┼───────────────────────────┼────────────────────────────────────────────────────┤ │ last_name │ string │ 10 (100.0%) │ ├────────────────────────────────┼───────────────────────────┼────────────────────────────────────────────────────┤ │ dob │ string │ 10 (100.0%) │ ├────────────────────────────────┼───────────────────────────┼────────────────────────────────────────────────────┤ │ physician │ string │ 10 (100.0%) │ └────────────────────────────────┴───────────────────────────┴────────────────────────────────────────────────────┘ ╭────────────────────────────────────────────────── Table Notes ──────────────────────────────────────────────────╮ │ │ │ 1. All token statistics are based on a sample of max(1000, len(dataset)) records. │ │ 2. Tokens are calculated using tiktoken's cl100k_base tokenizer. │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────
⏭️ Next Steps
Check out the following notebook to learn more about: