Open-Source Lego AI Generator Launched
A new tool uses AI to create LEGO models, offering a unique blend of technology and creativity.
Introduction to Lego AI Generator
A new open-source tool, ldraw-nova, has been developed to generate LEGO models using AI. The tool, built with Astra and Opus 5.5, is powered by the Jev System One AI model.
The generator allows users to input a model idea and guide an AI agent to build it, resulting in an LDraw LEGO© model. The process involves using a semantic search tool called jev-rerank, which helps agents find suitable parts and example models.
Development Process
ldraw-nova is designed to run as a web app using Docker. Users need Git and Docker to operate it. The tooling is built to run dockerized, and the Docker image requires about 5 GB of disk space to build.
The app can be accessed through a computer's IP address, allowing other devices on the network to reach it by the computer's IP instead of localhost.
AI and LDraw
The creator of ldraw-nova aimed to make agentic Large Language Models (LLMs) capable of designing buildable, physical things. They experimented with ChatGPT and Claude to make them code in LDraw, an assembly language for 3D CAD models.
The initial tests showed that agents could perform well in geometry math, which is typically challenging for LLMs. This led to the development of a python-based tooling with the required primitives and verbs to teach agents to build models.
Functionality of ldraw-nova
ldraw-nova provides tools, examples, and instructions for agents to design models with real LDraw parts. The process involves the agent learning by example, starting with prototyping and altering pre-existing example models.
The agent's model production process is likened to a compiler, generating models through a series of steps that involve part placement and geometric calculations.
Challenges and Future Work
As a first release, ldraw-nova has several areas that require improvement. The creator acknowledges the need for further development to enhance the tool's capabilities.
The developer expresses gratitude to the many LDraw creators and contributors who have donated their work to the public domain and open-source community.
“Well, to summarize: I did this in order to get agentic LLMs capable of designing buildable, physical things!”
— Creator of ldraw-nova