711
Dictionary

BM25

The keyword-ranking algorithm behind classic search engines.

1 min readupdated 2026-07-04

/ quick answer

BM25 scores documents by term frequency, inverse document frequency, and length normalization. It's fast, deterministic, and complements dense vector retrieval in hybrid search. The keyword-ranking algorithm behind classic search engines.

The keyword-ranking algorithm behind classic search engines. BM25 scores documents by term frequency, inverse document frequency, and length normalization. It's fast, deterministic, and complements dense vector retrieval in hybrid search. In practice: Elasticsearch and Postgres full-text search both use BM25 under the hood.
Definition
BM25 scores documents by term frequency, inverse document frequency, and length normalization. It's fast, deterministic, and complements dense vector retrieval in hybrid search.
Example
Elasticsearch and Postgres full-text search both use BM25 under the hood.

/ frequently asked

What is BM25?

BM25 scores documents by term frequency, inverse document frequency, and length normalization. It's fast, deterministic, and complements dense vector retrieval in hybrid search.

What is an example of BM25?

Elasticsearch and Postgres full-text search both use BM25 under the hood.

Why does BM25 matter?

The keyword-ranking algorithm behind classic search engines.

What should I learn after BM25?

Open the related workflows and prompts further down this page: they show how this idea is applied in a real task, step by step.

/ continue exploring

Related concepts

The vocabulary this page depends on.

all dictionary →

Related workflows

Turn this into a repeatable process.

all workflows →

Related prompts

Reusable prompts for this job.

all prompts →

Comparisons & alternatives

Pick between the options.

all comparisons →