Available for project work AI Engineer · Python Developer · Islamabad, Pakistan

I build AI systems
that do real work.

I am Ali Zain. I build retrieval systems, document pipelines, and vision models that go into production and stay there. Every number on this page was measured after handover, on a client's own data.

Ali Zain, AI engineer
  • 70% manual review removed
  • 89% detection accuracy mAP@50
  • 60% faster document processing
  • 8 documented case studies

Tools I ship with

  • Python
  • PyTorch
  • OpenAI
  • Anthropic
  • LangChain
  • Ollama
  • LangGraph
  • FastAPI
  • YOLOv8
  • OpenCV
  • Docker
  • AWS
  • Fly.io
  • PostgreSQL
  • MongoDB
  • Weaviate
  • FAISS
  • Scikit-learn
01 What I do

The model, the pipeline, and everything in between.

//001

LLM apps, RAG and document intelligence

Chat and search that answer from your own documents, with retrieval and validation tuned until the system stops guessing. The same pipeline turns invoices, statements, and contracts into structured records your software can read.

//002

Agentic workflows

LangGraph agents that plan, call tools, and finish multi step jobs. Each one ships with schema validation, retries, and a human review path, because an agent without guardrails becomes your problem later.

//003

Python backends with FastAPI

The unglamorous half, done properly. FastAPI services, Docker images, and AWS pipelines that keep running after the handover call ends.

//004

Machine learning model training

Supervised models, NLP, and computer vision trained on your own data. When prompting a hosted model will not hold, I label, train, and tune one that will.

Live model output student_behavior_analysis.mp4

Attention, per student, per frame.

A classroom camera, forty students, and a model that boxes every face, fits a mesh to it, and decides whether that student is following the lesson. Nobody is counted twice, the state holds across frames, and the teacher gets a session summary instead of a hunch.

The same detection stack, pointed at a different problem, tracks players on an indoor squash court.

model
YOLOv8 + FaceMesh
tracks
Stable ID per student
states
Attentive · Distracted · Asleep
output
Per frame counts, session summary
03 Results

Numbers that hold up in production.

Three figures from three shipped systems. Each was measured on the client's own data after handover, not on a benchmark split in a notebook.

results.json
invoice_accuracy
98%
processing_time
−60%
manual_review
−70%
deployment
Docker · AWS · Fly.io
Shipped & monitored in production
  1. 70% manual review removed document pipelines in legal and finance //001
  2. 89% detection and classification accuracy YOLOv8 construction safety model, 89 mAP@50 //002
  3. 60% faster document processing invoices, statements, and timesheets //003

How I work

  1. 01

    I start on your data, not a demo.

    Week one runs against your real files, including the ugly ones you were going to clean up first.

  2. 02

    If prompting will not hold, I train.

    Some problems are model problems. I would rather label data for two weeks than ship a prompt that fails at 3am.

  3. 03

    You get the runbook, not just the repo.

    Docker image, environment notes, and the failure modes written down, so your team owns it after I leave.

  4. 04

    Numbers get measured after handover.

    A benchmark split in a notebook proves nothing. Every figure here came off a system already in production.

Ali Zain

I like AI that does its job quietly and keeps doing it after I leave.

Most of my work lands in legal, real estate, and finance, on the problems where documents pile up and people burn hours retyping them. When the input is images or messy text instead of documents, I train the model rather than prompt one.

More about Ali Zain
Based
Islamabad, Pakistan
Also known as
methezain
Domains
Legal · Real estate · Finance · eCommerce
Works with
Founders, product teams, agencies
Engagements
Freelance · Contract

Have a workflow worth automating?

Tell me what is slow, manual, or breaking at scale. I will tell you what AI can or cannot do realistically about it.

I read every message and usually reply within a day