Python code on a laptop screen with vector icons

Building a Pure‑Python RAG Pipeline with a Lightweight Transformer and KV‑Cached Attention

Learn how to construct a minimal, runnable RAG system in pure Python, from embeddings to retrieval‑augmented generation, and add a standout project to your CV.

November 14, 2026 · 10 min · 1949 words · martinuke0
A terminal showing BM25 retrieval scores alongside a RAG pipeline diagram

Build a RAG Pipeline with From-Scratch BM25: A Hands-On Portfolio Project

A hands-on guide to building a Retrieval-Augmented Generation pipeline with a from-scratch BM25 scorer. Covers architecture, real Python code, testing, and a senior-level roadmap for extending it into a production-grade system.

September 23, 2026 · 13 min · 2598 words · martinuke0
Abstract illustration of a neural network with retrieval arrows

Building a Speculative RAG Decoder with Retrieval-Token Speculation

This tutorial shows how to combine retrieval‑augmented generation with speculative decoding to cut latency while preserving factual grounding. You’ll build a runnable system that demonstrates real‑world performance gains.

September 22, 2026 · 7 min · 1384 words · martinuke0
A diagram of a RAG pipeline with BM25 and transformer

A BM25 Sparse Retriever + Tiny Transformer Generator RAG Pipeline in Pure Python

This guide walks you through implementing a BM25 sparse retriever and a tiny decoder‑only transformer generator from scratch in pure Python, producing a functional RAG pipeline you can showcase on your CV.

September 20, 2026 · 8 min · 1628 words · martinuke0
A diagram of a vector index

Building a Pure-Python IVF-PQ Vector Index with On-Disk Storage for RAG Pipelines

This guide walks through implementing an IVF‑PQ index in pure Python, storing data on disk and integrating it into a RAG pipeline for sub‑second similarity search.

September 19, 2026 · 2 min · 358 words · martinuke0
Feedback