---
title: "Vibe Coding With AI to Generate Synthetic Data: Part 1"
description: "Asking Claude to generate synthetic Postgres seed data directly as SQL INSERT statements from a schema-only dump breaks down quickly: claude-3-5-sonnet lost referential integrity somewhere between 20 and 100 rows, and claude-3-7-sonnet often failed with 'model overloaded' errors."
url: "https://swe.quest/articles/vibe-coding-with-ai-to-generate-synthetic-data-part-1-c25e10ea6da5bea8"
canonical: "https://neon.com/blog/vibe-coding-with-ai-to-generate-synthetic-data-part-1"
source: "Neon"
published: "2025-03-13"
difficulty: "medium"
kind: "Research"
reading_minutes: 6
tags: ["ai-coding","llms","postgres","testing","ci-cd"]
---

# Vibe Coding With AI to Generate Synthetic Data: Part 1

A post on [Neon](https://swe.quest/sources/neon.md), published 2025-03-13, 6 min read, Research. Original: [https://neon.com/blog/vibe-coding-with-ai-to-generate-synthetic-data-part-1](https://neon.com/blog/vibe-coding-with-ai-to-generate-synthetic-data-part-1)

## Summary

Asking Claude to generate synthetic Postgres seed data directly as SQL INSERT statements from a schema-only dump breaks down quickly: claude-3-5-sonnet lost referential integrity somewhere between 20 and 100 rows, and claude-3-7-sonnet often failed with 'model overloaded' errors. A hybrid approach scaled much further. There the model emits JavaScript objects that use faker.js, and the script converts them into INSERTs, which passed at 3,000 rows before foreign-key errors appeared at 5,000. GPT-4.5 showed the same pattern. The pipeline runs in GitHub Actions for Neon dev/test branches, and the open question is whether better prompting costs less effort than maintaining seed scripts by hand.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)

## Prerequisites

- PostgreSQL schemas and foreign keys ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- GitHub Actions ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))
- LLM APIs ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

Neon, Anthropic Claude, faker.js, GitHub Actions, GPT-4.5, pg\_dump

## Related posts

- [Using an AI Assistant to Script Tools](https://swe.quest/articles/using-an-ai-assistant-to-script-tools-714a1e238504d1ea.md): Docker · 2024-10-07 · Medium · 5 min read · AI agents, Sandboxing & isolation, Containers, LLMs
  Instead of feeding large datasets like Pylint violation JSON through an LLM to transform them into SQL INSERT statements, the assistant can be prompted to write a JavaScript program that performs the transformation, then run it through a tool call.
- [Web-based AI SQL Playground and connecting to Postgres from the browser](https://swe.quest/articles/web-based-ai-sql-playground-and-connecting-to-postgres-from-the-browser-fa7f4eccd9643a37.md): Neon · 2023-05-19 · Medium · 5 min read · PostgreSQL, LLMs, Serverless, JavaScript
  Neon's Postgres AI Playground connects to a Postgres database directly from the browser and uses OpenAI's gpt-3.5-turbo to turn natural-language prompts into SQL.
- [postgres.new: In-browser Postgres with an AI interface](https://swe.quest/articles/postgres-new-in-browser-postgres-with-an-ai-interface-55583d716a34d5b8.md): Supabase · 2024-08-12 · Medium · 11 min read · PostgreSQL, WebAssembly, LLMs, AI agents, Browsers
  database.build (formerly postgres.new) runs unlimited Postgres databases entirely in the browser via PGlite, a WASM build of Postgres, paired with GPT-4o that has full autonomy over the disposable database.
- [Neon Twin: Automate Partial Data Dumps with Postgres and GitHub Actions](https://swe.quest/articles/neon-twin-automate-partial-data-dumps-with-postgres-and-github-actions-0e318b92e17657ec.md): Neon · 2025-02-10 · Medium · 7 min read · PostgreSQL, CI/CD, Testing
  A scheduled GitHub Actions workflow can keep a Neon "Twin" refreshed with a partial copy of a production Postgres database.
- [How to be AI-fancy](https://swe.quest/articles/how-to-be-ai-fancy-1617ad0989d06ba6.md): Neon · 2024-11-04 · Medium · 6 min read · LLMs, Product engineering, PostgreSQL, TypeScript
  Neon added three LLM-backed features to its SQL editor: natural-language SQL generation, automatic naming of history queries, and one-click error fixing.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
