Natural Language Relationship Definition

Experiment: trying to create a database schema using natural language

About This Project

Natural-Language-Relationship-Definition is an experiment investigating whether a large language model such as GPT can assist in designing a database schema from natural language descriptions. The project uses prompting combined with iterative refinement, where the schema is progressively adjusted based on feedback, to define tables and relationships. The author notes that the approach is exploratory and that more effective methods likely exist.

The project targets PostgreSQL as the database, with Laravel as the application framework and Eloquent as the object-relational mapper. The repository is written primarily in PHP and is licensed under CC BY 4.0, permitting reuse and adaptation with attribution.

The project may be of interest to developers exploring AI-assisted database design, Laravel practitioners looking at schema generation workflows, or researchers evaluating how language models handle structured data modeling tasks. It is best understood as a proof of concept rather than a production-ready tool.

Project Details

Categories

Explore More Projects