Whitby-Bylaws-AI

Netlify Status

A demo project for querying Whitby bylaws using an AI backend (Flask).

Project Structure

Whitby-Bylaws-AI/
├── backend/
│   ├── app/
│   │   ├── static/
│   │   │   ├── public_demo.html
│   │   │   ├── public_demo.css
│   │   │   ├── public_demo.js
│   │   ├── templates/
│   │   ├── __init__.py
│   │   ├── routes.py
│   ├── main.py
│   ├── requirements.txt
│   ├── Dockerfile
│   ├── .env
├── database/
│   ├── bylaws.json
│   ├── init_chroma.py
│   ├── parse_bylaws.py
├── .gitignore
├── README.md
├── build-backend.sh
├── docker-compose.yml

Quick Start

  1. Build and run with Docker Compose:
    ./build-backend.sh
    

    or (on Windows)

    docker-compose up --build
    
  2. Access the demo:

Folders

Notes

Whitby-Bylaws-AI

A demo project for querying Whitby bylaws using an AI backend and vector search.

Project Structure

Quick Start

  1. Install dependencies:
    pip install -r requirements.txt
    
  2. Parse bylaws PDFs to JSON:
    python database/parse_bylaws.py
    
  3. Generate embeddings and store in ChromaDB:
    python database/init_chroma.py
    
  4. Run the backend (Flask):
    cd backend
    python main.py
    

Requirements

Notes