Learn Before
Formula

Document Scoring

A document is scored according to its similarity with a query to determine its rank in a retrieved response list. The fundamental score can be expressed using cosine similarity between the query vector q\mathbf{q} and the document vector d\mathbf{d}: score(q,d)=cos(q,d)=qqddscore(q,d) = \cos(q,d) = \frac{\mathbf{q}}{|\mathbf{q}|} \cdot \frac{\mathbf{d}}{|\mathbf{d}|}

0

1

Updated 2026-06-19

Tags

Data Science