BM25 Explained
I already wrote a blog post about TF-IDF. I highly recommend reading it before this one. The goal of TF-IDF is to give us a matching score between two documents. Using this score, given a query and a bunch of documents, we can compute how well the query matches each document in our database and return the most relevant results. Here’s the gist of what TF-IDF does: It asks: how much do these two documents overlap on informative keywords? ...