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 sleek Python code editor with a RAG pipeline diagram.

Build a Pure‑Python Hybrid RAG Engine with BM25, HNSW, and Cross‑Encoder Reranking

Learn to stitch together BM25, HNSW, and a miniature GPT‑2 model in pure Python for a standout RAG project.

September 18, 2026 · 8 min · 1568 words · martinuke0
A visual representation of BM25 relevance scoring curves across different term frequencies

Implementing BM25 Ranking with Lucene: Precision, Tuning, and Production Trade-offs

BM25 is the default ranking function in Lucene and Elasticsearch, but most engineers never tune its parameters. This post unpacks the algorithm’s internals, practical configuration levers, and the production trade-offs that separate adequate search from great search.

September 12, 2026 · 8 min · 1690 words · martinuke0
Diagram of a hybrid retriever with sparse and dense branches feeding a reranker.

Build a Hybrid Sparse-Dense Retriever: A CV-Worthy RAG Side Project

Hands-on build guide for a hybrid sparse-dense retriever (BM25 + embedding reranking) with a from-scratch HNSW vector index. Real runnable code, architecture diagrams, and a roadmap to senior-level.

September 7, 2026 · 14 min · 2978 words · martinuke0
Diagram showing sparse and dense retrieval paths merging into a fused ranked list feeding a streaming generation loop.

Build a Hybrid Sparse-Dense Retriever from Scratch: A CV Project That Actually Signals Systems Skill

Step-by-step build of a real hybrid retrieval system that combines learned BM25 with dense embeddings, fuses scores, and streams answers — the kind of project that makes hiring managers stop scrolling.

September 7, 2026 · 12 min · 2506 words · martinuke0
Feedback