Project 07 · Synthetic Data / AI Engineering
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 repositoryPurpose
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.
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.
Architecture
Template input → structure extraction → local LLM generation → Pydantic validation → JSONL output. A Streamlit interface provides controls and generation monitoring.
Synthetic document generation
- Text template
- Local LLM generation
- Pydantic validation
- JSONL output
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.
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.
Evaluation / results
The repository describes the workflow and intended use but does not publish a quantitative quality benchmark.
Technology stack
- Python
- Ollama
- Llama 3
- Pydantic
- Streamlit
- JSONL