A search system returns five plausible documents. One answers the question directly, two provide partial context and the others merely share vocabulary. A ranking metric is useful only after you decide how those differences will be judged.
Normalized discounted cumulative gain, usually written nDCG, combines relevance judgments with rank position. The scikit-learn documentation describes discounting gains down the ranked list and normalising against the best ordering of the supplied relevance values. Higher-ranked useful results receive more weight in that calculation.
Write the relevance rubric before scoring
For an original document-search example, define three grades: 2 for a direct answer supported by the document, 1 for useful but incomplete information and 0 for material that does not help answer the question. These are illustrative choices, not a universal grading scale.
Give reviewers examples of the boundary between a partial and a direct answer. A document that mentions the right topic but omits the requested date may deserve a different grade from one that actually supplies it. Resolve disagreements through the stated rubric rather than adjusting labels to favour a preferred search system.
Keep the calculation settings with the result
Specify the cutoff, such as nDCG at five results, and the implementation used. Check how it handles ties, gain values and queries with no relevant items. Different conventions can make superficially identical metric labels unsuitable for direct comparison.
For a simple thought experiment, compare two lists containing the same three documents. One places the directly useful document first; the other buries it below irrelevant material. nDCG is designed to reflect that ordering difference, while the judgments still come from the evidence and rubric.
Review individual queries alongside the aggregate score. A strong average can coexist with poor results on an important task. Also keep the judged collection and its version visible: an ideal order is ideal relative to the supplied judgments, not proof that every useful document on the internet was considered.
The metric summarises a defined evaluation. Clear relevance grades are what make that summary worth interpreting.

