BM25 Document Ranking
BM25 document ranking scores each document for a query by summing, over query terms, an idf weight times a saturating function of term frequency normalised by document length.
BM25 문서 순위화는 질의어마다 idf 가중치에 문서 길이로 보정한 포화형 단어빈도 함수를 곱해 더하는 방식으로 문서의 관련도를 점수화합니다.
I have 3,000 interview transcripts; which ones are most relevant to the query 'housing cost burden'?
인터뷰 녹취록 3,000건 중에서 '주거비 부담'이라는 질의와 가장 관련 있는 문서는 어떤 것들인가요?
Tokenise documents and query, compute each term's inverse document frequency and score documents with the BM25 formula using the parameters k1 and b. Rank documents by score per query and inspect the top results and the term statistics.
When to use BM25 Document Ranking
- You need a transparent keyword relevance ranking of documents.
- You want a strong lexical baseline before trying neural retrieval.
- Queries are short sets of keywords.
When to use something else
- Relevant documents use different wording than the query; use embedding-based semantic search.
- You want to group documents rather than rank them for a query; use TF-IDF clustering or topic models.
Assumptions and requirements
- Relevance is reflected by shared word forms (no stemming or synonyms here).
- k1 and b suit the collection (defaults 1.5 and 0.75).
- Documents are in one language with consistent tokenisation.
What the analysis reports
- Ranked documents per query with scores
- Term document frequencies and idf weights
- Collection statistics (documents, average length, vocabulary)
How to report it
BM25 (k1 = [value], b = [value]) ranked [n] documents for [q] queries; the top document for '[query]' scored [value].
Related methods
- TF-IDF Analysis
- TF-IDF Document Similarity and Clustering
- Sentence-BERT Semantic Similarity
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation).
독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run BM25 Document Ranking on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns
- Price
- 150 credits for one analysis up to 10,000 rows (complexity level 1); larger or wider data costs more. Optional methodologist review: 900 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.