Processing Pipeline Live

Decode Building
Regulations with AI

Automatically extract, structure, and semantically search through the full UK Approved Documents — from PDF to vector embeddings in seconds.

See the Pipeline ⟨/⟩ View Source
0
Pages Processed
0
Approved Docs
0
Sections Indexed
0
% Open Source

Everything you need to
understand building regs

From PDF parsing to semantic search, the pipeline handles the heavy lifting so you can focus on building.

📄

PDF Processing

Split master PDF into individual pages, extract text with layout preservation, and generate structured metadata.

🔍

Semantic Search

Vector embeddings enable natural-language queries across all approved documents. Find exactly what you need.

🧠

AI Analysis

LLM-powered section classification, cross-reference detection, and compliance mapping for each clause.

🗄️

PostgreSQL + pgvector

Production-grade database with vector similarity search, full-text indexing, and relational integrity.

🔄

FastAPI Backend

RESTful API for querying processed data, triggering re-processing, and integrating with other tools.

📊

Diagram Extraction

Automatically detect and extract diagrams, figures, and tables from approved documents with SVG export.

The processing pipeline

Six stages from raw PDF to searchable knowledge base.

📥

Document Ingestion

Download and validate the merged Approved Documents PDF with SHA-256 integrity check.

metadata.json
✂️

PDF Page Splitting

Split the master PDF into 1,541 individual page files for parallel processing.

pdf_pages/
🔎

Text & Structure Extraction

Extract sections, diagrams, appendices, and cross-references from each page.

page_extractor
💾

Database Seeding

Store structured data in PostgreSQL with full relational integrity.

seeder.py
🧮

Vector Embedding

Generate embeddings for all sections using an OpenAI-compatible LLM endpoint.

vector_db_manager
🚀

API & Search Interface

Query processed data via the FastAPI backend or the web interface.

localhost:8000

Ready to get started?

Clone the repo, run ./setup.sh dev, and you're live in minutes.