AI-powered legislative intelligence platform for Zimbabwe. Track parliamentary bills, search 10+ years of Veritas publications, and ask AI about legislation.
# Legiwatch
AI-powered legislative intelligence platform for Zimbabwe. Track parliamentary bills through every stage, search 10+ years of legislative publications, and ask AI questions about any legislation.
Built on the Veritas Bill Watch archive — Zimbabwe's most trusted source of legislative information.
## What It Does
- **Bill Tracker** — Follow 232+ bills through parliament (First Reading → Committee Stage → Assent)
- **Full-Text Search** — Search 1,491 publications across 11 categories with weighted relevance ranking
- **AI Chat** — Ask questions about Zimbabwe legislation and get sourced answers with citations
- **Browse** — Filter publications by category: Bill Watch, Court Watch, Constitution Watch, Election Watch, and more
- **Public API** — Structured legislative data accessible via REST endpoints
## Data Coverage
| Category | Count |
|----------|-------|
| Bill Watch | 597 |
| Bill Watch Committees | 176 |
| Committees Series | 170 |
| Election Watch | 102 |
| Constitution Watch | 86 |
| Court Watch | 83 |
| Commissions Watch | 81 |
| Special Days | 65 |
| Economic Governance | 28 |
**Date range:** April 2015 – March 2026 (10+ years)
## Architecture
```
legiwatch/
├── pipeline/ # Python: mbox → structured data → embeddings
├── supabase/ # PostgreSQL schema with full-text search + pgvector
└── web/ # Next.js 16 web application
```
**Stack:** Next.js 16 · TypeScript · Tailwind CSS · Supabase (PostgreSQL + pgvector) · Claude API · OpenAI Embeddings
## Quick Start
### 1. Data Pipeline
```bash
pip install -r pipeline/requirements.txt
python pipeline/run_pipeline.py
```
Parses the Veritas Bill Watch mbox archive into structured JSONL files:
- `emails.jsonl` — 1,491 parsed publications
- `enriched_emails.jsonl` — with extracted bill references and committees
- `bills.jsonl` — 232 deduplicated bills with stage timelines
- `chunks.jsonl` — 2,694 RAG-ready text chunks
### 2. Database
Create a Supabase project and run the …