Рисунок 3
062 Data modeling conceptual, logical and physical model
6 February 2025
Рисунок 5
065 Center of Excellence (CoE) for Data Modeling
8 February 2025

064 Creating a database using LLM

Having a data model and description of entities through parameters, we are ready to create databases – storages, where we will store information coming after the structuring stage on specific processes.

Let’s try to create an example of a simple but functional database with a minimum amount of code using SQLite using the Python programming language as an example. Relational databases were discussed in detail in the chapter “Structured relational databases and SQL query language “.

SQLite is a lightweight, open source, embeddable, cross-platform database, supporting core SQL features. SQLite is widely used in CAD (BIM), ERP, EPM and is present in almost every smartphone.

Let’s ask the LLM model to create a small SQLlite database for us based on the physical model created above (Fig. 4.3-4) for the FEM (structural impact) and CPM (assembly schedule) systems.

  • Send a text request to LLM chat (CHATGP, LlaMa, Mistral DeepSeek, Grok, Claude, QWEN or any other):

    Create SQLlite databases for the Constructive Impact and Installation Schedule systems from the Fig. in the attachment (paste the schema as an image in the chat (Fig.‎ 4.3-4)⏎

  • LLM’s response:
image129
Fig. 4.3-8 The generated code creates databases and tables from the uploaded image, into which we can now load data.

.

.

This code for creating a database can be executed in the Python environment with support for SQLite, which is usually included in the standard Python environment. It can be run on any local Python machine capable of running scripts and creating files. Once run and executed, this code will create a file on your hard disk – a SQLite database named construction.db (similar to an Excel file with worksheets) that will contain the “Structural Impact” and “Installation Schedule” tables.

After creating a new construction.db database to these tables, data can be added to these tables via SQL _queries or import, which will allow you to start creating automatic data processing later. Data can be imported into the SQLite database from CSV files, Excel spreadsheets or exported from other databases and storages via API.

To establish sustainable data modeling and effective database management processes, a company needs a clearly defined strategy as well as coordination between technical and business teams. With disparate projects and multiple data sources, it is often difficult to ensure consistency, standardization and quality control at all levels. One key solution may be to create a dedicated Data Modeling Center of Excellence (COE) within the company.

.

Leave a Reply

Change language

Post's Highlights

Stay updated: news and insights



We’re Here to Help

Fresh solutions are released through our social channels

UNLOCK THE POWER OF DATA
 IN CONSTRUCTION

Dive into the world of data-driven construction with this accessible guide, perfect for professionals and novices alike.
From the basics of data management to cutting-edge trends in digital transformation, this book
will be your comprehensive guide to using data in the construction industry.

Related posts 

Focus Areas

Search

Search
Sorry, no articles found.

✕

Don't miss the new solutions

 

 

✕
✕

Linux

macOS

Looking for the Linux or MAC version? Send us a quick message using the button below, and we’ll guide you through the process!

✕

📥 Download OnePager

Welcome to DataDrivenConstruction—where data meets innovation in the construction industry. Our One-Pager offers a concise overview of how our data-driven solutions can transform your projects, enhance efficiency, and drive sustainable growth. 

✕

🚀 Welcome to the future of data in construction!

You're taking your first step into the world of open data, working with normalized, structured data—the foundation of data analytics and modern automation tools.

By downloading, you agree to the DataDrivenConstruction terms of use 

Stay ahead with the latest updates on converters, tools, AI, LLM
and data analytics in construction — Subscribe now!

✕

🚀 Welcome to the future of data in construction!

You're taking your first step into the world of open data, working with normalized, structured data—the foundation of data analytics and modern automation tools.

By downloading, you agree to the DataDrivenConstruction terms of use 

Stay ahead with the latest updates on converters, tools, AI, LLM
and data analytics in construction — Subscribe now!

✕

🚀 Welcome to the future of data in construction!

You're taking your first step into the world of open data, working with normalized, structured data—the foundation of data analytics and modern automation tools.

By downloading, you agree to the DataDrivenConstruction terms of use 

Stay ahead with the latest updates on converters, tools, AI, LLM
and data analytics in construction — Subscribe now!

✕

🚀 Welcome to the future of data in construction!

You're taking your first step into the world of open data, working with normalized, structured data—the foundation of data analytics and modern automation tools.

By downloading, you agree to the DataDrivenConstruction terms of use 

Stay ahead with the latest updates on converters, tools, AI, LLM
and data analytics in construction — Subscribe now!

✕

🚀 Welcome to the future of data in construction!

You're taking your first step into the world of open data, working with normalized, structured data—the foundation of data analytics and modern automation tools.

By downloading, you agree to the DDC terms of use 

✕

🚀 Welcome to the future of data in construction!

You're taking your first step into the world of open data, working with normalized, structured data—the foundation of data analytics and modern automation tools.

By downloading, you agree to the DataDrivenConstruction terms of use 

Stay ahead with the latest updates on converters, tools, AI, LLM
and data analytics in construction — Subscribe now!

✕
DataDrivenConstruction offers workshops tested and practiced on global leaders in the construction industry to help your team navigate and leverage the power of data and artificial intelligence in your company's decision making.

Reserve your spot now to rethink your
approach to decision making!

✕

 

🚀 Welcome to the future of data in construction!

By downloading, you agree to the DataDrivenConstruction terms of use 

Stay ahead with the latest updates on converters, tools, AI, LLM
and data analytics in construction — Subscribe now!

✕
Have a question or need more information? Reach out to us directly!
Schedule a time to discuss your needs with our team.
Tailored sessions to help your team grow — let's plan together!
✕
Have you attended one of our workshops, read our book, or used our solutions? Share your thoughts with us!
Name
✕
Data Maturity Diagnostics

🧰 Data-Driven Readiness Check

This short assessment will help you identify your company's data management pain points and offer solutions to improve project efficiency. It takes only 1–2 minutes to complete and you will receive personalized recommendations tailored to your needs.

✕

Clean & Organized Data

Theoretical Chapters:

Practical Chapters:

What You'll Find on
DDC Solutions:

  • CAD/BIM to spreadsheet/database converters (Revit, AutoCAD, IFC, Microstation)
  • Ready-to-deploy n8n workflows for construction processes
  • ETL pipelines for data synchronization between systems
  • Customizable Python scripts for repetitive tasks
  • Intelligent data validation and error detection
  • Real-time dashboard connectors
  • Automated reporting systems
✕

Connect Everything

Theoretical Chapters:

Practical Chapters:

What You'll Find on
DDC Solutions:

  • CAD/BIM to spreadsheet/database converters (Revit, AutoCAD, IFC, Microstation)
  • Ready-to-deploy n8n workflows for construction processes
  • ETL pipelines for data synchronization between systems
  • Customizable Python scripts for repetitive tasks
  • Intelligent data validation and error detection
  • Real-time dashboard connectors
  • Automated reporting systems
✕

Add AI & LLM Brain

Theoretical Chapters:

Practical Chapters:

What You'll Find on
DDC Solutions:

  • CAD/BIM to spreadsheet/database converters (Revit, AutoCAD, IFC, Microstation)
  • Ready-to-deploy n8n workflows for construction processes
  • ETL pipelines for data synchronization between systems
  • Customizable Python scripts for repetitive tasks
  • Intelligent data validation and error detection
  • Real-time dashboard connectors
  • Automated reporting systems
064 Creating a database using LLM
This website uses cookies to improve your experience. By using this website you agree to our Data Protection Policy.
Read more
×