Senior AI Developer · Lahore, Pakistan

I take AI systems from mathematical modelling to production.

Six years across generative AI, agentic systems, computer vision and optimization.

Currently at Consultancy Outfit, building RAG and multi-agent products for UK legal, fintech and mortgage clients. Before that I led a real-time voice AI platform, fine-tuned an 8B LLM for text-to-SQL, and was sole architect of the solar-site optimization engine behind Terrasmart's PeakYield.

950 msp95 voice-agent latency after ElevenLabs migration
35% → 88%text-to-SQL accuracy, fine-tuned Llama 3.1 8B
13agents in the FCA compliance system designed for CossmoneyX
90%tooth-numbering accuracy on dental X-rays

Projects

Products I have built or contributed to, with links to the live sites.

UK legal · RAG

Loophole Larry

An AI case solver for UK law. A user submits their case and the system generates a legal strategy. I own the data pipeline, knowledge-base indexing and retrieval optimization. The hard part: a single query is a case file running to hundreds of pages, not a short prompt, which rules out standard RAG retrieval patterns. I also built the PII anonymization and redaction layer with Presidio for UK GDPR.

LangGraphRAGPresidioGDPR
Consultancy Outfit · 2026loopholelarry.co.uk ↗
Fintech · Multi-agent compliance

CossmoneyX & CurrencyGram

CossmoneyX is a B2B, non-custodial crypto OTC platform; CurrencyGram is its sister UK e-money institution dealing in GBP, USD and EUR. For both I designed and pitched to the CEO a 13-agent compliance system that scrapes the FCA's published registration requirements, indexes them alongside company policies in a vector store, and runs 11 parallel analyst agents (AML, sanctions, Travel Rule, financial promotions…) plus a coordinator and reviewer to produce a decision-ready readiness report.

AgentsVector DBFCA13 agents
Consultancy Outfit · 2026currencygram.com ↗
Proptech · Agent design

Property Peak

A UK mortgage platform connecting clients, brokers, estate agents and solicitors. I scoped and prioritised nine AI agents (case tracking, summarisation, handoff checks, ticket triage, onboarding, commission updates) across six user roles, each with role-based data access and GDPR constraints, and am building them as LangGraph agents behind FastAPI with platform data exposed via MCP.

LangGraphFastAPIMCPMongoDB
Consultancy Outfit · 2026propertypeak.io ↗
Solar energy · Optimization

Terrasmart PeakYield

Tracker software that squeezes more energy from ground-mount solar sites. I was sole developer and architect of the optimization engine: a 3D model of site layout, sun position over discrete time steps and inter-row shading, with panel tilt angles optimized by pattern search, particle swarm and genetic algorithms. Vectorized, parallelized and ported hot paths to C++ to bring runtime down.

MATLABC++Global optimizationParallel computing
Zigron for Terrasmart (US) · 2020–24terrasmart.com ↗
Healthtech · Computer vision

DentaSmart

An AI dentist in your pocket: upload X-rays or photos and get educational insight before a visit. As the initial sole ML developer I proved the viability of AI for tooth numbering, diagnosis and bone-loss estimation from radiographs, annotated several hundred images, ran R&D on DETR and CLAHE/wavelet preprocessing for low-contrast X-rays, and presented the results to academics at University College Dublin.

PyTorchDETROpenCV90% accuracy
Zigron · 2020–24dentasmart.ai ↗
Voice AI · Real-time agents

Conversational video/voice agent

Led the design and build of a real-time conversational agent with Speechmatics and Deepgram speech-to-text, RAG for grounded answers and LangGraph for multi-step dialogue. Migrated from a Pipecat telephony prototype to the ElevenLabs API as the product moved to video, and swapped a custom web-search tool for OpenAI's built-in search to cut latency. Deployed and monitored on AWS.

ElevenLabsDeepgramLangGraphAWS950 ms p95
Devsinc · 2025–26Internal client project

Experience

Jun 2026 – PresentLahore

Senior AI Developer

Consultancy Outfit (CO-UK)

  • Loophole Larry – RAG pipeline for a UK-law case solver: ingestion, indexing and retrieval optimization for queries that are whole case files hundreds of pages long. PII anonymization and redaction with Microsoft Presidio for UK GDPR.
  • CossmoneyX / CurrencyGram – Designed and pitched to the CEO a 13-agent FCA compliance system: 11 parallel analyst agents, a coordinator and a reviewer producing a readiness report with strengths, gaps and improvements.
  • Property Peak – Scoped nine AI agents across six user roles with role-based access and GDPR constraints; building them as LangGraph agents behind FastAPI with platform data via MCP.
Oct 2025 – Apr 2026Lahore

Associate Team Lead – AI

Devsinc

  • Voice AI – Led a real-time conversational video/voice agent with Speechmatics and Deepgram STT, RAG and LangGraph agents for multi-step dialogue.
  • Latency – Migrated from a Pipecat telephony prototype to the ElevenLabs API, bringing end-to-end latency to a consistent 950 ms p95; replaced a custom web-search tool with OpenAI's built-in web search.
  • Deployment – Deployed on AWS with production monitoring.
  • Mentoring – Trained junior and intern data scientists on LLM development, code review and deployment.
Aug 2024 – Oct 2025Lahore

Data Scientist

A1 Strategez

  • Text-to-SQL – Fine-tuned Llama 3.1 8B so business users could query inventory data in plain English, raising accuracy on the client's dataset from 35% to 88% with a small, cheaply hosted model.
  • ChippyGPT – Co-developed and deployed the backend for a ChatGPT-style assistant customised for a client's electronic-component data: proprietary prompts, their own database, and control over model selection and output format.
  • Schema unification – Text-processing pipeline that unified heterogeneous inventory schemas and cut LLM token use by routing simple cases through classical NLP.
Apr 2020 – Jun 2024Lahore

Math / Algorithms Expert

Zigron

Solar power generation & optimization – Terrasmart (US)

  • Sole developer and architect of the end-to-end engine; reported directly to the Director.
  • 3D model of site layout, sun position over discrete time steps and inter-row shading; optimized panel tilt angles for total daily energy output.
  • Constrained optimization with MATLAB Global Optimization Toolbox solvers (pattern search, particle swarm, genetic algorithm), tuned for faster convergence.
  • Cut runtime by vectorizing, parallelizing with the Parallel Computing Toolbox and porting hot paths to C++.

AI dentistry – automated analysis of dental X-rays

  • Initial sole ML developer; demonstrated viability of AI for tooth numbering, diagnosis and bone-loss estimation.
  • Annotated several hundred dental images; 90% accuracy on tooth numbering.
  • R&D on DETR and on CLAHE / wavelet preprocessing for low-contrast X-rays.
  • Deployed on a local server; presented capabilities and limitations to academics at University College Dublin.

Skills

LLMs & agents
LangGraphLangChainCrewAIMCPRAG over long documentsLLM fine-tuning (Llama)OpenAI APIElevenLabsPipecatDeepgramSpeechmaticsAWS BedrockVertex AIAzure AI
ML & computer vision
PyTorchTensorFlowscikit-learnOpenCVTransformers (DETR)NumPypandasSeaborn
Optimization
Constrained & global optimizationPattern searchParticle swarmGenetic algorithmsConvex optimizationVectorizationParallel computing
Cloud & MLOps
AWS (SageMaker, Lambda, Glue, Bedrock)GCP Vertex AIDockerCI/CD (GitLab)GitFastAPIStreamlitApache SparkVector databasesPresidio
Languages
PythonMATLABC++SQL

Education

2015 · 2019

LUMS

Lahore University of Management Sciences

  • MS Electrical Engineering, 2019 · ML, Deep Learning, Convex Optimisation, Information Theory
  • BS Electrical Engineering, 2015

Contact

Open to senior AI engineering roles and consulting work. Email is the fastest way to reach me.