BM25+ formula visualized on a search interface

Deep Dive into BM25+: Tuning Parameters for Large‑Scale Enterprise Search

BM25+ extends classic BM25 with term frequency saturation and document length normalization. This guide walks you through parameter selection, real-world tuning, and production patterns for enterprise search.

October 1, 2026 · 10 min · 2089 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
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
A terminal window showing search results from a custom-built mini search engine.

Building a Mini Search Engine with an Inverted Index and TF-IDF: A Hands-On CV Project

A hands-on build guide for a portfolio-grade search engine: tokenize documents, build an inverted index, rank with TF-IDF, and ship something that actually works. Includes runnable code, tests, and a roadmap of upgrades that turn the toy into production-flavored work.

September 2, 2026 · 12 min · 2439 words · martinuke0

Implementing Multi-Stage Reranking for High Precision Retrieval Augmented Generation on Google Cloud Platform

Introduction Retrieval‑Augmented Generation (RAG) has emerged as a practical paradigm for building knowledge‑aware language‑model applications. Instead of relying solely on the parametric knowledge stored inside a large language model (LLM), RAG first retrieves relevant documents from an external corpus and then generates a response conditioned on those documents. This two‑step approach dramatically improves factual accuracy, reduces hallucinations, and enables up‑to‑date answers without retraining the underlying model. However, the quality of the final answer hinges on the precision of the retrieval component. In many production settings—customer support bots, legal‑assistant tools, or medical QA systems—retrieving a handful of highly relevant passages is far more valuable than returning a long list of loosely related hits. A common technique to raise precision is multi‑stage reranking: after an initial, inexpensive retrieval pass, successive models (often larger and more expensive) re‑evaluate the candidate set, pushing the most relevant items to the top. ...

April 3, 2026 · 13 min · 2566 words · martinuke0
Feedback