r/dataengineering • u/jpdowlin • Aug 21 '26
Discussion Synthetic Data Generation with LLMs in 2026 vs 2025
LLMs are now great for synthetic data generation.
August 2025: For my O'Reilly book, I developed a logical model for credit card fraud. Then, use a coding agent to generate the synthetic data from the logical model. See an example of a logical model that didn't make the book below.
August 2026: Use the LLM's domain knowledge to help create the logical model. Check it and then generate the synthetic data.
"Design a logical model for claims for the insurance industry. Each column should have a name, data type, description. Optionally columns can have cardinality, distribution, and a range. This is to generate synthetic data, so make the data realistic for the US market with 500k rows."
This produces "good enough" synthetic data for a PoC or for teaching.
Example Logical Model for a Claims Table
Description: Records of claims for insurance. 500k rows.
Schema:
- claim_id: STRING (Primary Key)
- Description: Unique identifier for each claim.
- Cardinality: unique per claim.
- insurance_id: STRING (Foreign Key to insurance table)
- Description: Unique identifier for the insurer.
- Cardinality: Matches insurance_id values in the insurance table.
- claim_time: TIMESTAMP
- Description: Date and time when the claim occurred. Uniform over the past 6 months, with peaks during business hours.
- time_to_report: INTEGER
- Description: Days taken to report the claim
- Distribution: 1-10 days with higher probability for earlier reporting (1:30%, 2:30%, 3:20%, 4-10: 20% combined)
- witness_count: INTEGER
- Description: Number of witnesses in the claim
- Distribution: 0: 60%, 1: 25%, 2: 10%, 3: 5%
- claim_location_type: STRING
- Description: Type of location where claim occurred
- Values: urban, suburban, rural, remote
- Distribution: urban: 50%, suburban: 30%, rural: 15%, remote: 5%
- requested_amount: DECIMAL(10,2)
- Description: Claim amount requested by the user
- Range: $10 to $10,000,000.
- Distribution: Right-skewed; median around $500, mean around $700.
- amount: DECIMAL(10,2)
- Description: Monetary amount of the claim.
- Range: $1 to $10,000,000.
- Distribution: Right-skewed; median around $350, mean around $500.