Salik Hussain

Projects

Work with evidence

Each project states what it does, how it was measured, and where it falls short.

Projects

One flagship case study, then the repositories that back up my skills.

PAKGOV-RAG

In progress

A bilingual Urdu-English retrieval-augmented generation system for Pakistani government and legal documents: ingestion, chunking, multilingual embeddings, BM25 plus dense retrieval, reciprocal rank fusion, grounded generation with citations, and failure analysis.

  1. IngestPDFs to text with PyMuPDF
  2. Chunk6,711 chunks with page and article metadata
  3. RetrieveBM25, dense (FAISS) and hybrid RRF, k = 60
  4. AnswerCited answers, or "insufficient evidence"

Measured results

One 50-question set shared by every retriever: 15 English, 15 Urdu, 20 mixed-language. Values as reported in my 30 September 2026 write-up; the evaluation files are in the repository. The set is small, so treat the numbers as indicative, not as a benchmark.

Retrieval quality on the 50-question set
RetrieverR@1R@3R@5R@10MRR
BM250.3600.5800.6400.6800.469
Dense (multilingual MiniLM-L12-v2, 384-d)0.4400.6000.6200.7400.535
Hybrid RRF0.5000.6600.7400.8200.605
Hybrid R@5 gain over BM25
+0.100
Hybrid R@5 gain over dense
+0.120
Answers with citations
37 / 50
Declined: insufficient evidence
13 / 50

Earlier pilot (Version 0): a 20-question synthetic test scored Hit@1 20% and Hit@5 25%. I keep that result because it shows what the first version could not do.

Limits, stated plainly

  • The evaluation set is small, so one retriever beating another by a few points may not hold on a larger set.
  • The corpus covers a limited set of official documents, and the system gives no legal advice.
  • Next: article-aware chunking, reranking, larger natural-question sets, broader government coverage.
  • Python
  • sentence-transformers
  • FAISS
  • BM25
  • RRF
  • PyMuPDF
  • Streamlit

change-order-extractor

Turns messy construction change-order PDFs and text into validated JSON with per-field confidence scores, source evidence and a needs-review flag. Automated tests, documented failure modes.

  • Python
  • Pydantic
  • pytest
View source

ChaseLog

Full-stack SaaS for freelancers. Free and Pro plans are enforced in the database with row-level security and a trigger. Deployed live; 7 of 7 access-control checks passed.

  • Next.js
  • TypeScript
  • Supabase
View source

MS-AI-Admission-Eligibility-Engine

A reproducible engine that models program-specific admission requirements from official university sources and validates applicant inputs.

  • Python
View source

PakGov-Document-Search-CLI

Command-line keyword search across Pakistani government documents with contextual results, search history and error handling.

  • Python
  • CLI
View source

Urdu-English-Word-Frequency-Analyzer

Bilingual text analyzer for English and Roman Urdu with word-frequency analysis, UTF-8 support and CSV output.

  • Python
  • NLP
View source

python-fundamentals-and-practice

Daily Python practice, algorithms and small projects, kept as a public record of progress.

  • Python
View source

All repositories on GitHub