Portrait of Raoof Khan

4 live demos · open to opportunities

Hi, I'm Raoof.

AI Engineer

I engineer AI systems that read, retrieve, and reason — RAG assistants, multi-agent pipelines, and deep learning models — built on 6+ years of AI/ML engineering and applied research.

raoof.py
1# who am I? 2 3class RaoofKhan: 4 role = "AI Engineer — Agentic Systems & Applied ML" 5 experience = "6+ years — AI/ML engineering, deep learning, applied research" 6 mentored = "1,000+ hours training 300+ AI/ML learners" 7 core = ["Python", "SQL", "Pandas", "NumPy", "scikit-learn"] 8 ml_cv = ["PyTorch", "TensorFlow", "OpenCV", "CNN Architectures", "Autoencoders"] 9 ensemble = ["XGBoost", "Random Forest", "CatBoost"] 10 genai = ["OpenAI", "Groq", "HuggingFace", "Ollama", "OpenRouter", "LangChain"] 11 fine_tuning = ["LoRA", "QLoRA", "Quantization"] 12 status = "open_to_opportunities" 13 14 def engineer(self, problem: str) -> str: 15 # retrieve → reason → evaluate → ship 16 context = self.retrieve(problem) 17 solution = self.reason(context) 18 verified = self.evaluate(solution) 19 return f"{problem} → {verified} ✓"

About

Systems that
reason.

Not prompt wrappers — retrieval that grounds, agents that coordinate, and evaluation that catches failures before users do.

Most "AI systems" are a chat window bolted onto an API call — I build the layer underneath it: pipelines that verify their sources before answering, agents that hand off work instead of guessing alone, and evaluation suites that catch a wrong answer before a user ever sees it. I build for domains where a wrong answer carries real cost, which shapes how I approach every layer: retrieval, reasoning, and the guardrails around both.

I work across the full generative AI stack rather than betting on one provider: prompting and evaluating frontier models (OpenAI), running fast open-weight inference (Groq, Ollama, OpenRouter, Hugging Face), and fine-tuning open-source models myself with LoRA and QLoRA when a frontier API isn't the right fit — quantizing and optimizing the result for real deployment constraints rather than leaving it as a notebook demo.

My background bridges applied signal research and deployment-grade deep learning — from designing full data-collection and preprocessing pipelines for physiological signal research, to building multi-task computer vision models for diagnostic imaging, to optimizing lightweight models for edge deployment. Years spent training and mentoring AI/ML learners across deep learning, computer vision, and NLP sharpened how I think about systems: I build for legibility, evaluability, and honesty about limits — not just accuracy on a benchmark.

Beyond engineering, I am deeply passionate about investing in the next generation of builders, operating on the belief that we are merely caretakers passing the torch to upcoming talent. When I am offline, I am usually watching football, immersed in single-player campaigns on PC and PS5, or chasing the perfect winter — ideally spending chilly evenings under a low golden sun in a lush green farm.

6+ yrsAI/ML engineering & research
1,000+hours mentoring AI builders
97.37%peak model accuracy shipped
6LLM & inference platforms used in production
“I build for domains where a wrong answer carries real cost.”
Raoof Khan — on designing for guardrails first

Stack

Not a buzzword
list.

The full toolkit, grouped by where it sits in a system — not one flat wall of keywords.

Generative AI & LLM Platforms

  • OpenAI
  • Groq
  • Hugging Face
  • Ollama
  • OpenRouter
  • LangChain

Agents & Orchestration

  • OpenAI Agents SDK
  • Multi-agent design
  • Tool calling
  • Structured outputs (Pydantic)
  • Human-in-the-loop
  • Session memory

Fine-Tuning & Optimization

  • LoRA
  • QLoRA
  • Quantization
  • Frontier model fine-tuning (OpenAI)
  • Open-source fine-tuning

Retrieval & Vector Stores

  • pgvector
  • ChromaDB
  • Supabase
  • Hybrid search (BM25 + vector)
  • Reciprocal rank fusion
  • LLM reranking

Prototyping & Interfaces

  • Gradio
  • Streamlit
  • Embeddable Shadow-DOM widgets

Backend & Serverless

  • FastAPI
  • Upstash Redis
  • Telegram Bot API
  • Webhooks
  • Stateless serverless design

Deep Learning & Computer Vision

  • CNNs
  • YOLOv5
  • ResNet
  • DenseNet
  • VGG16
  • EfficientNet
  • MobileNet
  • Autoencoders
  • Object detection
  • Image segmentation
  • Attention mechanisms
  • Model optimization

ML Frameworks & Libraries

  • PyTorch
  • TensorFlow / Keras
  • scikit-learn
  • NumPy
  • Pandas

Ensemble & Classical ML

  • XGBoost
  • Random Forest
  • CatBoost
  • K-Means

Programming & Data

  • Python
  • SQL
  • Data preprocessing
  • Feature engineering
  • Model evaluation

Evaluation & Guardrails

  • LLM-as-judge
  • MRR / nDCG
  • Deterministic safety pre-scans
  • Prompt-level constraint design
  • Signed sessions & rate limiting
  • Prompt-injection hardening

Tools & Workflow

  • Git / GitHub
  • Jupyter / Colab
  • Optuna
  • Keras Tuner

Deployment

  • Vercel (serverless)
  • Streamlit Community Cloud
  • Apify (managed scraping infra)

Leadership & Collaboration

  • Technical training
  • Cross-functional communication
  • Project coordination

Work

Always
building.

Ten shipped projects — from a hybrid-search RAG system over Indian GST law to diagnostic imaging models handed off to a healthcare research client. Every card opens into the full technical breakdown.

Agents · Live

Digital Twin

The chat in the corner of this page: an agent that answers as me, negotiates meeting times, and checks with me on Telegram before anything is booked.

3 agentsTelegram approvalsServer-side memory

  • OpenAI Agents SDK
  • FastAPI
  • Upstash Redis
  • Telegram
  • Vercel
Full breakdownHide breakdown

A visitor-facing agent grounded in my resume and in this site's own content, built on the OpenAI Agents SDK. Three agents split the work: the Twin talks to visitors and can use a small set of tools; a Triage agent reads the conversation and decides whether it is worth pinging me; an owner-desk agent interprets my plain-language Telegram replies. Agents judge, and deterministic code performs every side effect, so the model can never book, message or reveal anything by itself. When a visitor wants to meet, the twin collects their free slots (or asks for mine), I answer on Telegram in natural language, and my reply is pushed back into their chat, all in IST. The backend is FastAPI on Vercel, which is stateless, so history, meeting state and the visitor outbox live in Upstash Redis, and Telegram arrives through a webhook. Server-issued signed session tokens, per-IP and per-session rate limits, turn and length caps, and server-side history keep the public surface small and the conversation hard to jailbreak. The chat itself is a dependency-free Shadow-DOM widget that inherits this site's theme.

Retrieval · Live

GST Export Assistant

Hybrid-search RAG over Indian GST law, where every answer cites the statute it came from — and refuses to state a tax liability as fact.

50-q eval setMRR · nDCG + LLM-judge100% answers cited

  • LangChain
  • Rank fusion
  • pgvector
  • Vercel
Full breakdownHide breakdown

A retrieval-augmented Q&A system answering export-of-services, LUT filing, and place-of-supply questions from Indian GST law — grounded in primary source documents (the IGST Act, CGST Rules, and CBIC circulars), not general model knowledge. The retrieval pipeline combines hybrid search (vector + keyword, merged via reciprocal rank fusion) with LLM reranking and query rewriting to handle vague or Hindi/Hinglish input, and every answer cites its source document and section. The prompt is explicitly constrained against stating exact tax liabilities as fact — a deliberate guardrail for a domain where confident wrong answers carry real cost. Evaluated against a 50-question hand-built test set spanning direct-fact, cross-document, procedural, and deliberately out-of-scope questions, using retrieval metrics (MRR, nDCG) alongside LLM-as-judge scoring. Deployed serverless on Vercel with Supabase/pgvector for storage.

Agents · Live

VibeStay

An Airbnb recommendation engine that ranks listings against a stated vibe instead of fixed filters — streaming back a structured verdict, not a list.

5 ranked verdictsSpend-capped per searchGPT-OSS-120B on Groq

  • Groq
  • Apify actor
  • Streaming
  • Streamlit
Full breakdownHide breakdown

Listings are pulled through a managed Apify scraping actor and normalized into a consistent schema — descriptions, amenities, host details, reviews, images — then pre-ranked with guest-favorite, superhost, and review-volume signals before an LLM (Groq, GPT-OSS-120B) compares the strongest candidates and streams back a structured recommendation: best overall, runner-up, hidden gem, best value, and listings to avoid. Deployed publicly on Streamlit Community Cloud with a hard per-search spend cap enforced at the scraping platform level and a shared daily search limit, so the live demo runs safely against personal API keys.

LLM Ops · Live

Support Reply Drafter

Turns a raw customer email into internal triage plus several ready-to-send replies — with escalation that never depends on the model alone.

2-layer escalation3 reply tones0 promises made

  • Groq
  • Classification
  • Guardrails
  • Streamlit
Full breakdownHide breakdown

Every incoming email is first classified into sentiment, urgency, issue category, and an internal-only suggested fix — distinct from the customer-facing reply, so the operational note ("add seat labels to overhead bins") never leaks into what the customer actually receives. Escalation runs on two independent layers rather than trusting the model alone: a deterministic keyword pre-scan for safety-critical language that must never depend on model judgment, plus the model's own classification flag for subtler cases like legal threats. Replies are then drafted across multiple selectable tones (apologetic, firm-but-fair, technical) from the same triage context, so an agent can compare approaches side by side rather than getting one fixed voice. The drafting prompt is explicitly constrained against promising specific refunds, compensation, or timelines the email didn't ask for — a deliberate guardrail against a support tool accidentally making commitments on the company's behalf. Built with Streamlit and Groq, deployed on Streamlit Community Cloud.

Computer Vision · Client

Medical Imaging Diagnostic Pipeline

Hybrid deep learning system that classifies radiographs by anatomical region and flags abnormality — built to generalise across joint and limb types, not one region.

97.37% anatomical89% abnormality0.94 ROC-AUC16 variants

  • PyTorch
  • OpenCV
  • SE blocks
  • Focal loss
  • Augmentation
Full breakdownHide breakdown

The pipeline classifies input radiographs into the correct anatomical category and separately predicts normal vs. abnormal, using a dedicated preprocessing stage with specialized feature-extraction modules feeding into convolutional and Squeeze-and-Excitation blocks. Iterated through roughly 16 model variants to get there — working through focal loss, label smoothing, and both positive and negative augmentation strategies, including region-specific tuning, to handle class imbalance and subtle abnormality signals. Final model reached 97.37% accuracy on anatomical classification and 89% on abnormality detection, with ROC-AUC 0.94, sensitivity 0.86, specificity 0.89, and Cohen's kappa 0.77. Delivered as a complete model and architecture handoff to a healthcare research client.

Research · Dissertation

Edge-Optimized Age Estimation

An MSc dissertation applying deep learning — transfer learning on MobileNet — to lightweight age estimation on resource-constrained edge devices, judged on a full metric suite, not a single headline number.

88.88% binary74.33% six-group19,370 images

  • MobileNet
  • Transfer learning
  • Stratified K-fold
  • L2
Full breakdownHide breakdown

MSc dissertation using transfer learning on MobileNet against the Adience dataset (19,370 images) to investigate lightweight age estimation for edge deployment. Exploratory analysis surfaced key dataset issues — age-group imbalance, gender variance, and labeling anomalies — that shaped the preprocessing and modeling approach. Iteratively diagnosed and corrected underfitting and overfitting across model variants using Augmentor-based data augmentation, Stratified K-fold cross-validation, and L2 regularization, converging on a final architecture that reached 88.88% accuracy on binary (minor/adult) classification and 74.33% on six-group age classification — evaluated against a full metric suite (ROC-AUC, not accuracy alone) to give a rounded view of performance rather than a single headline number.

Research · Marík Institute

BCI Research Pipeline

End-to-end brain–computer interface pipeline: a randomised motor-imagery cueing interface, synchronised biosignal capture, and artifact removal.

5 imagery classes~135–142 Hz syncASR + ICA cleaning

  • EEG / EOG / EMG
  • ASR
  • ICA
  • Streamlit
Full breakdownHide breakdown

Built during my role as Senior Trainer (Cognitive Science) at the Marík Institute of Computing, Artificial Intelligence, Robotics, and Cybernetics. Designed a Python/Streamlit cueing interface presenting randomized motor-imagery trials (left, right, forward, backward, rest) to build a balanced dataset, recorded synchronized EEG/EOG/EMG via a Kaptics acquisition kit at ~135–142 Hz, and cleaned the signal with ASR (artifact subspace reconstruction) and ICA (independent component analysis). Also built real-time demos integrating BCI output with live cognitive experiments.

Agents · Open source

Agentic Research Orchestrator Swarm

Async multi-agent research pipeline — two researchers work in parallel, a manager agent synthesises their findings into one report.

Llama 3.1 via Groqasyncio orchestration

  • Llama 3.1
  • asyncio
  • Pydantic
Full breakdownHide breakdown

A modular, asynchronous multi-agent system for automated research and executive summarization using Llama 3.1 via the Groq API — built with asyncio orchestration and Pydantic-validated data passed between agents so each hand-off stays typed and predictable. Two researchers gather sources in parallel while a manager agent reconciles overlaps and synthesizes everything into a single polished Markdown report.

Computer Vision · Client

Ticket Verification Detection

A deep learning object detection system for a travel operator that automated ticket verification and materially reduced ticket evasion.

95%+ accuracyRevenue protection win

  • PyTorch
  • OpenCV
  • Object detection
Full breakdownHide breakdown

Delivered as an independent freelance engagement: a PyTorch-based object detection pipeline trained to flag ticket status in real time, reaching 95%+ accuracy and translating directly into fewer evaded fares — a clear revenue-protection outcome, not just a model demo.

Applied ML · Client

Segmentation & Churn Prediction

Customer segmentation and churn pipeline for a travel/hospitality client, powering targeted campaigns against clearly separated cohorts.

+15% repeat bookingsK-Means + XGBoost

  • K-Means
  • XGBoost
Full breakdownHide breakdown

For a travel/hospitality client, K-Means clustering split the customer base into distinct behavioral cohorts, while an XGBoost model flagged churn risk within each segment — letting marketing target the right offer to the right cohort instead of running one blanket campaign, and driving a 15% increase in repeat bookings.

Build log

Shipped,
in order.

A running record of what actually went out the door.

Oct 27

Built my digital twin, the chat in the corner of this page: an Agents SDK system on FastAPI and Upstash Redis that answers as me, negotiates meeting times, and asks me on Telegram before anything is booked.new

Sep 2

Migrated VibeStay's scraper to a managed Apify actor, shipped a custom dark theme with public-safe rate limiting, and deployed live at vibestay.streamlit.app.

Aug 30

Shipped GST Export Assistant — a hybrid-search RAG system over Indian GST export/LUT law, deployed at gst.raoofkhan.com.

Aug 17

Refined professional biography, updated portfolio visual assets, and prepared key projects section.

Aug 13

Site scaffolded, domain connected, placeholder live.

↳ New entries get added here as I build. Check back.

Contact

Let's build
something real.

Open to full-time AI engineering roles, consulting engagements, and conversations with teams serious about retrieval, agents, and evaluation done right.