Project 07 · Synthetic Data / AI Engineering

Public GitHub repository

Cold-Start Data Synthesizer

A public project that generates synthetic documents from a supplied template using a local Llama 3 model through Ollama, validates generated records, and writes JSONL output.

Source repository
Template · validation · JSONL
01

Purpose

Training and testing AI systems in specialized domains can require domain-shaped documents while real records may be private or regulated. This tool explores generating synthetic examples locally from a template.

02

Technical approach

The documented pipeline accepts a text template, extracts structure and fields, uses Llama 3 through Ollama to produce variations, validates records against a Pydantic schema, and saves accepted results as JSONL.

03

Architecture

Template input → structure extraction → local LLM generation → Pydantic validation → JSONL output. A Streamlit interface provides controls and generation monitoring.

Synthetic document generation

  1. Text template
  2. Local LLM generation
  3. Pydantic validation
  4. JSONL output
04

Implemented features

  • Text-template input for synthetic document generation.
  • Local Llama 3 generation through Ollama.
  • Pydantic schema validation with invalid-output retry or skip behavior.
  • JSONL output for downstream AI data workflows.
  • Streamlit interface for template upload, target count, and generation status.
05

Engineering decisions

  • 01Uses local model inference rather than a paid external generation API.
  • 02Validates generated records against a schema before including them in output.
  • 03Keeps generated examples synthetic rather than using real private documents.
06

Evaluation / results

The repository describes the workflow and intended use but does not publish a quantitative quality benchmark.

07

Technology stack

  • Python
  • Ollama
  • Llama 3
  • Pydantic
  • Streamlit
  • JSONL