FDE Cohort 1 Session 4: Synthetic Data for Prototyping (Without Touching Production Data)

AI FDE Certification synthetic data generation lesson

A recap of Session 4 of The AI FDE Certification, Cohort 1 (#FDE1) · By the AI Makerspace Curriculum Team

Last week, our analyst we refer to as Priya, decided to prototype with a local model. This week she needs data to build around, and she can’t touch the incident database until a request clears.

So she generates stand-in records. Meanwhile, Security is asking what leaked, Legal has ruled that held incidents stay out, and Procurement’s gateway rate-limits the run. Session 4 built the pipeline that survives all of that: a generator that turns five hand-written examples into a dataset, a de-duplicator and validator that decide what survives, a leak check, and a datasheet that says what the survivors can prove.

What We Mean by Synthetic Data Generation

Dr. Greg Loughnane started by narrowing a very broad topic. Synthetic data generation (SDG) means creating text, images, or video using simulation or generative AI. It helps when a use case is novel and data is scarce, when there’s a privacy issue, when you need to mimic the real world, or when you’re short on rare events such as defects. It reaches all the way up to physical AI, but we didn’t go down that rabbit hole. For this course, the definition is the creation of text using generative AI.

What matters in practice is that the samples are representative of what you’ll see in production: diverse enough, representative, and high quality.

Prototyping vs. Backtesting

Greg gave two ways to use synthetic data, and the difference shapes the whole week.

Prototyping isn’t quite “does your app work?” It’s “does your app run end to end?” If you wait for data to start building, you can’t test the data pipeline or how your infrastructure hooks up. Developers shouldn’t make people feel like they take too long, and there are fewer reasons than ever to.

Backtesting asks whether your system would have worked on the task the company already does, as the workflow produces outputs today with humans. Leaders want to see this. They’ve seen plenty of AI-generated front ends, and they always ask whether you ran it on last week’s data and reports. Backtesting is also stakeholder management: to get the data, you work with the person who did the task, and anyone who sees your system work on their own work will tell other people. It’s as close as you can get to an undeniable company truth.

Tyler Laughlin’s rule of thumb: all synthetic data is for prototyping until a human has signed off that it’s something the business will hold itself accountable to.

Priya’s Problem

Priya’s team writes summaries of company incidents, and the goal is to reduce the time that takes. Tyler walked through the golden examples she starts with, written to train the system “as it would fly” in production:

  • An average example with a clean input and the expected output.
  • A partial example, where the engineer on call didn’t enter enough data. The system shouldn’t guess at root causes.
  • A legal-hold example, where the system shouldn’t produce an output at all.

In production, a framework would handle this. Tyler showed the from-scratch version first so that “we can tell our bosses we actually understand what we’re doing, and not just leveraging a framework blindly.”

Building the Pipeline, Step by Step

1. Write representative golden examples. This is the most important part. Don’t write five crisp, well-written examples that all produce essentially the same thing once deduplicated. Cover average, great, and unsatisfactory cases, with input and output for each. This works for anything text-based, including flow diagrams broken into JSON.

2. Choose the axes to vary. Persona, length, difficulty, and writing quality. Difficulty includes routine, ambiguous, and failure states. If there’s a failure state you want the system to reject, generate examples that force it to, so denials don’t slip through in production. Even these four axes give 108 possible combinations from very little writing.

3. Generate. The prompt combines the golden examples, the axes for that run, and the rules, such as invent the names and don’t leak customer names. The default is 6 runs and you can raise it to 24. The generation goes through the LiteLLM gateway, not whichever provider is the default. The demo run produced 65 rows.

4. De-duplicate and validate. Check that the system didn’t generate the same output many times and call it 65 when it’s really 7. The notebook uses character n-gram Jaccard similarity and drops items that are more than 70% similar (the threshold is adjustable). In Tyler’s run, nothing was dropped. Then validate against the schema, because when you’re prototyping, the form of the data matters more than the content: the input and output formats have to match what production expects.

5. Check for leaks. Tyler called this the biggest landmine. An outward leak means production data or real names slipped into the synthetic data, which makes Legal and Security very unhappy. An inward leak is more insidious: if the data you train on and the data you test on are too similar, your backtest will say you passed with 100%, and you won’t find the mistake until production. The notebook includes both checks.

6. Write the datasheet. The generated data goes into a git-ignored data folder, so it isn’t shared. Only the datasheet is pushed to GitHub. It documents how the data was generated, how to validate it, what it can’t validate, and how it should and shouldn’t be used. Filling one out is part of the technical challenge.

Synthetic Data Pipeline Flow

Generating Production-Ready Datasets

STEP 01 Phase 1 · Foundation
Write Representative Golden Examples
This is the most important part. Don’t write five crisp, well-written examples that all produce essentially the same thing once deduplicated. Cover average, great, and unsatisfactory cases, with input and output for each. This works for anything text-based, including flow diagrams broken into JSON.
STEP 02 Phase 2 · Configuration
Choose the Axes to Vary
Persona, length, difficulty, and writing quality. Difficulty includes routine, ambiguous, and failure states. If there’s a failure state you want the system to reject, generate examples that force it to, so denials don’t slip through in production. Even these four axes give 108 possible combinations from very little writing.
STEP 03 Phase 3 · Execution
Generate
The prompt combines the golden examples, the axes for that run, and the rules, such as invent the names and don’t leak customer names. The default is 6 runs and you can raise it to 24. The generation goes through the LiteLLM gateway, not whichever provider is the default. The demo run produced 65 rows.
STEP 04 Phase 4 · Quality Control
De-duplicate and Validate
Check that the system didn’t generate the same output many times and call it 65 when it’s really 7. The notebook uses character n-gram Jaccard similarity and drops items that are more than 70% similar (the threshold is adjustable). In Tyler’s run, nothing was dropped. Then validate against the schema, because when you’re prototyping, the form of the data matters more than the content: the input and output formats have to match what production expects.
STEP 05 Phase 5 · Security Gate
Check for Leaks
Tyler called this the biggest landmine. An outward leak means production data or real names slipped into the synthetic data, which makes Legal and Security very unhappy. An inward leak is more insidious: if the data you train on and the data you test on are too similar, your backtest will say you passed with 100%, and you won’t find the mistake until production. The notebook includes both checks.
STEP 06 Phase 6 · Documentation
Write the Datasheet
The generated data goes into a git-ignored data folder, so it isn’t shared. Only the datasheet is pushed to GitHub. It documents how the data was generated, how to validate it, what it can’t validate, and how it should and shouldn’t be used. Filling one out is part of the technical challenge.
AI Makerspace · Data Engineering Workflow

The Same Thing in a Few Lines

With DeepEval, the same steps map to a few pieces of configuration: the seeds (your golden examples), a styling config (the equivalent of your axes, covering input format, expected output format, task, and scenario), and an evolution config. In the demo, the evolution config made 40% of the generated examples more constrained, 30% brought in hypothetical information, and 30% much broader. Then the synthesizer runs and saves.

One feature fits Priya’s Procurement problem: max concurrent, which limits how many generations run at once. The default is 100. If your production system has throttled throughput and you go over, calls start getting dropped, so you may want to lower it. In production you’d also expect batch jobs and more thorough leak scans.

Questions From the Room

  1. What if my inputs are PDFs? A PDF can’t be broken down this way without computer vision, but most PDFs are just a fancy text format. If you can convert them to text, you can chunk them (DeepEval can generate goldens from documents) or describe them by hand in your goldens. You may need a step to convert them first.
  2. Can I use production data? If you have enough, yes. If you don’t, use it to seed more synthetic data. In the chat, Phil Mui said production data is always better as long as your company is okay with you using it. Dr. Dragos Crintea suggested identifying PII and swapping in fake names consistently, so switching to real production data later changes nothing fundamental. A student added that he planned to update his golden values over time, though not the schema.
  3. How many data points do I need? Tyler’s minimum: one example of the general format you’ll see 80% or more of the time, one far more in-depth example, and each failure state you need. If you have 30 edge cases, the more you include, the better. But speed is king: get a rough end-to-end prototype running first, show it to people, and let their “but what about this case?” feedback give you the examples for the next round. When you have enough, ask a subject matter expert to review the synthetic data and sign off on what’s close enough to production to backtest on. The final stage uses that to show where it fails, so you can generate more examples there before moving to real data.
  4. Do I need an open-source model for this? No. Because the notebook runs through LiteLLM, you can point it at any model. Greg added that the open-source model matters for privacy, if you want to use real production data as goldens.

What’s Next

The technical challenge for the week is to apply this to your own use case: build the golden seeds, the axes, the generator, the filters, the leak checks, and the datasheet. Next up is retrieval.

This session recording is available here: https://youtu.be/VLNy42g2VJE

Follow along for more lessons, or join us for the next cohort in January.

Build. 🏗️ Ship. 🚢 Share. 🚀

Your Curriculum Crew at AI Makerspace

Sources and Links

Curriculum Team

Stay on Top of FDE Field Notes with AI Makerspace

Have a challenge or topic you'd like us to cover, a question about our AI Engineering Bootcamp, AI FDE Certification, or enterprise program sprints that can support you?

Our goal at AI Makerspace is to help AI engineers like you learn by building, and for teams to unlock their full potential and effectiveness.

Please schedule a call with us, or send us an email about what you're looking for to greg@aimakerspace.io.