Skip to content

Sahil Kumar buildsAI systems thatcite their sources.

Recent Data Science graduate (BS, FAST NUCES, June 2026) focused on retrieval augmented generation. Open to AI Engineer and Forward Deployed Engineer roles.

3.84 CGPA and a three time Gold Medalist. My live RAG assistant cites its sources and found a correct page in its top five results for 97% of 38 held out questions.

Sahil Kumar, smiling, wearing glasses and a white shirt with arms crossed

Education

2022 to June 2026

BS Data Science

FAST (NUCES) University

CGPA 3.84 out of 4.00

Key courses

  • Machine Learning
  • Deep Learning
  • Agentic AI
  • MLOps
  • Computer Networks
  • Big Data Analytics

Achievements

  • Gold Medalist, three times

Experience

Jan 2024 to Jun 2026

Lab demonstrator (DSA) and teaching assistant (Deep Learning, PDC)

FAST NUCES

  • Ran Data Structures and Algorithms labs on complexity analysis, trees, graphs and dynamic programming, with hands on implementation.
  • As Deep Learning TA, mentored students on CNNs, RNNs and Transformers in PyTorch, covering training, regularization and tuning, and graded projects.
  • As PDC TA, taught multithreading, MPI, OpenMP and CUDA, and reviewed assignments on distributed training and scaling compute heavy workloads.
  • PyTorch
  • CUDA
  • MPI
  • OpenMP
  • DSA

Projects

14 done, 2 in progress and 11 planned. Each one states the problem, what I built and the measured result. Planned projects say how they will be measured.

  • DoneRAG

    ragx: a docs assistant with citations, guardrails, evals and live monitoring

    The problem
    Documentation chatbots answer with confidence when the documents do not cover the question, and teams cannot tell whether a change made them better or worse. ragx is the larger successor to the FastAPI Docs Assistant below.
    What I built
    A FastAPI service over the FastAPI and Pydantic docs: hybrid search, answers with citations that open the source passage, refusals for off topic questions, a router across free model providers with caching, guardrails for prompt injection and personal data, memory with consent, voice and screenshot input, role based access, and Prometheus and Grafana monitoring. It ships as a web app that installs like an app, in a container on a free server.
    Result
    • Hybrid search found a correct page in the top five for 97% of 38 held out questions, against 89% for keyword search and 89% for embeddings alone.
    • Answers scored 0.93 faithfulness and 0.97 citation accuracy on 43 questions, judged by a model from a different family. A reranker and a self checking variant scored no better, so they are not in the product.
    • Blocked 92% of 24 attack prompts with no false refusals on 17 benign look alikes. 0 of 7 personal data cases leaked in an end to end test, and a control with the guards off leaked all 7.
    • Limits: most labels were written by an AI assistant and not reviewed by a human, free tiers are slow at the 95th percentile, and context recall is not measured.
    • Python
    • FastAPI
    • BM25
    • FAISS
    • Groq
    • Gemini
    • Prometheus
    • Grafana
    • Docker
  • DoneRAG

    PolicyLens: document search over scans, tables and Urdu, with access control

    The problem
    Company document assistants often work on clean text, but real policy libraries hold scans, tables, mixed Urdu and English, and files that only some staff may see. A wrong answer or a leaked finance document is worse than no answer.
    What I built
    A FastAPI service that reads digital and scanned PDFs, Word, Excel, HTML and Urdu text, repairs OCR spacing, searches with BM25 and embeddings under a role filter applied inside the vector store, cites the page and section, and refuses when it cannot find the answer. It comes with 23 tests, CI and a generator that writes documents and questions with known answers.
    Result
    • Recall@5 on 76 held out questions was 100% with a reranker, 98.7% for keyword search, 96.1% for hybrid search and 92.1% for embeddings alone. The reranker takes about 10 seconds per query on a CPU, so it is off by default.
    • With the shipped refusal threshold, 81.6% of answers were correct end to end. Table questions scored 62.5% because 37.5% were refused: one similarity cutoff cannot separate a near miss from an answer.
    • With no access filter, 46 of 46 restricted questions pulled in a restricted chunk. With the filter, 0, and 0 leaks across 824 role and question pairs. A deliberately buggy cache leaked 45 of 46, which shows the test can fail.
    • OCR on 10 scanned pages had a word error rate of 42.4% on clean scans and 51.7% on hard ones, and text layer parsers recovered nothing.
    • With Llama 3.1 8B answering and Mistral Small 3.2 judging, 98.4% of answered questions were faithful to the retrieved text and 97.9% of unanswerable or restricted questions were refused. 0 restricted values appeared in 30 restricted questions. It cost about $0.013 per 1,000 answers.
    • The judge scored 88.9% correct against 98.4% by string match. In the four disagreements I read, the judge was wrong, so I do not fully trust it.
    • Limits: the 19 labels on public regulator PDFs were written by an AI assistant and are not reviewed by a human, no human has checked the judge, and there is no hosted demo, only a silent captioned video, because the app needs about 1 GiB of memory and free hosts give less. The container image builds and serves requests, and its first request took about 53 seconds in a container test because it loads the models.
    • Python
    • FastAPI
    • Qdrant
    • BM25
    • RapidOCR
    • pytest
  • DoneLLM applications

    AgentDesk: a support agent that changes real state, with its rules in code

    The problem
    An agent that can issue refunds has to survive a customer asking about someone else's order, text inside the data that tries to give it orders, and a model that is simply wrong. Most agent demos only read data and never face this.
    What I built
    A FastAPI and LangGraph support agent that looks up orders, issues refunds, changes addresses, opens tickets and answers policy questions. A plain Python guardrail, outside the graph, checks ownership, the amount limit, order state, double refunds and a one time confirmation token tied to the exact arguments and sent only to the customer. Refunds above the limit wait for an admin. Every call is written to an audit table. It comes with tests, CI and an independent judge that decides what counts as an unsafe action.
    Result
    • With a fully compromised model proposing the attacks, 0 of 60 attack cases caused an unsafe action, and 0 of 22 did when the attack came as a user message. The judge does not import the guardrail code.
    • The test can fail. Switching off one rule at a time caused between 2 and 12 unsafe cases out of 60, and 52 out of 60 with every rule off.
    • The agent I measured is a hand written rule baseline, not an LLM. On 90 conversations it succeeded 72.2% of the time: 48 of 50 on phrasings the rules were written against and 17 of 40 on new ones. 23 of the 25 failures were new phrasings, and none was unsafe.
    • Dropping the confirmation step saves 0.35 turns per resolved conversation (1.35 to 1.00) with no change in task success. Every tool call had an audit row (100%).
    • Limits: LLM task success, a comparison of two models and cost per conversation are not run because there is no API key. The 60 attacks were written by the same person who wrote the guardrail, and the Docker image is not built yet.
    • Python
    • LangGraph
    • FastAPI
    • SQLite
    • Pydantic
    • pytest
  • DoneRAG

    FastAPI Docs Assistant: RAG that cites sources and says when it does not know

    The problem
    Developers lose time searching documentation, and a basic RAG chatbot answers with confidence even when the documents do not cover the question.
    What I built
    Hybrid retrieval (BM25 keyword search plus dense embeddings, fused by reciprocal rank), answers with citations, a relevance guardrail that refuses off topic questions, a prompt injection check, a rate limited FastAPI service, a chat UI, 17 automated tests and a Dockerfile.
    Result
    • Found a correct documentation page in the top five results for all 30 test questions (hit@5 1.00, mean reciprocal rank 0.89), against 0.90 and 0.77 for keyword search alone.
    • Measured an off the shelf reranker, saw it lower results (0.82), and left it out.
    • Refused all 8 off topic test questions and wrongly refused none of the 30 real ones. The cutoff was tuned on the same 38 questions, so it may not carry over to other documents.
    • Retrieval on CPU takes about 9 ms at the median (13 ms at the 95th percentile) for hybrid search. The reranker takes about 1.9 s (3.7 s at the 95th percentile), which is another reason it stays off.
    • Python
    • FastAPI
    • BM25
    • Dense embeddings
    • Groq
    • Docker
  • DoneRAG

    Multimodal RAG agent with Corrective RAG and guardrails

    The problem
    Real questions span PDFs, slides, spreadsheets, scanned pages and images, and depending on one model provider is a single point of failure.
    What I built
    A LangGraph supervisor and sub agent system that ingests documents and images (with OCR for scans), retrieves with hybrid chunking, reciprocal rank fusion and a reranker, and corrects weak retrievals with Corrective RAG. Every model call goes through a LiteLLM gateway to OpenAI, Anthropic and xAI, with DeepEval guardrails and LangSmith tracing.
    Result
    • Works end to end across three model providers behind one gateway, with guardrails and tracing on every turn.
    • Offline unit tests cover retrieval fusion, hashing, metadata and parsing helpers. No retrieval benchmark has been run yet.
    • LangGraph
    • LiteLLM
    • Pinecone
    • DeepEval
    • LangSmith
    • OCR
  • DoneLLM fine tuning

    Cross tokenizer knowledge distillation: GPT-2 from Mistral 7B

    The problem
    Distilling a large model into a small one needs the same tokens on both sides, but GPT-2 and Mistral use different tokenizers, so there is no one to one mapping.
    What I built
    A distillation pipeline that matches the 21,366 tokens the two vocabularies share, aligns teacher and student positions by character boundary, and trains with a KL term plus cross entropy. The 4 bit teacher and the student train on a single free Colab T4 GPU, and the model is published on Hugging Face.
    Result
    • 99% of student positions received a teacher target, and on aligned positions the teacher's top one accuracy was 36.7% against 33.6% for the untrained student, which confirms the alignment is correct.
    • Test perplexity on WikiText 2 went from 28.98 to 29.64, so this run did not improve the student. The write up says so plainly and lists next steps.
    • PyTorch
    • Hugging Face
    • bitsandbytes
    • Colab
  • DoneLLM applications

    Multi provider chatbot with input and output guardrails

    The problem
    A chatbot must switch between model providers and stop jailbreaks, prompt injection, toxic replies and data leaks without trusting any one model.
    What I built
    A LangGraph chatbot behind a LiteLLM gateway with retries and timeouts, runtime switching between OpenAI, Grok and Anthropic, DeepEval guardrails on both the user message and the reply, and LangSmith tracing.
    Result
    • Messages scoring below the 0.7 safety threshold are blocked before reaching the model or the user.
    • The guardrails fail closed: if the judge model is unavailable, the message is blocked. No formal evaluation has been run yet.
    • LangGraph
    • LiteLLM
    • DeepEval
    • LangSmith
  • DoneRAG

    RAG pipeline built for free tier infrastructure

    The problem
    Most RAG tutorials need paid infrastructure, which makes them hard to deploy and show.
    What I built
    A RAG backend with FastAPI, durable workflows in Inngest, a Qdrant Cloud vector store and Groq for generation, plus a Streamlit front end, all chosen to fit free tier limits.
    Result
    • The pipeline and the front end are in the repository. No evaluation numbers have been recorded yet.
    • FastAPI
    • Inngest
    • Qdrant
    • Groq
    • Streamlit
  • DoneDeep learning

    Vision Transformer image classifier as a service

    The problem
    A pretrained vision model in a notebook is not something a user can try.
    What I built
    A FastAPI backend serving the open Vision Transformer google/vit-base-patch16-224 and a Streamlit app where you upload a picture and get the top five ImageNet classes with confidence. The model can be swapped through an environment variable.
    Result
    • Runs end to end from upload to prediction. It is limited to the 1,000 ImageNet classes, and I have not benchmarked accuracy myself.
    • PyTorch
    • Hugging Face
    • FastAPI
    • Streamlit
  • DoneData science and ML

    Machine learning algorithms from scratch

    The problem
    Using library models without knowing the maths behind them makes tuning and debugging guesswork.
    What I built
    Fifteen NumPy implementations: linear regression (ordinary least squares, gradient descent, ridge and lasso variants), polynomial regression, logistic regression, KNN, SVM, Gaussian naive Bayes, decision tree, random forest and PCA.
    Result
    • Benchmarked against scikit-learn over 5 random 80/20 splits. Accuracy is within about 1 point on most runs: logistic regression 97.5% vs 98.1% and KNN 97.4% vs 97.4% on breast cancer, Gaussian naive Bayes 97.8% vs 97.8% on wine.
    • Multiple linear regression matches scikit-learn exactly on diabetes (R² 0.418, RMSE 55.9) and PCA matches its explained variance to within floating point rounding error.
    • Trees trail on the small wine set: decision tree 91.7% vs 93.9%, random forest 95.0% vs 97.2%. They are also far slower, 8.6 s against 0.014 s for a 10 tree forest on breast cancer.
    • Python
    • NumPy
  • DoneData science and ML

    Bagging Ensemble Studio

    The problem
    Trying bagging on a new dataset normally means writing code for every experiment.
    What I built
    A Streamlit app where you upload a CSV, pick the target and features, choose a base model (decision tree, linear or logistic regression, ridge, lasso or SVM), tune the number of estimators, sample sizes and bootstrapping, and evaluate with a train test split or K fold cross validation, for classification or regression.
    Result
    • Turns a CSV into a validated bagging model with no code. No benchmark on a named dataset has been recorded.
    • Python
    • Streamlit
    • scikit-learn
  • DoneData science and ML

    Voting Ensemble Studio

    The problem
    Comparing hard and soft voting across different algorithms needs a lot of repeated setup code.
    What I built
    A Streamlit app that combines decision trees, linear models, SVMs and KNN into a voting ensemble, with hard or soft voting, and evaluates it with a train test split or K fold cross validation.
    Result
    • Lets you compare voting strategies on any CSV in minutes. No benchmark on a named dataset has been recorded.
    • Python
    • Streamlit
    • scikit-learn
  • DoneLLM applications

    Model Context Protocol: two servers, one client

    The problem
    Agents need tools from more than one source, and the client has to know which server owns each tool.
    What I built
    Two MCP servers (math tools and text tools) and a client that launches both over stdio, lists their tools and routes each call to the right server.
    Result
    • Calls are routed correctly across both servers. It is a small demonstration, not a production system.
    • Python
    • FastMCP
  • DoneLLM applications

    Spendly expense tracker

    The problem
    Personal spending is hard to see without a simple tracker.
    What I built
    A web app with a database layer, server rendered pages and automated tests, built with Claude Code while following a CampusX tutorial, with features added through a spec, plan and ship workflow.
    Result
    • Working app with tests in the repository. It follows a tutorial, so treat it as practice with an AI assisted workflow.
    • Python
    • SQL
    • Claude Code
  • In progressNLP

    LSTM next word predictor with Luong attention

    The problem
    Predicting the next words of a movie review needs a model that remembers long context.
    What I built
    A 12 layer encoder and 12 layer decoder LSTM with residual connections, layer norm, Luong attention and tied embeddings (about 18 million parameters), trained on IMDB reviews. Reviews are deduplicated and split before windowing so no test text leaks into training, and the vocabulary comes from the training split only.
    Result
    • The model and pipeline are written. Perplexity and top k accuracy will be added once training finishes.
    • PyTorch
    • Colab
  • In progressNLP

    Deep gated RNN for sentiment classification

    The problem
    Deep recurrent networks are hard to train, and I wanted to see what makes depth workable.
    What I built
    A four block residual bidirectional GRU with layer norm, attention and max pooling, padding aware pooling and a one cycle learning rate, trained from scratch on 50,000 IMDB reviews.
    Result
    • The model and training loop are written. Test accuracy will be added after the run.
    • PyTorch
  • PlannedData science and ML

    Customer churn prediction: from raw data to a deployed API

    The problem
    Churn models often fail in production because the data pipeline, features and serving are built separately and drift apart.
    What I will build
    ETL from raw files into PostgreSQL, exploratory analysis, feature engineering, model comparison with cross validation, and a FastAPI service with a frontend, with model, backend and frontend separated.
    How I will measure it

    ROC AUC, precision and recall at the chosen threshold, and API latency, each compared with a simple baseline.

    • Python
    • SQL
    • PostgreSQL
    • scikit-learn
    • FastAPI
  • PlannedData science and ML

    Sales analytics dashboards in Power BI and Tableau

    The problem
    Business teams need answers from messy sales data, not raw tables.
    What I will build
    Clean and model a public sales dataset with SQL and Python, then build the same KPI dashboards in Power BI and Tableau with written insights.
    How I will measure it

    Which business questions each dashboard answers, data quality checks passed, and refresh time.

    • SQL
    • Python
    • Power BI
    • Tableau
    • Excel
  • PlannedDeep learning

    Demand forecasting service

    The problem
    Forecasts that are not tested against a simple baseline can look good and still be worse than guessing last week's value.
    What I will build
    Classical and neural forecasting models, rolling origin backtesting, and a deployed forecasting endpoint.
    How I will measure it

    MAPE and RMSE against a seasonal naive baseline across backtest windows.

    • Python
    • PyTorch
    • FastAPI
  • PlannedDeep learning

    CNN image classifier with transfer learning, deployed

    The problem
    Small image datasets overfit when a CNN is trained from scratch.
    What I will build
    Fine tune a pretrained CNN on a small labelled dataset, compare it with a CNN trained from scratch, and serve it behind an API in a container.
    How I will measure it

    Held out accuracy and per class F1 for both models, plus inference latency.

    • PyTorch
    • FastAPI
    • Docker
  • PlannedNLP

    Text classification service: LSTM against Transformer

    The problem
    Choosing between a small recurrent model and a pretrained Transformer is usually done on instinct.
    What I will build
    Train both on the same labelled text task, package the better one as a containerized API.
    How I will measure it

    Accuracy and F1 on a held out set, latency and cost per 1,000 requests for each model.

    • Python
    • PyTorch
    • Hugging Face
    • FastAPI
    • Docker
  • PlannedLLM fine tuning

    LoRA and QLoRA fine tuning of a small LLM for one domain task

    The problem
    General models are mediocre at narrow tasks, and full fine tuning is too expensive for most teams.
    What I will build
    Parameter efficient fine tuning with SFT then DPO on a domain dataset, served with vLLM.
    How I will measure it

    Task accuracy and LLM as judge win rate against the base model, GPU memory used and tokens per second.

    • PyTorch
    • PEFT
    • TRL
    • vLLM
  • PlannedLLM fine tuning

    Small multimodal model for document extraction

    The problem
    OCR plus a large language model is slow and costly for extracting fields from invoices and forms.
    What I will build
    Fine tune a small vision language model to extract structured fields and compare it with an OCR plus LLM baseline.
    How I will measure it

    Field level extraction accuracy and cost per document against the baseline.

    • PyTorch
    • PEFT
    • Hugging Face
    • vLLM
  • PlannedRAG

    Vectorless RAG and GraphRAG compared with vector RAG

    The problem
    Vector search misses questions that depend on structure and relationships between facts.
    What I will build
    Build vectorless and graph based retrieval over the same documents as a vector baseline and evaluate all three.
    How I will measure it

    hit@k and mean reciprocal rank, answer faithfulness (RAGAS), latency and cost per query.

    • Python
    • LangGraph
    • Graph database
    • RAGAS
  • PlannedRAG

    RAG with conversation memory, security and guardrails

    The problem
    A RAG assistant that remembers users also has to resist prompt injection and avoid leaking personal data.
    What I will build
    Add memory, prompt injection defences, PII redaction and output guardrails to a RAG service, with automated attack tests.
    How I will measure it

    Prompt injection block rate, PII leaks found by tests, and faithfulness with the guardrails on and off.

    • Python
    • FastAPI
    • NeMo Guardrails
    • RAGAS
  • PlannedCloud and infrastructure

    Containerized AI services on AWS and Kubernetes

    The problem
    A service that works on a laptop still has to be deployed, secured and scaled.
    What I will build
    Deploy a containerized API on AWS (EC2, S3, ECS and EKS) with Kubernetes manifests, RBAC and CI and CD through GitHub Actions.
    How I will measure it

    Deploy time, p95 latency under load, and monthly cost.

    • Docker
    • Kubernetes
    • AWS
    • GitHub Actions
  • PlannedCloud and infrastructure

    System design case study: SQL and NoSQL data layer

    The problem
    No single database fits every access pattern, and teams often pick one by habit.
    What I will build
    Model one product across PostgreSQL, MongoDB, Redis and a graph database, and write down which access patterns each serves best.
    How I will measure it

    Query latency for each access pattern on each database.

    • PostgreSQL
    • MongoDB
    • Redis
    • Graph database

More learning repositories

What you get when you hire me

  • Answers you can check

    I build retrieval augmented generation (RAG) systems that cite the passages they used and refuse when the documents do not cover the question.

  • Measured before it ships

    ragx compares 5 retrieval modes on a fixed set of 128 questions, with 38 held out. A reranker that made results worse was left out, and so was a self checking variant that used about four times the model calls for no gain. The demo is live. Most labels were written by an AI assistant and are not reviewed by a human.

  • Explains clearly

    For two and a half years I taught students CNNs, RNNs, Transformers, data structures and parallel computing as a lab demonstrator and teaching assistant.

  • Builds past the notebook

    I ship APIs, tests and containers with the models: FastAPI services, rate limits, guardrails, tracing and Dockerfiles.

I build AI systems that answer from real sources, say when they do not know, and show the measurements behind every claim.

GitHub activity

19 public repositories and 265 contributions, with 45 active days and a longest streak of 35 days. My account started in September 2026, so the chart begins there.

Checking GitHub for the latest activity.

265 contributions since I started

Busiest day: 33 on Oct 3

Repositories by main language

Python
14
Jupyter Notebook
4

Each public repository is counted once by its main language. This website's own repository is excluded.

View the heatmap as a table (weekly totals)
Week ofContributions
Aug 30, 202627
Sep 6, 202626
Sep 13, 202651
Sep 20, 202637
Sep 27, 202660
Oct 4, 202629
Oct 11, 202622
Oct 18, 20265
Oct 25, 20260
Nov 1, 20268

Recently updated

Skills

Languages
Python, SQL, R, C++, Bash
Machine learning and deep learning
Machine learning from scratch, scikit-learn, PyTorch, Hugging Face, CNNs, RNNs and LSTMs, Transformers, Time series, Transfer learning, Generative models, Reinforcement learning, NumPy, Pandas
LLMs and RAG
LLM fine tuning (LoRA, QLoRA, SFT, DPO), Knowledge distillation, Small language models and multimodal models, Advanced RAG (hybrid search, reranking), Vectorless RAG, GraphRAG, Agentic AI, LangChain, LangGraph, LlamaIndex, LiteLLM, LangSmith, vLLM, Model Context Protocol, RAG evaluation (RAGAS, DeepEval), Guardrails (NeMo, Llama Guard)
Vector databases
Qdrant, FAISS, Chroma, Pinecone, pgvector
Databases
PostgreSQL, MySQL, MongoDB, Redis, Graph databases, Key value stores, Column stores
Data engineering and analytics
ETL pipelines, Data cleaning, Exploratory data analysis, Feature engineering, Statistical analysis, Power BI, Tableau, Excel, Streamlit
APIs and system design
FastAPI, GraphQL, REST, Microservices, Async processing, Caching, System design
Cloud and DevOps
Docker, Kubernetes, AWS (EC2, S3, ECS, EKS, RBAC), Azure, Microsoft Foundry, GitHub Actions, MLflow, Weights and Biases, DVC, Linux, Git and GitHub
Computer science
Data structures and algorithms, Networking (TCP/IP, DNS, HTTP), Multithreading, MPI, OpenMP, CUDA

Email me about the role

Open to AI Engineer and Forward Deployed Engineer roles. Write to me and I will reply.

This site has no server, so your message goes out from your own email. After you write it, you pick Gmail, Outlook or your email app.