Skip to main content
ahad.

RAG pipelines that don't hallucinate. Agent graphs that don't drift.

Ahad Khan — AI Engineer at Capgemini. I build stateful multi-agent graphs with LangGraph, protocol-aware tool calling via MCP, and hybrid retrieval pipelines that process 5,000+ enterprise documents without touching a cloud API.

Ahad Ahmad Khan — AI Engineer
ahad@capgemini-edge ~ %
Quick Commands:
%ahad rag eval
[RETRIEVAL PIPELINE] Initiating multi-channel search across 5,000+ indexed enterprise docs...
[CHANNEL 1: BM25] Found 12 keyword candidates. Top match: KB89412 (BM25 score: 18.42)
[CHANNEL 2: Dense Vector] Found 15 embedding candidates (cosine similarity: 0.741)
[RRF FUSION] Applying Reciprocal Rank Fusion: RRF_score(d) = ∑ 1 / (60 + r_m(d))
✔ Top RRF Rank #1: 'kb89412-wmi-error-fix.md' (RRF Score: 0.03201)
{
  "precision@k": 0.942,
  "recall_boost": "+23% vs pure vector",
  "latency": {
    "bm25_ms": 12,
    "embedding_ms": 24,
    "rrf_fusion_ms": 4,
    "total_latency_ms": 40
  }
}
%
0+Docs Processed
0%+Retrieval Hit Rate
0%Hallucination Reduction
0%Air-Gapped Privacy

Core Technologies

Python
FastAPI
MCP
RAG
LLMs
Azure
LangGraph
Docker
Tool Calling
SQL / DB
Data Pipelines

Currently Building

Featured Project

IT Access Provisioning Automation

LangGraph StateGraph pipeline that replaced a manual IT access ticket queue at Capgemini. Dual-mode classifier (LLM + Regex fallback), human-in-the-loop approval via interrupt/resume, real-time SSE streaming, and PostgresSaver checkpointing for full audit trails.

LangGraphFastAPIPostgreSQLMCPSSE
Live Agent Graph Simulation

LangGraph StateGraph Execution Pipeline

Interactive demonstration of state persistence, dual-mode classification, and Human-in-the-Loop interrupt/resume.

Node 1

Classify Request

Dual-mode parser (Regex 2ms fallback or LLM classifier).

Idle...
Node 2

Confidence Check

Evaluates security scope against IAM policy matrix.

Idle...
Node 3

HITL Approval Gate

PostgresSaver checkpoint. State suspended.

Idle...
Node 4

MCP Provision Node

Executes API payload via Model Context Protocol.

Idle...