Python
6 posts on Python.

What It Actually Costs to Run a RAG Pipeline: a Mac, Cloud CPUs and an H100
A case study on a RAG ingest over 18,000 drug leaflets, measured on an M4 Mac, two cloud CPU VMs and an H100 provisioned with Terraform on Chameleon Cloud. Where each phase should run, what it costs across four providers, and where my sample lied.
14 min read

Wrapping a Legacy Shipping Carrier API in One Endpoint
I built a FastAPI service that turns a two-step, rate-limited carrier API into one internal endpoint — token caching, retry logic, order mapping, and an undocumented limit found the hard way.
7 min read

Building a RAG Pipeline over 17,000 PDFs
A build log for a RAG system over thousands of real drug leaflets — PDF-to-markdown, section-aware chunking, a cross-encoder reranker, and GPU-scaled embeddings. The bugs that nearly sank it, with the numbers.
8 min read

I Built a House-Price Regressor: Linear Regression with Gradient Descent, scikit-learn vs WEKA
How I predicted California house prices with linear regression trained by gradient descent (SGDRegressor) — mutual-information feature selection, a scaling gotcha that breaks SGD, and an honest benchmark against KNN, a decision tree, and WEKA.
6 min read

I Built a Speech Emotion Classifier: 5 ML Algorithms, scikit-learn vs WEKA
How I built a speech emotion recognition model in Python — parsing MFCC voice features, pruning them with mutual information, and benchmarking five classifiers (logistic regression, naïve Bayes, KNN, decision tree, MLP) in scikit-learn against WEKA.
7 min read

Building a Privacy-First Local RAG System (End-to-End)
A practical, end-to-end guide to building a private RAG system that never leaves your machine — local embeddings, vector store, and LLM, with real code.
5 min read