2.1 DigiLawyerFounding Data Engineer
2024 – now
A legal research product built on Pakistan's laws and court judgments. I owned the data and search layer, from scraping to the queries behind user search, and led a small data team of one engineer and four interns. Users grew from about 1,000 to 16,000 while people were searching what I built.
- Judgment pipeline. Scrapes judgment PDFs from Pakistan's courts and other law sites, about 15 sources, then uses LLMs to extract metadata and write structured headnotes. It has processed around 400,000 judgments and takes in roughly 10,000 new ones a month.
- Pakistan's statutes, section by section. I designed the schema for acts, chapters and sections, built the Flask entry app, and ran a three-person team digitising about 200 sections a day. Section-level statute lookups by our AI went to roughly 80% accurate retrieval.
- Hybrid search on PostgreSQL. Replaced Turso + Qdrant + MeiliSearch with one PostgreSQL running pgvector and ParadeDB's pg_search, compiled into a custom Docker image. Full-text and semantic search now sit on the same rows, so a query no longer hops between three databases.
- Case law beyond Pakistan. Cleaned and loaded about 600,000 UK case law records, 30,000 Supreme Court of India judgments merged from two sources, and 3,000 DIFC rules.
- MyContract. My final-year project at UET: an AI contract drafting and compliance-check platform on Next.js, Python, Airflow and PostgreSQL. It was later merged into DigiLawyer.
