Agentic RAG & LLM Systems
Hybrid retrieval pipelines, multi-pass reasoning, prompt orchestration and provider-agnostic LLM gateways that deliver citation-backed answers and cut hallucinations.
Qdrant · Cohere · OpenRouter
Machine Learning Engineer · Islamabad, Pakistan
I build intelligent systems and chase the frontier where science meets technology — currently engineering agentic RAG platforms, multimodal AI and computer-vision systems at Levitate Data.
I. About
I'm a Machine Learning Engineer based in Islamabad, Pakistan, and a Computer Science graduate of FAST (NUCES). My work lives at the intersection of applied AI engineering and hands-on research — I love taking an idea from a paper or a blank repository all the way to systems that real businesses depend on.
At Levitate Data I work in the core AI engineering team behind Thalamus, an enterprise-grade agentic RAG platform, and I led the end-to-end architecture of Aletheia, a multimodal analysis engine that serves as the AI brain behind Cognition Legal. Alongside this, I dig into deep-learning research in medical imaging — rebuilding novel architectures from scratch, training them, and improving on them until they rival far heavier models.
What really drives me is curiosity. I find it astonishing that, by decoding the fundamental forces of nature, we eventually understood enough to build artificial intelligence itself — drawing inspiration from the architecture of the human brain. Chasing that thread, from first principles to working systems, is what keeps me building every day.
II. What I do
Hybrid retrieval pipelines, multi-pass reasoning, prompt orchestration and provider-agnostic LLM gateways that deliver citation-backed answers and cut hallucinations.
Qdrant · Cohere · OpenRouter
Video, audio and image understanding — object detection, tracking, OCR and face recognition — wired into scalable, event-driven processing pipelines.
YOLO · OpenCV · Gemini
Novel, parameter-efficient architectures — KANs, spectral operators, knowledge distillation — benchmarked rigorously on real medical-imaging datasets.
PyTorch · TensorFlow · KAN · FNO
From React frontends to FastAPI backends and Infrastructure-as-Code on AWS — shipping multi-tenant, fault-tolerant platforms with CI/CD and observability.
React · FastAPI · AWS · Docker
III. Experience
Sept 2024 — Present
Levitate Data · Islamabad, PK
Part of the core AI engineering team behind two flagship enterprise products — Thalamus (agentic RAG) and Aletheia (multimodal analysis) — for heavily regulated industries; I led the end-to-end architecture of Aletheia.
Python · FastAPI · Qdrant · Celery · AWS · Docker
Aug 2025 — Sept 2025
Amanat · Islamabad, PK
Jan 2025 — Apr 2025
MRD Society · Islamabad, PK
June 2024 — Nov 2024
Intrace (APIGen Inc) · Boulder, Colorado
June 2024 — July 2024
Merik Solutions · Islamabad, PK
June 2023 — July 2023
DataInsight Research Lab · Islamabad, PK
IV. Featured Work
Levitate Data · Core AI Engineering Team
Agentic RAG-as-a-Service — “the end of endless searching.”
An enterprise-grade, multi-tenant platform that turns complex, unstructured data into reliable, auditable answers for regulated industries. I architected the multimodal ingestion engine, the hybrid retrieval pipeline and the provider-agnostic LLM gateway powering it.
Qdrant · Cohere · OpenRouter · Celery · BYOK
Visit ThalamusLevitate Data · Architect & Lead
Multimodal AI & behavioural-intelligence engine.
A multi-tenant platform for deep, automated processing of video, audio and text — decoding facial expression, tone and language. It powers context-aware chat and deposition analysis for Cognition Legal, coupling Google Gemini's multimodal models with the Thalamus RAG engine.
FastAPI · Celery · Gemini · ECS · Docker
See it in Cognition LegalFlagship Project
Real-time littering detection & offender identification.
An end-to-end system that detects littering in real time, tracks offenders across frames and identifies them — built on a 220K-image dataset, with automatic LLM-generated incident reports and a full React + FastAPI + PostgreSQL stack.
YOLOv12x · SAHI · DeepSORT · TrOCR · FaceNet · Qwen · Ollama
View the repositoryV. Research & Development
A body of work on parameter-efficient architectures for multi-modal medical imaging — implementing, improving and inventing methods that match heavy baselines at a fraction of the cost.
Kolmogorov–Arnold Networks × Fourier Neural Operators
A novel architecture using custom ChebyshevConv2D layers (learnable degree-3 polynomials instead of linear weights) and a Global Spectral Gating mechanism built on 2D FFTs with learnable complex frequency filters — for global spatial routing across X-ray, MRI and endoscopy.
Multi-modal medical classification
A 1.9M-parameter MobileNetV2 student with Coordinate Attention, distilled from an EfficientNetV2B0 + ResNet50V2 ensemble using entropy-based dynamic weighting and MixUp.
Lightweight knowledge distillation · 14 conditions
A compressed CNN distilled from a MobileNetV1 teacher via composite hard + temperature-scaled KL-divergence loss, profiled rigorously for real-world deployment.
Two-stage segmentation & meta-learning
A 7.7M-parameter U-Net for lung-field segmentation feeding a Prototypical Network (MobileNetV2) for 2-way, 5-shot tuberculosis classification from scarce data.
Hybrid net · evolutionary kernel search
A hybrid MobileNet + Inception + ConvLSTM2D classifier across 9 medical conditions, with a novel “Chain Foraging Cyclone Aging” evolutionary algorithm for dynamic kernel-size optimization.
VI. Projects
A catalogue of my open-source AI work — generative models, computer vision, NLP, classical ML and classic-AI search — from my GitHub.
VII. Toolkit
VIII. Beyond the Code
A Champion Debater at the World Scholar's Cup — 1st place in both Debates & Team — alongside Champion Scholar and multiple wins for Excellence in Writing & Debate. Across the rounds I earned 14 gold and 7 silver medals, and was elected to represent Pakistan at the Global Rounds.
I train at the gym every day and play football whenever I can. Off the pitch I'm an avid spectator — the NFL, golf, polo, basketball and plenty more.
Away from the screen I'm a musician — I play the bass and guitar, a different (and very welcome) kind of pattern recognition.
IX. Correspondence
Have a problem worth solving with AI — or just want to talk shop about RAG, vision or research? My inbox is open.