The NDCG (Normalized Discounted Cumulative Gain) score and other metrics for retrieved documents are calculated based on the relevance scores of the documents. Here's a brief overview: 1. NDCG: Measures the ranking quality of retrieved documents, considering the position of relevant documents. Higher scores indicate better ranking. The formula involves discounting the relevance scores logarithmically based on their positions. For more details, see RetrievalMetrics.ndcg.2. Precision: Fraction of relevant documents among the retrieved ones. Higher precision means more relevant documents were retrieved. For more details, see RetrievalMetrics.precision.3. Hit: Indicates if at least one relevant document was retrieved. A hit rate of 1 means at least one relevant document was found. For more details, see RetrievalMetrics.hit.Would you like more detail?Sources:
- RetrievalMetrics.ndcg
π‘Β Hint: Mention RunLLM in the thread for followups.