How the score is built
For each distinct query term t and document D, the tool computes IDF(t) × f × (k1 + 1) / (f + k1 × (1 − b + b × |D| / avgdl)), then sums over terms. f is the count of t in D, |D| is the document's token count and avgdl is the mean token count across the pasted documents. A term that is absent contributes exactly zero.
- IDF rewards rare terms. With 3 documents, a term in 1 of them gets ln(1 + 2.5/1.5) = 0.9808; a term in 2 gets ln(1 + 1.5/2.5) = 0.4700.
- TF factor grows with frequency but flattens out toward k1 + 1, so repeating a word ten times does not make a document ten times more relevant.
- Length normalisation shrinks the factor for documents longer than average and raises it for shorter ones, scaled by b.
Each document card lists frequency, TF factor and contribution per term, so you can see which term produced the score.