Azure Databricks batch ETL and LLM data-extraction platform

Objective

A data-platform engagement needed a multi-pipeline batch ETL system on Azure Databricks that could ingest heterogeneous sources, enrich geospatial data, and extract structured fields from unstructured text with LLMs—while improving performance, cost, and data quality.

Solution

We designed sequential PySpark pipelines integrating Delta Lake, JSON, CSV, GeoJSON, and PostgreSQL, plus geospatial enrichment. An end-to-end OpenAI GPT extraction pipeline turns unstructured text into structured JSON at scale, followed by aggregation, dimension-table modelling, and statistical analysis. Performance work fixed cluster storage saturation, cut transactional-database traffic with single-fetch-and-cache strategies, and replaced full table scans with control-table incremental processing. The ETL system was migrated to a new repository with improved schemas. Testing and promotion use pytest with mock data and Azure DevOps YAML CI/CD, with multi-level validation, anomaly detection, and automated alerting.

Results

The platform runs ongoing batch ETL and LLM extraction with significantly lower run times, better cost control, automated environment promotion, and proactive data-quality monitoring with clear business-impact reporting for leadership.

Technologies used

Azure Databricks
PySpark
Delta Lake
PostgreSQL
OpenAI GPT
pytest
Azure DevOps
ADLS Gen2
GeoPandas
Pandas
NumPy