SmartFAQs.ai
Back to Learn
Deep Dive

Normalized Discounted Cumulative Gain (NDCG)

A ranking metric used in RAG evaluation to measure the effectiveness of a retriever by rewarding relevant documents at the top of the results while applying a logarithmic discount to those appearing at lower ranks. It normalizes the score against an Ideal DCG (IDCG), ensuring the value ranges from 0 to 1 regardless of the query's total number of relevant documents.

Definition

A ranking metric used in RAG evaluation to measure the effectiveness of a retriever by rewarding relevant documents at the top of the results while applying a logarithmic discount to those appearing at lower ranks. It normalizes the score against an Ideal DCG (IDCG), ensuring the value ranges from 0 to 1 regardless of the query's total number of relevant documents.

Disambiguation

Unlike Hit Rate or MRR, NDCG considers graded relevance levels rather than just binary success or the position of the first hit.

Visual Metaphor

"A tiered awards podium where the height of the platform (relevance) matters, but the value of the prize drops exponentially the further the winner is seated from the front row."

Key Tools
scikit-learnranxRAGASDeepEvalPyseriniBeir
Related Connections

Conceptual Overview

A ranking metric used in RAG evaluation to measure the effectiveness of a retriever by rewarding relevant documents at the top of the results while applying a logarithmic discount to those appearing at lower ranks. It normalizes the score against an Ideal DCG (IDCG), ensuring the value ranges from 0 to 1 regardless of the query's total number of relevant documents.

Disambiguation

Unlike Hit Rate or MRR, NDCG considers graded relevance levels rather than just binary success or the position of the first hit.

Visual Analog

A tiered awards podium where the height of the platform (relevance) matters, but the value of the prize drops exponentially the further the winner is seated from the front row.

Related Articles