---
title: "Discussion on \"How I Built BM25 from Scratch (And Why It's Better Than TF-IDF)\" | Hashnode"
description: "Discussion on \"How I Built BM25 from Scratch (And Why It's Better Than TF-IDF)\". Okay so today I did another learning-based project. This time — BM25 from scratch.\nIf you've heard of TF-IDF, BM25 is basically the upgraded version of it. Let me explain why.\n\nWhat's wrong with TF-ID"
url: "https://hashnode.com/posts/how-i-built-bm25-from-scratch-and-why-it-s-better-than-tf-idf/6a4d409bf2f301b49931d9c7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How I Built BM25 from Scratch (And Why It's Better Than TF-IDF)](https://bpe-tokenizer.hashnode.dev/how-i-built-bm25-from-scratch-and-why-it-s-better-than-tf-idf?utm_source=hashnode&utm_medium=feed)

Okay so today I did another learning-based project. This time — BM25 from scratch. If you've heard of TF-IDF, BM25 is basically the upgraded version of it. Let me explain why. What's wrong with TF-ID

Jul 7 · 5 min read · bpe-tokenizer.hashnode.dev  
Read the article

## Written by

[PUNITH](https://hashnode.com/@punith-v)

@punith-v · Hyderabad, India

  
[View profile](https://hashnode.com/@punith-v)

"I build because I can't not."

I have no foundation. I have no pedigree. I have an obsession with understanding things deeply and building them publicly. This blog is my laboratory. Every post is a commit in the repo of my mind. Some work. Most break. All teach. I build because I can't not.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
